ol-base-components 3.2.5 → 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
package/src/App.vue
CHANGED
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
row-key="value"
|
|
30
30
|
:tree-props="{ children: '' }"
|
|
31
31
|
>
|
|
32
|
-
<el-table-column label="排序" width="80" align="center">
|
|
32
|
+
<el-table-column label="排序" width="80" align="center" v-if="dragable">
|
|
33
33
|
<template slot-scope="scope">
|
|
34
34
|
<i class="el-icon-rank sort-handle" style="cursor: move; font-size: 18px" />
|
|
35
35
|
</template>
|
|
@@ -152,17 +152,18 @@
|
|
|
152
152
|
</el-radio-group>
|
|
153
153
|
</el-form-item>
|
|
154
154
|
|
|
155
|
-
<el-form-item v-if="currentOptionConfig.sourceType === 'dict'" label="字典
|
|
155
|
+
<el-form-item v-if="currentOptionConfig.sourceType === 'dict'" label="字典">
|
|
156
156
|
<el-select
|
|
157
157
|
v-model="currentOptionConfig.dictKey"
|
|
158
158
|
filterable
|
|
159
159
|
remote
|
|
160
160
|
reserve-keyword
|
|
161
|
-
placeholder="
|
|
161
|
+
placeholder="请输入字典,如:orderTypeEnum"
|
|
162
162
|
:remote-method="remoteDictQuery"
|
|
163
163
|
:loading="dictLoading"
|
|
164
164
|
style="width: 100%"
|
|
165
165
|
@change="handleDictKeyChange"
|
|
166
|
+
clearable
|
|
166
167
|
>
|
|
167
168
|
<el-option
|
|
168
169
|
v-for="dict in allDictList"
|
|
@@ -233,7 +234,7 @@
|
|
|
233
234
|
</div>
|
|
234
235
|
</el-form-item>
|
|
235
236
|
|
|
236
|
-
<el-form-item v-if="currentOptionConfig.sourceType === 'dict'" label="预览">
|
|
237
|
+
<el-form-item v-if="currentOptionConfig.sourceType === 'dict' && isPreview" label="预览">
|
|
237
238
|
<div class="preview-box">
|
|
238
239
|
<el-tag v-for="(item, index) in previewOptions" :key="index" style="margin: 5px">
|
|
239
240
|
{{ item.value }} ({{ item.key }})
|
|
@@ -246,10 +247,12 @@
|
|
|
246
247
|
</div>
|
|
247
248
|
</el-form-item>
|
|
248
249
|
</el-form>
|
|
249
|
-
<
|
|
250
|
-
<
|
|
251
|
-
|
|
252
|
-
|
|
250
|
+
<div class="dialog-footer">
|
|
251
|
+
<slot name="footer">
|
|
252
|
+
<el-button @click="optionsDialogVisible = false">取消</el-button>
|
|
253
|
+
<el-button type="primary" @click="handleSaveOptions">确定</el-button>
|
|
254
|
+
</slot>
|
|
255
|
+
</div>
|
|
253
256
|
</el-dialog>
|
|
254
257
|
|
|
255
258
|
<el-dialog
|
|
@@ -353,6 +356,14 @@ export default {
|
|
|
353
356
|
type: Array,
|
|
354
357
|
default: () => [],
|
|
355
358
|
},
|
|
359
|
+
dragable: {
|
|
360
|
+
type: Boolean,
|
|
361
|
+
default: false,
|
|
362
|
+
},
|
|
363
|
+
isPreview: {
|
|
364
|
+
type: Boolean,
|
|
365
|
+
default: false,
|
|
366
|
+
},
|
|
356
367
|
},
|
|
357
368
|
data() {
|
|
358
369
|
return {
|