diff --git a/examples/routers/poptip.vue b/examples/routers/poptip.vue index a956f34..981a3d0 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 a01d612..bb4b222 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) { -- libgit2 0.21.4