【发布时间】:2022-02-20 04:59:28
【问题描述】:
我正在使用 ag-grid-vue,我正在尝试创建自定义工具提示。
这是我的代码:
CustomToolTipVue.js 组件:
export default {
template: `
{{ data.athlete }}
Country: {{ data.country }}
Total: {{ data.total }}
`,
data: function () {
return {
color: null,
athlete: null,
country: null,
total: null,
};
},
beforeMount() {
this.data = this.params.api.getDisplayedRowAtIndex(
this.params.rowIndex
).data;
this.color = this.params.color || 'white';
},
};
网格组件 - 我在哪里使用它(仅附上主要代码):
标签
-
rxjs(28)
-
vite(15)
-
numpy(22)
-
logstash(14)
-
tailwind-css(14)
-
nuxt.js(25)
-
visual-studio(25)
-
kubernetes(22)
-
.net-core(23)
-
angular-material(18)
-
mysql(328)
-
vuetify.js(25)
-
symfony(14)
-
python(418)
-
php(359)
-
elastic-stack(22)
-
ionic-framework(25)
-
问答(3654)
-
.net-6.0(21)
-
go(334)
-
unity3d(25)
-
firebase(21)
-
laravel-8(14)
-
json(62)
-
sql(114)
-
discord.js(19)
-
flask(15)
-
vue.js(316)
-
node.js(526)
-
electron(255)
-
django(15)
-
pandas(55)
-
azure(18)
-
reactjs(194)
-
windows(15)
-
database(58)
-
electron-forge(16)
-
ajax(14)
-
nestjs(18)
-
express(68)
-
macos(21)
-
next.js(21)
-
mongodb(55)
-
typescript(223)
-
sass(22)
-
spring-data-elasticsearch(18)
-
elasticsearch(294)
-
datetime(14)
-
vuejs2(32)
-
nest(14)
-
c++(130)
-
visual-studio-code(39)
-
dataframe(21)
-
string(17)
-
amazon-web-services(33)
-
elasticsearch-aggregation(13)
-
selenium(27)
-
java(74)
-
html(183)
-
elk(15)
-
wordpress(34)
-
c#(296)
-
woocommerce(16)
-
react-native(14)
-
webpack(31)
-
python-3.x(40)
-
electron-builder(34)
-
mongoose(31)
-
jestjs(32)
-
node-modules(13)
-
vuejs3(50)
-
javascript(791)
-
c(66)
-
spring-boot(32)
-
asp.net-mvc(14)
-
jwt(15)
-
.net(62)
-
graphql(13)
-
axios(32)
-
laravel(99)
-
kibana(32)
-
api(36)
-
go-gorm(14)
-
docker(42)
-
angular(357)
-
postgresql(34)
-
regex(14)
-
spring(14)
-
async-await(18)
-
date(13)
-
css(94)
-
npm(57)
-
arrays(65)
-
redis(18)
-
asp.net-core(41)
-
sorting(15)
-
jquery(35)
-
unit-testing(30)
-
asp.net(37)
-
linux(30)
