@yoooloo42/joker 1.0.30 → 1.0.31

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
@@ -39337,7 +39337,7 @@ var script$f = {
39337
39337
 
39338
39338
  const props = __props;
39339
39339
 
39340
- const input = {
39340
+ const input = reactive({
39341
39341
  placeholder: computed(() => () => {
39342
39342
  return props.item.placeholder ? props.item.placeholder : props.myProps.placeholder.input
39343
39343
  }),
@@ -39347,11 +39347,9 @@ const input = {
39347
39347
  hdlCannotInput: event => { // 解决偶发不能输入的问题
39348
39348
  props.dataBox.fieldsValue[props.item.fieldName] = event.target.value;
39349
39349
  }
39350
- };
39351
-
39352
- console.log('测试 000', input.placeholder);
39350
+ });
39353
39351
 
39354
- const select = {
39352
+ const select = reactive({
39355
39353
  placeholder: computed(() => () => {
39356
39354
  return props.item.placeholder ? props.item.placeholder : props.myProps.placeholder.select
39357
39355
  }),
@@ -39367,9 +39365,9 @@ const select = {
39367
39365
  props.item.hdlChange(props.scopeThis, value);
39368
39366
  }
39369
39367
  }
39370
- };
39368
+ });
39371
39369
 
39372
- const datePicker = {
39370
+ const datePicker = reactive({
39373
39371
  placeholder: computed(()=> () => {
39374
39372
  if (props.item.placeholder) {
39375
39373
  return props.item.placeholder
@@ -39399,25 +39397,25 @@ const datePicker = {
39399
39397
  props.item.hdlChange(props.scopeThis, value);
39400
39398
  }
39401
39399
  }
39402
- };
39400
+ });
39403
39401
 
39404
- const ly0switch = {
39402
+ const ly0switch = reactive({
39405
39403
  hdlChange: value => {
39406
39404
  if (props.item.hdlChange) {
39407
39405
  props.item.hdlChange(props.scopeThis, value);
39408
39406
  }
39409
39407
  }
39410
- };
39408
+ });
39411
39409
 
39412
- const radioGroup = {
39410
+ const radioGroup = reactive({
39413
39411
  hdlChange: value => {
39414
39412
  if (props.item.hdlChange) {
39415
39413
  props.item.hdlChange(props.scopeThis, value);
39416
39414
  }
39417
39415
  }
39418
- };
39416
+ });
39419
39417
 
39420
- const image = {
39418
+ const image = reactive({
39421
39419
  getSrc: computed(() => () => {
39422
39420
  if (
39423
39421
  props.item.imageDelete &&
@@ -39436,9 +39434,9 @@ const image = {
39436
39434
  props.dataBox.fieldsValue[props.item.imageDelete] =
39437
39435
  !props.dataBox.fieldsValue[props.item.imageDelete];
39438
39436
  }
39439
- };
39437
+ });
39440
39438
 
39441
- const images = {
39439
+ const images = reactive({
39442
39440
  getSrc: (itemImages, indexImages) => {
39443
39441
  if (
39444
39442
  !props.item.imageDelete ||
@@ -39477,9 +39475,9 @@ const images = {
39477
39475
  }
39478
39476
  return result
39479
39477
  })
39480
- };
39478
+ });
39481
39479
 
39482
- const richtext = {
39480
+ const richtext = reactive({
39483
39481
  options: computed(()=>()=>{
39484
39482
  return {
39485
39483
  action: props.dataBox.upload, // 必填参数 图片上传地址
@@ -39490,9 +39488,9 @@ const richtext = {
39490
39488
  // accept: 'multipart/form-data, image/png, image/gif, image/jpeg, image/bmp, image/x-icon,image/jpg' // 可选参数 可上传的图片格式
39491
39489
  }
39492
39490
  })
39493
- };
39491
+ });
39494
39492
 
39495
- const video = {
39493
+ const video = reactive({
39496
39494
  src: computed(()=>()=>{
39497
39495
  if (
39498
39496
  props.item.videoDelete &&
@@ -39525,9 +39523,9 @@ const video = {
39525
39523
  props.dataBox.fieldsValue[props.item.videoDelete] =
39526
39524
  !props.dataBox.fieldsValue[props.item.videoDelete];
39527
39525
  },
39528
- };
39526
+ });
39529
39527
 
39530
- const download = {
39528
+ const download = reactive({
39531
39529
  fileName: computed(() => () => {
39532
39530
  if (props.item.downloadFileName) {
39533
39531
  return props.item.downloadFileName
@@ -39549,9 +39547,9 @@ const download = {
39549
39547
  }
39550
39548
  return ''
39551
39549
  })
39552
- };
39550
+ });
39553
39551
 
39554
- const upload = {
39552
+ const upload = reactive({
39555
39553
  props: {
39556
39554
  val: computed(()=>{return {
39557
39555
  uploadUrl: props.dataBox.upload
@@ -39588,7 +39586,7 @@ const upload = {
39588
39586
  result.result && result.result.txt ? result.result.txt : '';
39589
39587
  }
39590
39588
  }
39591
- };
39589
+ });
39592
39590
 
39593
39591
  const style = reactive({
39594
39592
  box: styleModule.input.box,