@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.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: event => { // 解决偶发不能输入的问题
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,6 +22836,10 @@ 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
22845
  }
@@ -22926,16 +22926,16 @@ return (_ctx, _cache) => {
22926
22926
  "onUpdate:modelValue": _cache[0] || (_cache[0] = $event => ((unref(formData_box)[propsItem_box.fieldName]) = $event)),
22927
22927
  placeholder: input.placeholder,
22928
22928
  style: normalizeStyle(style.input(propsItem_box, formProps_box)),
22929
- onInput: _cache[1] || (_cache[1] = $event => (input.hdlCannotInput($event))),
22929
+ onInput: input.hdlCannotInput,
22930
22930
  "show-password": input.showPassword
22931
- }, null, 8 /* PROPS */, ["modelValue", "placeholder", "style", "show-password"]))
22931
+ }, null, 8 /* PROPS */, ["modelValue", "placeholder", "style", "onInput", "show-password"]))
22932
22932
  : createCommentVNode("v-if", true),
22933
22933
  (propsItem_box.inputType === 'select')
22934
22934
  ? (openBlock(), createBlock(_component_el_select, {
22935
22935
  key: 7,
22936
22936
  class: "deep-input",
22937
22937
  modelValue: unref(formData_box)[propsItem_box.fieldName],
22938
- "onUpdate:modelValue": _cache[2] || (_cache[2] = $event => ((unref(formData_box)[propsItem_box.fieldName]) = $event)),
22938
+ "onUpdate:modelValue": _cache[1] || (_cache[1] = $event => ((unref(formData_box)[propsItem_box.fieldName]) = $event)),
22939
22939
  placeholder: select.placeholder,
22940
22940
  filterable: "",
22941
22941
  style: normalizeStyle(style.input(propsItem_box, formProps_box)),
@@ -22958,7 +22958,7 @@ return (_ctx, _cache) => {
22958
22958
  key: 8,
22959
22959
  class: "deep-input",
22960
22960
  modelValue: unref(formData_box)[propsItem_box.fieldName],
22961
- "onUpdate:modelValue": _cache[3] || (_cache[3] = $event => ((unref(formData_box)[propsItem_box.fieldName]) = $event)),
22961
+ "onUpdate:modelValue": _cache[2] || (_cache[2] = $event => ((unref(formData_box)[propsItem_box.fieldName]) = $event)),
22962
22962
  type: propsItem_box.type ? propsItem_box.type : 'datetime',
22963
22963
  placeholder: datePicker.placeholder,
22964
22964
  format: datePicker.format,
@@ -22970,7 +22970,7 @@ return (_ctx, _cache) => {
22970
22970
  ? (openBlock(), createBlock(_component_el_input_number, {
22971
22971
  key: 9,
22972
22972
  modelValue: unref(formData_box)[propsItem_box.fieldName],
22973
- "onUpdate:modelValue": _cache[4] || (_cache[4] = $event => ((unref(formData_box)[propsItem_box.fieldName]) = $event)),
22973
+ "onUpdate:modelValue": _cache[3] || (_cache[3] = $event => ((unref(formData_box)[propsItem_box.fieldName]) = $event)),
22974
22974
  size: style.input_number(propsItem_box).facade.size,
22975
22975
  min: 'min' in propsItem_box ? propsItem_box.min : 1,
22976
22976
  max: 'max' in propsItem_box ? propsItem_box.max : 100,
@@ -22982,7 +22982,7 @@ return (_ctx, _cache) => {
22982
22982
  ? (openBlock(), createBlock(_component_el_switch, {
22983
22983
  key: 10,
22984
22984
  modelValue: unref(formData_box)[propsItem_box.fieldName],
22985
- "onUpdate:modelValue": _cache[5] || (_cache[5] = $event => ((unref(formData_box)[propsItem_box.fieldName]) = $event)),
22985
+ "onUpdate:modelValue": _cache[4] || (_cache[4] = $event => ((unref(formData_box)[propsItem_box.fieldName]) = $event)),
22986
22986
  "active-text": propsItem_box.activeText,
22987
22987
  "inactive-text": propsItem_box.inactiveText,
22988
22988
  "active-value": propsItem_box.activeValue,
@@ -22996,7 +22996,7 @@ return (_ctx, _cache) => {
22996
22996
  ? (openBlock(), createBlock(_component_el_radio_group, {
22997
22997
  key: 11,
22998
22998
  modelValue: unref(formData_box)[propsItem_box.fieldName],
22999
- "onUpdate:modelValue": _cache[6] || (_cache[6] = $event => ((unref(formData_box)[propsItem_box.fieldName]) = $event)),
22999
+ "onUpdate:modelValue": _cache[5] || (_cache[5] = $event => ((unref(formData_box)[propsItem_box.fieldName]) = $event)),
23000
23000
  disabled: !!propsItem_box.disabled,
23001
23001
  onChange: radioGroup.hdlChange
23002
23002
  }, {
@@ -23132,7 +23132,7 @@ return (_ctx, _cache) => {
23132
23132
  }, [
23133
23133
  createVNode(_component_ly0Richtext, {
23134
23134
  modelValue: unref(formData_box)[propsItem_box.fieldName],
23135
- "onUpdate:modelValue": _cache[7] || (_cache[7] = $event => ((unref(formData_box)[propsItem_box.fieldName]) = $event)),
23135
+ "onUpdate:modelValue": _cache[6] || (_cache[6] = $event => ((unref(formData_box)[propsItem_box.fieldName]) = $event)),
23136
23136
  myProps: richtextProps.value
23137
23137
  }, null, 8 /* PROPS */, ["modelValue", "myProps"])
23138
23138
  ], 4 /* STYLE */))
@@ -23213,7 +23213,7 @@ return (_ctx, _cache) => {
23213
23213
  ? (openBlock(), createElementBlock("div", _hoisted_17, [
23214
23214
  createVNode(_component_ly0Upload, {
23215
23215
  modelValue: unref(formData_box)[propsItem_box.fieldName],
23216
- "onUpdate:modelValue": _cache[8] || (_cache[8] = $event => ((unref(formData_box)[propsItem_box.fieldName]) = $event)),
23216
+ "onUpdate:modelValue": _cache[7] || (_cache[7] = $event => ((unref(formData_box)[propsItem_box.fieldName]) = $event)),
23217
23217
  myProps: {uploadUrl: upload.uploadUrl}
23218
23218
  }, null, 8 /* PROPS */, ["modelValue", "myProps"])
23219
23219
  ]))
@@ -23223,7 +23223,7 @@ return (_ctx, _cache) => {
23223
23223
  ? (openBlock(), createElementBlock("div", _hoisted_18, [
23224
23224
  createVNode(_component_ly0Upload_drag, {
23225
23225
  modelValue: unref(formData_box)[propsItem_box.fieldName],
23226
- "onUpdate:modelValue": _cache[9] || (_cache[9] = $event => ((unref(formData_box)[propsItem_box.fieldName]) = $event)),
23226
+ "onUpdate:modelValue": _cache[8] || (_cache[8] = $event => ((unref(formData_box)[propsItem_box.fieldName]) = $event)),
23227
23227
  myProps: {uploadUrl: upload.uploadUrl}
23228
23228
  }, null, 8 /* PROPS */, ["modelValue", "myProps"])
23229
23229
  ]))
@@ -23233,7 +23233,7 @@ return (_ctx, _cache) => {
23233
23233
  ? (openBlock(), createElementBlock("div", _hoisted_19, [
23234
23234
  createVNode(_component_ly0Upload_picture, {
23235
23235
  modelValue: unref(formData_box)[propsItem_box.fieldName],
23236
- "onUpdate:modelValue": _cache[10] || (_cache[10] = $event => ((unref(formData_box)[propsItem_box.fieldName]) = $event)),
23236
+ "onUpdate:modelValue": _cache[9] || (_cache[9] = $event => ((unref(formData_box)[propsItem_box.fieldName]) = $event)),
23237
23237
  myProps: {uploadUrl: upload.uploadUrl_image}
23238
23238
  }, null, 8 /* PROPS */, ["modelValue", "myProps"])
23239
23239
  ]))
@@ -23243,7 +23243,7 @@ return (_ctx, _cache) => {
23243
23243
  ? (openBlock(), createElementBlock("div", _hoisted_20, [
23244
23244
  createVNode(_component_ly0Upload_pictureCard, {
23245
23245
  modelValue: unref(formData_box)[propsItem_box.fieldName],
23246
- "onUpdate:modelValue": _cache[11] || (_cache[11] = $event => ((unref(formData_box)[propsItem_box.fieldName]) = $event)),
23246
+ "onUpdate:modelValue": _cache[10] || (_cache[10] = $event => ((unref(formData_box)[propsItem_box.fieldName]) = $event)),
23247
23247
  myProps: {uploadUrl: upload.uploadUrl_image}
23248
23248
  }, null, 8 /* PROPS */, ["modelValue", "myProps"])
23249
23249
  ]))
@@ -23253,7 +23253,7 @@ return (_ctx, _cache) => {
23253
23253
  ? (openBlock(), createElementBlock("div", _hoisted_21, [
23254
23254
  createVNode(_component_ly0Upload_avatar, {
23255
23255
  modelValue: unref(formData_box)[propsItem_box.fieldName],
23256
- "onUpdate:modelValue": _cache[12] || (_cache[12] = $event => ((unref(formData_box)[propsItem_box.fieldName]) = $event)),
23256
+ "onUpdate:modelValue": _cache[11] || (_cache[11] = $event => ((unref(formData_box)[propsItem_box.fieldName]) = $event)),
23257
23257
  myProps: {uploadUrl: upload.uploadUrl_image}
23258
23258
  }, null, 8 /* PROPS */, ["modelValue", "myProps"])
23259
23259
  ]))
@@ -23263,7 +23263,7 @@ return (_ctx, _cache) => {
23263
23263
  ? (openBlock(), createElementBlock("div", _hoisted_22, [
23264
23264
  createVNode(_component_ly0Upload_carplate, {
23265
23265
  modelValue: unref(formData_box)[propsItem_box.fieldName],
23266
- "onUpdate:modelValue": _cache[13] || (_cache[13] = $event => ((unref(formData_box)[propsItem_box.fieldName]) = $event)),
23266
+ "onUpdate:modelValue": _cache[12] || (_cache[12] = $event => ((unref(formData_box)[propsItem_box.fieldName]) = $event)),
23267
23267
  myProps: {uploadUrl: upload.uploadUrl_carplate}
23268
23268
  }, null, 8 /* PROPS */, ["modelValue", "myProps"])
23269
23269
  ]))
@@ -23273,7 +23273,7 @@ return (_ctx, _cache) => {
23273
23273
  ? (openBlock(), createElementBlock("div", _hoisted_23, [
23274
23274
  createVNode(_component_ly0gbt2260, {
23275
23275
  modelValue: unref(formData_box)[propsItem_box.fieldName],
23276
- "onUpdate:modelValue": _cache[14] || (_cache[14] = $event => ((unref(formData_box)[propsItem_box.fieldName]) = $event)),
23276
+ "onUpdate:modelValue": _cache[13] || (_cache[13] = $event => ((unref(formData_box)[propsItem_box.fieldName]) = $event)),
23277
23277
  myProps: {readOnly: propsItem_box.readOnly}
23278
23278
  }, null, 8 /* PROPS */, ["modelValue", "myProps"])
23279
23279
  ]))
@@ -23283,7 +23283,7 @@ return (_ctx, _cache) => {
23283
23283
  ? (openBlock(), createElementBlock("div", _hoisted_24, [
23284
23284
  createVNode(_component_ly0d7group, {
23285
23285
  modelValue: unref(formData_box)[propsItem_box.fieldName],
23286
- "onUpdate:modelValue": _cache[15] || (_cache[15] = $event => ((unref(formData_box)[propsItem_box.fieldName]) = $event)),
23286
+ "onUpdate:modelValue": _cache[14] || (_cache[14] = $event => ((unref(formData_box)[propsItem_box.fieldName]) = $event)),
23287
23287
  myProps: {readOnly: propsItem_box.readOnly}
23288
23288
  }, null, 8 /* PROPS */, ["modelValue", "myProps"])
23289
23289
  ]))
@@ -23293,7 +23293,7 @@ return (_ctx, _cache) => {
23293
23293
  ? (openBlock(), createElementBlock("div", _hoisted_25, [
23294
23294
  createVNode(_component_ly0d7postal, {
23295
23295
  modelValue: unref(formData_box)[propsItem_box.fieldName],
23296
- "onUpdate:modelValue": _cache[16] || (_cache[16] = $event => ((unref(formData_box)[propsItem_box.fieldName]) = $event)),
23296
+ "onUpdate:modelValue": _cache[15] || (_cache[15] = $event => ((unref(formData_box)[propsItem_box.fieldName]) = $event)),
23297
23297
  myProps: {readOnly: propsItem_box.readOnly}
23298
23298
  }, null, 8 /* PROPS */, ["modelValue", "myProps"])
23299
23299
  ]))
@@ -23303,7 +23303,7 @@ return (_ctx, _cache) => {
23303
23303
  ? (openBlock(), createElementBlock("div", _hoisted_26, [
23304
23304
  createVNode(_component_ly0d7price, {
23305
23305
  modelValue: unref(formData_box)[propsItem_box.fieldName],
23306
- "onUpdate:modelValue": _cache[17] || (_cache[17] = $event => ((unref(formData_box)[propsItem_box.fieldName]) = $event)),
23306
+ "onUpdate:modelValue": _cache[16] || (_cache[16] = $event => ((unref(formData_box)[propsItem_box.fieldName]) = $event)),
23307
23307
  myProps: {readOnly: propsItem_box.readOnly}
23308
23308
  }, null, 8 /* PROPS */, ["modelValue", "myProps"])
23309
23309
  ]))
@@ -23313,7 +23313,7 @@ return (_ctx, _cache) => {
23313
23313
  ? (openBlock(), createElementBlock("div", _hoisted_27, [
23314
23314
  createVNode(_component_ly0d7size, {
23315
23315
  modelValue: unref(formData_box)[propsItem_box.fieldName],
23316
- "onUpdate:modelValue": _cache[18] || (_cache[18] = $event => ((unref(formData_box)[propsItem_box.fieldName]) = $event)),
23316
+ "onUpdate:modelValue": _cache[17] || (_cache[17] = $event => ((unref(formData_box)[propsItem_box.fieldName]) = $event)),
23317
23317
  myProps: {readOnly: propsItem_box.readOnly}
23318
23318
  }, null, 8 /* PROPS */, ["modelValue", "myProps"])
23319
23319
  ]))
@@ -23323,7 +23323,7 @@ return (_ctx, _cache) => {
23323
23323
  ? (openBlock(), createElementBlock("div", _hoisted_28, [
23324
23324
  createVNode(_component_ly0d7thumb, {
23325
23325
  modelValue: unref(formData_box),
23326
- "onUpdate:modelValue": _cache[19] || (_cache[19] = $event => (isRef(formData_box) ? (formData_box).value = $event : formData_box = $event)),
23326
+ "onUpdate:modelValue": _cache[18] || (_cache[18] = $event => (isRef(formData_box) ? (formData_box).value = $event : formData_box = $event)),
23327
23327
  myProps: {
23328
23328
  thumb: {
23329
23329
  fieldName: propsItem_box.thumb.fieldName || formProps_box.para.ly0d7thumb.thumb.fieldName,
@@ -23438,6 +23438,19 @@ const hdl = {
23438
23438
  }
23439
23439
  };
23440
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
+
23441
23454
  return (_ctx, _cache) => {
23442
23455
  const _component_ly0Menu = resolveComponent("ly0Menu");
23443
23456
  const _component_el_collapse_item = resolveComponent("el-collapse-item");
@@ -23635,6 +23648,10 @@ const scopeThis_box = reactive(Object.assign({}, props.scopeThis));
23635
23648
  watch(
23636
23649
  formData_box, // 监听 reactive 对象时,默认是深层监听
23637
23650
  (newVal, oldVal) => {
23651
+
23652
+ console.log('测试 444 监听', newVal);
23653
+ console.log('测试 555 监听', oldVal);
23654
+
23638
23655
  // 触发 update:modelValue 事件更新父组件的 v-model 绑定的值
23639
23656
  emit("update:modelValue", newVal);
23640
23657
  }