添加禁用

qianlishi 2 years ago
parent 3ec8a4f6a1
commit b4425a6578

@ -24,6 +24,7 @@
size="mini"
style="width: 100%"
v-model.trim="formData[item.name]"
:disabled="item.disabled"
controls-position="right"
@change="changed($event, item.name)"
/>
@ -31,6 +32,7 @@
<el-input
v-if="item.type == 'el-input-text'"
v-model.trim="formData[item.name]"
:disabled="item.disabled"
type="text"
size="mini"
placeholder="请输入内容"
@ -44,6 +46,7 @@
type="textarea"
size="mini"
rows="2"
:disabled="item.disabled"
placeholder="请输入内容"
@change="changed($event, item.name)"
/>
@ -53,6 +56,7 @@
v-model="formData[item.name]"
size="mini"
placeholder="请输入内容"
:disabled="item.disabled"
@change="changed($event, item.name)"
/>
<ColorPicker
@ -82,6 +86,7 @@
<el-select
v-if="item.type == 'el-select'"
size="mini"
:disabled="item.disabled"
v-model="formData[item.name]"
clearable
placeholder="请选择"
@ -197,6 +202,7 @@
size="mini"
style="width: 100%"
v-model="formData[itemChildList.name]"
:disabled="item.disabled"
controls-position="right"
:placeholder="itemChildList.placeholder"
@change="changed($event, itemChildList.name)"
@ -205,6 +211,7 @@
<el-input
v-if="itemChildList.type == 'el-input-text'"
v-model.trim="formData[itemChildList.name]"
:disabled="item.disabled"
type="text"
size="mini"
placeholder="请输入内容"
@ -215,6 +222,7 @@
<el-input
v-if="itemChildList.type == 'el-input-textarea'"
v-model.trim="formData[itemChildList.name]"
:disabled="item.disabled"
size="mini"
type="textarea"
rows="2"
@ -225,6 +233,7 @@
<el-switch
v-if="itemChildList.type == 'el-switch'"
v-model="formData[itemChildList.name]"
:disabled="item.disabled"
placeholder="请输入内容"
size="mini"
@change="changed($event, itemChildList.name)"

@ -4,7 +4,7 @@
* @Author: qianlishi
* @Date: 2021-08-29 07:21:45
* @LastEditors: qianlishi qianlishi@anji-plus.com
* @LastEditTime: 2023-01-09 13:01:34
* @LastEditTime: 2023-01-10 13:59:59
*/
export const widgetBarchart = {
code: 'widget-barchart',
@ -23,6 +23,13 @@ export const widgetBarchart = {
placeholder: '',
value: '柱状图',
},
{
type: 'el-input-text',
label: 'uuid',
name: 'uuid',
disabled: true,
value: 'widget-barchart' + Date.now()
},
{
type: 'el-switch',
label: '竖展示',

Loading…
Cancel
Save