|
@@ -397,8 +397,10 @@
|
|
|
<el-color-picker v-model="activeData['inactive-color']" />
|
|
|
</el-form-item>
|
|
|
|
|
|
- <el-form-item v-if="activeData.__config__.showLabel !== undefined
|
|
|
- && activeData.__config__.labelWidth !== undefined" label="显示标签"
|
|
|
+ <el-form-item
|
|
|
+ v-if="activeData.__config__.showLabel !== undefined
|
|
|
+ && activeData.__config__.labelWidth !== undefined"
|
|
|
+ label="显示标签"
|
|
|
>
|
|
|
<el-switch v-model="activeData.__config__.showLabel" />
|
|
|
</el-form-item>
|
|
@@ -445,9 +447,9 @@
|
|
|
<el-form-item
|
|
|
v-if="activeData.size !== undefined &&
|
|
|
(activeData.__config__.optionType === 'button' ||
|
|
|
- activeData.__config__.border ||
|
|
|
- activeData.__config__.tag === 'el-color-picker' ||
|
|
|
- activeData.__config__.tag === 'el-button')"
|
|
|
+ activeData.__config__.border ||
|
|
|
+ activeData.__config__.tag === 'el-color-picker' ||
|
|
|
+ activeData.__config__.tag === 'el-button')"
|
|
|
label="组件尺寸"
|
|
|
>
|
|
|
<el-radio-group v-model="activeData.size">
|
|
@@ -736,14 +738,14 @@ export default {
|
|
|
computed: {
|
|
|
documentLink() {
|
|
|
return (
|
|
|
- this.activeData.__config__.document
|
|
|
- || 'https://element.eleme.cn/#/zh-CN/component/installation'
|
|
|
+ this.activeData.__config__.document ||
|
|
|
+ 'https://element.eleme.cn/#/zh-CN/component/installation'
|
|
|
)
|
|
|
},
|
|
|
dateOptions() {
|
|
|
if (
|
|
|
- this.activeData.type !== undefined
|
|
|
- && this.activeData.__config__.tag === 'el-date-picker'
|
|
|
+ this.activeData.type !== undefined &&
|
|
|
+ this.activeData.__config__.tag === 'el-date-picker'
|
|
|
) {
|
|
|
if (this.activeData['start-placeholder'] === undefined) {
|
|
|
return this.dateTypeOptions
|
|
@@ -805,16 +807,16 @@ export default {
|
|
|
},
|
|
|
renderContent(h, { node, data, store }) {
|
|
|
return (
|
|
|
- <div class="custom-tree-node">
|
|
|
+ <div class='custom-tree-node'>
|
|
|
<span>{node.label}</span>
|
|
|
- <span class="node-operation">
|
|
|
+ <span class='node-operation'>
|
|
|
<i on-click={() => this.append(data)}
|
|
|
- class="el-icon-plus"
|
|
|
- title="添加"
|
|
|
+ class='el-icon-plus'
|
|
|
+ title='添加'
|
|
|
></i>
|
|
|
<i on-click={() => this.remove(node, data)}
|
|
|
- class="el-icon-delete"
|
|
|
- title="删除"
|
|
|
+ class='el-icon-delete'
|
|
|
+ title='删除'
|
|
|
></i>
|
|
|
</span>
|
|
|
</div>
|