@yoooloo42/joker 1.0.30 → 1.0.32

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,25 +39337,23 @@ var script$f = {
39337
39337
 
39338
39338
  const props = __props;
39339
39339
 
39340
- const input = {
39341
- placeholder: computed(() => () => {
39340
+ const input = reactive({
39341
+ placeholder: computed(() => {
39342
39342
  return props.item.placeholder ? props.item.placeholder : props.myProps.placeholder.input
39343
39343
  }),
39344
- showPassword: computed(()=>()=>{
39344
+ showPassword: computed(()=>{
39345
39345
  return !!this.item.showPassword
39346
39346
  }),
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 = {
39355
- placeholder: computed(() => () => {
39352
+ const select = reactive({
39353
+ placeholder: computed(() => {
39356
39354
  return props.item.placeholder ? props.item.placeholder : props.myProps.placeholder.select
39357
39355
  }),
39358
- items: computed(()=>()=>{
39356
+ items: computed(()=>{
39359
39357
  if (props.item.items) {
39360
39358
  return props.item.items
39361
39359
  } else if (props.item.hdlGetItems) {
@@ -39367,10 +39365,10 @@ const select = {
39367
39365
  props.item.hdlChange(props.scopeThis, value);
39368
39366
  }
39369
39367
  }
39370
- };
39368
+ });
39371
39369
 
39372
- const datePicker = {
39373
- placeholder: computed(()=> () => {
39370
+ const datePicker = reactive({
39371
+ placeholder: computed(()=> {
39374
39372
  if (props.item.placeholder) {
39375
39373
  return props.item.placeholder
39376
39374
  }
@@ -39382,7 +39380,7 @@ const datePicker = {
39382
39380
  }
39383
39381
  return props.myProps.placeholder.datetime
39384
39382
  }),
39385
- format: computed(() => () => {
39383
+ format: computed(() => {
39386
39384
  if (props.item.format) {
39387
39385
  return props.item.format
39388
39386
  }
@@ -39399,26 +39397,26 @@ 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 = {
39421
- getSrc: computed(() => () => {
39418
+ const image = reactive({
39419
+ getSrc: computed(() => {
39422
39420
  if (
39423
39421
  props.item.imageDelete &&
39424
39422
  props.dataBox.fieldsValue[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 ||
@@ -39460,7 +39458,7 @@ const images = {
39460
39458
  return i !== itemImages
39461
39459
  });
39462
39460
  },
39463
- show: computed(()=>()=>{
39461
+ show: computed(()=>{
39464
39462
  let result = [];
39465
39463
  if (!props.item.imageDelete) {
39466
39464
  props.dataBox.fieldsValue[props.item.fieldName].forEach(i => {
@@ -39477,10 +39475,10 @@ const images = {
39477
39475
  }
39478
39476
  return result
39479
39477
  })
39480
- };
39478
+ });
39481
39479
 
39482
- const richtext = {
39483
- options: computed(()=>()=>{
39480
+ const richtext = reactive({
39481
+ options: computed(()=>{
39484
39482
  return {
39485
39483
  action: props.dataBox.upload, // 必填参数 图片上传地址
39486
39484
  methods: 'post', // 必填参数 图片上传方式
@@ -39490,10 +39488,10 @@ 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 = {
39496
- src: computed(()=>()=>{
39493
+ const video = reactive({
39494
+ src: computed(()=>{
39497
39495
  if (
39498
39496
  props.item.videoDelete &&
39499
39497
  props.dataBox.fieldsValue[props.item.videoDelete] &&
@@ -39507,7 +39505,7 @@ const video = {
39507
39505
  }
39508
39506
  return ''
39509
39507
  }),
39510
- poster: computed(()=>()=>{
39508
+ poster: computed(()=>{
39511
39509
  if (
39512
39510
  props.item.videoDelete &&
39513
39511
  props.dataBox.fieldsValue[props.item.videoDelete] &&
@@ -39525,16 +39523,16 @@ 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 = {
39531
- fileName: computed(() => () => {
39528
+ const download = reactive({
39529
+ fileName: computed(() => {
39532
39530
  if (props.item.downloadFileName) {
39533
39531
  return props.item.downloadFileName
39534
39532
  }
39535
39533
  return props.myProps.download.fileName
39536
39534
  }),
39537
- downloadLabel: computed(() => () => {
39535
+ downloadLabel: computed(() => {
39538
39536
  if (!props.dataBox.fieldsValue[props.item.fieldName]) {
39539
39537
  return props.myProps.download.downloadLabelNoSrc
39540
39538
  }
@@ -39543,15 +39541,15 @@ const download = {
39543
39541
  }
39544
39542
  return props.myProps.download.downloadLabel
39545
39543
  }),
39546
- downloadSrc: computed(() => () => {
39544
+ downloadSrc: computed(() => {
39547
39545
  if (props.dataBox.fieldsValue[props.item.fieldName]) {
39548
39546
  return props.dataBox.fieldsValue[props.item.fieldName]
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,