diff --git a/package.json b/package.json index 3bcb690..129128a 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "ag-element-ui", - "version": "0.1.11", + "version": "0.1.12", "main": "packages/index.js", "scripts": { "dev": "vue-cli-service serve", diff --git a/packages/agMultifunctionSearch/src/index.vue b/packages/agMultifunctionSearch/src/index.vue index 4d81229..87d537d 100644 --- a/packages/agMultifunctionSearch/src/index.vue +++ b/packages/agMultifunctionSearch/src/index.vue @@ -3,7 +3,8 @@ { return [null, '']; }, - }, - options: { - type: Array, - default: () => { - return []; - }, - }, + }, showExtra: { type: Boolean, default: false, @@ -137,7 +132,7 @@ export default { throw new Error("请传入数组"); } let newselectValue=newVal[0]; - const find=this.options.find((f)=>f.value==newselectValue); + const find=this.$attrs.options&&this.$attrs.options.find((f)=>f.value==newselectValue); if(find){ let fontwidth=this.getStringWidth(find.label); this.swidth=fontwidth>165?165:fontwidth; diff --git a/packages/agMultionDattePicker/src/index.vue b/packages/agMultionDattePicker/src/index.vue index e18c56c..5938bca 100644 --- a/packages/agMultionDattePicker/src/index.vue +++ b/packages/agMultionDattePicker/src/index.vue @@ -1,228 +1,222 @@ - - - + - \ No newline at end of file + } + \ No newline at end of file