@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.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, watchEffect, withDirectives, vShow } from 'vue';
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
- withDirectives(createVNode(_component_ly0Menu, {
40176
- scopeThis: __props.scopeThis,
40177
- myProps: localMyProps.menu
40178
- }, null, 8 /* PROPS */, ["scopeThis", "myProps"]), [
40179
- [vShow, localMyProps.menu && localMyProps.menu.length > 0]
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: 0 }, [
40283
+ ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
40300
40284
  createElementVNode("div", {
40301
40285
  style: normalizeStyle(style.line)
40302
40286
  }, null, 4 /* STYLE */),
@@ -40378,50 +40362,51 @@ var ly0default$2 = {
40378
40362
  }};
40379
40363
 
40380
40364
  var script$d = {
40381
- props: ['scopeThis', 'myProps', 'dataBox'],
40382
- components: { compForm: script$e },
40383
- computed: {
40384
- myProps0() {
40385
- return Object.assign({}, ly0default$2.myProps, this.myProps)
40386
- }
40387
- }
40388
- };
40365
+ __name: 'index',
40366
+ props: ["scopeThis", "myProps", "dataBox"],
40367
+ setup(__props) {
40368
+
40369
+ const props = __props;
40389
40370
 
40390
- function render$7(_ctx, _cache, $props, $setup, $data, $options) {
40391
- const _component_compForm = resolveComponent("compForm");
40371
+ const myProps0 = reactive({});
40372
+ Object.assign(myProps0, ly0default$2.myProps, props.myProps);
40373
+
40374
+ return (_ctx, _cache) => {
40392
40375
  const _component_el_dialog = resolveComponent("el-dialog");
40393
40376
 
40394
- return ($options.myProps0.popup.visible)
40377
+ return (myProps0.popup.visible)
40395
40378
  ? (openBlock(), createBlock(_component_el_dialog, {
40396
40379
  key: 0,
40397
- modelValue: $options.myProps0.popup.visible,
40398
- "onUpdate:modelValue": _cache[0] || (_cache[0] = $event => (($options.myProps0.popup.visible) = $event)),
40380
+ modelValue: myProps0.popup.visible,
40381
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = $event => ((myProps0.popup.visible) = $event)),
40399
40382
  "custom-class": "code-template-dialog",
40400
40383
  "close-on-press-escape": true,
40401
40384
  "append-to-body": "",
40402
- title: $options.myProps0.popup.title,
40403
- width: $options.myProps0.popup.width,
40404
- top: $options.myProps0.popup.top,
40385
+ title: myProps0.popup.title,
40386
+ width: myProps0.popup.width,
40387
+ top: myProps0.popup.top,
40405
40388
  "destroy-on-close": true
40406
40389
  }, {
40407
40390
  default: withCtx(() => [
40408
- createVNode(_component_compForm, {
40409
- scopeThis: $props.scopeThis,
40410
- myProps: $options.myProps0,
40411
- dataBox: $props.dataBox
40391
+ createVNode(script$e, {
40392
+ scopeThis: __props.scopeThis,
40393
+ myProps: myProps0,
40394
+ dataBox: __props.dataBox
40412
40395
  }, null, 8 /* PROPS */, ["scopeThis", "myProps", "dataBox"])
40413
40396
  ]),
40414
40397
  _: 1 /* STABLE */
40415
40398
  }, 8 /* PROPS */, ["modelValue", "title", "width", "top"]))
40416
- : (openBlock(), createBlock(_component_compForm, {
40399
+ : (openBlock(), createBlock(script$e, {
40417
40400
  key: 1,
40418
- scopeThis: $props.scopeThis,
40419
- myProps: $options.myProps0,
40420
- dataBox: $props.dataBox
40401
+ scopeThis: __props.scopeThis,
40402
+ myProps: myProps0,
40403
+ dataBox: __props.dataBox
40421
40404
  }, null, 8 /* PROPS */, ["scopeThis", "myProps", "dataBox"]))
40422
40405
  }
40406
+ }
40407
+
40408
+ };
40423
40409
 
40424
- script$d.render = render$7;
40425
40410
  script$d.__file = "src/form/index.vue";
40426
40411
 
40427
40412
  var ly0default$1 = {