@yoooloo42/joker 1.0.50 → 1.0.52
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 +34 -49
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +35 -50
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -40142,23 +40142,6 @@ var script$e = {
|
|
|
40142
40142
|
props: ["scopeThis", "myProps", "dataBox"],
|
|
40143
40143
|
setup(__props) {
|
|
40144
40144
|
|
|
40145
|
-
const props = __props;
|
|
40146
|
-
|
|
40147
|
-
// 1. 创建本地响应式副本
|
|
40148
|
-
const localMyProps = vue.reactive({});
|
|
40149
|
-
// 2. 使用 watchEffect 监听 props.myProps 的变化并同步到本地副本
|
|
40150
|
-
// 每次 props.myProps 发生变化时,这里都会执行
|
|
40151
|
-
vue.watchEffect(() => {
|
|
40152
|
-
// 强制将 props.myProps 的所有属性复制过来,确保 localMyProps 是响应式的
|
|
40153
|
-
// 这样,即使 props.myProps 自身非响应式,但它作为整体变化时,watchEffect 仍能捕获到。
|
|
40154
|
-
Object.assign(localMyProps, props.myProps);
|
|
40155
|
-
|
|
40156
|
-
// 可以在这里进行额外的调试
|
|
40157
|
-
if (localMyProps.menu && localMyProps.menu.length > 0) {
|
|
40158
|
-
console.log("WATCH EFFECT: menu已加载,准备渲染");
|
|
40159
|
-
}
|
|
40160
|
-
});
|
|
40161
|
-
|
|
40162
40145
|
const style = vue.reactive({
|
|
40163
40146
|
collapse: vue.computed(() => styleModule.collapse()),
|
|
40164
40147
|
field_box: vue.computed(() => styleModule.field_box()),
|
|
@@ -40176,12 +40159,13 @@ return (_ctx, _cache) => {
|
|
|
40176
40159
|
|
|
40177
40160
|
return (vue.openBlock(), vue.createElementBlock(vue.Fragment, null, [
|
|
40178
40161
|
vue.createCommentVNode(" 置顶菜单 "),
|
|
40179
|
-
|
|
40180
|
-
|
|
40181
|
-
|
|
40182
|
-
|
|
40183
|
-
|
|
40184
|
-
|
|
40162
|
+
(__props.myProps.menu && __props.myProps.menu.length > 0)
|
|
40163
|
+
? (vue.openBlock(), vue.createBlock(_component_ly0Menu, {
|
|
40164
|
+
key: 0,
|
|
40165
|
+
scopeThis: __props.scopeThis,
|
|
40166
|
+
myProps: __props.myProps.menu
|
|
40167
|
+
}, null, 8 /* PROPS */, ["scopeThis", "myProps"]))
|
|
40168
|
+
: vue.createCommentVNode("v-if", true),
|
|
40185
40169
|
vue.createCommentVNode(" 表单区域可以分为多个列 "),
|
|
40186
40170
|
vue.createElementVNode("div", {
|
|
40187
40171
|
style: vue.normalizeStyle(style.root_box)
|
|
@@ -40300,7 +40284,7 @@ return (_ctx, _cache) => {
|
|
|
40300
40284
|
], 4 /* STYLE */),
|
|
40301
40285
|
vue.createCommentVNode(" 提交 "),
|
|
40302
40286
|
(__props.dataBox.hdlSubmit)
|
|
40303
|
-
? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key:
|
|
40287
|
+
? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 1 }, [
|
|
40304
40288
|
vue.createElementVNode("div", {
|
|
40305
40289
|
style: vue.normalizeStyle(style.line)
|
|
40306
40290
|
}, null, 4 /* STYLE */),
|
|
@@ -40382,50 +40366,51 @@ var ly0default$2 = {
|
|
|
40382
40366
|
}};
|
|
40383
40367
|
|
|
40384
40368
|
var script$d = {
|
|
40385
|
-
|
|
40386
|
-
|
|
40387
|
-
|
|
40388
|
-
|
|
40389
|
-
|
|
40390
|
-
}
|
|
40391
|
-
}
|
|
40392
|
-
};
|
|
40369
|
+
__name: 'index',
|
|
40370
|
+
props: ["scopeThis", "myProps", "dataBox"],
|
|
40371
|
+
setup(__props) {
|
|
40372
|
+
|
|
40373
|
+
const props = __props;
|
|
40393
40374
|
|
|
40394
|
-
|
|
40395
|
-
|
|
40375
|
+
const myProps0 = vue.reactive({});
|
|
40376
|
+
Object.assign(myProps0, ly0default$2.myProps, props.myProps);
|
|
40377
|
+
|
|
40378
|
+
return (_ctx, _cache) => {
|
|
40396
40379
|
const _component_el_dialog = vue.resolveComponent("el-dialog");
|
|
40397
40380
|
|
|
40398
|
-
return (
|
|
40381
|
+
return (myProps0.popup.visible)
|
|
40399
40382
|
? (vue.openBlock(), vue.createBlock(_component_el_dialog, {
|
|
40400
40383
|
key: 0,
|
|
40401
|
-
modelValue:
|
|
40402
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = $event => ((
|
|
40384
|
+
modelValue: myProps0.popup.visible,
|
|
40385
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = $event => ((myProps0.popup.visible) = $event)),
|
|
40403
40386
|
"custom-class": "code-template-dialog",
|
|
40404
40387
|
"close-on-press-escape": true,
|
|
40405
40388
|
"append-to-body": "",
|
|
40406
|
-
title:
|
|
40407
|
-
width:
|
|
40408
|
-
top:
|
|
40389
|
+
title: myProps0.popup.title,
|
|
40390
|
+
width: myProps0.popup.width,
|
|
40391
|
+
top: myProps0.popup.top,
|
|
40409
40392
|
"destroy-on-close": true
|
|
40410
40393
|
}, {
|
|
40411
40394
|
default: vue.withCtx(() => [
|
|
40412
|
-
vue.createVNode(
|
|
40413
|
-
scopeThis:
|
|
40414
|
-
myProps:
|
|
40415
|
-
dataBox:
|
|
40395
|
+
vue.createVNode(script$e, {
|
|
40396
|
+
scopeThis: __props.scopeThis,
|
|
40397
|
+
myProps: myProps0,
|
|
40398
|
+
dataBox: __props.dataBox
|
|
40416
40399
|
}, null, 8 /* PROPS */, ["scopeThis", "myProps", "dataBox"])
|
|
40417
40400
|
]),
|
|
40418
40401
|
_: 1 /* STABLE */
|
|
40419
40402
|
}, 8 /* PROPS */, ["modelValue", "title", "width", "top"]))
|
|
40420
|
-
: (vue.openBlock(), vue.createBlock(
|
|
40403
|
+
: (vue.openBlock(), vue.createBlock(script$e, {
|
|
40421
40404
|
key: 1,
|
|
40422
|
-
scopeThis:
|
|
40423
|
-
myProps:
|
|
40424
|
-
dataBox:
|
|
40405
|
+
scopeThis: __props.scopeThis,
|
|
40406
|
+
myProps: myProps0,
|
|
40407
|
+
dataBox: __props.dataBox
|
|
40425
40408
|
}, null, 8 /* PROPS */, ["scopeThis", "myProps", "dataBox"]))
|
|
40426
40409
|
}
|
|
40410
|
+
}
|
|
40411
|
+
|
|
40412
|
+
};
|
|
40427
40413
|
|
|
40428
|
-
script$d.render = render$7;
|
|
40429
40414
|
script$d.__file = "src/form/index.vue";
|
|
40430
40415
|
|
|
40431
40416
|
var ly0default$1 = {
|