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.
- package/dist/components/config-renderer/types.d.ts +0 -1
- package/dist/components/crud/types.d.ts +1 -1
- package/dist/{en-US-D8WJRn0W.mjs → en-US-C7oyVEYh.mjs} +2 -2
- package/dist/{en-US-D8WJRn0W.mjs.map → en-US-C7oyVEYh.mjs.map} +1 -1
- package/dist/{en-US-DXE73Bpb.js → en-US-Px1PHQVa.js} +2 -2
- package/dist/{en-US-DXE73Bpb.js.map → en-US-Px1PHQVa.js.map} +1 -1
- package/dist/{index-DqYBn3_5.js → index-C04tKvtW.js} +15 -29
- package/dist/index-C04tKvtW.js.map +1 -0
- package/dist/{index-LWDIo3Ii.mjs → index-DpNpGZyq.mjs} +15 -29
- package/dist/index-DpNpGZyq.mjs.map +1 -0
- package/dist/qidian-vue-ui.js +1 -1
- package/dist/qidian-vue-ui.mjs +1 -1
- package/dist/{zh-TW-CO33PuOU.mjs → zh-TW-CrNYqUt0.mjs} +2 -2
- package/dist/{zh-TW-CO33PuOU.mjs.map → zh-TW-CrNYqUt0.mjs.map} +1 -1
- package/dist/{zh-TW-U2_ebcB2.js → zh-TW-XpacV6TK.js} +2 -2
- package/dist/{zh-TW-U2_ebcB2.js.map → zh-TW-XpacV6TK.js.map} +1 -1
- package/package.json +1 -1
- package/dist/index-DqYBn3_5.js.map +0 -1
- package/dist/index-LWDIo3Ii.mjs.map +0 -1
|
@@ -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,
|
|
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-
|
|
12776
|
-
"en-US": () => import("./en-US-
|
|
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"
|
|
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(
|
|
14079
|
-
|
|
14080
|
-
|
|
14081
|
-
|
|
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 ?
|
|
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-
|
|
55780
|
+
//# sourceMappingURL=index-DpNpGZyq.mjs.map
|