askbot-dragon 0.8.11 → 0.8.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "askbot-dragon",
3
- "version": "0.8.11",
3
+ "version": "0.8.12",
4
4
  "scripts": {
5
5
  "serve": "vue-cli-service serve",
6
6
  "build": "vue-cli-service build",
@@ -210,13 +210,16 @@
210
210
  @visible-change="(visible) =>{ return refTemplateVisibleChange(visible,item) }"
211
211
  collapse-tags
212
212
  @change="changeRefData($event,item)"
213
+ @focus="setOptionWidth"
213
214
  >
214
215
  <template v-for="(items,index) in refTemplateList[item.fieldId]">
215
216
  <el-option
216
217
  v-if="refTemplateList[item.fieldId]"
217
218
  :key="index"
218
219
  :label="items.name"
219
- :value="items.id">
220
+ :value="items.id"
221
+ :style="{width:selectOptionWidth}"
222
+ >
220
223
  </el-option>
221
224
  </template>
222
225
  <div
@@ -721,7 +724,8 @@ export default {
721
724
  defaultValue:[],
722
725
  timeDetailData:{},
723
726
  selectDetail:{},
724
- refDefaultValue:{}
727
+ refDefaultValue:{},
728
+ selectOptionWidth:null,
725
729
  }
726
730
  },
727
731
  props: {
@@ -1954,6 +1958,9 @@ export default {
1954
1958
  }
1955
1959
  this.extInfoFieldValue[item.fieldId] = arr
1956
1960
  },
1961
+ setOptionWidth(){
1962
+ this.selectOptionWidth = event.srcElement.offsetParent.offsetWidth + 40 + "px";
1963
+ },
1957
1964
  lodeMore(item) {
1958
1965
  this.dataQuery[item.fieldId].pageInfo.pageNo += 1
1959
1966
  this.refTemplateVisibleChange(true,item)