@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.esm.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { computed, createElementBlock, openBlock, Fragment, createCommentVNode, createElementVNode, normalizeStyle, toDisplayString, defineComponent, h, onMounted, onBeforeUnmount, ref, watch, nextTick as nextTick$1, reactive, resolveComponent, createBlock, withCtx, renderList, createTextVNode, createVNode, unref
|
|
1
|
+
import { computed, createElementBlock, openBlock, Fragment, createCommentVNode, createElementVNode, normalizeStyle, toDisplayString, defineComponent, h, onMounted, onBeforeUnmount, ref, watch, nextTick as nextTick$1, reactive, resolveComponent, createBlock, withCtx, renderList, createTextVNode, createVNode, unref } from 'vue';
|
|
2
2
|
|
|
3
3
|
function _mergeNamespaces(n, m) {
|
|
4
4
|
m.forEach(function (e) {
|
|
@@ -40138,23 +40138,6 @@ var script$e = {
|
|
|
40138
40138
|
props: ["scopeThis", "myProps", "dataBox"],
|
|
40139
40139
|
setup(__props) {
|
|
40140
40140
|
|
|
40141
|
-
const props = __props;
|
|
40142
|
-
|
|
40143
|
-
// 1. 创建本地响应式副本
|
|
40144
|
-
const localMyProps = reactive({});
|
|
40145
|
-
// 2. 使用 watchEffect 监听 props.myProps 的变化并同步到本地副本
|
|
40146
|
-
// 每次 props.myProps 发生变化时,这里都会执行
|
|
40147
|
-
watchEffect(() => {
|
|
40148
|
-
// 强制将 props.myProps 的所有属性复制过来,确保 localMyProps 是响应式的
|
|
40149
|
-
// 这样,即使 props.myProps 自身非响应式,但它作为整体变化时,watchEffect 仍能捕获到。
|
|
40150
|
-
Object.assign(localMyProps, props.myProps);
|
|
40151
|
-
|
|
40152
|
-
// 可以在这里进行额外的调试
|
|
40153
|
-
if (localMyProps.menu && localMyProps.menu.length > 0) {
|
|
40154
|
-
console.log("WATCH EFFECT: menu已加载,准备渲染");
|
|
40155
|
-
}
|
|
40156
|
-
});
|
|
40157
|
-
|
|
40158
40141
|
const style = reactive({
|
|
40159
40142
|
collapse: computed(() => styleModule.collapse()),
|
|
40160
40143
|
field_box: computed(() => styleModule.field_box()),
|
|
@@ -40172,12 +40155,13 @@ return (_ctx, _cache) => {
|
|
|
40172
40155
|
|
|
40173
40156
|
return (openBlock(), createElementBlock(Fragment, null, [
|
|
40174
40157
|
createCommentVNode(" 置顶菜单 "),
|
|
40175
|
-
|
|
40176
|
-
|
|
40177
|
-
|
|
40178
|
-
|
|
40179
|
-
|
|
40180
|
-
|
|
40158
|
+
(__props.myProps.menu && __props.myProps.menu.length > 0)
|
|
40159
|
+
? (openBlock(), createBlock(_component_ly0Menu, {
|
|
40160
|
+
key: 0,
|
|
40161
|
+
scopeThis: __props.scopeThis,
|
|
40162
|
+
myProps: __props.myProps.menu
|
|
40163
|
+
}, null, 8 /* PROPS */, ["scopeThis", "myProps"]))
|
|
40164
|
+
: createCommentVNode("v-if", true),
|
|
40181
40165
|
createCommentVNode(" 表单区域可以分为多个列 "),
|
|
40182
40166
|
createElementVNode("div", {
|
|
40183
40167
|
style: normalizeStyle(style.root_box)
|
|
@@ -40296,7 +40280,7 @@ return (_ctx, _cache) => {
|
|
|
40296
40280
|
], 4 /* STYLE */),
|
|
40297
40281
|
createCommentVNode(" 提交 "),
|
|
40298
40282
|
(__props.dataBox.hdlSubmit)
|
|
40299
|
-
? (openBlock(), createElementBlock(Fragment, { key:
|
|
40283
|
+
? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
40300
40284
|
createElementVNode("div", {
|
|
40301
40285
|
style: normalizeStyle(style.line)
|
|
40302
40286
|
}, null, 4 /* STYLE */),
|