w-ui-v1 1.0.92 → 1.0.93
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,56 +1,56 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<view v-if="!subItem.hidden" style="border-bottom: 1px solid rgb(243 242 242);">
|
|
3
3
|
|
|
4
|
-
<wd-picker v-if="subItem.controlType === 'select'&&subItem.extControlType === 'yes-no-switch'" :
|
|
4
|
+
<wd-picker v-if="subItem.controlType === 'select'&&subItem.extControlType === 'yes-no-switch'" :disabled="subItem.disabled" :label="subItem.title"
|
|
5
5
|
label-width="100px" :prop="subItem.id" clearable :modelValue="modelValue"
|
|
6
6
|
:placeholder="subItem.disabled ? '无需输入' : `请选择${subItem.title}`"
|
|
7
7
|
:rules="[{ required: subItem.required, message: `请选择${subItem.title}` }]" :columns="Enumcolumn[subItem.mstrucId]"
|
|
8
8
|
@confirm="(e) => { change(e) }" @clear="clear" />
|
|
9
9
|
|
|
10
|
-
<wd-picker v-else-if="subItem.controlType === 'radio'&&subItem.extControlType === 'yes-no-switch'" :
|
|
10
|
+
<wd-picker v-else-if="subItem.controlType === 'radio'&&subItem.extControlType === 'yes-no-switch'" :disabled="subItem.disabled" :label="subItem.title"
|
|
11
11
|
label-width="100px" :prop="subItem.id" clearable :modelValue="modelValue"
|
|
12
12
|
:placeholder="subItem.disabled ? '无需输入' : `请选择${subItem.title}`"
|
|
13
13
|
:rules="[{ required: subItem.required, message: `请选择${subItem.title}` }]" :columns="['是','否']"
|
|
14
14
|
@confirm="(e) => { change(e) }" @clear="clear" />
|
|
15
15
|
|
|
16
|
-
<wd-picker v-else-if="subItem.extControlType === 'yes-no-radio'" :
|
|
16
|
+
<wd-picker v-else-if="subItem.extControlType === 'yes-no-radio'" :disabled="subItem.disabled" :label="subItem.title"
|
|
17
17
|
label-width="100px" :prop="subItem.id" clearable :modelValue="modelValue"
|
|
18
18
|
:placeholder="subItem.disabled ? '无需输入' : `请选择${subItem.title}`"
|
|
19
19
|
:rules="[{ required: subItem.required, message: `请选择${subItem.title}` }]" :columns="['是','否']"
|
|
20
20
|
@confirm="(e) => { change(e) }" @clear="clear" />
|
|
21
|
-
<wd-picker v-else-if="subItem.extControlType === 'yes-no-switch'" :
|
|
21
|
+
<wd-picker v-else-if="subItem.extControlType === 'yes-no-switch'" :disabled="subItem.disabled" :label="subItem.title"
|
|
22
22
|
label-width="100px" :prop="subItem.id" clearable :modelValue="modelValue"
|
|
23
23
|
:placeholder="subItem.disabled ? '无需输入' : `请选择${subItem.title}`"
|
|
24
24
|
:rules="[{ required: subItem.required, message: `请选择${subItem.title}` }]" :columns="['是','否']"
|
|
25
25
|
@confirm="(e) => { change(e) }" @clear="clear" />
|
|
26
26
|
|
|
27
|
-
<wd-select-picker v-else-if="subItem.controlType === 'select'&&subItem.extControlType === 'multiselect'" :
|
|
27
|
+
<wd-select-picker v-else-if="subItem.controlType === 'select'&&subItem.extControlType === 'multiselect'" :disabled="subItem.disabled" :label="subItem.title"
|
|
28
28
|
label-width="100px" :prop="subItem.id" clearable :modelValue="modelValue"
|
|
29
29
|
:placeholder="subItem.disabled ? '无需输入' : `请选择${subItem.title}`"
|
|
30
30
|
:rules="[{ required: subItem.required, message: `请选择${subItem.title}` }]" :columns="Enumcolumn[subItem.mstrucId]?.map((item:any)=>({...item,label:item.title}))"
|
|
31
31
|
@confirm="(e) => { change(e) }" @clear="clear" />
|
|
32
32
|
|
|
33
33
|
|
|
34
|
-
<wd-calendar :display-format="displayFormat1" v-else-if="props.subItem.controlType==='datetime'&&props.subItem.extControlType==='datetimerange'" :
|
|
34
|
+
<wd-calendar :display-format="displayFormat1" v-else-if="props.subItem.controlType==='datetime'&&props.subItem.extControlType==='datetimerange'" :disabled="subItem.disabled" :label="subItem.title"
|
|
35
35
|
label-width="100px" :prop="subItem.id" clearable :modelValue="modelValue" type="datetimerange"
|
|
36
36
|
:placeholder="subItem.disabled ? '无需输入' : `请选择${subItem.title}`"
|
|
37
37
|
:rules="[{ required: subItem.required, message: `请选择${subItem.title}` }]" @confirm="(e) => { change(e) }"
|
|
38
38
|
@clear="clear" />
|
|
39
39
|
|
|
40
40
|
|
|
41
|
-
<wd-calendar v-else-if="subItem.controlType === 'datetime'" :
|
|
41
|
+
<wd-calendar v-else-if="subItem.controlType === 'datetime'" :disabled="subItem.disabled" :label="subItem.title"
|
|
42
42
|
label-width="100px" :prop="subItem.id" clearable :modelValue="modelValue" type="datetime"
|
|
43
43
|
:placeholder="subItem.disabled ? '无需输入' : `请选择${subItem.title}`"
|
|
44
44
|
:rules="[{ required: subItem.required, message: `请选择${subItem.title}` }]" @confirm="(e) => { change(e) }"
|
|
45
45
|
@clear="clear" />
|
|
46
46
|
|
|
47
|
-
<wd-calendar v-else-if="subItem.extControlType === 'datetime'" :
|
|
47
|
+
<wd-calendar v-else-if="subItem.extControlType === 'datetime'" :disabled="subItem.disabled" :label="subItem.title"
|
|
48
48
|
label-width="100px" :prop="subItem.id" clearable :modelValue="modelValue" type="datetime"
|
|
49
49
|
:placeholder="subItem.disabled ? '无需输入' : `请选择${subItem.title}`"
|
|
50
50
|
:rules="[{ required: subItem.required, message: `请选择${subItem.title}` }]" @confirm="(e) => { change(e) }"
|
|
51
51
|
@clear="clear" />
|
|
52
52
|
|
|
53
|
-
<wd-calendar v-else-if="subItem.controlType === 'daterange'&&subItem.extControlType === 'daterange'" :
|
|
53
|
+
<wd-calendar v-else-if="subItem.controlType === 'daterange'&&subItem.extControlType === 'daterange'" :disabled="subItem.disabled" :label="subItem.title"
|
|
54
54
|
label-width="100px" :display-format="displayFormat2" :prop="subItem.id" clearable :modelValue="modelValue" type="daterange"
|
|
55
55
|
:placeholder="subItem.disabled ? '无需输入' : `请选择${subItem.title}`"
|
|
56
56
|
:rules="[{ required: subItem.required, message: `请选择${subItem.title}` }]" @confirm="(e) => { change(e) }"
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
<wd-cell v-else-if="(subItem.controlType === 'textarea'&&subItem.extControlType==='relselectvalue')||subItem.extControlType === 'entity-select'" title-width="100px" :prop="subItem.id"
|
|
60
60
|
:rules="[{ required: subItem.required, message: `请选择${subItem.title}` }]" :title="subItem.title">
|
|
61
61
|
<view style="text-align: left">
|
|
62
|
-
<wSelectPicker @confirm="wSelectPickerconfirm" :modelValue="modelValue" :
|
|
62
|
+
<wSelectPicker @confirm="wSelectPickerconfirm" :modelValue="modelValue" :disabled="subItem.disabled"
|
|
63
63
|
:type="'checkbox'"
|
|
64
64
|
:placeholder="subItem.disabled ? '无需输入' : `请输入${subItem.title}`" :source-id="subItem.sourceId" filterable
|
|
65
65
|
@clear="clear" clearable />
|
|
@@ -68,7 +68,7 @@
|
|
|
68
68
|
<wd-cell v-else-if="subItem.controlType === 'text'&&subItem.extControlType==='relselectvalue'" title-width="100px" :prop="subItem.id"
|
|
69
69
|
:rules="[{ required: subItem.required, message: `请选择${subItem.title}` }]" :title="subItem.title">
|
|
70
70
|
<view style="text-align: left">
|
|
71
|
-
<wSelectPicker @confirm="wSelectPickerconfirm" :modelValue="modelValue" :
|
|
71
|
+
<wSelectPicker @confirm="wSelectPickerconfirm" :modelValue="modelValue" :disabled="subItem.disabled"
|
|
72
72
|
:type="'checkbox'"
|
|
73
73
|
:placeholder="subItem.disabled ? '无需输入' : `请输入${subItem.title}`" :source-id="subItem.sourceId" filterable
|
|
74
74
|
@clear="clear" clearable />
|
|
@@ -77,7 +77,7 @@
|
|
|
77
77
|
<wd-cell v-else-if="subItem.extControlType === 'relselect'" title-width="100px" :prop="subItem.id"
|
|
78
78
|
:rules="[{ required: subItem.required, message: `请选择${subItem.title}` }]" :title="subItem.title">
|
|
79
79
|
<view style="text-align: left">
|
|
80
|
-
<wSelectPicker @confirm="wSelectPickerconfirm" :modelValue="modelValue" :
|
|
80
|
+
<wSelectPicker @confirm="wSelectPickerconfirm" :modelValue="modelValue" :disabled="subItem.disabled"
|
|
81
81
|
:max="subItem.max==='1'?1:0"
|
|
82
82
|
:placeholder="subItem.disabled ? '无需输入' : `请输入${subItem.title}`" :source-id="subItem.sourceId" filterable
|
|
83
83
|
@clear="clear" clearable />
|
|
@@ -92,13 +92,13 @@
|
|
|
92
92
|
:file-list="modelValue" :disabled="subItem.disabled" :action="`${baseUrl}/v3/upload`"
|
|
93
93
|
@success="success"></wd-upload>
|
|
94
94
|
</wd-cell>
|
|
95
|
-
<wd-input v-else-if="subItem.controlType === 'text'" :
|
|
95
|
+
<wd-input v-else-if="subItem.controlType === 'text'" :disabled="subItem.disabled" :label="subItem.title"
|
|
96
96
|
label-width="100px" :prop="subItem.id" clearable :modelValue="modelValue"
|
|
97
97
|
:placeholder="subItem.disabled ? '无需输入' : `请输入${subItem.title}`"
|
|
98
98
|
:rules="[{ required: subItem.required, message: `请填写${subItem.title}` }]" @input="(e) => { change(e) }"
|
|
99
99
|
@clear="clear" />
|
|
100
100
|
<wd-input v-else-if="subItem.controlType === 'decimal' || subItem.controlType === 'int'"
|
|
101
|
-
:
|
|
101
|
+
:disabled="subItem.disabled" :label="subItem.title" label-width="100px" :prop="subItem.id" clearable
|
|
102
102
|
:modelValue="modelValue" type="number" :placeholder="subItem.disabled ? '无需输入' : `请输入${subItem.title}`"
|
|
103
103
|
:rules="[{ required: subItem.required, message: `请填写${subItem.title}` }]" @input="(e) => { change(e) }"
|
|
104
104
|
@clear="clear" />
|
|
@@ -107,7 +107,7 @@
|
|
|
107
107
|
|
|
108
108
|
|
|
109
109
|
|
|
110
|
-
<wd-textarea auto-height v-else-if="subItem.controlType === 'textarea'" :
|
|
110
|
+
<wd-textarea auto-height v-else-if="subItem.controlType === 'textarea'" :disabled="subItem.disabled"
|
|
111
111
|
:label="subItem.title" label-width="100px" :prop="subItem.id" clearable :modelValue="modelValue"
|
|
112
112
|
:placeholder="subItem.disabled ? '无需输入' : `请输入${subItem.title}`"
|
|
113
113
|
:rules="[{ required: subItem.required, message: `请填写${subItem.title}` }]" @input="(e) => { change(e) }"
|
|
@@ -121,7 +121,7 @@
|
|
|
121
121
|
show-img-resize :read-only="false" @input="({html, text, delta}) => { change({value:html}) }">
|
|
122
122
|
</editor>
|
|
123
123
|
</wd-cell>
|
|
124
|
-
<wd-input v-else :
|
|
124
|
+
<wd-input v-else :disabled="subItem.disabled" :label="subItem.title" label-width="100px" :prop="subItem.id"
|
|
125
125
|
clearable :modelValue="modelValue" :placeholder="subItem.disabled ? '无需输入' : `请输入${subItem.title}`"
|
|
126
126
|
:rules="[{ required: subItem.required, message: `请填写${subItem.title}` }]" @input="(e) => { change(e) }"
|
|
127
127
|
@clear="clear" />
|