From f0116c03d3525799f3b28b0ea3008056615ef00a Mon Sep 17 00:00:00 2001 From: huanghong Date: Mon, 16 Apr 2018 19:27:34 +0800 Subject: [PATCH] update poptip content change --- examples/routers/poptip.vue | 57 +++++++++++++++++++++++++++++++++-- src/components/base/popper.js | 4 +++ 2 files changed, 59 insertions(+), 2 deletions(-) diff --git a/examples/routers/poptip.vue b/examples/routers/poptip.vue index a956f34c..981a3d07 100644 --- a/examples/routers/poptip.vue +++ b/examples/routers/poptip.vue @@ -2,7 +2,7 @@
-
+ +
+ + +
+ + + + + +
+
+
标签二的内容 @@ -27,8 +40,48 @@ return { options: { - } + }, + columns1:[ + { + title: 'Data1', + key: 'data1', + width: 100, + }, + { + title: 'Data2', + key: 'data2', + width: 100 + }, + { + title: 'Data3', + key: 'data3', + width: 100 + }, + { + title: 'Data4', + key: 'data4', + width: 100 + } + ], + data1:[], } + }, + created(){ + this.loadData(5); + }, + methods:{ + loadData(num){ + let data = []; + for (let i=0; i diff --git a/src/components/base/popper.js b/src/components/base/popper.js index a01d6120..bb4b2226 100644 --- a/src/components/base/popper.js +++ b/src/components/base/popper.js @@ -110,6 +110,10 @@ export default { this.popperJS = null; } }, + updated (){ + this.$nextTick(()=>this.updatePopper()); + + }, beforeDestroy() { if (isServer) return; if (this.popperJS) {