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