ol-base-components 3.2.6 → 3.2.7

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": "ol-base-components",
3
- "version": "3.2.6",
3
+ "version": "3.2.7",
4
4
  "private": false,
5
5
  "main": "src/package/index.js",
6
6
  "bin": {
@@ -188,11 +188,11 @@
188
188
  </el-select>
189
189
  </el-form-item>
190
190
 
191
- <el-form-item v-if="currentOptionConfig.sourceType === 'api' && show" label="文本字段">
191
+ <el-form-item v-if="currentOptionConfig.sourceType === 'api'" label="文本字段">
192
192
  <el-input v-model="currentOptionConfig.labelField" placeholder="如:name" />
193
193
  </el-form-item>
194
194
 
195
- <el-form-item v-if="currentOptionConfig.sourceType === 'api' && show" label="值字段">
195
+ <el-form-item v-if="currentOptionConfig.sourceType === 'api'" label="值字段">
196
196
  <el-input v-model="currentOptionConfig.valueField" placeholder="如:id" />
197
197
  </el-form-item>
198
198
 
@@ -234,7 +234,7 @@
234
234
  </div>
235
235
  </el-form-item>
236
236
 
237
- <el-form-item v-if="currentOptionConfig.sourceType === 'dict' && show" label="预览">
237
+ <el-form-item v-if="currentOptionConfig.sourceType === 'dict' && isPreview" label="预览">
238
238
  <div class="preview-box">
239
239
  <el-tag v-for="(item, index) in previewOptions" :key="index" style="margin: 5px">
240
240
  {{ item.value }} ({{ item.key }})
@@ -360,10 +360,13 @@ export default {
360
360
  type: Boolean,
361
361
  default: false,
362
362
  },
363
+ isPreview: {
364
+ type: Boolean,
365
+ default: false,
366
+ },
363
367
  },
364
368
  data() {
365
369
  return {
366
- show: false,
367
370
  dialogVisible: false,
368
371
  configList: [],
369
372
  optionsDialogVisible: false,