qidian-vue-ui 1.1.13 → 1.1.15
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/card/index.vue.d.ts +4 -3
- package/dist/components/card/types.d.ts +3 -1
- package/dist/{en-US-DX05w6uo.js → en-US-Bgrck3LN.js} +2 -2
- package/dist/{en-US-DX05w6uo.js.map → en-US-Bgrck3LN.js.map} +1 -1
- package/dist/{en-US-IXlrX6bM.mjs → en-US-ChQ_hdMg.mjs} +2 -2
- package/dist/{en-US-IXlrX6bM.mjs.map → en-US-ChQ_hdMg.mjs.map} +1 -1
- package/dist/{index-BMmV719r.js → index-Bfugke0s.js} +51 -23
- package/dist/index-Bfugke0s.js.map +1 -0
- package/dist/{index-CLjvEg92.mjs → index-Dd5tbuJy.mjs} +45 -17
- package/dist/index-Dd5tbuJy.mjs.map +1 -0
- package/dist/qidian-vue-ui.css +4 -1
- package/dist/qidian-vue-ui.js +8 -8
- package/dist/qidian-vue-ui.mjs +1 -1
- package/dist/{zh-TW-92jyX1ta.mjs → zh-TW-CkcVMdfn.mjs} +2 -2
- package/dist/{zh-TW-92jyX1ta.mjs.map → zh-TW-CkcVMdfn.mjs.map} +1 -1
- package/dist/{zh-TW-CfwCDp9k.js → zh-TW-DfPZpT_x.js} +2 -2
- package/dist/{zh-TW-CfwCDp9k.js.map → zh-TW-DfPZpT_x.js.map} +1 -1
- package/package.json +1 -1
- package/dist/index-BMmV719r.js.map +0 -1
- package/dist/index-CLjvEg92.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,
|
|
21
|
+
import { defineComponent, useCssVars, useTemplateRef, ref, watch, nextTick, resolveDirective, createElementBlock, openBlock, createVNode, renderSlot, unref, withCtx, withDirectives, normalizeClass, createTextVNode, toDisplayString, mergeDefaults, computed, onMounted, createBlock, mergeProps, createSlots, renderList, normalizeProps, guardReactiveProps, onActivated, onDeactivated, onBeforeUnmount, inject, shallowRef, onUnmounted, watchEffect, isRef, provide, h, resolveComponent, createCommentVNode, resolveDynamicComponent, toValue, getCurrentInstance, 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" };
|
|
@@ -110,6 +110,7 @@ const qdCardProps = {
|
|
|
110
110
|
const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
111
111
|
__name: "index",
|
|
112
112
|
props: /* @__PURE__ */ mergeDefaults({
|
|
113
|
+
onHeaderClick: { type: Function },
|
|
113
114
|
actions: {},
|
|
114
115
|
avatar: {},
|
|
115
116
|
bordered: { type: Boolean },
|
|
@@ -138,23 +139,49 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
138
139
|
}, qdCardProps),
|
|
139
140
|
setup(__props) {
|
|
140
141
|
const props = __props;
|
|
142
|
+
const cardRef = useTemplateRef("card");
|
|
141
143
|
const reProps = computed(() => {
|
|
142
|
-
const { loadingProps, ...otherOptions } = props;
|
|
144
|
+
const { loadingProps, onHeaderClick, headerClassName, ...otherOptions } = props;
|
|
145
|
+
let reHeaderClassName = headerClassName;
|
|
146
|
+
if (onHeaderClick) {
|
|
147
|
+
reHeaderClassName = reHeaderClassName ? `${reHeaderClassName} qd-card__header--click` : "qd-card__header--click";
|
|
148
|
+
}
|
|
143
149
|
return {
|
|
144
150
|
...otherOptions,
|
|
151
|
+
onHeaderClick,
|
|
152
|
+
headerClassName: reHeaderClassName,
|
|
145
153
|
loadingProps: {
|
|
146
154
|
size: "small",
|
|
147
155
|
...loadingProps
|
|
148
156
|
}
|
|
149
157
|
};
|
|
150
158
|
});
|
|
159
|
+
onMounted(() => {
|
|
160
|
+
watch(
|
|
161
|
+
() => reProps.value?.onHeaderClick,
|
|
162
|
+
(newOnHeaderClick, lastOnHeaderClick) => {
|
|
163
|
+
const headerEl = cardRef.value?.$el?.querySelector(".t-card__header");
|
|
164
|
+
if (!headerEl) return;
|
|
165
|
+
if (lastOnHeaderClick) {
|
|
166
|
+
headerEl.removeEventListener("click", lastOnHeaderClick);
|
|
167
|
+
}
|
|
168
|
+
if (newOnHeaderClick) {
|
|
169
|
+
headerEl.addEventListener("click", newOnHeaderClick);
|
|
170
|
+
}
|
|
171
|
+
},
|
|
172
|
+
{ immediate: true }
|
|
173
|
+
);
|
|
174
|
+
});
|
|
151
175
|
return (_ctx, _cache) => {
|
|
152
|
-
return openBlock(), createBlock(unref(Card),
|
|
176
|
+
return openBlock(), createBlock(unref(Card), mergeProps({
|
|
177
|
+
ref: "card",
|
|
178
|
+
class: "qd-card"
|
|
179
|
+
}, reProps.value), createSlots({ _: 2 }, [
|
|
153
180
|
renderList(_ctx.$slots, (_, name) => {
|
|
154
181
|
return {
|
|
155
182
|
name,
|
|
156
183
|
fn: withCtx((slotProps) => [
|
|
157
|
-
renderSlot(_ctx.$slots, name, normalizeProps(guardReactiveProps(slotProps)))
|
|
184
|
+
renderSlot(_ctx.$slots, name, normalizeProps(guardReactiveProps(slotProps)), void 0, true)
|
|
158
185
|
])
|
|
159
186
|
};
|
|
160
187
|
})
|
|
@@ -162,6 +189,7 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
162
189
|
};
|
|
163
190
|
}
|
|
164
191
|
});
|
|
192
|
+
const QdCard = /* @__PURE__ */ _export_sfc(_sfc_main$k, [["__scopeId", "data-v-cdb247de"]]);
|
|
165
193
|
const __vite_import_meta_env__1 = { "BASE_URL": "/", "DEV": false, "MODE": "production", "PROD": true, "SSR": false };
|
|
166
194
|
const resizeDirective = {
|
|
167
195
|
mounted(el, binding) {
|
|
@@ -12769,14 +12797,14 @@ const QdConfigProvider = defineComponent({
|
|
|
12769
12797
|
},
|
|
12770
12798
|
{ immediate: true }
|
|
12771
12799
|
);
|
|
12772
|
-
watch(mergedGlobalConfig
|
|
12800
|
+
watch(mergedGlobalConfig, (newConfig) => {
|
|
12773
12801
|
window.__QIDIAN_GLOBAL_CONFIG__ = newConfig;
|
|
12774
12802
|
}, { immediate: true });
|
|
12775
12803
|
watchEffect(async () => {
|
|
12776
12804
|
const localeMap = {
|
|
12777
12805
|
"zh-CN": () => Promise.resolve().then(() => zhCN$1),
|
|
12778
|
-
"zh-TW": () => import("./zh-TW-
|
|
12779
|
-
"en-US": () => import("./en-US-
|
|
12806
|
+
"zh-TW": () => import("./zh-TW-CkcVMdfn.mjs"),
|
|
12807
|
+
"en-US": () => import("./en-US-ChQ_hdMg.mjs")
|
|
12780
12808
|
};
|
|
12781
12809
|
const loadLocale = localeMap[props.locale] || localeMap["zh-CN"];
|
|
12782
12810
|
const [err, res] = await to(
|
|
@@ -16599,9 +16627,7 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
16599
16627
|
const { multiple, keys: keys2 } = selectOptions2;
|
|
16600
16628
|
const labelKey = keys2?.label || qdServiceSelectKeys.label;
|
|
16601
16629
|
if (multiple) {
|
|
16602
|
-
const selectedLabels = context.selectedOptions?.map(
|
|
16603
|
-
(option) => option[labelKey]
|
|
16604
|
-
).filter(Boolean) || [];
|
|
16630
|
+
const selectedLabels = context.selectedOptions?.map((option) => option[labelKey]).filter(Boolean) || [];
|
|
16605
16631
|
reValueLabel.value = selectedLabels;
|
|
16606
16632
|
} else {
|
|
16607
16633
|
reValueLabel.value = context.option?.[labelKey] || "";
|
|
@@ -16732,7 +16758,9 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
16732
16758
|
fillOptionsWatchStop = watch(
|
|
16733
16759
|
() => reProps.value.fillOptions,
|
|
16734
16760
|
(fillOpts) => {
|
|
16735
|
-
if (fillOpts?.length)
|
|
16761
|
+
if (!fillOpts?.length) return;
|
|
16762
|
+
options.value = fillOpts;
|
|
16763
|
+
triggerServiceMerged = true;
|
|
16736
16764
|
},
|
|
16737
16765
|
{ immediate: true, deep: true }
|
|
16738
16766
|
);
|
|
@@ -16789,7 +16817,7 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
16789
16817
|
};
|
|
16790
16818
|
}
|
|
16791
16819
|
});
|
|
16792
|
-
const QdServiceSelect = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["__scopeId", "data-v-
|
|
16820
|
+
const QdServiceSelect = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["__scopeId", "data-v-b3729d31"]]);
|
|
16793
16821
|
const qdDialogProps = {
|
|
16794
16822
|
width: "min(960px, 100%)",
|
|
16795
16823
|
theme: "default",
|
|
@@ -17702,7 +17730,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
17702
17730
|
});
|
|
17703
17731
|
__expose(expose);
|
|
17704
17732
|
return (_ctx, _cache) => {
|
|
17705
|
-
return openBlock(), createBlock(unref(
|
|
17733
|
+
return openBlock(), createBlock(unref(QdCard), { class: "qd-crud-search" }, createSlots({
|
|
17706
17734
|
default: withCtx(() => [
|
|
17707
17735
|
createVNode(unref(_sfc_main$b), mergeProps({
|
|
17708
17736
|
ref: "form",
|
|
@@ -19110,7 +19138,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
19110
19138
|
name: item.filterName,
|
|
19111
19139
|
fn: withCtx((slotProps) => [renderSlot(_ctx.$slots, item.originalName, normalizeProps(guardReactiveProps(slotProps)), void 0, true)])
|
|
19112
19140
|
};
|
|
19113
|
-
})]), 1040, ["data", "class"])), [[vShow, searchVisible.value]]) : createCommentVNode("", true), createVNode(unref(
|
|
19141
|
+
})]), 1040, ["data", "class"])), [[vShow, searchVisible.value]]) : createCommentVNode("", true), createVNode(unref(QdCard), {
|
|
19114
19142
|
class: "qd-crud-table__body"
|
|
19115
19143
|
}, {
|
|
19116
19144
|
default: withCtx(() => [createElementVNode("div", _hoisted_2$3, [createVNode(unref(Space), {
|
|
@@ -55139,7 +55167,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
55139
55167
|
content: path,
|
|
55140
55168
|
abbreviatedContent: path
|
|
55141
55169
|
};
|
|
55142
|
-
const abbreviatedContentSplit = res.abbreviatedContent
|
|
55170
|
+
const abbreviatedContentSplit = res.abbreviatedContent?.split("/") || [];
|
|
55143
55171
|
if (abbreviatedContentSplit.length > 2) {
|
|
55144
55172
|
res.tooltipDisabled = false;
|
|
55145
55173
|
res.abbreviatedContent = `${abbreviatedContentSplit[0]}/.../${abbreviatedContentSplit[abbreviatedContentSplit.length - 1]}`;
|
|
@@ -55803,7 +55831,7 @@ export {
|
|
|
55803
55831
|
auth as Y,
|
|
55804
55832
|
formatDuration as Z,
|
|
55805
55833
|
_typeof as _,
|
|
55806
|
-
|
|
55834
|
+
QdCard as a,
|
|
55807
55835
|
QdConfigProvider as b,
|
|
55808
55836
|
commonjsGlobal as c,
|
|
55809
55837
|
dayjs_minExports as d,
|
|
@@ -55830,4 +55858,4 @@ export {
|
|
|
55830
55858
|
_sfc_main$1 as y,
|
|
55831
55859
|
_sfc_main$b as z
|
|
55832
55860
|
};
|
|
55833
|
-
//# sourceMappingURL=index-
|
|
55861
|
+
//# sourceMappingURL=index-Dd5tbuJy.mjs.map
|