qidian-vue-ui 1.1.5 → 1.1.6

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.
@@ -18,7 +18,7 @@ var __privateWrapper = (obj, member, setter, getter) => ({
18
18
  }
19
19
  });
20
20
  var _capability, _messageHandler, _port, _webWorker, _a2, _fakeWorkerId, _isWorkerDisabled, _workerPorts, _PDFWorker_instances, resolve_fn, initializeFromPort_fn, initialize_fn, setupFakeWorker_fn, _PDFWorker_static, mainThreadWorkerMessageHandler_get, _opts;
21
- import { defineComponent, useCssVars, useTemplateRef, ref, watch, nextTick, resolveDirective, createElementBlock, openBlock, createVNode, renderSlot, unref, withCtx, withDirectives, normalizeClass, createTextVNode, toDisplayString, mergeDefaults, computed, createBlock, normalizeProps, guardReactiveProps, createSlots, renderList, onActivated, onDeactivated, onBeforeUnmount, inject, shallowRef, onUnmounted, watchEffect, isRef, provide, h, resolveComponent, createCommentVNode, resolveDynamicComponent, mergeProps, vShow, toValue, getCurrentInstance, onMounted, normalizeStyle, Fragment, toRefs, reactive, createElementVNode, withModifiers, triggerRef, toRef } from "vue";
21
+ import { defineComponent, useCssVars, useTemplateRef, ref, watch, nextTick, resolveDirective, createElementBlock, openBlock, createVNode, renderSlot, unref, withCtx, withDirectives, normalizeClass, createTextVNode, toDisplayString, mergeDefaults, computed, createBlock, normalizeProps, guardReactiveProps, createSlots, renderList, onActivated, onDeactivated, onBeforeUnmount, inject, shallowRef, onUnmounted, watchEffect, isRef, provide, h, resolveComponent, createCommentVNode, resolveDynamicComponent, mergeProps, toValue, getCurrentInstance, onMounted, normalizeStyle, Fragment, toRefs, reactive, vShow, createElementVNode, withModifiers, triggerRef, toRef } from "vue";
22
22
  import { Tooltip, Card, ConfigProvider, EnhancedTable, Empty, List, Select, Loading, Dialog, FormItem, DialogPlugin, NotifyPlugin, MessagePlugin, Form, LoadingDirective, Button, Space, Divider, Link, RadioGroup, CheckboxGroup, Tag, InputNumber, Option, Upload, Popup, Badge } from "tdesign-vue-next";
23
23
  import { LoadingIcon, AddRectangleIcon, MinusRectangleIcon, SearchIcon, RefreshIcon, UnfoldLessIcon, UnfoldMoreIcon, SettingIcon, AddIcon, ChevronLeftIcon, ChevronRightIcon, ZoomOutIcon, ZoomInIcon, CenterFocusStrongFilledIcon, CenterFocusStrongIcon, UploadIcon, BrowseIcon } from "tdesign-icons-vue-next";
24
24
  const _hoisted_1$5 = { class: "qd-auto-tooltip" };
@@ -12772,8 +12772,8 @@ const QdConfigProvider = defineComponent({
12772
12772
  watchEffect(async () => {
12773
12773
  const localeMap = {
12774
12774
  "zh-CN": () => Promise.resolve().then(() => zhCN$1),
12775
- "zh-TW": () => import("./zh-TW-CO33PuOU.mjs"),
12776
- "en-US": () => import("./en-US-D8WJRn0W.mjs")
12775
+ "zh-TW": () => import("./zh-TW-CrNYqUt0.mjs"),
12776
+ "en-US": () => import("./en-US-C7oyVEYh.mjs")
12777
12777
  };
12778
12778
  const loadLocale = localeMap[props.locale] || localeMap["zh-CN"];
12779
12779
  const [err, res] = await to(
@@ -13996,26 +13996,10 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
13996
13996
  }
13997
13997
  return vIf;
13998
13998
  });
13999
- const vShowValue = computed(() => {
14000
- const vShow2 = props.config.vShow;
14001
- if (vShow2 === void 0) return true;
14002
- if (vShow2?.__qdCompute || vShow2?.__qdAsyncCompute) {
14003
- const { result } = qdUseComputeValue(
14004
- vShow2,
14005
- currentContext
14006
- );
14007
- return result.value;
14008
- }
14009
- return vShow2;
14010
- });
14011
13999
  const shouldRender = computed(() => {
14012
14000
  const value = vIfValue.value;
14013
14001
  return value !== false && value !== null && value !== void 0;
14014
14002
  });
14015
- const shouldShow = computed(() => {
14016
- const value = vShowValue.value;
14017
- return value !== false && value !== null && value !== void 0;
14018
- });
14019
14003
  const resolvedComponent = computed(() => {
14020
14004
  const { is, render } = props.config;
14021
14005
  if (render) {
@@ -14052,7 +14036,7 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
14052
14036
  }
14053
14037
  });
14054
14038
  Object.entries(config).forEach(([key, value]) => {
14055
- if (["is", "context", "slots", "vIf", "vShow"].includes(key)) return;
14039
+ if (["is", "context", "slots", "vIf"].includes(key)) return;
14056
14040
  if (key.startsWith("vModel")) return;
14057
14041
  if (key.startsWith("default")) {
14058
14042
  const propName = key.slice(7);
@@ -14075,12 +14059,16 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
14075
14059
  });
14076
14060
  return componentProps2;
14077
14061
  });
14078
- watch(shouldRender, (newV, oldV) => {
14079
- if (newV === oldV) return;
14080
- emit("vIfChange", newV);
14081
- }, { immediate: true });
14062
+ watch(
14063
+ shouldRender,
14064
+ (newV, oldV) => {
14065
+ if (newV === oldV) return;
14066
+ emit("vIfChange", newV);
14067
+ },
14068
+ { immediate: true }
14069
+ );
14082
14070
  return (_ctx, _cache) => {
14083
- return shouldRender.value ? withDirectives((openBlock(), createBlock(resolveDynamicComponent(resolvedComponent.value), normalizeProps(mergeProps({ key: 0 }, componentProps.value)), createSlots({ _: 2 }, [
14071
+ return shouldRender.value ? (openBlock(), createBlock(resolveDynamicComponent(resolvedComponent.value), normalizeProps(mergeProps({ key: 0 }, componentProps.value)), createSlots({ _: 2 }, [
14084
14072
  renderList(__props.config.slots, (slotConfig, slotName) => {
14085
14073
  return {
14086
14074
  name: slotName,
@@ -14093,9 +14081,7 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
14093
14081
  ])
14094
14082
  };
14095
14083
  })
14096
- ]), 1040)), [
14097
- [vShow, shouldShow.value]
14098
- ]) : createCommentVNode("", true);
14084
+ ]), 1040)) : createCommentVNode("", true);
14099
14085
  };
14100
14086
  }
14101
14087
  });
@@ -55791,4 +55777,4 @@ export {
55791
55777
  _sfc_main$1 as y,
55792
55778
  _sfc_main$b as z
55793
55779
  };
55794
- //# sourceMappingURL=index-LWDIo3Ii.mjs.map
55780
+ //# sourceMappingURL=index-DpNpGZyq.mjs.map