@yoooloo42/joker 1.0.50 → 1.0.51
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 +8 -24
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +9 -25
- 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 */),
|