@yoooloo42/joker 1.0.96 → 1.0.98
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/dist/index.cjs.js +43 -22
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +43 -22
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -22632,8 +22632,8 @@ const propsItem_box = vue.reactive(Object.assign({}, props.item));
|
|
|
22632
22632
|
const input = vue.reactive({
|
|
22633
22633
|
placeholder: propsItem_box.placeholder || formProps_box.para.placeholder.input,
|
|
22634
22634
|
showPassword: !!propsItem_box.showPassword,
|
|
22635
|
-
hdlCannotInput:
|
|
22636
|
-
formData_box[propsItem_box.fieldName] =
|
|
22635
|
+
hdlCannotInput: value => { // 解决偶发不能输入的问题
|
|
22636
|
+
formData_box[propsItem_box.fieldName] = value;
|
|
22637
22637
|
}
|
|
22638
22638
|
});
|
|
22639
22639
|
|
|
@@ -22840,6 +22840,10 @@ const style = vue.reactive({
|
|
|
22840
22840
|
vue.watch(
|
|
22841
22841
|
formData_box, // 监听 reactive 对象时,默认是深层监听
|
|
22842
22842
|
(newVal, oldVal) => {
|
|
22843
|
+
|
|
22844
|
+
console.log('测试 000 监听', newVal);
|
|
22845
|
+
console.log('测试 111 监听', oldVal);
|
|
22846
|
+
|
|
22843
22847
|
// 触发 update:modelValue 事件更新父组件的 v-model 绑定的值
|
|
22844
22848
|
emit("update:modelValue", newVal);
|
|
22845
22849
|
}
|
|
@@ -22926,16 +22930,16 @@ return (_ctx, _cache) => {
|
|
|
22926
22930
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = $event => ((vue.unref(formData_box)[propsItem_box.fieldName]) = $event)),
|
|
22927
22931
|
placeholder: input.placeholder,
|
|
22928
22932
|
style: vue.normalizeStyle(style.input(propsItem_box, formProps_box)),
|
|
22929
|
-
onInput:
|
|
22933
|
+
onInput: input.hdlCannotInput,
|
|
22930
22934
|
"show-password": input.showPassword
|
|
22931
|
-
}, null, 8 /* PROPS */, ["modelValue", "placeholder", "style", "show-password"]))
|
|
22935
|
+
}, null, 8 /* PROPS */, ["modelValue", "placeholder", "style", "onInput", "show-password"]))
|
|
22932
22936
|
: vue.createCommentVNode("v-if", true),
|
|
22933
22937
|
(propsItem_box.inputType === 'select')
|
|
22934
22938
|
? (vue.openBlock(), vue.createBlock(_component_el_select, {
|
|
22935
22939
|
key: 7,
|
|
22936
22940
|
class: "deep-input",
|
|
22937
22941
|
modelValue: vue.unref(formData_box)[propsItem_box.fieldName],
|
|
22938
|
-
"onUpdate:modelValue": _cache[
|
|
22942
|
+
"onUpdate:modelValue": _cache[1] || (_cache[1] = $event => ((vue.unref(formData_box)[propsItem_box.fieldName]) = $event)),
|
|
22939
22943
|
placeholder: select.placeholder,
|
|
22940
22944
|
filterable: "",
|
|
22941
22945
|
style: vue.normalizeStyle(style.input(propsItem_box, formProps_box)),
|
|
@@ -22958,7 +22962,7 @@ return (_ctx, _cache) => {
|
|
|
22958
22962
|
key: 8,
|
|
22959
22963
|
class: "deep-input",
|
|
22960
22964
|
modelValue: vue.unref(formData_box)[propsItem_box.fieldName],
|
|
22961
|
-
"onUpdate:modelValue": _cache[
|
|
22965
|
+
"onUpdate:modelValue": _cache[2] || (_cache[2] = $event => ((vue.unref(formData_box)[propsItem_box.fieldName]) = $event)),
|
|
22962
22966
|
type: propsItem_box.type ? propsItem_box.type : 'datetime',
|
|
22963
22967
|
placeholder: datePicker.placeholder,
|
|
22964
22968
|
format: datePicker.format,
|
|
@@ -22970,7 +22974,7 @@ return (_ctx, _cache) => {
|
|
|
22970
22974
|
? (vue.openBlock(), vue.createBlock(_component_el_input_number, {
|
|
22971
22975
|
key: 9,
|
|
22972
22976
|
modelValue: vue.unref(formData_box)[propsItem_box.fieldName],
|
|
22973
|
-
"onUpdate:modelValue": _cache[
|
|
22977
|
+
"onUpdate:modelValue": _cache[3] || (_cache[3] = $event => ((vue.unref(formData_box)[propsItem_box.fieldName]) = $event)),
|
|
22974
22978
|
size: style.input_number(propsItem_box).facade.size,
|
|
22975
22979
|
min: 'min' in propsItem_box ? propsItem_box.min : 1,
|
|
22976
22980
|
max: 'max' in propsItem_box ? propsItem_box.max : 100,
|
|
@@ -22982,7 +22986,7 @@ return (_ctx, _cache) => {
|
|
|
22982
22986
|
? (vue.openBlock(), vue.createBlock(_component_el_switch, {
|
|
22983
22987
|
key: 10,
|
|
22984
22988
|
modelValue: vue.unref(formData_box)[propsItem_box.fieldName],
|
|
22985
|
-
"onUpdate:modelValue": _cache[
|
|
22989
|
+
"onUpdate:modelValue": _cache[4] || (_cache[4] = $event => ((vue.unref(formData_box)[propsItem_box.fieldName]) = $event)),
|
|
22986
22990
|
"active-text": propsItem_box.activeText,
|
|
22987
22991
|
"inactive-text": propsItem_box.inactiveText,
|
|
22988
22992
|
"active-value": propsItem_box.activeValue,
|
|
@@ -22996,7 +23000,7 @@ return (_ctx, _cache) => {
|
|
|
22996
23000
|
? (vue.openBlock(), vue.createBlock(_component_el_radio_group, {
|
|
22997
23001
|
key: 11,
|
|
22998
23002
|
modelValue: vue.unref(formData_box)[propsItem_box.fieldName],
|
|
22999
|
-
"onUpdate:modelValue": _cache[
|
|
23003
|
+
"onUpdate:modelValue": _cache[5] || (_cache[5] = $event => ((vue.unref(formData_box)[propsItem_box.fieldName]) = $event)),
|
|
23000
23004
|
disabled: !!propsItem_box.disabled,
|
|
23001
23005
|
onChange: radioGroup.hdlChange
|
|
23002
23006
|
}, {
|
|
@@ -23132,7 +23136,7 @@ return (_ctx, _cache) => {
|
|
|
23132
23136
|
}, [
|
|
23133
23137
|
vue.createVNode(_component_ly0Richtext, {
|
|
23134
23138
|
modelValue: vue.unref(formData_box)[propsItem_box.fieldName],
|
|
23135
|
-
"onUpdate:modelValue": _cache[
|
|
23139
|
+
"onUpdate:modelValue": _cache[6] || (_cache[6] = $event => ((vue.unref(formData_box)[propsItem_box.fieldName]) = $event)),
|
|
23136
23140
|
myProps: richtextProps.value
|
|
23137
23141
|
}, null, 8 /* PROPS */, ["modelValue", "myProps"])
|
|
23138
23142
|
], 4 /* STYLE */))
|
|
@@ -23213,7 +23217,7 @@ return (_ctx, _cache) => {
|
|
|
23213
23217
|
? (vue.openBlock(), vue.createElementBlock("div", _hoisted_17, [
|
|
23214
23218
|
vue.createVNode(_component_ly0Upload, {
|
|
23215
23219
|
modelValue: vue.unref(formData_box)[propsItem_box.fieldName],
|
|
23216
|
-
"onUpdate:modelValue": _cache[
|
|
23220
|
+
"onUpdate:modelValue": _cache[7] || (_cache[7] = $event => ((vue.unref(formData_box)[propsItem_box.fieldName]) = $event)),
|
|
23217
23221
|
myProps: {uploadUrl: upload.uploadUrl}
|
|
23218
23222
|
}, null, 8 /* PROPS */, ["modelValue", "myProps"])
|
|
23219
23223
|
]))
|
|
@@ -23223,7 +23227,7 @@ return (_ctx, _cache) => {
|
|
|
23223
23227
|
? (vue.openBlock(), vue.createElementBlock("div", _hoisted_18, [
|
|
23224
23228
|
vue.createVNode(_component_ly0Upload_drag, {
|
|
23225
23229
|
modelValue: vue.unref(formData_box)[propsItem_box.fieldName],
|
|
23226
|
-
"onUpdate:modelValue": _cache[
|
|
23230
|
+
"onUpdate:modelValue": _cache[8] || (_cache[8] = $event => ((vue.unref(formData_box)[propsItem_box.fieldName]) = $event)),
|
|
23227
23231
|
myProps: {uploadUrl: upload.uploadUrl}
|
|
23228
23232
|
}, null, 8 /* PROPS */, ["modelValue", "myProps"])
|
|
23229
23233
|
]))
|
|
@@ -23233,7 +23237,7 @@ return (_ctx, _cache) => {
|
|
|
23233
23237
|
? (vue.openBlock(), vue.createElementBlock("div", _hoisted_19, [
|
|
23234
23238
|
vue.createVNode(_component_ly0Upload_picture, {
|
|
23235
23239
|
modelValue: vue.unref(formData_box)[propsItem_box.fieldName],
|
|
23236
|
-
"onUpdate:modelValue": _cache[
|
|
23240
|
+
"onUpdate:modelValue": _cache[9] || (_cache[9] = $event => ((vue.unref(formData_box)[propsItem_box.fieldName]) = $event)),
|
|
23237
23241
|
myProps: {uploadUrl: upload.uploadUrl_image}
|
|
23238
23242
|
}, null, 8 /* PROPS */, ["modelValue", "myProps"])
|
|
23239
23243
|
]))
|
|
@@ -23243,7 +23247,7 @@ return (_ctx, _cache) => {
|
|
|
23243
23247
|
? (vue.openBlock(), vue.createElementBlock("div", _hoisted_20, [
|
|
23244
23248
|
vue.createVNode(_component_ly0Upload_pictureCard, {
|
|
23245
23249
|
modelValue: vue.unref(formData_box)[propsItem_box.fieldName],
|
|
23246
|
-
"onUpdate:modelValue": _cache[
|
|
23250
|
+
"onUpdate:modelValue": _cache[10] || (_cache[10] = $event => ((vue.unref(formData_box)[propsItem_box.fieldName]) = $event)),
|
|
23247
23251
|
myProps: {uploadUrl: upload.uploadUrl_image}
|
|
23248
23252
|
}, null, 8 /* PROPS */, ["modelValue", "myProps"])
|
|
23249
23253
|
]))
|
|
@@ -23253,7 +23257,7 @@ return (_ctx, _cache) => {
|
|
|
23253
23257
|
? (vue.openBlock(), vue.createElementBlock("div", _hoisted_21, [
|
|
23254
23258
|
vue.createVNode(_component_ly0Upload_avatar, {
|
|
23255
23259
|
modelValue: vue.unref(formData_box)[propsItem_box.fieldName],
|
|
23256
|
-
"onUpdate:modelValue": _cache[
|
|
23260
|
+
"onUpdate:modelValue": _cache[11] || (_cache[11] = $event => ((vue.unref(formData_box)[propsItem_box.fieldName]) = $event)),
|
|
23257
23261
|
myProps: {uploadUrl: upload.uploadUrl_image}
|
|
23258
23262
|
}, null, 8 /* PROPS */, ["modelValue", "myProps"])
|
|
23259
23263
|
]))
|
|
@@ -23263,7 +23267,7 @@ return (_ctx, _cache) => {
|
|
|
23263
23267
|
? (vue.openBlock(), vue.createElementBlock("div", _hoisted_22, [
|
|
23264
23268
|
vue.createVNode(_component_ly0Upload_carplate, {
|
|
23265
23269
|
modelValue: vue.unref(formData_box)[propsItem_box.fieldName],
|
|
23266
|
-
"onUpdate:modelValue": _cache[
|
|
23270
|
+
"onUpdate:modelValue": _cache[12] || (_cache[12] = $event => ((vue.unref(formData_box)[propsItem_box.fieldName]) = $event)),
|
|
23267
23271
|
myProps: {uploadUrl: upload.uploadUrl_carplate}
|
|
23268
23272
|
}, null, 8 /* PROPS */, ["modelValue", "myProps"])
|
|
23269
23273
|
]))
|
|
@@ -23273,7 +23277,7 @@ return (_ctx, _cache) => {
|
|
|
23273
23277
|
? (vue.openBlock(), vue.createElementBlock("div", _hoisted_23, [
|
|
23274
23278
|
vue.createVNode(_component_ly0gbt2260, {
|
|
23275
23279
|
modelValue: vue.unref(formData_box)[propsItem_box.fieldName],
|
|
23276
|
-
"onUpdate:modelValue": _cache[
|
|
23280
|
+
"onUpdate:modelValue": _cache[13] || (_cache[13] = $event => ((vue.unref(formData_box)[propsItem_box.fieldName]) = $event)),
|
|
23277
23281
|
myProps: {readOnly: propsItem_box.readOnly}
|
|
23278
23282
|
}, null, 8 /* PROPS */, ["modelValue", "myProps"])
|
|
23279
23283
|
]))
|
|
@@ -23283,7 +23287,7 @@ return (_ctx, _cache) => {
|
|
|
23283
23287
|
? (vue.openBlock(), vue.createElementBlock("div", _hoisted_24, [
|
|
23284
23288
|
vue.createVNode(_component_ly0d7group, {
|
|
23285
23289
|
modelValue: vue.unref(formData_box)[propsItem_box.fieldName],
|
|
23286
|
-
"onUpdate:modelValue": _cache[
|
|
23290
|
+
"onUpdate:modelValue": _cache[14] || (_cache[14] = $event => ((vue.unref(formData_box)[propsItem_box.fieldName]) = $event)),
|
|
23287
23291
|
myProps: {readOnly: propsItem_box.readOnly}
|
|
23288
23292
|
}, null, 8 /* PROPS */, ["modelValue", "myProps"])
|
|
23289
23293
|
]))
|
|
@@ -23293,7 +23297,7 @@ return (_ctx, _cache) => {
|
|
|
23293
23297
|
? (vue.openBlock(), vue.createElementBlock("div", _hoisted_25, [
|
|
23294
23298
|
vue.createVNode(_component_ly0d7postal, {
|
|
23295
23299
|
modelValue: vue.unref(formData_box)[propsItem_box.fieldName],
|
|
23296
|
-
"onUpdate:modelValue": _cache[
|
|
23300
|
+
"onUpdate:modelValue": _cache[15] || (_cache[15] = $event => ((vue.unref(formData_box)[propsItem_box.fieldName]) = $event)),
|
|
23297
23301
|
myProps: {readOnly: propsItem_box.readOnly}
|
|
23298
23302
|
}, null, 8 /* PROPS */, ["modelValue", "myProps"])
|
|
23299
23303
|
]))
|
|
@@ -23303,7 +23307,7 @@ return (_ctx, _cache) => {
|
|
|
23303
23307
|
? (vue.openBlock(), vue.createElementBlock("div", _hoisted_26, [
|
|
23304
23308
|
vue.createVNode(_component_ly0d7price, {
|
|
23305
23309
|
modelValue: vue.unref(formData_box)[propsItem_box.fieldName],
|
|
23306
|
-
"onUpdate:modelValue": _cache[
|
|
23310
|
+
"onUpdate:modelValue": _cache[16] || (_cache[16] = $event => ((vue.unref(formData_box)[propsItem_box.fieldName]) = $event)),
|
|
23307
23311
|
myProps: {readOnly: propsItem_box.readOnly}
|
|
23308
23312
|
}, null, 8 /* PROPS */, ["modelValue", "myProps"])
|
|
23309
23313
|
]))
|
|
@@ -23313,7 +23317,7 @@ return (_ctx, _cache) => {
|
|
|
23313
23317
|
? (vue.openBlock(), vue.createElementBlock("div", _hoisted_27, [
|
|
23314
23318
|
vue.createVNode(_component_ly0d7size, {
|
|
23315
23319
|
modelValue: vue.unref(formData_box)[propsItem_box.fieldName],
|
|
23316
|
-
"onUpdate:modelValue": _cache[
|
|
23320
|
+
"onUpdate:modelValue": _cache[17] || (_cache[17] = $event => ((vue.unref(formData_box)[propsItem_box.fieldName]) = $event)),
|
|
23317
23321
|
myProps: {readOnly: propsItem_box.readOnly}
|
|
23318
23322
|
}, null, 8 /* PROPS */, ["modelValue", "myProps"])
|
|
23319
23323
|
]))
|
|
@@ -23323,7 +23327,7 @@ return (_ctx, _cache) => {
|
|
|
23323
23327
|
? (vue.openBlock(), vue.createElementBlock("div", _hoisted_28, [
|
|
23324
23328
|
vue.createVNode(_component_ly0d7thumb, {
|
|
23325
23329
|
modelValue: vue.unref(formData_box),
|
|
23326
|
-
"onUpdate:modelValue": _cache[
|
|
23330
|
+
"onUpdate:modelValue": _cache[18] || (_cache[18] = $event => (vue.isRef(formData_box) ? (formData_box).value = $event : formData_box = $event)),
|
|
23327
23331
|
myProps: {
|
|
23328
23332
|
thumb: {
|
|
23329
23333
|
fieldName: propsItem_box.thumb.fieldName || formProps_box.para.ly0d7thumb.thumb.fieldName,
|
|
@@ -23438,6 +23442,19 @@ const hdl = {
|
|
|
23438
23442
|
}
|
|
23439
23443
|
};
|
|
23440
23444
|
|
|
23445
|
+
// 表单数据监听
|
|
23446
|
+
vue.watch(
|
|
23447
|
+
formData_box, // 监听 reactive 对象时,默认是深层监听
|
|
23448
|
+
(newVal, oldVal) => {
|
|
23449
|
+
|
|
23450
|
+
console.log('测试 222 监听', newVal);
|
|
23451
|
+
console.log('测试 333 监听', oldVal);
|
|
23452
|
+
|
|
23453
|
+
// 触发 update:modelValue 事件更新父组件的 v-model 绑定的值
|
|
23454
|
+
emit("update:modelValue", newVal);
|
|
23455
|
+
}
|
|
23456
|
+
);
|
|
23457
|
+
|
|
23441
23458
|
return (_ctx, _cache) => {
|
|
23442
23459
|
const _component_ly0Menu = vue.resolveComponent("ly0Menu");
|
|
23443
23460
|
const _component_el_collapse_item = vue.resolveComponent("el-collapse-item");
|
|
@@ -23635,6 +23652,10 @@ const scopeThis_box = vue.reactive(Object.assign({}, props.scopeThis));
|
|
|
23635
23652
|
vue.watch(
|
|
23636
23653
|
formData_box, // 监听 reactive 对象时,默认是深层监听
|
|
23637
23654
|
(newVal, oldVal) => {
|
|
23655
|
+
|
|
23656
|
+
console.log('测试 444 监听', newVal);
|
|
23657
|
+
console.log('测试 555 监听', oldVal);
|
|
23658
|
+
|
|
23638
23659
|
// 触发 update:modelValue 事件更新父组件的 v-model 绑定的值
|
|
23639
23660
|
emit("update:modelValue", newVal);
|
|
23640
23661
|
}
|