askbot-dragon 0.8.26 → 0.8.28

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.26",
3
+ "version": "0.8.28",
4
4
  "scripts": {
5
5
  "serve": "vue-cli-service serve",
6
6
  "build": "vue-cli-service build",
@@ -575,20 +575,6 @@
575
575
  </span>
576
576
  </template>
577
577
  </van-field>
578
- <van-popup v-model="selectPicker" position="bottom" :style="{ height: '300px' }">
579
- <select-popup
580
- :options="selectOptions(item.formField)"
581
- :defaultValue="defaultValue"
582
- @onConfim="confirmSelect"
583
- @onclose= "selectPicker = false"
584
- :multiple="item.formField.extInfo && item.formField.extInfo.selectType ==='多选'?true:false"
585
- ref="selectPopup"
586
- :props="{
587
- value:'value',
588
- label:'label'
589
- }"
590
- ></select-popup>
591
- </van-popup>
592
578
  </template>
593
579
  </div>
594
580
  <div v-if="item.formField.type === 'REF_TEMPLATE' || item.formField.type === 'REF'" class="form-field-item-value">
@@ -734,6 +720,20 @@
734
720
  }"
735
721
  ></select-popup>
736
722
  </el-drawer>
723
+ <van-popup v-model="selectPicker" position="bottom" :style="{ height: '300px' }">
724
+ <select-popup
725
+ :options="optionsList[selectDetail.fieldId]"
726
+ :defaultValue="defaultValue"
727
+ @onConfim="confirmSelect"
728
+ @onclose= "selectPicker = false"
729
+ :multiple="selectDetail.formField && selectDetail.formField.extInfo && selectDetail.formField.extInfo.selectType ==='多选'?true:false"
730
+ ref="selectPopup"
731
+ :props="{
732
+ value:'value',
733
+ label:'label'
734
+ }"
735
+ ></select-popup>
736
+ </van-popup>
737
737
  </div>
738
738
  </template>
739
739
 
@@ -860,7 +860,8 @@ export default {
860
860
  selectDetail:{},
861
861
  refDefaultValue:{},
862
862
  selectOptionWidth:null,
863
- fieldValue:{}
863
+ fieldValue:{},
864
+ optionsList:{}
864
865
  }
865
866
  },
866
867
  props: {
@@ -1725,6 +1726,12 @@ export default {
1725
1726
  this.refDefaultValue[item.fieldId] = item.value?[item.value]:[]
1726
1727
  } else if (type == 'select'){
1727
1728
  this.selectPicker = true;
1729
+ if (item.formField.extInfo){
1730
+ this.optionsList[id] = item.formField.extInfo.option ? item.formField.extInfo.option:item.formField.extInfo.options
1731
+ }
1732
+ else {
1733
+ this.optionsList[id] = []
1734
+ }
1728
1735
  }
1729
1736
  if (item){
1730
1737
  this.detailField = item;
@@ -2434,6 +2441,13 @@ export default {
2434
2441
  border-bottom-left-radius: 9px!important;
2435
2442
  border-bottom-right-radius: 9px!important;
2436
2443
  }
2444
+ /deep/.ck-editor__editable{
2445
+ img{
2446
+ height: 140px;
2447
+ width: 80%;
2448
+ object-fit: contain;
2449
+ }
2450
+ }
2437
2451
  .cascader-class{
2438
2452
  padding: 10px 16px;
2439
2453
  }