@yoooloo42/joker 1.0.106 → 1.0.107
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 +19 -27
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +20 -28
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -22516,15 +22516,15 @@ var script$h = {
|
|
|
22516
22516
|
default: () => ({})
|
|
22517
22517
|
}
|
|
22518
22518
|
},
|
|
22519
|
-
|
|
22520
|
-
setup(__props, { emit: __emit }) {
|
|
22519
|
+
setup(__props) {
|
|
22521
22520
|
|
|
22522
22521
|
const props = __props;
|
|
22523
|
-
// 遵循 Vue 3 v-model 规范,使用 update:modelValue 事件
|
|
22524
|
-
const emit = __emit;
|
|
22525
22522
|
|
|
22526
|
-
|
|
22527
|
-
|
|
22523
|
+
|
|
22524
|
+
// props属性包装,使得页面和js使用相同的命名
|
|
22525
|
+
const formData_box = props.modelValue;
|
|
22526
|
+
const scopeThis_box = props.scopeThis;
|
|
22527
|
+
const propsItem_box = props.item;
|
|
22528
22528
|
|
|
22529
22529
|
const style = vue.ref({
|
|
22530
22530
|
box: styleModule.label.box(propsItem_box),
|
|
@@ -22533,18 +22533,9 @@ const style = vue.ref({
|
|
|
22533
22533
|
|
|
22534
22534
|
const hdlClick = () => {
|
|
22535
22535
|
if(propsItem_box.hdlLabelClick){
|
|
22536
|
-
propsItem_box.hdlLabelClick({formData:
|
|
22536
|
+
propsItem_box.hdlLabelClick({formData: formData_box, scopeThis: scopeThis_box});
|
|
22537
22537
|
}
|
|
22538
22538
|
};
|
|
22539
|
-
|
|
22540
|
-
// 表单数据监听
|
|
22541
|
-
vue.watch(
|
|
22542
|
-
props.modelValue, // 监听 reactive 对象时,默认是深层监听
|
|
22543
|
-
(newVal, oldVal) => {
|
|
22544
|
-
// 触发 update:modelValue 事件更新父组件的 v-model 绑定的值
|
|
22545
|
-
emit("update:modelValue", newVal);
|
|
22546
|
-
}
|
|
22547
|
-
);
|
|
22548
22539
|
|
|
22549
22540
|
return (_ctx, _cache) => {
|
|
22550
22541
|
return (vue.openBlock(), vue.createElementBlock(vue.Fragment, null, [
|
|
@@ -22555,7 +22546,7 @@ return (_ctx, _cache) => {
|
|
|
22555
22546
|
}, [
|
|
22556
22547
|
vue.createElementVNode("span", {
|
|
22557
22548
|
style: vue.normalizeStyle(style.value.label)
|
|
22558
|
-
}, vue.toDisplayString(propsItem_box.label), 5 /* TEXT, STYLE */)
|
|
22549
|
+
}, vue.toDisplayString(vue.unref(propsItem_box).label), 5 /* TEXT, STYLE */)
|
|
22559
22550
|
], 4 /* STYLE */)
|
|
22560
22551
|
], 2112 /* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */))
|
|
22561
22552
|
}
|
|
@@ -22620,7 +22611,7 @@ var script$g = {
|
|
|
22620
22611
|
const props = __props;
|
|
22621
22612
|
|
|
22622
22613
|
// props属性包装,使得页面和js使用相同的命名
|
|
22623
|
-
|
|
22614
|
+
const formData_box = props.modelValue;
|
|
22624
22615
|
const formProps_box = props.myProps;
|
|
22625
22616
|
const scopeThis_box = props.scopeThis;
|
|
22626
22617
|
const propsItem_box = props.item;
|
|
@@ -23310,7 +23301,7 @@ return (_ctx, _cache) => {
|
|
|
23310
23301
|
? (vue.openBlock(), vue.createElementBlock("div", _hoisted_28, [
|
|
23311
23302
|
vue.createVNode(_component_ly0d7thumb, {
|
|
23312
23303
|
modelValue: vue.unref(formData_box),
|
|
23313
|
-
"onUpdate:modelValue": _cache[18] || (_cache[18] = $event => (vue.isRef(formData_box) ? (formData_box).value = $event :
|
|
23304
|
+
"onUpdate:modelValue": _cache[18] || (_cache[18] = $event => (vue.isRef(formData_box) ? (formData_box).value = $event : null)),
|
|
23314
23305
|
myProps: {
|
|
23315
23306
|
thumb: {
|
|
23316
23307
|
fieldName: vue.unref(propsItem_box).thumb.fieldName || vue.unref(formProps_box).para.ly0d7thumb.thumb.fieldName,
|
|
@@ -23365,7 +23356,7 @@ var script$f = {
|
|
|
23365
23356
|
const props = __props;
|
|
23366
23357
|
|
|
23367
23358
|
// props属性包装,使得页面和js使用相同的命名
|
|
23368
|
-
|
|
23359
|
+
const formData_box = props.modelValue;
|
|
23369
23360
|
const formProps_box = props.myProps;
|
|
23370
23361
|
const scopeThis_box = props.scopeThis;
|
|
23371
23362
|
|
|
@@ -23454,7 +23445,7 @@ return (_ctx, _cache) => {
|
|
|
23454
23445
|
}, [
|
|
23455
23446
|
vue.createVNode(script$h, {
|
|
23456
23447
|
modelValue: vue.unref(formData_box),
|
|
23457
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = $event => (vue.isRef(formData_box) ? (formData_box).value = $event :
|
|
23448
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = $event => (vue.isRef(formData_box) ? (formData_box).value = $event : null)),
|
|
23458
23449
|
myProps: vue.unref(formProps_box),
|
|
23459
23450
|
scopeThis: vue.unref(scopeThis_box),
|
|
23460
23451
|
item: item0
|
|
@@ -23504,7 +23495,7 @@ return (_ctx, _cache) => {
|
|
|
23504
23495
|
}, [
|
|
23505
23496
|
vue.createVNode(script$h, {
|
|
23506
23497
|
modelValue: vue.unref(formData_box),
|
|
23507
|
-
"onUpdate:modelValue": _cache[1] || (_cache[1] = $event => (vue.isRef(formData_box) ? (formData_box).value = $event :
|
|
23498
|
+
"onUpdate:modelValue": _cache[1] || (_cache[1] = $event => (vue.isRef(formData_box) ? (formData_box).value = $event : null)),
|
|
23508
23499
|
myProps: vue.unref(formProps_box),
|
|
23509
23500
|
scopeThis: vue.unref(scopeThis_box),
|
|
23510
23501
|
item: item2
|
|
@@ -23517,7 +23508,7 @@ return (_ctx, _cache) => {
|
|
|
23517
23508
|
}, [
|
|
23518
23509
|
vue.createVNode(script$g, {
|
|
23519
23510
|
modelValue: vue.unref(formData_box),
|
|
23520
|
-
"onUpdate:modelValue": _cache[2] || (_cache[2] = $event => (vue.isRef(formData_box) ? (formData_box).value = $event :
|
|
23511
|
+
"onUpdate:modelValue": _cache[2] || (_cache[2] = $event => (vue.isRef(formData_box) ? (formData_box).value = $event : null)),
|
|
23521
23512
|
myProps: vue.unref(formProps_box),
|
|
23522
23513
|
scopeThis: vue.unref(scopeThis_box),
|
|
23523
23514
|
item: item2
|
|
@@ -23540,7 +23531,7 @@ return (_ctx, _cache) => {
|
|
|
23540
23531
|
: vue.createCommentVNode("v-if", true),
|
|
23541
23532
|
vue.createVNode(script$g, {
|
|
23542
23533
|
modelValue: vue.unref(formData_box),
|
|
23543
|
-
"onUpdate:modelValue": _cache[3] || (_cache[3] = $event => (vue.isRef(formData_box) ? (formData_box).value = $event :
|
|
23534
|
+
"onUpdate:modelValue": _cache[3] || (_cache[3] = $event => (vue.isRef(formData_box) ? (formData_box).value = $event : null)),
|
|
23544
23535
|
myProps: vue.unref(formProps_box),
|
|
23545
23536
|
scopeThis: vue.unref(scopeThis_box),
|
|
23546
23537
|
item: item0
|
|
@@ -23606,7 +23597,8 @@ var script$e = {
|
|
|
23606
23597
|
|
|
23607
23598
|
const props = __props;
|
|
23608
23599
|
|
|
23609
|
-
|
|
23600
|
+
// props属性包装,使得页面和js使用相同的命名
|
|
23601
|
+
const formData_box = props.modelValue;
|
|
23610
23602
|
const formProps_box = vue.reactive(Object.assign({}, ly0default$2.myProps, props.myProps));
|
|
23611
23603
|
const scopeThis_box = props.scopeThis;
|
|
23612
23604
|
|
|
@@ -23629,7 +23621,7 @@ return (_ctx, _cache) => {
|
|
|
23629
23621
|
default: vue.withCtx(() => [
|
|
23630
23622
|
vue.createVNode(script$f, {
|
|
23631
23623
|
modelValue: vue.unref(formData_box),
|
|
23632
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = $event => (vue.isRef(formData_box) ? (formData_box).value = $event :
|
|
23624
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = $event => (vue.isRef(formData_box) ? (formData_box).value = $event : null)),
|
|
23633
23625
|
myProps: formProps_box,
|
|
23634
23626
|
scopeThis: vue.unref(scopeThis_box)
|
|
23635
23627
|
}, null, 8 /* PROPS */, ["modelValue", "myProps", "scopeThis"])
|
|
@@ -23639,7 +23631,7 @@ return (_ctx, _cache) => {
|
|
|
23639
23631
|
: (vue.openBlock(), vue.createBlock(script$f, {
|
|
23640
23632
|
key: 1,
|
|
23641
23633
|
modelValue: vue.unref(formData_box),
|
|
23642
|
-
"onUpdate:modelValue": _cache[2] || (_cache[2] = $event => (vue.isRef(formData_box) ? (formData_box).value = $event :
|
|
23634
|
+
"onUpdate:modelValue": _cache[2] || (_cache[2] = $event => (vue.isRef(formData_box) ? (formData_box).value = $event : null)),
|
|
23643
23635
|
myProps: formProps_box,
|
|
23644
23636
|
scopeThis: vue.unref(scopeThis_box)
|
|
23645
23637
|
}, null, 8 /* PROPS */, ["modelValue", "myProps", "scopeThis"]))
|