@yoooloo42/joker 1.0.44 → 1.0.46

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 } from 'vue';
1
+ import { computed, createElementBlock, openBlock, Fragment, createCommentVNode, createElementVNode, normalizeStyle, toDisplayString, defineComponent, h, onMounted, onBeforeUnmount, ref, watch as watch$1, 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) {
@@ -39166,7 +39166,7 @@ const QuillEditor = defineComponent({
39166
39166
  isEditorFocus.value = !!(quill === null || quill === void 0 ? void 0 : quill.hasFocus());
39167
39167
  ctx.emit('selectionChange', { range, oldRange, source });
39168
39168
  };
39169
- watch(isEditorFocus, (focus) => {
39169
+ watch$1(isEditorFocus, (focus) => {
39170
39170
  if (focus)
39171
39171
  ctx.emit('focus', editor);
39172
39172
  else
@@ -39260,7 +39260,7 @@ const QuillEditor = defineComponent({
39260
39260
  initialize();
39261
39261
  });
39262
39262
  };
39263
- watch(() => props.content, (newContent) => {
39263
+ watch$1(() => props.content, (newContent) => {
39264
39264
  if (!quill || !newContent || internalModelEquals(newContent))
39265
39265
  return;
39266
39266
  // Restore the selection and cursor position after updating the content
@@ -39270,7 +39270,7 @@ const QuillEditor = defineComponent({
39270
39270
  }
39271
39271
  setContents(newContent);
39272
39272
  }, { deep: true });
39273
- watch(() => props.enable, (newValue) => {
39273
+ watch$1(() => props.enable, (newValue) => {
39274
39274
  if (quill)
39275
39275
  quill.enable(newValue);
39276
39276
  });
@@ -40139,8 +40139,14 @@ var script$e = {
40139
40139
  setup(__props) {
40140
40140
 
40141
40141
  const props = __props;
40142
- const isMenuVisible = computed(()=>{
40143
- return props.myProps && props.myProps.menu && props.myProps.menu.length > 0
40142
+ // 监听 myProps.menu 的变化
40143
+ watch(() => props.myProps.menu, (newMenu, oldMenu) => {
40144
+ console.log('--- WATCH: myProps.menu 变化 ---');
40145
+ console.log('新值长度:', newMenu ? newMenu.length : 0);
40146
+ // 检查此时 v-if 条件是否应该为 true
40147
+ console.log('v-if 条件现在应为 true:', newMenu && newMenu.length > 0);
40148
+ }, {
40149
+ immediate: true // 立即执行一次,观察初始状态
40144
40150
  });
40145
40151
 
40146
40152
  const style = reactive({
@@ -40160,7 +40166,7 @@ return (_ctx, _cache) => {
40160
40166
 
40161
40167
  return (openBlock(), createElementBlock(Fragment, null, [
40162
40168
  createCommentVNode(" 置顶菜单 "),
40163
- (isMenuVisible.value)
40169
+ (__props.myProps.menu && __props.myProps.menu.length > 0)
40164
40170
  ? (openBlock(), createBlock(_component_ly0Menu, {
40165
40171
  key: 0,
40166
40172
  scopeThis: __props.scopeThis,
@@ -41712,7 +41718,7 @@ onMounted(()=>{
41712
41718
  });
41713
41719
  });
41714
41720
 
41715
- watch(() => props.myProps.value,
41721
+ watch$1(() => props.myProps.value,
41716
41722
  (valNew, valOld) => {
41717
41723
  request.ly0.storpro({
41718
41724
  noSession: true,