qidian-vue-ui 1.1.4 → 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-BKTDfmC9.mjs → en-US-C7oyVEYh.mjs} +2 -2
- package/dist/{en-US-BKTDfmC9.mjs.map → en-US-C7oyVEYh.mjs.map} +1 -1
- package/dist/{en-US-CbAnYUnu.js → en-US-Px1PHQVa.js} +2 -2
- package/dist/{en-US-CbAnYUnu.js.map → en-US-Px1PHQVa.js.map} +1 -1
- package/dist/{index-CS-VK5Q3.js → index-C04tKvtW.js} +22 -37
- package/dist/index-C04tKvtW.js.map +1 -0
- package/dist/{index-yfS549bC.mjs → index-DpNpGZyq.mjs} +22 -37
- package/dist/index-DpNpGZyq.mjs.map +1 -0
- package/dist/qidian-vue-ui.css +10 -10
- package/dist/qidian-vue-ui.js +1 -1
- package/dist/qidian-vue-ui.mjs +1 -1
- package/dist/{zh-TW-WsxT2gkJ.mjs → zh-TW-CrNYqUt0.mjs} +2 -2
- package/dist/{zh-TW-WsxT2gkJ.mjs.map → zh-TW-CrNYqUt0.mjs.map} +1 -1
- package/dist/{zh-TW-DmJALjvQ.js → zh-TW-XpacV6TK.js} +2 -2
- package/dist/{zh-TW-DmJALjvQ.js.map → zh-TW-XpacV6TK.js.map} +1 -1
- package/package.json +2 -2
- package/dist/index-CS-VK5Q3.js.map +0 -1
- package/dist/index-yfS549bC.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
|
});
|
|
@@ -19189,16 +19175,15 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
19189
19175
|
}, ["stop"]))
|
|
19190
19176
|
}, {
|
|
19191
19177
|
default: withCtx(() => [(openBlock(true), createElementBlock(Fragment, null, renderList(reProps.value.rowActions, (item, index2) => {
|
|
19192
|
-
return openBlock(), createElementBlock(Fragment, {
|
|
19193
|
-
key: item.uid || index2
|
|
19194
|
-
}, [getActionSeparator(item, {
|
|
19178
|
+
return openBlock(), createElementBlock(Fragment, null, [getActionSeparator(item, {
|
|
19195
19179
|
colIndex: slotProps.colIndex,
|
|
19196
19180
|
rowIndex: slotProps.rowIndex,
|
|
19197
19181
|
index: index2
|
|
19198
19182
|
}) ? (openBlock(), createBlock(unref(Divider), {
|
|
19199
|
-
key:
|
|
19183
|
+
key: `${slotProps.colIndex}.${slotProps.rowIndex}.${index2}.divider`,
|
|
19200
19184
|
layout: "vertical"
|
|
19201
|
-
})) : createCommentVNode("", true), withDirectives(
|
|
19185
|
+
})) : createCommentVNode("", true), withDirectives((openBlock(), createBlock(unref(_sfc_main$j), {
|
|
19186
|
+
key: `${slotProps.colIndex}.${slotProps.rowIndex}.${index2}.renderer`,
|
|
19202
19187
|
context: getConfigRendererCtx(item, slotProps),
|
|
19203
19188
|
config: {
|
|
19204
19189
|
is: unref(Link),
|
|
@@ -19210,8 +19195,8 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
19210
19195
|
rowIndex: slotProps.rowIndex,
|
|
19211
19196
|
index: index2
|
|
19212
19197
|
})
|
|
19213
|
-
}, null, 8, ["context", "config", "onVIfChange"]), [[unref(vHasPermi), item.permi]])], 64);
|
|
19214
|
-
}),
|
|
19198
|
+
}, null, 8, ["context", "config", "onVIfChange"])), [[unref(vHasPermi), item.permi]])], 64);
|
|
19199
|
+
}), 256))]),
|
|
19215
19200
|
_: 2
|
|
19216
19201
|
}, 1024)) : createCommentVNode("", true)], true)]),
|
|
19217
19202
|
_: 2
|
|
@@ -19238,7 +19223,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
19238
19223
|
};
|
|
19239
19224
|
}
|
|
19240
19225
|
});
|
|
19241
|
-
const table = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["__scopeId", "data-v-
|
|
19226
|
+
const table = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["__scopeId", "data-v-99ff6f87"]]);
|
|
19242
19227
|
const _hoisted_1$3 = {
|
|
19243
19228
|
key: 0,
|
|
19244
19229
|
class: "qd-crud-list__header"
|
|
@@ -55792,4 +55777,4 @@ export {
|
|
|
55792
55777
|
_sfc_main$1 as y,
|
|
55793
55778
|
_sfc_main$b as z
|
|
55794
55779
|
};
|
|
55795
|
-
//# sourceMappingURL=index-
|
|
55780
|
+
//# sourceMappingURL=index-DpNpGZyq.mjs.map
|