@yoooloo42/joker 1.0.97 → 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 -26
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +43 -26
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -22632,12 +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
|
-
|
|
22637
|
-
console.log('测试 000 event', event);
|
|
22638
|
-
console.log('测试 111 event.target', event.target);
|
|
22639
|
-
|
|
22640
|
-
formData_box[propsItem_box.fieldName] = event.value;
|
|
22635
|
+
hdlCannotInput: value => { // 解决偶发不能输入的问题
|
|
22636
|
+
formData_box[propsItem_box.fieldName] = value;
|
|
22641
22637
|
}
|
|
22642
22638
|
});
|
|
22643
22639
|
|
|
@@ -22844,6 +22840,10 @@ const style = vue.reactive({
|
|
|
22844
22840
|
vue.watch(
|
|
22845
22841
|
formData_box, // 监听 reactive 对象时,默认是深层监听
|
|
22846
22842
|
(newVal, oldVal) => {
|
|
22843
|
+
|
|
22844
|
+
console.log('测试 000 监听', newVal);
|
|
22845
|
+
console.log('测试 111 监听', oldVal);
|
|
22846
|
+
|
|
22847
22847
|
// 触发 update:modelValue 事件更新父组件的 v-model 绑定的值
|
|
22848
22848
|
emit("update:modelValue", newVal);
|
|
22849
22849
|
}
|
|
@@ -22930,16 +22930,16 @@ return (_ctx, _cache) => {
|
|
|
22930
22930
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = $event => ((vue.unref(formData_box)[propsItem_box.fieldName]) = $event)),
|
|
22931
22931
|
placeholder: input.placeholder,
|
|
22932
22932
|
style: vue.normalizeStyle(style.input(propsItem_box, formProps_box)),
|
|
22933
|
-
onInput:
|
|
22933
|
+
onInput: input.hdlCannotInput,
|
|
22934
22934
|
"show-password": input.showPassword
|
|
22935
|
-
}, null, 8 /* PROPS */, ["modelValue", "placeholder", "style", "show-password"]))
|
|
22935
|
+
}, null, 8 /* PROPS */, ["modelValue", "placeholder", "style", "onInput", "show-password"]))
|
|
22936
22936
|
: vue.createCommentVNode("v-if", true),
|
|
22937
22937
|
(propsItem_box.inputType === 'select')
|
|
22938
22938
|
? (vue.openBlock(), vue.createBlock(_component_el_select, {
|
|
22939
22939
|
key: 7,
|
|
22940
22940
|
class: "deep-input",
|
|
22941
22941
|
modelValue: vue.unref(formData_box)[propsItem_box.fieldName],
|
|
22942
|
-
"onUpdate:modelValue": _cache[
|
|
22942
|
+
"onUpdate:modelValue": _cache[1] || (_cache[1] = $event => ((vue.unref(formData_box)[propsItem_box.fieldName]) = $event)),
|
|
22943
22943
|
placeholder: select.placeholder,
|
|
22944
22944
|
filterable: "",
|
|
22945
22945
|
style: vue.normalizeStyle(style.input(propsItem_box, formProps_box)),
|
|
@@ -22962,7 +22962,7 @@ return (_ctx, _cache) => {
|
|
|
22962
22962
|
key: 8,
|
|
22963
22963
|
class: "deep-input",
|
|
22964
22964
|
modelValue: vue.unref(formData_box)[propsItem_box.fieldName],
|
|
22965
|
-
"onUpdate:modelValue": _cache[
|
|
22965
|
+
"onUpdate:modelValue": _cache[2] || (_cache[2] = $event => ((vue.unref(formData_box)[propsItem_box.fieldName]) = $event)),
|
|
22966
22966
|
type: propsItem_box.type ? propsItem_box.type : 'datetime',
|
|
22967
22967
|
placeholder: datePicker.placeholder,
|
|
22968
22968
|
format: datePicker.format,
|
|
@@ -22974,7 +22974,7 @@ return (_ctx, _cache) => {
|
|
|
22974
22974
|
? (vue.openBlock(), vue.createBlock(_component_el_input_number, {
|
|
22975
22975
|
key: 9,
|
|
22976
22976
|
modelValue: vue.unref(formData_box)[propsItem_box.fieldName],
|
|
22977
|
-
"onUpdate:modelValue": _cache[
|
|
22977
|
+
"onUpdate:modelValue": _cache[3] || (_cache[3] = $event => ((vue.unref(formData_box)[propsItem_box.fieldName]) = $event)),
|
|
22978
22978
|
size: style.input_number(propsItem_box).facade.size,
|
|
22979
22979
|
min: 'min' in propsItem_box ? propsItem_box.min : 1,
|
|
22980
22980
|
max: 'max' in propsItem_box ? propsItem_box.max : 100,
|
|
@@ -22986,7 +22986,7 @@ return (_ctx, _cache) => {
|
|
|
22986
22986
|
? (vue.openBlock(), vue.createBlock(_component_el_switch, {
|
|
22987
22987
|
key: 10,
|
|
22988
22988
|
modelValue: vue.unref(formData_box)[propsItem_box.fieldName],
|
|
22989
|
-
"onUpdate:modelValue": _cache[
|
|
22989
|
+
"onUpdate:modelValue": _cache[4] || (_cache[4] = $event => ((vue.unref(formData_box)[propsItem_box.fieldName]) = $event)),
|
|
22990
22990
|
"active-text": propsItem_box.activeText,
|
|
22991
22991
|
"inactive-text": propsItem_box.inactiveText,
|
|
22992
22992
|
"active-value": propsItem_box.activeValue,
|
|
@@ -23000,7 +23000,7 @@ return (_ctx, _cache) => {
|
|
|
23000
23000
|
? (vue.openBlock(), vue.createBlock(_component_el_radio_group, {
|
|
23001
23001
|
key: 11,
|
|
23002
23002
|
modelValue: vue.unref(formData_box)[propsItem_box.fieldName],
|
|
23003
|
-
"onUpdate:modelValue": _cache[
|
|
23003
|
+
"onUpdate:modelValue": _cache[5] || (_cache[5] = $event => ((vue.unref(formData_box)[propsItem_box.fieldName]) = $event)),
|
|
23004
23004
|
disabled: !!propsItem_box.disabled,
|
|
23005
23005
|
onChange: radioGroup.hdlChange
|
|
23006
23006
|
}, {
|
|
@@ -23136,7 +23136,7 @@ return (_ctx, _cache) => {
|
|
|
23136
23136
|
}, [
|
|
23137
23137
|
vue.createVNode(_component_ly0Richtext, {
|
|
23138
23138
|
modelValue: vue.unref(formData_box)[propsItem_box.fieldName],
|
|
23139
|
-
"onUpdate:modelValue": _cache[
|
|
23139
|
+
"onUpdate:modelValue": _cache[6] || (_cache[6] = $event => ((vue.unref(formData_box)[propsItem_box.fieldName]) = $event)),
|
|
23140
23140
|
myProps: richtextProps.value
|
|
23141
23141
|
}, null, 8 /* PROPS */, ["modelValue", "myProps"])
|
|
23142
23142
|
], 4 /* STYLE */))
|
|
@@ -23217,7 +23217,7 @@ return (_ctx, _cache) => {
|
|
|
23217
23217
|
? (vue.openBlock(), vue.createElementBlock("div", _hoisted_17, [
|
|
23218
23218
|
vue.createVNode(_component_ly0Upload, {
|
|
23219
23219
|
modelValue: vue.unref(formData_box)[propsItem_box.fieldName],
|
|
23220
|
-
"onUpdate:modelValue": _cache[
|
|
23220
|
+
"onUpdate:modelValue": _cache[7] || (_cache[7] = $event => ((vue.unref(formData_box)[propsItem_box.fieldName]) = $event)),
|
|
23221
23221
|
myProps: {uploadUrl: upload.uploadUrl}
|
|
23222
23222
|
}, null, 8 /* PROPS */, ["modelValue", "myProps"])
|
|
23223
23223
|
]))
|
|
@@ -23227,7 +23227,7 @@ return (_ctx, _cache) => {
|
|
|
23227
23227
|
? (vue.openBlock(), vue.createElementBlock("div", _hoisted_18, [
|
|
23228
23228
|
vue.createVNode(_component_ly0Upload_drag, {
|
|
23229
23229
|
modelValue: vue.unref(formData_box)[propsItem_box.fieldName],
|
|
23230
|
-
"onUpdate:modelValue": _cache[
|
|
23230
|
+
"onUpdate:modelValue": _cache[8] || (_cache[8] = $event => ((vue.unref(formData_box)[propsItem_box.fieldName]) = $event)),
|
|
23231
23231
|
myProps: {uploadUrl: upload.uploadUrl}
|
|
23232
23232
|
}, null, 8 /* PROPS */, ["modelValue", "myProps"])
|
|
23233
23233
|
]))
|
|
@@ -23237,7 +23237,7 @@ return (_ctx, _cache) => {
|
|
|
23237
23237
|
? (vue.openBlock(), vue.createElementBlock("div", _hoisted_19, [
|
|
23238
23238
|
vue.createVNode(_component_ly0Upload_picture, {
|
|
23239
23239
|
modelValue: vue.unref(formData_box)[propsItem_box.fieldName],
|
|
23240
|
-
"onUpdate:modelValue": _cache[
|
|
23240
|
+
"onUpdate:modelValue": _cache[9] || (_cache[9] = $event => ((vue.unref(formData_box)[propsItem_box.fieldName]) = $event)),
|
|
23241
23241
|
myProps: {uploadUrl: upload.uploadUrl_image}
|
|
23242
23242
|
}, null, 8 /* PROPS */, ["modelValue", "myProps"])
|
|
23243
23243
|
]))
|
|
@@ -23247,7 +23247,7 @@ return (_ctx, _cache) => {
|
|
|
23247
23247
|
? (vue.openBlock(), vue.createElementBlock("div", _hoisted_20, [
|
|
23248
23248
|
vue.createVNode(_component_ly0Upload_pictureCard, {
|
|
23249
23249
|
modelValue: vue.unref(formData_box)[propsItem_box.fieldName],
|
|
23250
|
-
"onUpdate:modelValue": _cache[
|
|
23250
|
+
"onUpdate:modelValue": _cache[10] || (_cache[10] = $event => ((vue.unref(formData_box)[propsItem_box.fieldName]) = $event)),
|
|
23251
23251
|
myProps: {uploadUrl: upload.uploadUrl_image}
|
|
23252
23252
|
}, null, 8 /* PROPS */, ["modelValue", "myProps"])
|
|
23253
23253
|
]))
|
|
@@ -23257,7 +23257,7 @@ return (_ctx, _cache) => {
|
|
|
23257
23257
|
? (vue.openBlock(), vue.createElementBlock("div", _hoisted_21, [
|
|
23258
23258
|
vue.createVNode(_component_ly0Upload_avatar, {
|
|
23259
23259
|
modelValue: vue.unref(formData_box)[propsItem_box.fieldName],
|
|
23260
|
-
"onUpdate:modelValue": _cache[
|
|
23260
|
+
"onUpdate:modelValue": _cache[11] || (_cache[11] = $event => ((vue.unref(formData_box)[propsItem_box.fieldName]) = $event)),
|
|
23261
23261
|
myProps: {uploadUrl: upload.uploadUrl_image}
|
|
23262
23262
|
}, null, 8 /* PROPS */, ["modelValue", "myProps"])
|
|
23263
23263
|
]))
|
|
@@ -23267,7 +23267,7 @@ return (_ctx, _cache) => {
|
|
|
23267
23267
|
? (vue.openBlock(), vue.createElementBlock("div", _hoisted_22, [
|
|
23268
23268
|
vue.createVNode(_component_ly0Upload_carplate, {
|
|
23269
23269
|
modelValue: vue.unref(formData_box)[propsItem_box.fieldName],
|
|
23270
|
-
"onUpdate:modelValue": _cache[
|
|
23270
|
+
"onUpdate:modelValue": _cache[12] || (_cache[12] = $event => ((vue.unref(formData_box)[propsItem_box.fieldName]) = $event)),
|
|
23271
23271
|
myProps: {uploadUrl: upload.uploadUrl_carplate}
|
|
23272
23272
|
}, null, 8 /* PROPS */, ["modelValue", "myProps"])
|
|
23273
23273
|
]))
|
|
@@ -23277,7 +23277,7 @@ return (_ctx, _cache) => {
|
|
|
23277
23277
|
? (vue.openBlock(), vue.createElementBlock("div", _hoisted_23, [
|
|
23278
23278
|
vue.createVNode(_component_ly0gbt2260, {
|
|
23279
23279
|
modelValue: vue.unref(formData_box)[propsItem_box.fieldName],
|
|
23280
|
-
"onUpdate:modelValue": _cache[
|
|
23280
|
+
"onUpdate:modelValue": _cache[13] || (_cache[13] = $event => ((vue.unref(formData_box)[propsItem_box.fieldName]) = $event)),
|
|
23281
23281
|
myProps: {readOnly: propsItem_box.readOnly}
|
|
23282
23282
|
}, null, 8 /* PROPS */, ["modelValue", "myProps"])
|
|
23283
23283
|
]))
|
|
@@ -23287,7 +23287,7 @@ return (_ctx, _cache) => {
|
|
|
23287
23287
|
? (vue.openBlock(), vue.createElementBlock("div", _hoisted_24, [
|
|
23288
23288
|
vue.createVNode(_component_ly0d7group, {
|
|
23289
23289
|
modelValue: vue.unref(formData_box)[propsItem_box.fieldName],
|
|
23290
|
-
"onUpdate:modelValue": _cache[
|
|
23290
|
+
"onUpdate:modelValue": _cache[14] || (_cache[14] = $event => ((vue.unref(formData_box)[propsItem_box.fieldName]) = $event)),
|
|
23291
23291
|
myProps: {readOnly: propsItem_box.readOnly}
|
|
23292
23292
|
}, null, 8 /* PROPS */, ["modelValue", "myProps"])
|
|
23293
23293
|
]))
|
|
@@ -23297,7 +23297,7 @@ return (_ctx, _cache) => {
|
|
|
23297
23297
|
? (vue.openBlock(), vue.createElementBlock("div", _hoisted_25, [
|
|
23298
23298
|
vue.createVNode(_component_ly0d7postal, {
|
|
23299
23299
|
modelValue: vue.unref(formData_box)[propsItem_box.fieldName],
|
|
23300
|
-
"onUpdate:modelValue": _cache[
|
|
23300
|
+
"onUpdate:modelValue": _cache[15] || (_cache[15] = $event => ((vue.unref(formData_box)[propsItem_box.fieldName]) = $event)),
|
|
23301
23301
|
myProps: {readOnly: propsItem_box.readOnly}
|
|
23302
23302
|
}, null, 8 /* PROPS */, ["modelValue", "myProps"])
|
|
23303
23303
|
]))
|
|
@@ -23307,7 +23307,7 @@ return (_ctx, _cache) => {
|
|
|
23307
23307
|
? (vue.openBlock(), vue.createElementBlock("div", _hoisted_26, [
|
|
23308
23308
|
vue.createVNode(_component_ly0d7price, {
|
|
23309
23309
|
modelValue: vue.unref(formData_box)[propsItem_box.fieldName],
|
|
23310
|
-
"onUpdate:modelValue": _cache[
|
|
23310
|
+
"onUpdate:modelValue": _cache[16] || (_cache[16] = $event => ((vue.unref(formData_box)[propsItem_box.fieldName]) = $event)),
|
|
23311
23311
|
myProps: {readOnly: propsItem_box.readOnly}
|
|
23312
23312
|
}, null, 8 /* PROPS */, ["modelValue", "myProps"])
|
|
23313
23313
|
]))
|
|
@@ -23317,7 +23317,7 @@ return (_ctx, _cache) => {
|
|
|
23317
23317
|
? (vue.openBlock(), vue.createElementBlock("div", _hoisted_27, [
|
|
23318
23318
|
vue.createVNode(_component_ly0d7size, {
|
|
23319
23319
|
modelValue: vue.unref(formData_box)[propsItem_box.fieldName],
|
|
23320
|
-
"onUpdate:modelValue": _cache[
|
|
23320
|
+
"onUpdate:modelValue": _cache[17] || (_cache[17] = $event => ((vue.unref(formData_box)[propsItem_box.fieldName]) = $event)),
|
|
23321
23321
|
myProps: {readOnly: propsItem_box.readOnly}
|
|
23322
23322
|
}, null, 8 /* PROPS */, ["modelValue", "myProps"])
|
|
23323
23323
|
]))
|
|
@@ -23327,7 +23327,7 @@ return (_ctx, _cache) => {
|
|
|
23327
23327
|
? (vue.openBlock(), vue.createElementBlock("div", _hoisted_28, [
|
|
23328
23328
|
vue.createVNode(_component_ly0d7thumb, {
|
|
23329
23329
|
modelValue: vue.unref(formData_box),
|
|
23330
|
-
"onUpdate:modelValue": _cache[
|
|
23330
|
+
"onUpdate:modelValue": _cache[18] || (_cache[18] = $event => (vue.isRef(formData_box) ? (formData_box).value = $event : formData_box = $event)),
|
|
23331
23331
|
myProps: {
|
|
23332
23332
|
thumb: {
|
|
23333
23333
|
fieldName: propsItem_box.thumb.fieldName || formProps_box.para.ly0d7thumb.thumb.fieldName,
|
|
@@ -23442,6 +23442,19 @@ const hdl = {
|
|
|
23442
23442
|
}
|
|
23443
23443
|
};
|
|
23444
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
|
+
|
|
23445
23458
|
return (_ctx, _cache) => {
|
|
23446
23459
|
const _component_ly0Menu = vue.resolveComponent("ly0Menu");
|
|
23447
23460
|
const _component_el_collapse_item = vue.resolveComponent("el-collapse-item");
|
|
@@ -23639,6 +23652,10 @@ const scopeThis_box = vue.reactive(Object.assign({}, props.scopeThis));
|
|
|
23639
23652
|
vue.watch(
|
|
23640
23653
|
formData_box, // 监听 reactive 对象时,默认是深层监听
|
|
23641
23654
|
(newVal, oldVal) => {
|
|
23655
|
+
|
|
23656
|
+
console.log('测试 444 监听', newVal);
|
|
23657
|
+
console.log('测试 555 监听', oldVal);
|
|
23658
|
+
|
|
23642
23659
|
// 触发 update:modelValue 事件更新父组件的 v-model 绑定的值
|
|
23643
23660
|
emit("update:modelValue", newVal);
|
|
23644
23661
|
}
|