zydx-plus 1.33.396 → 1.33.397
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
|
@@ -18,7 +18,7 @@ const Confirm = ({ type, url ,title,radioArr,checkboxArr,submitText,cancelText,c
|
|
|
18
18
|
for(let i=0; i< inputArr.length; i++) {
|
|
19
19
|
if(inputArr[i].type === 'select') {
|
|
20
20
|
val.push(inputArr[i].selectValue)
|
|
21
|
-
}else {
|
|
21
|
+
} else {
|
|
22
22
|
if(inputArr[i].type === 'textarea'){
|
|
23
23
|
inputArr[i].value = XtxConfirm.methods.getTextareaContent()
|
|
24
24
|
}
|
|
@@ -93,7 +93,16 @@
|
|
|
93
93
|
}}
|
|
94
94
|
</button>
|
|
95
95
|
</div>
|
|
96
|
-
|
|
96
|
+
<div v-if="item.type === 'radio'" class="ph-code">
|
|
97
|
+
<div class="input-radio">
|
|
98
|
+
<div class="input-radio-item" v-for="(item2,index2) in item.option">
|
|
99
|
+
<label>
|
|
100
|
+
<input type="radio" :name="`radio${index}`" :value="item2.value" @change="radioTao2(item,item2)" :checked="item.value === item2.value" :disabled="item2.disabled" />
|
|
101
|
+
<span>{{ item2.label }}</span>
|
|
102
|
+
</label>
|
|
103
|
+
</div>
|
|
104
|
+
</div>
|
|
105
|
+
</div>
|
|
97
106
|
<p v-if="item.text" class="prompt">{{ item.text }}</p>
|
|
98
107
|
</div>
|
|
99
108
|
</div>
|
|
@@ -262,6 +271,9 @@ export default {
|
|
|
262
271
|
valueState(v) {
|
|
263
272
|
return v === '' || v === undefined || v === null;
|
|
264
273
|
},
|
|
274
|
+
radioTao2(v,n) {
|
|
275
|
+
v.value = n.value
|
|
276
|
+
},
|
|
265
277
|
radioTao(index) {
|
|
266
278
|
this.radioArr.forEach(item => {
|
|
267
279
|
item.checked = false
|
|
@@ -156,7 +156,26 @@
|
|
|
156
156
|
font-size: 14px;
|
|
157
157
|
}
|
|
158
158
|
|
|
159
|
-
.
|
|
159
|
+
.input-radio{
|
|
160
|
+
width: 300px;
|
|
161
|
+
display: flex;
|
|
162
|
+
}
|
|
163
|
+
.input-radio-item{
|
|
164
|
+
line-height: 30px;
|
|
165
|
+
margin-right: 20px;
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
.input-radio-item input{
|
|
169
|
+
position: relative;
|
|
170
|
+
top: 1px;
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
.input-radio-item span{
|
|
174
|
+
font-size: 16px;
|
|
175
|
+
padding-left: 5px;
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
.input-name > input, .cal > input, .number-input > input {
|
|
160
179
|
width: 300px;
|
|
161
180
|
height: 32px;
|
|
162
181
|
box-sizing: border-box;
|