@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.cjs.js +36 -38
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +36 -38
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -39341,25 +39341,23 @@ var script$f = {
|
|
|
39341
39341
|
|
|
39342
39342
|
const props = __props;
|
|
39343
39343
|
|
|
39344
|
-
const input = {
|
|
39345
|
-
placeholder: vue.computed(() =>
|
|
39344
|
+
const input = vue.reactive({
|
|
39345
|
+
placeholder: vue.computed(() => {
|
|
39346
39346
|
return props.item.placeholder ? props.item.placeholder : props.myProps.placeholder.input
|
|
39347
39347
|
}),
|
|
39348
|
-
showPassword: vue.computed(()=>
|
|
39348
|
+
showPassword: vue.computed(()=>{
|
|
39349
39349
|
return !!this.item.showPassword
|
|
39350
39350
|
}),
|
|
39351
39351
|
hdlCannotInput: event => { // 解决偶发不能输入的问题
|
|
39352
39352
|
props.dataBox.fieldsValue[props.item.fieldName] = event.target.value;
|
|
39353
39353
|
}
|
|
39354
|
-
};
|
|
39355
|
-
|
|
39356
|
-
console.log('测试 000', input.placeholder);
|
|
39354
|
+
});
|
|
39357
39355
|
|
|
39358
|
-
const select = {
|
|
39359
|
-
placeholder: vue.computed(() =>
|
|
39356
|
+
const select = vue.reactive({
|
|
39357
|
+
placeholder: vue.computed(() => {
|
|
39360
39358
|
return props.item.placeholder ? props.item.placeholder : props.myProps.placeholder.select
|
|
39361
39359
|
}),
|
|
39362
|
-
items: vue.computed(()=>
|
|
39360
|
+
items: vue.computed(()=>{
|
|
39363
39361
|
if (props.item.items) {
|
|
39364
39362
|
return props.item.items
|
|
39365
39363
|
} else if (props.item.hdlGetItems) {
|
|
@@ -39371,10 +39369,10 @@ const select = {
|
|
|
39371
39369
|
props.item.hdlChange(props.scopeThis, value);
|
|
39372
39370
|
}
|
|
39373
39371
|
}
|
|
39374
|
-
};
|
|
39372
|
+
});
|
|
39375
39373
|
|
|
39376
|
-
const datePicker = {
|
|
39377
|
-
placeholder: vue.computed(()=>
|
|
39374
|
+
const datePicker = vue.reactive({
|
|
39375
|
+
placeholder: vue.computed(()=> {
|
|
39378
39376
|
if (props.item.placeholder) {
|
|
39379
39377
|
return props.item.placeholder
|
|
39380
39378
|
}
|
|
@@ -39386,7 +39384,7 @@ const datePicker = {
|
|
|
39386
39384
|
}
|
|
39387
39385
|
return props.myProps.placeholder.datetime
|
|
39388
39386
|
}),
|
|
39389
|
-
format: vue.computed(() =>
|
|
39387
|
+
format: vue.computed(() => {
|
|
39390
39388
|
if (props.item.format) {
|
|
39391
39389
|
return props.item.format
|
|
39392
39390
|
}
|
|
@@ -39403,26 +39401,26 @@ const datePicker = {
|
|
|
39403
39401
|
props.item.hdlChange(props.scopeThis, value);
|
|
39404
39402
|
}
|
|
39405
39403
|
}
|
|
39406
|
-
};
|
|
39404
|
+
});
|
|
39407
39405
|
|
|
39408
|
-
const ly0switch = {
|
|
39406
|
+
const ly0switch = vue.reactive({
|
|
39409
39407
|
hdlChange: value => {
|
|
39410
39408
|
if (props.item.hdlChange) {
|
|
39411
39409
|
props.item.hdlChange(props.scopeThis, value);
|
|
39412
39410
|
}
|
|
39413
39411
|
}
|
|
39414
|
-
};
|
|
39412
|
+
});
|
|
39415
39413
|
|
|
39416
|
-
const radioGroup = {
|
|
39414
|
+
const radioGroup = vue.reactive({
|
|
39417
39415
|
hdlChange: value => {
|
|
39418
39416
|
if (props.item.hdlChange) {
|
|
39419
39417
|
props.item.hdlChange(props.scopeThis, value);
|
|
39420
39418
|
}
|
|
39421
39419
|
}
|
|
39422
|
-
};
|
|
39420
|
+
});
|
|
39423
39421
|
|
|
39424
|
-
const image = {
|
|
39425
|
-
getSrc: vue.computed(() =>
|
|
39422
|
+
const image = vue.reactive({
|
|
39423
|
+
getSrc: vue.computed(() => {
|
|
39426
39424
|
if (
|
|
39427
39425
|
props.item.imageDelete &&
|
|
39428
39426
|
props.dataBox.fieldsValue[props.item.imageDelete] &&
|
|
@@ -39440,9 +39438,9 @@ const image = {
|
|
|
39440
39438
|
props.dataBox.fieldsValue[props.item.imageDelete] =
|
|
39441
39439
|
!props.dataBox.fieldsValue[props.item.imageDelete];
|
|
39442
39440
|
}
|
|
39443
|
-
};
|
|
39441
|
+
});
|
|
39444
39442
|
|
|
39445
|
-
const images = {
|
|
39443
|
+
const images = vue.reactive({
|
|
39446
39444
|
getSrc: (itemImages, indexImages) => {
|
|
39447
39445
|
if (
|
|
39448
39446
|
!props.item.imageDelete ||
|
|
@@ -39464,7 +39462,7 @@ const images = {
|
|
|
39464
39462
|
return i !== itemImages
|
|
39465
39463
|
});
|
|
39466
39464
|
},
|
|
39467
|
-
show: vue.computed(()=>
|
|
39465
|
+
show: vue.computed(()=>{
|
|
39468
39466
|
let result = [];
|
|
39469
39467
|
if (!props.item.imageDelete) {
|
|
39470
39468
|
props.dataBox.fieldsValue[props.item.fieldName].forEach(i => {
|
|
@@ -39481,10 +39479,10 @@ const images = {
|
|
|
39481
39479
|
}
|
|
39482
39480
|
return result
|
|
39483
39481
|
})
|
|
39484
|
-
};
|
|
39482
|
+
});
|
|
39485
39483
|
|
|
39486
|
-
const richtext = {
|
|
39487
|
-
options: vue.computed(()=>
|
|
39484
|
+
const richtext = vue.reactive({
|
|
39485
|
+
options: vue.computed(()=>{
|
|
39488
39486
|
return {
|
|
39489
39487
|
action: props.dataBox.upload, // 必填参数 图片上传地址
|
|
39490
39488
|
methods: 'post', // 必填参数 图片上传方式
|
|
@@ -39494,10 +39492,10 @@ const richtext = {
|
|
|
39494
39492
|
// accept: 'multipart/form-data, image/png, image/gif, image/jpeg, image/bmp, image/x-icon,image/jpg' // 可选参数 可上传的图片格式
|
|
39495
39493
|
}
|
|
39496
39494
|
})
|
|
39497
|
-
};
|
|
39495
|
+
});
|
|
39498
39496
|
|
|
39499
|
-
const video = {
|
|
39500
|
-
src: vue.computed(()=>
|
|
39497
|
+
const video = vue.reactive({
|
|
39498
|
+
src: vue.computed(()=>{
|
|
39501
39499
|
if (
|
|
39502
39500
|
props.item.videoDelete &&
|
|
39503
39501
|
props.dataBox.fieldsValue[props.item.videoDelete] &&
|
|
@@ -39511,7 +39509,7 @@ const video = {
|
|
|
39511
39509
|
}
|
|
39512
39510
|
return ''
|
|
39513
39511
|
}),
|
|
39514
|
-
poster: vue.computed(()=>
|
|
39512
|
+
poster: vue.computed(()=>{
|
|
39515
39513
|
if (
|
|
39516
39514
|
props.item.videoDelete &&
|
|
39517
39515
|
props.dataBox.fieldsValue[props.item.videoDelete] &&
|
|
@@ -39529,16 +39527,16 @@ const video = {
|
|
|
39529
39527
|
props.dataBox.fieldsValue[props.item.videoDelete] =
|
|
39530
39528
|
!props.dataBox.fieldsValue[props.item.videoDelete];
|
|
39531
39529
|
},
|
|
39532
|
-
};
|
|
39530
|
+
});
|
|
39533
39531
|
|
|
39534
|
-
const download = {
|
|
39535
|
-
fileName: vue.computed(() =>
|
|
39532
|
+
const download = vue.reactive({
|
|
39533
|
+
fileName: vue.computed(() => {
|
|
39536
39534
|
if (props.item.downloadFileName) {
|
|
39537
39535
|
return props.item.downloadFileName
|
|
39538
39536
|
}
|
|
39539
39537
|
return props.myProps.download.fileName
|
|
39540
39538
|
}),
|
|
39541
|
-
downloadLabel: vue.computed(() =>
|
|
39539
|
+
downloadLabel: vue.computed(() => {
|
|
39542
39540
|
if (!props.dataBox.fieldsValue[props.item.fieldName]) {
|
|
39543
39541
|
return props.myProps.download.downloadLabelNoSrc
|
|
39544
39542
|
}
|
|
@@ -39547,15 +39545,15 @@ const download = {
|
|
|
39547
39545
|
}
|
|
39548
39546
|
return props.myProps.download.downloadLabel
|
|
39549
39547
|
}),
|
|
39550
|
-
downloadSrc: vue.computed(() =>
|
|
39548
|
+
downloadSrc: vue.computed(() => {
|
|
39551
39549
|
if (props.dataBox.fieldsValue[props.item.fieldName]) {
|
|
39552
39550
|
return props.dataBox.fieldsValue[props.item.fieldName]
|
|
39553
39551
|
}
|
|
39554
39552
|
return ''
|
|
39555
39553
|
})
|
|
39556
|
-
};
|
|
39554
|
+
});
|
|
39557
39555
|
|
|
39558
|
-
const upload = {
|
|
39556
|
+
const upload = vue.reactive({
|
|
39559
39557
|
props: {
|
|
39560
39558
|
val: vue.computed(()=>{return {
|
|
39561
39559
|
uploadUrl: props.dataBox.upload
|
|
@@ -39592,7 +39590,7 @@ const upload = {
|
|
|
39592
39590
|
result.result && result.result.txt ? result.result.txt : '';
|
|
39593
39591
|
}
|
|
39594
39592
|
}
|
|
39595
|
-
};
|
|
39593
|
+
});
|
|
39596
39594
|
|
|
39597
39595
|
const style = vue.reactive({
|
|
39598
39596
|
box: styleModule.input.box,
|