diff --git a/src/directive/common/lazyLoadChild.js b/src/directive/common/lazyLoadChild.js new file mode 100644 index 00000000..a81c033d --- /dev/null +++ b/src/directive/common/lazyLoadChild.js @@ -0,0 +1,25 @@ +export default function lazyLoadChild(maxFrameCount) { + return { + data() { + return { + frameCount: 0, + }; + }, + mounted() { + const refreshFrame = () => { + requestAnimationFrame(() => { + this.frameCount++; + if (this.frameCount < maxFrameCount) { + refreshFrame(); + } + }); + }; + refreshFrame(); + }, + methods: { + deferItem(showFrameCount) { + return this.frameCount >= showFrameCount; + }, + }, + }; +} diff --git a/src/views/emis/EmisBaseTools/GoodsSimplePicker.vue b/src/views/emis/EmisBaseTools/GoodsSimplePicker.vue new file mode 100644 index 00000000..9d063ab1 --- /dev/null +++ b/src/views/emis/EmisBaseTools/GoodsSimplePicker.vue @@ -0,0 +1,110 @@ + + + + + diff --git a/src/views/emis/emisCountry/index.vue b/src/views/emis/emisCountry/index.vue index 16803166..1f0569fe 100644 --- a/src/views/emis/emisCountry/index.vue +++ b/src/views/emis/emisCountry/index.vue @@ -167,7 +167,7 @@ - +