@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 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: event => { // 解决偶发不能输入的问题
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,8 +22840,15 @@ 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
+ },
22850
+ {
22851
+ deep: true,
22849
22852
  }
22850
22853
  );
22851
22854
 
@@ -22930,16 +22933,16 @@ return (_ctx, _cache) => {
22930
22933
  "onUpdate:modelValue": _cache[0] || (_cache[0] = $event => ((vue.unref(formData_box)[propsItem_box.fieldName]) = $event)),
22931
22934
  placeholder: input.placeholder,
22932
22935
  style: vue.normalizeStyle(style.input(propsItem_box, formProps_box)),
22933
- onInput: _cache[1] || (_cache[1] = $event => (input.hdlCannotInput($event))),
22936
+ onInput: input.hdlCannotInput,
22934
22937
  "show-password": input.showPassword
22935
- }, null, 8 /* PROPS */, ["modelValue", "placeholder", "style", "show-password"]))
22938
+ }, null, 8 /* PROPS */, ["modelValue", "placeholder", "style", "onInput", "show-password"]))
22936
22939
  : vue.createCommentVNode("v-if", true),
22937
22940
  (propsItem_box.inputType === 'select')
22938
22941
  ? (vue.openBlock(), vue.createBlock(_component_el_select, {
22939
22942
  key: 7,
22940
22943
  class: "deep-input",
22941
22944
  modelValue: vue.unref(formData_box)[propsItem_box.fieldName],
22942
- "onUpdate:modelValue": _cache[2] || (_cache[2] = $event => ((vue.unref(formData_box)[propsItem_box.fieldName]) = $event)),
22945
+ "onUpdate:modelValue": _cache[1] || (_cache[1] = $event => ((vue.unref(formData_box)[propsItem_box.fieldName]) = $event)),
22943
22946
  placeholder: select.placeholder,
22944
22947
  filterable: "",
22945
22948
  style: vue.normalizeStyle(style.input(propsItem_box, formProps_box)),
@@ -22962,7 +22965,7 @@ return (_ctx, _cache) => {
22962
22965
  key: 8,
22963
22966
  class: "deep-input",
22964
22967
  modelValue: vue.unref(formData_box)[propsItem_box.fieldName],
22965
- "onUpdate:modelValue": _cache[3] || (_cache[3] = $event => ((vue.unref(formData_box)[propsItem_box.fieldName]) = $event)),
22968
+ "onUpdate:modelValue": _cache[2] || (_cache[2] = $event => ((vue.unref(formData_box)[propsItem_box.fieldName]) = $event)),
22966
22969
  type: propsItem_box.type ? propsItem_box.type : 'datetime',
22967
22970
  placeholder: datePicker.placeholder,
22968
22971
  format: datePicker.format,
@@ -22974,7 +22977,7 @@ return (_ctx, _cache) => {
22974
22977
  ? (vue.openBlock(), vue.createBlock(_component_el_input_number, {
22975
22978
  key: 9,
22976
22979
  modelValue: vue.unref(formData_box)[propsItem_box.fieldName],
22977
- "onUpdate:modelValue": _cache[4] || (_cache[4] = $event => ((vue.unref(formData_box)[propsItem_box.fieldName]) = $event)),
22980
+ "onUpdate:modelValue": _cache[3] || (_cache[3] = $event => ((vue.unref(formData_box)[propsItem_box.fieldName]) = $event)),
22978
22981
  size: style.input_number(propsItem_box).facade.size,
22979
22982
  min: 'min' in propsItem_box ? propsItem_box.min : 1,
22980
22983
  max: 'max' in propsItem_box ? propsItem_box.max : 100,
@@ -22986,7 +22989,7 @@ return (_ctx, _cache) => {
22986
22989
  ? (vue.openBlock(), vue.createBlock(_component_el_switch, {
22987
22990
  key: 10,
22988
22991
  modelValue: vue.unref(formData_box)[propsItem_box.fieldName],
22989
- "onUpdate:modelValue": _cache[5] || (_cache[5] = $event => ((vue.unref(formData_box)[propsItem_box.fieldName]) = $event)),
22992
+ "onUpdate:modelValue": _cache[4] || (_cache[4] = $event => ((vue.unref(formData_box)[propsItem_box.fieldName]) = $event)),
22990
22993
  "active-text": propsItem_box.activeText,
22991
22994
  "inactive-text": propsItem_box.inactiveText,
22992
22995
  "active-value": propsItem_box.activeValue,
@@ -23000,7 +23003,7 @@ return (_ctx, _cache) => {
23000
23003
  ? (vue.openBlock(), vue.createBlock(_component_el_radio_group, {
23001
23004
  key: 11,
23002
23005
  modelValue: vue.unref(formData_box)[propsItem_box.fieldName],
23003
- "onUpdate:modelValue": _cache[6] || (_cache[6] = $event => ((vue.unref(formData_box)[propsItem_box.fieldName]) = $event)),
23006
+ "onUpdate:modelValue": _cache[5] || (_cache[5] = $event => ((vue.unref(formData_box)[propsItem_box.fieldName]) = $event)),
23004
23007
  disabled: !!propsItem_box.disabled,
23005
23008
  onChange: radioGroup.hdlChange
23006
23009
  }, {
@@ -23136,7 +23139,7 @@ return (_ctx, _cache) => {
23136
23139
  }, [
23137
23140
  vue.createVNode(_component_ly0Richtext, {
23138
23141
  modelValue: vue.unref(formData_box)[propsItem_box.fieldName],
23139
- "onUpdate:modelValue": _cache[7] || (_cache[7] = $event => ((vue.unref(formData_box)[propsItem_box.fieldName]) = $event)),
23142
+ "onUpdate:modelValue": _cache[6] || (_cache[6] = $event => ((vue.unref(formData_box)[propsItem_box.fieldName]) = $event)),
23140
23143
  myProps: richtextProps.value
23141
23144
  }, null, 8 /* PROPS */, ["modelValue", "myProps"])
23142
23145
  ], 4 /* STYLE */))
@@ -23217,7 +23220,7 @@ return (_ctx, _cache) => {
23217
23220
  ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_17, [
23218
23221
  vue.createVNode(_component_ly0Upload, {
23219
23222
  modelValue: vue.unref(formData_box)[propsItem_box.fieldName],
23220
- "onUpdate:modelValue": _cache[8] || (_cache[8] = $event => ((vue.unref(formData_box)[propsItem_box.fieldName]) = $event)),
23223
+ "onUpdate:modelValue": _cache[7] || (_cache[7] = $event => ((vue.unref(formData_box)[propsItem_box.fieldName]) = $event)),
23221
23224
  myProps: {uploadUrl: upload.uploadUrl}
23222
23225
  }, null, 8 /* PROPS */, ["modelValue", "myProps"])
23223
23226
  ]))
@@ -23227,7 +23230,7 @@ return (_ctx, _cache) => {
23227
23230
  ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_18, [
23228
23231
  vue.createVNode(_component_ly0Upload_drag, {
23229
23232
  modelValue: vue.unref(formData_box)[propsItem_box.fieldName],
23230
- "onUpdate:modelValue": _cache[9] || (_cache[9] = $event => ((vue.unref(formData_box)[propsItem_box.fieldName]) = $event)),
23233
+ "onUpdate:modelValue": _cache[8] || (_cache[8] = $event => ((vue.unref(formData_box)[propsItem_box.fieldName]) = $event)),
23231
23234
  myProps: {uploadUrl: upload.uploadUrl}
23232
23235
  }, null, 8 /* PROPS */, ["modelValue", "myProps"])
23233
23236
  ]))
@@ -23237,7 +23240,7 @@ return (_ctx, _cache) => {
23237
23240
  ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_19, [
23238
23241
  vue.createVNode(_component_ly0Upload_picture, {
23239
23242
  modelValue: vue.unref(formData_box)[propsItem_box.fieldName],
23240
- "onUpdate:modelValue": _cache[10] || (_cache[10] = $event => ((vue.unref(formData_box)[propsItem_box.fieldName]) = $event)),
23243
+ "onUpdate:modelValue": _cache[9] || (_cache[9] = $event => ((vue.unref(formData_box)[propsItem_box.fieldName]) = $event)),
23241
23244
  myProps: {uploadUrl: upload.uploadUrl_image}
23242
23245
  }, null, 8 /* PROPS */, ["modelValue", "myProps"])
23243
23246
  ]))
@@ -23247,7 +23250,7 @@ return (_ctx, _cache) => {
23247
23250
  ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_20, [
23248
23251
  vue.createVNode(_component_ly0Upload_pictureCard, {
23249
23252
  modelValue: vue.unref(formData_box)[propsItem_box.fieldName],
23250
- "onUpdate:modelValue": _cache[11] || (_cache[11] = $event => ((vue.unref(formData_box)[propsItem_box.fieldName]) = $event)),
23253
+ "onUpdate:modelValue": _cache[10] || (_cache[10] = $event => ((vue.unref(formData_box)[propsItem_box.fieldName]) = $event)),
23251
23254
  myProps: {uploadUrl: upload.uploadUrl_image}
23252
23255
  }, null, 8 /* PROPS */, ["modelValue", "myProps"])
23253
23256
  ]))
@@ -23257,7 +23260,7 @@ return (_ctx, _cache) => {
23257
23260
  ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_21, [
23258
23261
  vue.createVNode(_component_ly0Upload_avatar, {
23259
23262
  modelValue: vue.unref(formData_box)[propsItem_box.fieldName],
23260
- "onUpdate:modelValue": _cache[12] || (_cache[12] = $event => ((vue.unref(formData_box)[propsItem_box.fieldName]) = $event)),
23263
+ "onUpdate:modelValue": _cache[11] || (_cache[11] = $event => ((vue.unref(formData_box)[propsItem_box.fieldName]) = $event)),
23261
23264
  myProps: {uploadUrl: upload.uploadUrl_image}
23262
23265
  }, null, 8 /* PROPS */, ["modelValue", "myProps"])
23263
23266
  ]))
@@ -23267,7 +23270,7 @@ return (_ctx, _cache) => {
23267
23270
  ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_22, [
23268
23271
  vue.createVNode(_component_ly0Upload_carplate, {
23269
23272
  modelValue: vue.unref(formData_box)[propsItem_box.fieldName],
23270
- "onUpdate:modelValue": _cache[13] || (_cache[13] = $event => ((vue.unref(formData_box)[propsItem_box.fieldName]) = $event)),
23273
+ "onUpdate:modelValue": _cache[12] || (_cache[12] = $event => ((vue.unref(formData_box)[propsItem_box.fieldName]) = $event)),
23271
23274
  myProps: {uploadUrl: upload.uploadUrl_carplate}
23272
23275
  }, null, 8 /* PROPS */, ["modelValue", "myProps"])
23273
23276
  ]))
@@ -23277,7 +23280,7 @@ return (_ctx, _cache) => {
23277
23280
  ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_23, [
23278
23281
  vue.createVNode(_component_ly0gbt2260, {
23279
23282
  modelValue: vue.unref(formData_box)[propsItem_box.fieldName],
23280
- "onUpdate:modelValue": _cache[14] || (_cache[14] = $event => ((vue.unref(formData_box)[propsItem_box.fieldName]) = $event)),
23283
+ "onUpdate:modelValue": _cache[13] || (_cache[13] = $event => ((vue.unref(formData_box)[propsItem_box.fieldName]) = $event)),
23281
23284
  myProps: {readOnly: propsItem_box.readOnly}
23282
23285
  }, null, 8 /* PROPS */, ["modelValue", "myProps"])
23283
23286
  ]))
@@ -23287,7 +23290,7 @@ return (_ctx, _cache) => {
23287
23290
  ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_24, [
23288
23291
  vue.createVNode(_component_ly0d7group, {
23289
23292
  modelValue: vue.unref(formData_box)[propsItem_box.fieldName],
23290
- "onUpdate:modelValue": _cache[15] || (_cache[15] = $event => ((vue.unref(formData_box)[propsItem_box.fieldName]) = $event)),
23293
+ "onUpdate:modelValue": _cache[14] || (_cache[14] = $event => ((vue.unref(formData_box)[propsItem_box.fieldName]) = $event)),
23291
23294
  myProps: {readOnly: propsItem_box.readOnly}
23292
23295
  }, null, 8 /* PROPS */, ["modelValue", "myProps"])
23293
23296
  ]))
@@ -23297,7 +23300,7 @@ return (_ctx, _cache) => {
23297
23300
  ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_25, [
23298
23301
  vue.createVNode(_component_ly0d7postal, {
23299
23302
  modelValue: vue.unref(formData_box)[propsItem_box.fieldName],
23300
- "onUpdate:modelValue": _cache[16] || (_cache[16] = $event => ((vue.unref(formData_box)[propsItem_box.fieldName]) = $event)),
23303
+ "onUpdate:modelValue": _cache[15] || (_cache[15] = $event => ((vue.unref(formData_box)[propsItem_box.fieldName]) = $event)),
23301
23304
  myProps: {readOnly: propsItem_box.readOnly}
23302
23305
  }, null, 8 /* PROPS */, ["modelValue", "myProps"])
23303
23306
  ]))
@@ -23307,7 +23310,7 @@ return (_ctx, _cache) => {
23307
23310
  ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_26, [
23308
23311
  vue.createVNode(_component_ly0d7price, {
23309
23312
  modelValue: vue.unref(formData_box)[propsItem_box.fieldName],
23310
- "onUpdate:modelValue": _cache[17] || (_cache[17] = $event => ((vue.unref(formData_box)[propsItem_box.fieldName]) = $event)),
23313
+ "onUpdate:modelValue": _cache[16] || (_cache[16] = $event => ((vue.unref(formData_box)[propsItem_box.fieldName]) = $event)),
23311
23314
  myProps: {readOnly: propsItem_box.readOnly}
23312
23315
  }, null, 8 /* PROPS */, ["modelValue", "myProps"])
23313
23316
  ]))
@@ -23317,7 +23320,7 @@ return (_ctx, _cache) => {
23317
23320
  ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_27, [
23318
23321
  vue.createVNode(_component_ly0d7size, {
23319
23322
  modelValue: vue.unref(formData_box)[propsItem_box.fieldName],
23320
- "onUpdate:modelValue": _cache[18] || (_cache[18] = $event => ((vue.unref(formData_box)[propsItem_box.fieldName]) = $event)),
23323
+ "onUpdate:modelValue": _cache[17] || (_cache[17] = $event => ((vue.unref(formData_box)[propsItem_box.fieldName]) = $event)),
23321
23324
  myProps: {readOnly: propsItem_box.readOnly}
23322
23325
  }, null, 8 /* PROPS */, ["modelValue", "myProps"])
23323
23326
  ]))
@@ -23327,7 +23330,7 @@ return (_ctx, _cache) => {
23327
23330
  ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_28, [
23328
23331
  vue.createVNode(_component_ly0d7thumb, {
23329
23332
  modelValue: vue.unref(formData_box),
23330
- "onUpdate:modelValue": _cache[19] || (_cache[19] = $event => (vue.isRef(formData_box) ? (formData_box).value = $event : formData_box = $event)),
23333
+ "onUpdate:modelValue": _cache[18] || (_cache[18] = $event => (vue.isRef(formData_box) ? (formData_box).value = $event : formData_box = $event)),
23331
23334
  myProps: {
23332
23335
  thumb: {
23333
23336
  fieldName: propsItem_box.thumb.fieldName || formProps_box.para.ly0d7thumb.thumb.fieldName,
@@ -23442,6 +23445,22 @@ const hdl = {
23442
23445
  }
23443
23446
  };
23444
23447
 
23448
+ // 表单数据监听
23449
+ vue.watch(
23450
+ formData_box, // 监听 reactive 对象时,默认是深层监听
23451
+ (newVal, oldVal) => {
23452
+
23453
+ console.log('测试 222 监听', newVal);
23454
+ console.log('测试 333 监听', oldVal);
23455
+
23456
+ // 触发 update:modelValue 事件更新父组件的 v-model 绑定的值
23457
+ emit("update:modelValue", newVal);
23458
+ },
23459
+ {
23460
+ deep: true,
23461
+ }
23462
+ );
23463
+
23445
23464
  return (_ctx, _cache) => {
23446
23465
  const _component_ly0Menu = vue.resolveComponent("ly0Menu");
23447
23466
  const _component_el_collapse_item = vue.resolveComponent("el-collapse-item");
@@ -23639,8 +23658,15 @@ const scopeThis_box = vue.reactive(Object.assign({}, props.scopeThis));
23639
23658
  vue.watch(
23640
23659
  formData_box, // 监听 reactive 对象时,默认是深层监听
23641
23660
  (newVal, oldVal) => {
23661
+
23662
+ console.log('测试 444 监听', newVal);
23663
+ console.log('测试 555 监听', oldVal);
23664
+
23642
23665
  // 触发 update:modelValue 事件更新父组件的 v-model 绑定的值
23643
23666
  emit("update:modelValue", newVal);
23667
+ },
23668
+ {
23669
+ deep: true,
23644
23670
  }
23645
23671
  );
23646
23672