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