qidian-vue-ui 1.1.3 → 1.1.5
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/auto-tooltip/index.vue.d.ts +1 -0
- package/dist/components/auto-tooltip/types.d.ts +1 -0
- package/dist/components/config-provider/config.d.ts +1 -0
- package/dist/components/config-provider/index.d.ts +13 -0
- package/dist/components/config-provider/types.d.ts +5 -0
- package/dist/components/dialog/form.vue.d.ts +3 -3
- package/dist/components/index.d.ts +1 -0
- package/dist/components/org/index.d.ts +2 -0
- package/dist/components/org/select/index.vue.d.ts +28 -0
- package/dist/components/org/select/props.d.ts +22 -0
- package/dist/components/org/select/types.d.ts +22 -0
- package/dist/components/service/select.vue.d.ts +7 -2
- package/dist/components/service/types.d.ts +5 -8
- package/dist/{en-US-CjCyqzcw.mjs → en-US-D8WJRn0W.mjs} +2 -2
- package/dist/{en-US-CjCyqzcw.mjs.map → en-US-D8WJRn0W.mjs.map} +1 -1
- package/dist/{en-US-y9tzQi2g.js → en-US-DXE73Bpb.js} +2 -2
- package/dist/{en-US-y9tzQi2g.js.map → en-US-DXE73Bpb.js.map} +1 -1
- package/dist/{index-y0rs3mPR.js → index-DqYBn3_5.js} +439 -105
- package/dist/index-DqYBn3_5.js.map +1 -0
- package/dist/{index-Dhb_qv4a.mjs → index-LWDIo3Ii.mjs} +464 -130
- package/dist/index-LWDIo3Ii.mjs.map +1 -0
- package/dist/qidian-vue-ui.css +32 -19
- package/dist/qidian-vue-ui.js +7 -6
- package/dist/qidian-vue-ui.js.map +1 -1
- package/dist/qidian-vue-ui.mjs +33 -32
- package/dist/{zh-TW-BJwmP2NG.mjs → zh-TW-CO33PuOU.mjs} +2 -2
- package/dist/{zh-TW-BJwmP2NG.mjs.map → zh-TW-CO33PuOU.mjs.map} +1 -1
- package/dist/{zh-TW-B3lQU0Yb.js → zh-TW-U2_ebcB2.js} +2 -2
- package/dist/{zh-TW-B3lQU0Yb.js.map → zh-TW-U2_ebcB2.js.map} +1 -1
- package/package.json +2 -2
- package/dist/index-Dhb_qv4a.mjs.map +0 -1
- package/dist/index-y0rs3mPR.js.map +0 -1
|
@@ -23,12 +23,12 @@ const vue = require("vue");
|
|
|
23
23
|
const tdesignVueNext = require("tdesign-vue-next");
|
|
24
24
|
const tdesignIconsVueNext = require("tdesign-icons-vue-next");
|
|
25
25
|
var _documentCurrentScript = typeof document !== "undefined" ? document.currentScript : null;
|
|
26
|
-
const _hoisted_1$
|
|
27
|
-
const _hoisted_2$
|
|
26
|
+
const _hoisted_1$5 = { class: "qd-auto-tooltip" };
|
|
27
|
+
const _hoisted_2$4 = {
|
|
28
28
|
key: 0,
|
|
29
29
|
class: "pre-wrap"
|
|
30
30
|
};
|
|
31
|
-
const _sfc_main$
|
|
31
|
+
const _sfc_main$l = /* @__PURE__ */ vue.defineComponent({
|
|
32
32
|
...{
|
|
33
33
|
name: "QdAutoTooltip"
|
|
34
34
|
},
|
|
@@ -37,12 +37,13 @@ const _sfc_main$k = /* @__PURE__ */ vue.defineComponent({
|
|
|
37
37
|
content: {},
|
|
38
38
|
preWrap: { type: Boolean },
|
|
39
39
|
ellipsis: { default: 1 },
|
|
40
|
+
tooltipDisabled: { type: Boolean, default: void 0 },
|
|
40
41
|
placement: {},
|
|
41
42
|
attach: { default: "body" }
|
|
42
43
|
},
|
|
43
44
|
setup(__props) {
|
|
44
45
|
vue.useCssVars((_ctx) => ({
|
|
45
|
-
"
|
|
46
|
+
"v07d46710": _ctx.ellipsis
|
|
46
47
|
}));
|
|
47
48
|
const props = __props;
|
|
48
49
|
const contentRef = vue.useTemplateRef("content");
|
|
@@ -60,16 +61,16 @@ const _sfc_main$k = /* @__PURE__ */ vue.defineComponent({
|
|
|
60
61
|
);
|
|
61
62
|
return (_ctx, _cache) => {
|
|
62
63
|
const _directive_resize = vue.resolveDirective("resize");
|
|
63
|
-
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$
|
|
64
|
+
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$5, [
|
|
64
65
|
vue.createVNode(vue.unref(tdesignVueNext.Tooltip), {
|
|
65
66
|
attach: __props.attach,
|
|
66
67
|
placement: __props.placement,
|
|
67
|
-
disabled: !isEllipsis.value,
|
|
68
|
+
disabled: __props.tooltipDisabled ?? !isEllipsis.value,
|
|
68
69
|
"destroy-on-close": ""
|
|
69
70
|
}, {
|
|
70
71
|
content: vue.withCtx(() => [
|
|
71
72
|
vue.renderSlot(_ctx.$slots, "content", {}, () => [
|
|
72
|
-
__props.preWrap ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_2$
|
|
73
|
+
__props.preWrap ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_2$4, [
|
|
73
74
|
vue.renderSlot(_ctx.$slots, "default", {}, () => [
|
|
74
75
|
vue.createTextVNode(vue.toDisplayString(__props.content), 1)
|
|
75
76
|
], true)
|
|
@@ -104,11 +105,11 @@ const _export_sfc = (sfc, props) => {
|
|
|
104
105
|
}
|
|
105
106
|
return target;
|
|
106
107
|
};
|
|
107
|
-
const
|
|
108
|
+
const QdAutoTooltip = /* @__PURE__ */ _export_sfc(_sfc_main$l, [["__scopeId", "data-v-41eb5480"]]);
|
|
108
109
|
const qdCardProps = {
|
|
109
110
|
bordered: false
|
|
110
111
|
};
|
|
111
|
-
const _sfc_main$
|
|
112
|
+
const _sfc_main$k = /* @__PURE__ */ vue.defineComponent({
|
|
112
113
|
__name: "index",
|
|
113
114
|
props: /* @__PURE__ */ vue.mergeDefaults({
|
|
114
115
|
actions: {},
|
|
@@ -1278,7 +1279,7 @@ function usePagination(service) {
|
|
|
1278
1279
|
};
|
|
1279
1280
|
const injectedGlobalOptions = vue.inject(GLOBAL_OPTIONS_PROVIDE_KEY, {});
|
|
1280
1281
|
const {
|
|
1281
|
-
pagination,
|
|
1282
|
+
pagination: pagination2,
|
|
1282
1283
|
...restOptions
|
|
1283
1284
|
} = options;
|
|
1284
1285
|
const {
|
|
@@ -1286,7 +1287,7 @@ function usePagination(service) {
|
|
|
1286
1287
|
pageSizeKey,
|
|
1287
1288
|
totalKey,
|
|
1288
1289
|
totalPageKey
|
|
1289
|
-
} = merge$1(defaultPaginationOptions, getGlobalOptions().pagination || {}, injectedGlobalOptions.pagination || {},
|
|
1290
|
+
} = merge$1(defaultPaginationOptions, getGlobalOptions().pagination || {}, injectedGlobalOptions.pagination || {}, pagination2 || {});
|
|
1290
1291
|
const finallyOptions = merge$1({
|
|
1291
1292
|
defaultParams: [{
|
|
1292
1293
|
[currentKey]: 1,
|
|
@@ -12373,7 +12374,7 @@ function useServiceLoadMore({
|
|
|
12373
12374
|
manual,
|
|
12374
12375
|
transformParams,
|
|
12375
12376
|
transformRes,
|
|
12376
|
-
pagination,
|
|
12377
|
+
pagination: pagination2,
|
|
12377
12378
|
onBefore,
|
|
12378
12379
|
onAfter,
|
|
12379
12380
|
onSuccess,
|
|
@@ -12397,7 +12398,7 @@ function useServiceLoadMore({
|
|
|
12397
12398
|
} = useLoadMore(
|
|
12398
12399
|
async (params) => {
|
|
12399
12400
|
const res = { list: [], page: 1, total: 0 };
|
|
12400
|
-
const paginationV = vue.unref(
|
|
12401
|
+
const paginationV = vue.unref(pagination2);
|
|
12401
12402
|
const currentParams = paginationV !== false ? {
|
|
12402
12403
|
pageNum: isEmpty(params?.page) ? 1 : params.page + 1,
|
|
12403
12404
|
pageSize: params?.size ?? paginationV?.pageSize ?? 30
|
|
@@ -12497,7 +12498,7 @@ function useServicePagination({
|
|
|
12497
12498
|
pollingInterval,
|
|
12498
12499
|
transformParams,
|
|
12499
12500
|
transformRes,
|
|
12500
|
-
pagination,
|
|
12501
|
+
pagination: pagination2,
|
|
12501
12502
|
onBefore,
|
|
12502
12503
|
onAfter,
|
|
12503
12504
|
onSuccess,
|
|
@@ -12527,7 +12528,7 @@ function useServicePagination({
|
|
|
12527
12528
|
} = usePagination(
|
|
12528
12529
|
async (params2) => {
|
|
12529
12530
|
const res = { list: [], page: 1, total: 0 };
|
|
12530
|
-
const paginationV = vue.unref(
|
|
12531
|
+
const paginationV = vue.unref(pagination2);
|
|
12531
12532
|
const currentParams = paginationV !== false ? {
|
|
12532
12533
|
pageNum: params2?.page ?? 1,
|
|
12533
12534
|
pageSize: params2?.size ?? paginationV?.pageSize ?? 10
|
|
@@ -12708,6 +12709,7 @@ function useTimer(type = "timeout") {
|
|
|
12708
12709
|
const PROVIDE_USER = Symbol("QdUser");
|
|
12709
12710
|
const PROVIDE_DICT = Symbol("QdDict");
|
|
12710
12711
|
const PROVIDE_UPLOAD = Symbol("QdUpload");
|
|
12712
|
+
const PROVIDE_ORG = Symbol("QdOrg");
|
|
12711
12713
|
const PROVIDE_GLOBAL_CONFIG = Symbol("QdGlobalConfig");
|
|
12712
12714
|
const QdConfigProvider = vue.defineComponent({
|
|
12713
12715
|
name: "QdConfigProvider",
|
|
@@ -12728,6 +12730,10 @@ const QdConfigProvider = vue.defineComponent({
|
|
|
12728
12730
|
type: Object,
|
|
12729
12731
|
default: void 0
|
|
12730
12732
|
},
|
|
12733
|
+
org: {
|
|
12734
|
+
type: Object,
|
|
12735
|
+
default: void 0
|
|
12736
|
+
},
|
|
12731
12737
|
agentChat: {
|
|
12732
12738
|
type: Object,
|
|
12733
12739
|
default: void 0
|
|
@@ -12748,9 +12754,11 @@ const QdConfigProvider = vue.defineComponent({
|
|
|
12748
12754
|
const user = vue.computed(() => props.user);
|
|
12749
12755
|
const dict = vue.computed(() => props.dict);
|
|
12750
12756
|
const upload = vue.computed(() => props.upload);
|
|
12757
|
+
const org = vue.computed(() => props.org);
|
|
12751
12758
|
vue.provide(PROVIDE_USER, user);
|
|
12752
12759
|
vue.provide(PROVIDE_DICT, dict);
|
|
12753
12760
|
vue.provide(PROVIDE_UPLOAD, upload);
|
|
12761
|
+
vue.provide(PROVIDE_ORG, org);
|
|
12754
12762
|
vue.provide(PROVIDE_GLOBAL_CONFIG, mergedGlobalConfig);
|
|
12755
12763
|
vue.watch(
|
|
12756
12764
|
() => [props.user, props.dict, props.agentChat],
|
|
@@ -12766,8 +12774,8 @@ const QdConfigProvider = vue.defineComponent({
|
|
|
12766
12774
|
vue.watchEffect(async () => {
|
|
12767
12775
|
const localeMap = {
|
|
12768
12776
|
"zh-CN": () => Promise.resolve().then(() => zhCN$1),
|
|
12769
|
-
"zh-TW": () => Promise.resolve().then(() => require("./zh-TW-
|
|
12770
|
-
"en-US": () => Promise.resolve().then(() => require("./en-US-
|
|
12777
|
+
"zh-TW": () => Promise.resolve().then(() => require("./zh-TW-U2_ebcB2.js")),
|
|
12778
|
+
"en-US": () => Promise.resolve().then(() => require("./en-US-DXE73Bpb.js"))
|
|
12771
12779
|
};
|
|
12772
12780
|
const loadLocale = localeMap[props.locale] || localeMap["zh-CN"];
|
|
12773
12781
|
const [err, res] = await to(
|
|
@@ -13964,7 +13972,7 @@ function resolveVModelBinding(context, vModel, defaultValue) {
|
|
|
13964
13972
|
}
|
|
13965
13973
|
return bindings;
|
|
13966
13974
|
}
|
|
13967
|
-
const _sfc_main$
|
|
13975
|
+
const _sfc_main$j = /* @__PURE__ */ vue.defineComponent({
|
|
13968
13976
|
...{
|
|
13969
13977
|
name: "QdConfigRenderer"
|
|
13970
13978
|
},
|
|
@@ -14079,7 +14087,7 @@ const _sfc_main$i = /* @__PURE__ */ vue.defineComponent({
|
|
|
14079
14087
|
return {
|
|
14080
14088
|
name: slotName,
|
|
14081
14089
|
fn: vue.withCtx((slotProps) => [
|
|
14082
|
-
slotConfig ? (vue.openBlock(), vue.createBlock(_sfc_main$
|
|
14090
|
+
slotConfig ? (vue.openBlock(), vue.createBlock(_sfc_main$j, vue.mergeProps({
|
|
14083
14091
|
key: 0,
|
|
14084
14092
|
config: slotConfig,
|
|
14085
14093
|
context: slotConfig.context || currentContext.value
|
|
@@ -14282,7 +14290,10 @@ const qdServiceSelectProps = {
|
|
|
14282
14290
|
convStr: false
|
|
14283
14291
|
};
|
|
14284
14292
|
const qdServiceSelectKeys = {
|
|
14285
|
-
value: "value"
|
|
14293
|
+
value: "value",
|
|
14294
|
+
label: "label",
|
|
14295
|
+
disabled: "disabled",
|
|
14296
|
+
children: "children"
|
|
14286
14297
|
};
|
|
14287
14298
|
const qdServiceListProps = {
|
|
14288
14299
|
data: () => []
|
|
@@ -15160,7 +15171,7 @@ function useConfig(key, componentLocale) {
|
|
|
15160
15171
|
global: globalConfig
|
|
15161
15172
|
};
|
|
15162
15173
|
}
|
|
15163
|
-
const _sfc_main$
|
|
15174
|
+
const _sfc_main$i = /* @__PURE__ */ vue.defineComponent({
|
|
15164
15175
|
...{
|
|
15165
15176
|
name: "QdServiceTable"
|
|
15166
15177
|
},
|
|
@@ -15479,7 +15490,7 @@ const _sfc_main$h = /* @__PURE__ */ vue.defineComponent({
|
|
|
15479
15490
|
manual,
|
|
15480
15491
|
transformParams,
|
|
15481
15492
|
transformRes,
|
|
15482
|
-
pagination,
|
|
15493
|
+
pagination: pagination2,
|
|
15483
15494
|
cacheKey,
|
|
15484
15495
|
cacheTime,
|
|
15485
15496
|
pollingInterval,
|
|
@@ -15668,7 +15679,7 @@ const _sfc_main$h = /* @__PURE__ */ vue.defineComponent({
|
|
|
15668
15679
|
manual,
|
|
15669
15680
|
transformParams,
|
|
15670
15681
|
transformRes: reTransformRes,
|
|
15671
|
-
pagination,
|
|
15682
|
+
pagination: pagination2,
|
|
15672
15683
|
cacheKey,
|
|
15673
15684
|
cacheTime,
|
|
15674
15685
|
pollingInterval,
|
|
@@ -15821,8 +15832,8 @@ const _sfc_main$h = /* @__PURE__ */ vue.defineComponent({
|
|
|
15821
15832
|
};
|
|
15822
15833
|
}
|
|
15823
15834
|
});
|
|
15824
|
-
const QdServiceTable = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
15825
|
-
const _sfc_main$
|
|
15835
|
+
const QdServiceTable = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["__scopeId", "data-v-5a4b2682"]]);
|
|
15836
|
+
const _sfc_main$h = /* @__PURE__ */ vue.defineComponent({
|
|
15826
15837
|
...{
|
|
15827
15838
|
name: "QdServiceList"
|
|
15828
15839
|
},
|
|
@@ -15863,7 +15874,7 @@ const _sfc_main$g = /* @__PURE__ */ vue.defineComponent({
|
|
|
15863
15874
|
manual,
|
|
15864
15875
|
transformParams,
|
|
15865
15876
|
transformRes,
|
|
15866
|
-
pagination,
|
|
15877
|
+
pagination: pagination2,
|
|
15867
15878
|
onBefore,
|
|
15868
15879
|
onAfter,
|
|
15869
15880
|
onSuccess,
|
|
@@ -15887,7 +15898,7 @@ const _sfc_main$g = /* @__PURE__ */ vue.defineComponent({
|
|
|
15887
15898
|
manual,
|
|
15888
15899
|
transformParams,
|
|
15889
15900
|
transformRes,
|
|
15890
|
-
pagination,
|
|
15901
|
+
pagination: pagination2,
|
|
15891
15902
|
onBefore,
|
|
15892
15903
|
onAfter,
|
|
15893
15904
|
onSuccess,
|
|
@@ -16047,7 +16058,7 @@ const _sfc_main$g = /* @__PURE__ */ vue.defineComponent({
|
|
|
16047
16058
|
};
|
|
16048
16059
|
}
|
|
16049
16060
|
});
|
|
16050
|
-
const QdServiceList = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
16061
|
+
const QdServiceList = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["__scopeId", "data-v-d790966c"]]);
|
|
16051
16062
|
const qdDictConvStrSeparator = ",";
|
|
16052
16063
|
const qdDictSelectProps = {
|
|
16053
16064
|
showArrow: true,
|
|
@@ -16080,7 +16091,7 @@ const qdDictTagProps = {
|
|
|
16080
16091
|
options: void 0,
|
|
16081
16092
|
strict: false
|
|
16082
16093
|
};
|
|
16083
|
-
const _sfc_main$
|
|
16094
|
+
const _sfc_main$g = /* @__PURE__ */ vue.defineComponent({
|
|
16084
16095
|
...{
|
|
16085
16096
|
name: "QdServiceSelect"
|
|
16086
16097
|
},
|
|
@@ -16088,6 +16099,7 @@ const _sfc_main$f = /* @__PURE__ */ vue.defineComponent({
|
|
|
16088
16099
|
props: /* @__PURE__ */ vue.mergeDefaults({
|
|
16089
16100
|
defaultSelectFirst: { type: Boolean },
|
|
16090
16101
|
convStr: { type: [Boolean, String] },
|
|
16102
|
+
valueLabel: {},
|
|
16091
16103
|
searchKey: {},
|
|
16092
16104
|
fillOptions: {},
|
|
16093
16105
|
transformParams: { type: Function },
|
|
@@ -16155,11 +16167,11 @@ const _sfc_main$f = /* @__PURE__ */ vue.defineComponent({
|
|
|
16155
16167
|
transformRes: { type: Function },
|
|
16156
16168
|
pagination: {}
|
|
16157
16169
|
}, qdServiceSelectProps),
|
|
16158
|
-
emits: ["update:modelValue", "update:inputValue", "update:popupVisible", "update:options"],
|
|
16170
|
+
emits: ["update:modelValue", "update:valueLabel", "update:inputValue", "update:popupVisible", "update:options"],
|
|
16159
16171
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
16160
16172
|
const props = __props;
|
|
16161
16173
|
const emit = __emit;
|
|
16162
|
-
const { modelValue, inputValue, popupVisible, options } = /* @__PURE__ */ useVModels(props, emit, {
|
|
16174
|
+
const { modelValue, valueLabel, inputValue, popupVisible, options } = /* @__PURE__ */ useVModels(props, emit, {
|
|
16163
16175
|
passive: true
|
|
16164
16176
|
});
|
|
16165
16177
|
const reModelValue = vue.computed({
|
|
@@ -16191,6 +16203,35 @@ const _sfc_main$f = /* @__PURE__ */ vue.defineComponent({
|
|
|
16191
16203
|
}
|
|
16192
16204
|
}
|
|
16193
16205
|
});
|
|
16206
|
+
const reValueLabel = vue.computed({
|
|
16207
|
+
get: () => {
|
|
16208
|
+
const { convStr, selectOptions } = reProps.value;
|
|
16209
|
+
const { multiple, valueType } = selectOptions;
|
|
16210
|
+
if (!multiple || valueType === "object") return valueLabel.value;
|
|
16211
|
+
if (isEmpty(valueLabel.value)) return [];
|
|
16212
|
+
if (typeof valueLabel.value === "string") {
|
|
16213
|
+
return valueLabel.value.split(
|
|
16214
|
+
(typeof convStr === "string" ? convStr : "") || qdDictConvStrSeparator
|
|
16215
|
+
);
|
|
16216
|
+
}
|
|
16217
|
+
return valueLabel.value;
|
|
16218
|
+
},
|
|
16219
|
+
set: (val) => {
|
|
16220
|
+
const { convStr, selectOptions } = reProps.value;
|
|
16221
|
+
const { multiple, valueType } = selectOptions;
|
|
16222
|
+
if (!multiple || valueType === "object") {
|
|
16223
|
+
valueLabel.value = val;
|
|
16224
|
+
return;
|
|
16225
|
+
}
|
|
16226
|
+
if (convStr && Array.isArray(val)) {
|
|
16227
|
+
valueLabel.value = val.join(
|
|
16228
|
+
(typeof convStr === "string" ? convStr : "") || qdDictConvStrSeparator
|
|
16229
|
+
);
|
|
16230
|
+
} else {
|
|
16231
|
+
valueLabel.value = val;
|
|
16232
|
+
}
|
|
16233
|
+
}
|
|
16234
|
+
});
|
|
16194
16235
|
const { t } = useConfig("loading");
|
|
16195
16236
|
const search = vue.ref("");
|
|
16196
16237
|
const autofocus = vue.ref(false);
|
|
@@ -16200,7 +16241,7 @@ const _sfc_main$f = /* @__PURE__ */ vue.defineComponent({
|
|
|
16200
16241
|
manual,
|
|
16201
16242
|
transformParams,
|
|
16202
16243
|
transformRes,
|
|
16203
|
-
pagination,
|
|
16244
|
+
pagination: pagination2,
|
|
16204
16245
|
onBefore,
|
|
16205
16246
|
onAfter,
|
|
16206
16247
|
onSuccess,
|
|
@@ -16214,6 +16255,7 @@ const _sfc_main$f = /* @__PURE__ */ vue.defineComponent({
|
|
|
16214
16255
|
inputValue: inputValue2,
|
|
16215
16256
|
popupVisible: inPopupVisible,
|
|
16216
16257
|
options: inOptions,
|
|
16258
|
+
valueLabel: valueLabel2,
|
|
16217
16259
|
popupProps,
|
|
16218
16260
|
filterable,
|
|
16219
16261
|
filter,
|
|
@@ -16221,6 +16263,7 @@ const _sfc_main$f = /* @__PURE__ */ vue.defineComponent({
|
|
|
16221
16263
|
onSearch,
|
|
16222
16264
|
onPopupVisibleChange,
|
|
16223
16265
|
onFocus,
|
|
16266
|
+
onChange,
|
|
16224
16267
|
...selectOptions
|
|
16225
16268
|
} = props;
|
|
16226
16269
|
const rePopupProps = popupProps || {};
|
|
@@ -16248,6 +16291,20 @@ const _sfc_main$f = /* @__PURE__ */ vue.defineComponent({
|
|
|
16248
16291
|
popupVisible.value = true;
|
|
16249
16292
|
}
|
|
16250
16293
|
};
|
|
16294
|
+
const reOnChange = (value, context) => {
|
|
16295
|
+
onChange?.(value, context);
|
|
16296
|
+
const { selectOptions: selectOptions2 } = reProps.value;
|
|
16297
|
+
const { multiple, keys: keys2 } = selectOptions2;
|
|
16298
|
+
const labelKey = keys2?.label || qdServiceSelectKeys.label;
|
|
16299
|
+
if (multiple) {
|
|
16300
|
+
const selectedLabels = context.selectedOptions?.map(
|
|
16301
|
+
(option) => option[labelKey]
|
|
16302
|
+
).filter(Boolean) || [];
|
|
16303
|
+
reValueLabel.value = selectedLabels;
|
|
16304
|
+
} else {
|
|
16305
|
+
reValueLabel.value = context.option?.[labelKey] || "";
|
|
16306
|
+
}
|
|
16307
|
+
};
|
|
16251
16308
|
const reSearchKey = toArr(searchKey);
|
|
16252
16309
|
const mergedTransformParams = (params) => {
|
|
16253
16310
|
const searchData = {};
|
|
@@ -16274,14 +16331,15 @@ const _sfc_main$f = /* @__PURE__ */ vue.defineComponent({
|
|
|
16274
16331
|
popupProps: rePopupProps,
|
|
16275
16332
|
onSearch: reOnSearch,
|
|
16276
16333
|
onPopupVisibleChange: reOnPopupVisibleChange,
|
|
16277
|
-
|
|
16334
|
+
onFocus: reOnFocus,
|
|
16335
|
+
onChange: reOnChange
|
|
16278
16336
|
},
|
|
16279
16337
|
serviceOptions: {
|
|
16280
16338
|
service,
|
|
16281
16339
|
manual,
|
|
16282
16340
|
transformParams: mergedTransformParams,
|
|
16283
16341
|
transformRes,
|
|
16284
|
-
pagination,
|
|
16342
|
+
pagination: pagination2,
|
|
16285
16343
|
onBefore,
|
|
16286
16344
|
onAfter,
|
|
16287
16345
|
onSuccess,
|
|
@@ -16289,6 +16347,7 @@ const _sfc_main$f = /* @__PURE__ */ vue.defineComponent({
|
|
|
16289
16347
|
},
|
|
16290
16348
|
models: {
|
|
16291
16349
|
modelValue: modelValue2,
|
|
16350
|
+
valueLabel: valueLabel2,
|
|
16292
16351
|
inputValue: inputValue2,
|
|
16293
16352
|
popupVisible: inPopupVisible,
|
|
16294
16353
|
options: inOptions
|
|
@@ -16395,10 +16454,12 @@ const _sfc_main$f = /* @__PURE__ */ vue.defineComponent({
|
|
|
16395
16454
|
"onUpdate:input": _cache[1] || (_cache[1] = ($event) => vue.isRef(inputValue) ? inputValue.value = $event : null),
|
|
16396
16455
|
"popup-visible": vue.unref(popupVisible),
|
|
16397
16456
|
"onUpdate:popupVisible": _cache[2] || (_cache[2] = ($event) => vue.isRef(popupVisible) ? popupVisible.value = $event : null),
|
|
16398
|
-
options: vue.unref(options),
|
|
16399
16457
|
autofocus: autofocus.value,
|
|
16400
16458
|
loading: selectLoad.value
|
|
16401
|
-
},
|
|
16459
|
+
}, {
|
|
16460
|
+
...reProps.value.selectOptions,
|
|
16461
|
+
..._ctx.$slots.default ? {} : { options: vue.unref(options) }
|
|
16462
|
+
}), vue.createSlots({
|
|
16402
16463
|
"panel-bottom-content": vue.withCtx(() => [
|
|
16403
16464
|
vue.unref(loading) && !vue.unref(firstLoad) ? (vue.openBlock(), vue.createBlock(vue.unref(tdesignVueNext.Loading), {
|
|
16404
16465
|
key: 0,
|
|
@@ -16407,6 +16468,11 @@ const _sfc_main$f = /* @__PURE__ */ vue.defineComponent({
|
|
|
16407
16468
|
text: vue.unref(t)("text")
|
|
16408
16469
|
}, null, 8, ["text"])) : _ctx.$slots["panel-bottom-content"] ? vue.renderSlot(_ctx.$slots, "panel-bottom-content", { key: 1 }, void 0, true) : vue.createCommentVNode("", true)
|
|
16409
16470
|
]),
|
|
16471
|
+
default: vue.withCtx(() => [
|
|
16472
|
+
vue.renderSlot(_ctx.$slots, "default", {
|
|
16473
|
+
options: vue.unref(options)
|
|
16474
|
+
}, void 0, true)
|
|
16475
|
+
]),
|
|
16410
16476
|
_: 2
|
|
16411
16477
|
}, [
|
|
16412
16478
|
vue.renderList(vue.unref(extractSlotsWithoutPrefix)(_ctx.$slots, "panel-bottom"), (_, name) => {
|
|
@@ -16417,11 +16483,11 @@ const _sfc_main$f = /* @__PURE__ */ vue.defineComponent({
|
|
|
16417
16483
|
])
|
|
16418
16484
|
};
|
|
16419
16485
|
})
|
|
16420
|
-
]), 1040, ["modelValue", "input", "popup-visible", "
|
|
16486
|
+
]), 1040, ["modelValue", "input", "popup-visible", "autofocus", "loading"]);
|
|
16421
16487
|
};
|
|
16422
16488
|
}
|
|
16423
16489
|
});
|
|
16424
|
-
const
|
|
16490
|
+
const QdServiceSelect = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["__scopeId", "data-v-3096e760"]]);
|
|
16425
16491
|
const qdDialogProps = {
|
|
16426
16492
|
width: "min(960px, 100%)",
|
|
16427
16493
|
theme: "default",
|
|
@@ -16442,7 +16508,7 @@ const qdDialogFormProps = {
|
|
|
16442
16508
|
...qdFormProps,
|
|
16443
16509
|
wrapper: () => qdDialogProps
|
|
16444
16510
|
};
|
|
16445
|
-
const _sfc_main$
|
|
16511
|
+
const _sfc_main$f = /* @__PURE__ */ vue.defineComponent({
|
|
16446
16512
|
...{
|
|
16447
16513
|
name: "QdDialog"
|
|
16448
16514
|
},
|
|
@@ -16562,7 +16628,7 @@ const DEFAULT_BREAKPOINTS = {
|
|
|
16562
16628
|
};
|
|
16563
16629
|
const DEFAULT_COL = 1;
|
|
16564
16630
|
const DEFAULT_ROW = 1;
|
|
16565
|
-
const _sfc_main$
|
|
16631
|
+
const _sfc_main$e = /* @__PURE__ */ vue.defineComponent({
|
|
16566
16632
|
...{
|
|
16567
16633
|
name: "QdGrid"
|
|
16568
16634
|
},
|
|
@@ -16613,8 +16679,8 @@ const _sfc_main$d = /* @__PURE__ */ vue.defineComponent({
|
|
|
16613
16679
|
};
|
|
16614
16680
|
}
|
|
16615
16681
|
});
|
|
16616
|
-
const QdGrid = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
16617
|
-
const _sfc_main$
|
|
16682
|
+
const QdGrid = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["__scopeId", "data-v-f53624a2"]]);
|
|
16683
|
+
const _sfc_main$d = /* @__PURE__ */ vue.defineComponent({
|
|
16618
16684
|
...{
|
|
16619
16685
|
name: "QdGridItem"
|
|
16620
16686
|
},
|
|
@@ -16680,8 +16746,8 @@ const _sfc_main$c = /* @__PURE__ */ vue.defineComponent({
|
|
|
16680
16746
|
};
|
|
16681
16747
|
}
|
|
16682
16748
|
});
|
|
16683
|
-
const QdGridItem = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
16684
|
-
const _sfc_main$
|
|
16749
|
+
const QdGridItem = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["__scopeId", "data-v-f8a13f89"]]);
|
|
16750
|
+
const _sfc_main$c = /* @__PURE__ */ vue.defineComponent({
|
|
16685
16751
|
...{
|
|
16686
16752
|
name: "QdFormItem"
|
|
16687
16753
|
},
|
|
@@ -16724,7 +16790,7 @@ const _sfc_main$b = /* @__PURE__ */ vue.defineComponent({
|
|
|
16724
16790
|
reRules.push({ required: true, message: `${messagePrefix}${formItemOptions.label}` });
|
|
16725
16791
|
}
|
|
16726
16792
|
}
|
|
16727
|
-
component.placeholder = component.placeholder ?? `${messagePrefix}${formItemOptions.label}
|
|
16793
|
+
component.placeholder = component.placeholder ?? (compName.search("picker") > -1 ? "" : `${messagePrefix}${formItemOptions.label}`);
|
|
16728
16794
|
component.clearable = component.clearable ?? (required ? false : props.defaultClearable ?? true);
|
|
16729
16795
|
}
|
|
16730
16796
|
return {
|
|
@@ -16745,7 +16811,7 @@ const _sfc_main$b = /* @__PURE__ */ vue.defineComponent({
|
|
|
16745
16811
|
crudMode: reProps.value.formItemOptions.crudMode,
|
|
16746
16812
|
context: __props.context
|
|
16747
16813
|
}, () => [
|
|
16748
|
-
reProps.value.configRendererOptions.config ? (vue.openBlock(), vue.createBlock(vue.unref(_sfc_main$
|
|
16814
|
+
reProps.value.configRendererOptions.config ? (vue.openBlock(), vue.createBlock(vue.unref(_sfc_main$j), vue.mergeProps({
|
|
16749
16815
|
key: 0,
|
|
16750
16816
|
class: "qd-form-item__component"
|
|
16751
16817
|
}, reProps.value.configRendererOptions), null, 16)) : vue.createCommentVNode("", true)
|
|
@@ -16759,7 +16825,7 @@ const _sfc_main$b = /* @__PURE__ */ vue.defineComponent({
|
|
|
16759
16825
|
};
|
|
16760
16826
|
}
|
|
16761
16827
|
});
|
|
16762
|
-
const QdFormItem = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
16828
|
+
const QdFormItem = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["__scopeId", "data-v-b295e48f"]]);
|
|
16763
16829
|
const PROVIDE_FORM_ADD_BEFORE_SUBMIT_QUEUE = Symbol("QdFormAddBeforeSubmitQueue");
|
|
16764
16830
|
function useModal() {
|
|
16765
16831
|
const { t } = useConfig("modal");
|
|
@@ -16933,7 +16999,7 @@ function useModal() {
|
|
|
16933
16999
|
confirm
|
|
16934
17000
|
};
|
|
16935
17001
|
}
|
|
16936
|
-
const _sfc_main$
|
|
17002
|
+
const _sfc_main$b = /* @__PURE__ */ vue.defineComponent({
|
|
16937
17003
|
...{
|
|
16938
17004
|
name: "QdForm"
|
|
16939
17005
|
},
|
|
@@ -17106,7 +17172,7 @@ const _sfc_main$a = /* @__PURE__ */ vue.defineComponent({
|
|
|
17106
17172
|
};
|
|
17107
17173
|
}
|
|
17108
17174
|
});
|
|
17109
|
-
const _sfc_main$
|
|
17175
|
+
const _sfc_main$a = /* @__PURE__ */ vue.defineComponent({
|
|
17110
17176
|
__name: "form",
|
|
17111
17177
|
props: /* @__PURE__ */ vue.mergeDefaults({
|
|
17112
17178
|
onSubmit: { type: Function },
|
|
@@ -17212,12 +17278,12 @@ const _sfc_main$9 = /* @__PURE__ */ vue.defineComponent({
|
|
|
17212
17278
|
};
|
|
17213
17279
|
__expose(expose);
|
|
17214
17280
|
return (_ctx, _cache) => {
|
|
17215
|
-
return vue.openBlock(), vue.createBlock(_sfc_main$
|
|
17281
|
+
return vue.openBlock(), vue.createBlock(_sfc_main$f, vue.mergeProps({
|
|
17216
17282
|
visible: vue.unref(visible),
|
|
17217
17283
|
"onUpdate:visible": _cache[1] || (_cache[1] = ($event) => vue.isRef(visible) ? visible.value = $event : null)
|
|
17218
17284
|
}, reProps.value.qdDialogOptions), vue.createSlots({
|
|
17219
17285
|
default: vue.withCtx(() => [
|
|
17220
|
-
vue.createVNode(vue.unref(_sfc_main$
|
|
17286
|
+
vue.createVNode(vue.unref(_sfc_main$b), vue.mergeProps({
|
|
17221
17287
|
ref: "form",
|
|
17222
17288
|
data: vue.unref(data),
|
|
17223
17289
|
"onUpdate:data": _cache[0] || (_cache[0] = ($event) => vue.isRef(data) ? data.value = $event : null)
|
|
@@ -17261,7 +17327,7 @@ const _sfc_main$9 = /* @__PURE__ */ vue.defineComponent({
|
|
|
17261
17327
|
};
|
|
17262
17328
|
}
|
|
17263
17329
|
});
|
|
17264
|
-
const _sfc_main$
|
|
17330
|
+
const _sfc_main$9 = /* @__PURE__ */ vue.defineComponent({
|
|
17265
17331
|
...{
|
|
17266
17332
|
name: "QdCrudSearch"
|
|
17267
17333
|
},
|
|
@@ -17314,9 +17380,9 @@ const _sfc_main$8 = /* @__PURE__ */ vue.defineComponent({
|
|
|
17314
17380
|
});
|
|
17315
17381
|
__expose(expose);
|
|
17316
17382
|
return (_ctx, _cache) => {
|
|
17317
|
-
return vue.openBlock(), vue.createBlock(vue.unref(_sfc_main$
|
|
17383
|
+
return vue.openBlock(), vue.createBlock(vue.unref(_sfc_main$k), { class: "qd-crud-search" }, vue.createSlots({
|
|
17318
17384
|
default: vue.withCtx(() => [
|
|
17319
|
-
vue.createVNode(vue.unref(_sfc_main$
|
|
17385
|
+
vue.createVNode(vue.unref(_sfc_main$b), vue.mergeProps({
|
|
17320
17386
|
ref: "form",
|
|
17321
17387
|
data: vue.unref(data),
|
|
17322
17388
|
"onUpdate:data": _cache[0] || (_cache[0] = ($event) => vue.isRef(data) ? data.value = $event : null)
|
|
@@ -17345,7 +17411,7 @@ const _sfc_main$8 = /* @__PURE__ */ vue.defineComponent({
|
|
|
17345
17411
|
};
|
|
17346
17412
|
}
|
|
17347
17413
|
});
|
|
17348
|
-
const QdCrudSearch = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
17414
|
+
const QdCrudSearch = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["__scopeId", "data-v-2cf11b71"]]);
|
|
17349
17415
|
async function getBytes(stream, onChunk) {
|
|
17350
17416
|
const reader = stream.getReader();
|
|
17351
17417
|
let result;
|
|
@@ -18168,17 +18234,17 @@ function useDisabled(context) {
|
|
|
18168
18234
|
return false;
|
|
18169
18235
|
});
|
|
18170
18236
|
}
|
|
18171
|
-
const _hoisted_1$
|
|
18237
|
+
const _hoisted_1$4 = {
|
|
18172
18238
|
class: "qd-crud-table"
|
|
18173
18239
|
};
|
|
18174
|
-
const _hoisted_2$
|
|
18240
|
+
const _hoisted_2$3 = {
|
|
18175
18241
|
class: "qd-crud-table__toolbar"
|
|
18176
18242
|
};
|
|
18177
18243
|
const _hoisted_3$1 = {
|
|
18178
18244
|
key: 0,
|
|
18179
18245
|
class: "qd-crud-table__toolbar-separator"
|
|
18180
18246
|
};
|
|
18181
|
-
const _sfc_main$
|
|
18247
|
+
const _sfc_main$8 = /* @__PURE__ */ vue.defineComponent({
|
|
18182
18248
|
...{
|
|
18183
18249
|
name: "QdCrudTable"
|
|
18184
18250
|
},
|
|
@@ -18976,7 +19042,7 @@ const _sfc_main$7 = /* @__PURE__ */ vue.defineComponent({
|
|
|
18976
19042
|
});
|
|
18977
19043
|
__expose(expose);
|
|
18978
19044
|
return (_ctx, _cache) => {
|
|
18979
|
-
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$
|
|
19045
|
+
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$4, [reProps.value.searchOptions?.items?.length ? vue.withDirectives((vue.openBlock(), vue.createBlock(QdCrudSearch, vue.mergeProps({
|
|
18980
19046
|
key: 0,
|
|
18981
19047
|
ref: "search",
|
|
18982
19048
|
data: vue.unref(searchData),
|
|
@@ -19010,10 +19076,10 @@ const _sfc_main$7 = /* @__PURE__ */ vue.defineComponent({
|
|
|
19010
19076
|
name: item.filterName,
|
|
19011
19077
|
fn: vue.withCtx((slotProps) => [vue.renderSlot(_ctx.$slots, item.originalName, vue.normalizeProps(vue.guardReactiveProps(slotProps)), void 0, true)])
|
|
19012
19078
|
};
|
|
19013
|
-
})]), 1040, ["data", "class"])), [[vue.vShow, searchVisible.value]]) : vue.createCommentVNode("", true), vue.createVNode(vue.unref(_sfc_main$
|
|
19079
|
+
})]), 1040, ["data", "class"])), [[vue.vShow, searchVisible.value]]) : vue.createCommentVNode("", true), vue.createVNode(vue.unref(_sfc_main$k), {
|
|
19014
19080
|
class: "qd-crud-table__body"
|
|
19015
19081
|
}, {
|
|
19016
|
-
default: vue.withCtx(() => [vue.createElementVNode("div", _hoisted_2$
|
|
19082
|
+
default: vue.withCtx(() => [vue.createElementVNode("div", _hoisted_2$3, [vue.createVNode(vue.unref(tdesignVueNext.Space), {
|
|
19017
19083
|
align: "center",
|
|
19018
19084
|
size: 0
|
|
19019
19085
|
}, {
|
|
@@ -19022,7 +19088,7 @@ const _sfc_main$7 = /* @__PURE__ */ vue.defineComponent({
|
|
|
19022
19088
|
key: item.uid || index2
|
|
19023
19089
|
}, [getActionSeparator(item, {
|
|
19024
19090
|
index: index2
|
|
19025
|
-
}) ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_3$1)) : vue.createCommentVNode("", true), vue.withDirectives(vue.createVNode(vue.unref(_sfc_main$
|
|
19091
|
+
}) ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_3$1)) : vue.createCommentVNode("", true), vue.withDirectives(vue.createVNode(vue.unref(_sfc_main$j), {
|
|
19026
19092
|
context: getConfigRendererCtx(item),
|
|
19027
19093
|
config: {
|
|
19028
19094
|
is: vue.unref(tdesignVueNext.Button),
|
|
@@ -19125,16 +19191,15 @@ const _sfc_main$7 = /* @__PURE__ */ vue.defineComponent({
|
|
|
19125
19191
|
}, ["stop"]))
|
|
19126
19192
|
}, {
|
|
19127
19193
|
default: vue.withCtx(() => [(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(reProps.value.rowActions, (item, index2) => {
|
|
19128
|
-
return vue.openBlock(), vue.createElementBlock(vue.Fragment, {
|
|
19129
|
-
key: item.uid || index2
|
|
19130
|
-
}, [getActionSeparator(item, {
|
|
19194
|
+
return vue.openBlock(), vue.createElementBlock(vue.Fragment, null, [getActionSeparator(item, {
|
|
19131
19195
|
colIndex: slotProps.colIndex,
|
|
19132
19196
|
rowIndex: slotProps.rowIndex,
|
|
19133
19197
|
index: index2
|
|
19134
19198
|
}) ? (vue.openBlock(), vue.createBlock(vue.unref(tdesignVueNext.Divider), {
|
|
19135
|
-
key:
|
|
19199
|
+
key: `${slotProps.colIndex}.${slotProps.rowIndex}.${index2}.divider`,
|
|
19136
19200
|
layout: "vertical"
|
|
19137
|
-
})) : vue.createCommentVNode("", true), vue.withDirectives(vue.
|
|
19201
|
+
})) : vue.createCommentVNode("", true), vue.withDirectives((vue.openBlock(), vue.createBlock(vue.unref(_sfc_main$j), {
|
|
19202
|
+
key: `${slotProps.colIndex}.${slotProps.rowIndex}.${index2}.renderer`,
|
|
19138
19203
|
context: getConfigRendererCtx(item, slotProps),
|
|
19139
19204
|
config: {
|
|
19140
19205
|
is: vue.unref(tdesignVueNext.Link),
|
|
@@ -19146,8 +19211,8 @@ const _sfc_main$7 = /* @__PURE__ */ vue.defineComponent({
|
|
|
19146
19211
|
rowIndex: slotProps.rowIndex,
|
|
19147
19212
|
index: index2
|
|
19148
19213
|
})
|
|
19149
|
-
}, null, 8, ["context", "config", "onVIfChange"]), [[vue.unref(vHasPermi), item.permi]])], 64);
|
|
19150
|
-
}),
|
|
19214
|
+
}, null, 8, ["context", "config", "onVIfChange"])), [[vue.unref(vHasPermi), item.permi]])], 64);
|
|
19215
|
+
}), 256))]),
|
|
19151
19216
|
_: 2
|
|
19152
19217
|
}, 1024)) : vue.createCommentVNode("", true)], true)]),
|
|
19153
19218
|
_: 2
|
|
@@ -19159,10 +19224,10 @@ const _sfc_main$7 = /* @__PURE__ */ vue.defineComponent({
|
|
|
19159
19224
|
})]), 1040, ["data", "selected-row-keys", "active-row-keys", "column-controller-visible", "display-columns", "expanded-row-keys", "filter-value", "sort", "expanded-tree-nodes"])]),
|
|
19160
19225
|
_: 3
|
|
19161
19226
|
}), (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(dialogFormMap, (dialogForm, uid) => {
|
|
19162
|
-
return vue.openBlock(), vue.createBlock(vue.unref(_sfc_main$
|
|
19227
|
+
return vue.openBlock(), vue.createBlock(vue.unref(_sfc_main$j), {
|
|
19163
19228
|
key: uid,
|
|
19164
19229
|
config: {
|
|
19165
|
-
is: vue.unref(_sfc_main$
|
|
19230
|
+
is: vue.unref(_sfc_main$a),
|
|
19166
19231
|
...dialogForm.form,
|
|
19167
19232
|
vModelVisible: "self.visible",
|
|
19168
19233
|
vModelData: "self.data",
|
|
@@ -19174,16 +19239,16 @@ const _sfc_main$7 = /* @__PURE__ */ vue.defineComponent({
|
|
|
19174
19239
|
};
|
|
19175
19240
|
}
|
|
19176
19241
|
});
|
|
19177
|
-
const table = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
19178
|
-
const _hoisted_1$
|
|
19242
|
+
const table = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["__scopeId", "data-v-99ff6f87"]]);
|
|
19243
|
+
const _hoisted_1$3 = {
|
|
19179
19244
|
key: 0,
|
|
19180
19245
|
class: "qd-crud-list__header"
|
|
19181
19246
|
};
|
|
19182
|
-
const _hoisted_2$
|
|
19247
|
+
const _hoisted_2$2 = {
|
|
19183
19248
|
key: 1,
|
|
19184
19249
|
class: "qd-crud-list__toolbar"
|
|
19185
19250
|
};
|
|
19186
|
-
const _sfc_main$
|
|
19251
|
+
const _sfc_main$7 = /* @__PURE__ */ vue.defineComponent({
|
|
19187
19252
|
__name: "list",
|
|
19188
19253
|
props: /* @__PURE__ */ vue.mergeDefaults({
|
|
19189
19254
|
search: {},
|
|
@@ -19298,7 +19363,7 @@ const _sfc_main$6 = /* @__PURE__ */ vue.defineComponent({
|
|
|
19298
19363
|
return (_ctx, _cache) => {
|
|
19299
19364
|
return vue.openBlock(), vue.createElementBlock("div", {
|
|
19300
19365
|
class: vue.normalizeClass(["qd-crud-list", reProps.value.serviceListOptions.scroll?.target ? "qd-crud-list--has-scroll-target" : ""])
|
|
19301
|
-
}, [reProps.value.searchOptions?.items?.length || _ctx.$slots.actions ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$
|
|
19366
|
+
}, [reProps.value.searchOptions?.items?.length || _ctx.$slots.actions ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$3, [reProps.value.searchOptions?.items?.length ? (vue.openBlock(), vue.createBlock(QdCrudSearch, vue.mergeProps({
|
|
19302
19367
|
key: 0,
|
|
19303
19368
|
ref: "search",
|
|
19304
19369
|
data: vue.unref(searchData),
|
|
@@ -19331,7 +19396,7 @@ const _sfc_main$6 = /* @__PURE__ */ vue.defineComponent({
|
|
|
19331
19396
|
name: item.filterName,
|
|
19332
19397
|
fn: vue.withCtx((slotProps) => [vue.renderSlot(_ctx.$slots, item.originalName, vue.normalizeProps(vue.guardReactiveProps(slotProps)), void 0, true)])
|
|
19333
19398
|
};
|
|
19334
|
-
})]), 1040, ["data"])) : vue.createCommentVNode("", true), _ctx.$slots.actions ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$
|
|
19399
|
+
})]), 1040, ["data"])) : vue.createCommentVNode("", true), _ctx.$slots.actions ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$2, [vue.createVNode(vue.unref(tdesignVueNext.Space), {
|
|
19335
19400
|
align: "center",
|
|
19336
19401
|
size: "small"
|
|
19337
19402
|
}, {
|
|
@@ -19356,14 +19421,14 @@ const _sfc_main$6 = /* @__PURE__ */ vue.defineComponent({
|
|
|
19356
19421
|
};
|
|
19357
19422
|
}
|
|
19358
19423
|
});
|
|
19359
|
-
const list = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
19424
|
+
const list = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["__scopeId", "data-v-66a035f0"]]);
|
|
19360
19425
|
function defineQdCrudTable(config) {
|
|
19361
19426
|
return config;
|
|
19362
19427
|
}
|
|
19363
19428
|
function defineQdCrudList(config) {
|
|
19364
19429
|
return config;
|
|
19365
19430
|
}
|
|
19366
|
-
const _sfc_main$
|
|
19431
|
+
const _sfc_main$6 = /* @__PURE__ */ vue.defineComponent({
|
|
19367
19432
|
...{
|
|
19368
19433
|
name: "QdDictSelect"
|
|
19369
19434
|
},
|
|
@@ -19517,7 +19582,7 @@ const _sfc_main$5 = /* @__PURE__ */ vue.defineComponent({
|
|
|
19517
19582
|
};
|
|
19518
19583
|
}
|
|
19519
19584
|
});
|
|
19520
|
-
const _sfc_main$
|
|
19585
|
+
const _sfc_main$5 = /* @__PURE__ */ vue.defineComponent({
|
|
19521
19586
|
...{
|
|
19522
19587
|
name: "QdDictRadioGroup"
|
|
19523
19588
|
},
|
|
@@ -19565,8 +19630,8 @@ const _sfc_main$4 = /* @__PURE__ */ vue.defineComponent({
|
|
|
19565
19630
|
};
|
|
19566
19631
|
}
|
|
19567
19632
|
});
|
|
19568
|
-
const radioGroup = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
19569
|
-
const _sfc_main$
|
|
19633
|
+
const radioGroup = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-e97fb1f0"]]);
|
|
19634
|
+
const _sfc_main$4 = /* @__PURE__ */ vue.defineComponent({
|
|
19570
19635
|
...{
|
|
19571
19636
|
name: "QdDictCheckboxGroup"
|
|
19572
19637
|
},
|
|
@@ -19632,9 +19697,9 @@ const _sfc_main$3 = /* @__PURE__ */ vue.defineComponent({
|
|
|
19632
19697
|
};
|
|
19633
19698
|
}
|
|
19634
19699
|
});
|
|
19635
|
-
const checkboxGroup = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
19636
|
-
const _hoisted_1$
|
|
19637
|
-
const _sfc_main$
|
|
19700
|
+
const checkboxGroup = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-ef427474"]]);
|
|
19701
|
+
const _hoisted_1$2 = { class: "qd-dict-tag" };
|
|
19702
|
+
const _sfc_main$3 = /* @__PURE__ */ vue.defineComponent({
|
|
19638
19703
|
...{
|
|
19639
19704
|
name: "QdDictTag"
|
|
19640
19705
|
},
|
|
@@ -19678,7 +19743,7 @@ const _sfc_main$2 = /* @__PURE__ */ vue.defineComponent({
|
|
|
19678
19743
|
});
|
|
19679
19744
|
return (_ctx, _cache) => {
|
|
19680
19745
|
const _directive_loading = vue.resolveDirective("loading");
|
|
19681
|
-
return vue.withDirectives((vue.openBlock(), vue.createElementBlock("div", _hoisted_1$
|
|
19746
|
+
return vue.withDirectives((vue.openBlock(), vue.createElementBlock("div", _hoisted_1$2, [
|
|
19682
19747
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(matchOptions.value, (item, index2) => {
|
|
19683
19748
|
return vue.openBlock(), vue.createElementBlock(vue.Fragment, null, [
|
|
19684
19749
|
(!reProps.value.theme || reProps.value.theme === "text") && !__props.variant && (item.theme === "text" || !item.theme) ? (vue.openBlock(), vue.createElementBlock("span", {
|
|
@@ -19719,7 +19784,7 @@ const _sfc_main$2 = /* @__PURE__ */ vue.defineComponent({
|
|
|
19719
19784
|
};
|
|
19720
19785
|
}
|
|
19721
19786
|
});
|
|
19722
|
-
const tag = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
19787
|
+
const tag = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["__scopeId", "data-v-cab615cf"]]);
|
|
19723
19788
|
const isNodeJS = typeof process === "object" && process + "" === "[object process]" && !process.versions.nw && !(process.versions.electron && process.type && process.type !== "browser");
|
|
19724
19789
|
const FONT_IDENTITY_MATRIX = [1e-3, 0, 0, 1e-3, 0, 0];
|
|
19725
19790
|
const LINE_FACTOR = 1.35;
|
|
@@ -28373,7 +28438,7 @@ class NodeFilterFactory extends BaseFilterFactory {
|
|
|
28373
28438
|
}
|
|
28374
28439
|
class NodeCanvasFactory extends BaseCanvasFactory {
|
|
28375
28440
|
_createCanvas(width, height) {
|
|
28376
|
-
const require$1 = process.getBuiltinModule("module").createRequire(typeof document === "undefined" ? require("url").pathToFileURL(__filename).href : _documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === "SCRIPT" && _documentCurrentScript.src || new URL("index-
|
|
28441
|
+
const require$1 = process.getBuiltinModule("module").createRequire(typeof document === "undefined" ? require("url").pathToFileURL(__filename).href : _documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === "SCRIPT" && _documentCurrentScript.src || new URL("index-DqYBn3_5.js", document.baseURI).href);
|
|
28377
28442
|
const canvas = require$1("@napi-rs/canvas");
|
|
28378
28443
|
return canvas.createCanvas(width, height);
|
|
28379
28444
|
}
|
|
@@ -54536,15 +54601,15 @@ function useZoom({ viewer, updateViewer, debounceUpdateViewer }) {
|
|
|
54536
54601
|
onResize
|
|
54537
54602
|
};
|
|
54538
54603
|
}
|
|
54539
|
-
const _hoisted_1 = {
|
|
54604
|
+
const _hoisted_1$1 = {
|
|
54540
54605
|
key: 0,
|
|
54541
54606
|
class: "qd-office-pdf__controls"
|
|
54542
54607
|
};
|
|
54543
|
-
const _hoisted_2 = { class: "qd-office-pdf__controls-body" };
|
|
54608
|
+
const _hoisted_2$1 = { class: "qd-office-pdf__controls-body" };
|
|
54544
54609
|
const _hoisted_3 = { class: "qd-office-pdf__controls-page" };
|
|
54545
54610
|
const _hoisted_4 = { class: "qd-office-pdf__controls-page-input" };
|
|
54546
54611
|
const _hoisted_5 = { class: "qd-office-pdf__controls-scale" };
|
|
54547
|
-
const _sfc_main$
|
|
54612
|
+
const _sfc_main$2 = /* @__PURE__ */ vue.defineComponent({
|
|
54548
54613
|
...{
|
|
54549
54614
|
name: "QdOfficePdf"
|
|
54550
54615
|
},
|
|
@@ -54721,8 +54786,8 @@ const _sfc_main$1 = /* @__PURE__ */ vue.defineComponent({
|
|
|
54721
54786
|
{ "300": true }
|
|
54722
54787
|
]
|
|
54723
54788
|
]),
|
|
54724
|
-
viewer.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1, [
|
|
54725
|
-
vue.createElementVNode("div", _hoisted_2, [
|
|
54789
|
+
viewer.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$1, [
|
|
54790
|
+
vue.createElementVNode("div", _hoisted_2$1, [
|
|
54726
54791
|
vue.createElementVNode("div", _hoisted_3, [
|
|
54727
54792
|
vue.createVNode(vue.unref(tdesignVueNext.Tooltip), {
|
|
54728
54793
|
content: vue.unref(t)("prevPage"),
|
|
@@ -54841,7 +54906,275 @@ const _sfc_main$1 = /* @__PURE__ */ vue.defineComponent({
|
|
|
54841
54906
|
};
|
|
54842
54907
|
}
|
|
54843
54908
|
});
|
|
54844
|
-
const index$1 = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
54909
|
+
const index$1 = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-1fea4dd8"]]);
|
|
54910
|
+
const { pagination, ...otherQdServiceSelectProps } = qdServiceSelectProps;
|
|
54911
|
+
const qdOrgSelectProps = {
|
|
54912
|
+
...otherQdServiceSelectProps,
|
|
54913
|
+
showFullDeptPath: true
|
|
54914
|
+
};
|
|
54915
|
+
const qdOrgSelectKeys = {
|
|
54916
|
+
...qdServiceSelectKeys,
|
|
54917
|
+
value: "id",
|
|
54918
|
+
label: "label",
|
|
54919
|
+
jobNumber: "properties.jobNumber",
|
|
54920
|
+
deptName: "properties.deptName",
|
|
54921
|
+
fullDeptPath: "properties.fullDeptPath"
|
|
54922
|
+
};
|
|
54923
|
+
const _hoisted_1 = { class: "qd-service-select__label" };
|
|
54924
|
+
const _hoisted_2 = {
|
|
54925
|
+
key: 1,
|
|
54926
|
+
class: "qd-service-select__desc"
|
|
54927
|
+
};
|
|
54928
|
+
const _sfc_main$1 = /* @__PURE__ */ vue.defineComponent({
|
|
54929
|
+
...{
|
|
54930
|
+
name: "QdOrgSelect"
|
|
54931
|
+
},
|
|
54932
|
+
__name: "index",
|
|
54933
|
+
props: /* @__PURE__ */ vue.mergeDefaults({
|
|
54934
|
+
type: {},
|
|
54935
|
+
showDeptName: { type: Boolean },
|
|
54936
|
+
showFullDeptPath: { type: Boolean },
|
|
54937
|
+
transformParams: { type: Function },
|
|
54938
|
+
keys: {},
|
|
54939
|
+
defaultSelectFirst: { type: Boolean },
|
|
54940
|
+
convStr: { type: [Boolean, String] },
|
|
54941
|
+
valueLabel: {},
|
|
54942
|
+
searchKey: {},
|
|
54943
|
+
fillOptions: {},
|
|
54944
|
+
autoWidth: { type: Boolean },
|
|
54945
|
+
autofocus: { type: Boolean },
|
|
54946
|
+
borderless: { type: Boolean },
|
|
54947
|
+
clearable: { type: Boolean },
|
|
54948
|
+
collapsedItems: {},
|
|
54949
|
+
creatable: { type: Boolean },
|
|
54950
|
+
disabled: { type: Boolean },
|
|
54951
|
+
empty: {},
|
|
54952
|
+
filter: { type: Function },
|
|
54953
|
+
filterable: { type: Boolean },
|
|
54954
|
+
inputProps: {},
|
|
54955
|
+
inputValue: {},
|
|
54956
|
+
defaultInputValue: {},
|
|
54957
|
+
label: {},
|
|
54958
|
+
loading: { type: Boolean },
|
|
54959
|
+
loadingText: {},
|
|
54960
|
+
max: {},
|
|
54961
|
+
minCollapsedNum: {},
|
|
54962
|
+
multiple: { type: Boolean },
|
|
54963
|
+
options: {},
|
|
54964
|
+
panelBottomContent: {},
|
|
54965
|
+
panelTopContent: {},
|
|
54966
|
+
placeholder: {},
|
|
54967
|
+
popupProps: {},
|
|
54968
|
+
popupVisible: { type: Boolean },
|
|
54969
|
+
defaultPopupVisible: { type: Boolean },
|
|
54970
|
+
prefixIcon: {},
|
|
54971
|
+
readonly: { type: Boolean },
|
|
54972
|
+
reserveKeyword: { type: Boolean },
|
|
54973
|
+
scroll: {},
|
|
54974
|
+
selectInputProps: {},
|
|
54975
|
+
showArrow: { type: Boolean },
|
|
54976
|
+
size: {},
|
|
54977
|
+
status: {},
|
|
54978
|
+
suffix: {},
|
|
54979
|
+
suffixIcon: {},
|
|
54980
|
+
tagInputProps: {},
|
|
54981
|
+
tagProps: {},
|
|
54982
|
+
tips: {},
|
|
54983
|
+
value: {},
|
|
54984
|
+
defaultValue: {},
|
|
54985
|
+
modelValue: {},
|
|
54986
|
+
valueDisplay: {},
|
|
54987
|
+
valueType: {},
|
|
54988
|
+
onBlur: { type: Function },
|
|
54989
|
+
onChange: { type: Function },
|
|
54990
|
+
onClear: { type: Function },
|
|
54991
|
+
onCreate: { type: Function },
|
|
54992
|
+
onEnter: { type: Function },
|
|
54993
|
+
onFocus: { type: Function },
|
|
54994
|
+
onInputChange: { type: Function },
|
|
54995
|
+
onPopupVisibleChange: { type: Function },
|
|
54996
|
+
onRemove: { type: Function },
|
|
54997
|
+
onSearch: { type: Function },
|
|
54998
|
+
onBefore: { type: Function },
|
|
54999
|
+
onAfter: { type: Function },
|
|
55000
|
+
onSuccess: { type: Function },
|
|
55001
|
+
onError: { type: Function },
|
|
55002
|
+
service: { type: Function },
|
|
55003
|
+
manual: { type: Boolean },
|
|
55004
|
+
transformRes: { type: Function }
|
|
55005
|
+
}, qdOrgSelectProps),
|
|
55006
|
+
emits: ["update:modelValue", "update:valueLabel", "update:inputValue", "update:popupVisible", "update:options"],
|
|
55007
|
+
setup(__props, { emit: __emit }) {
|
|
55008
|
+
const props = __props;
|
|
55009
|
+
const emit = __emit;
|
|
55010
|
+
const { modelValue, valueLabel, inputValue, popupVisible, options } = /* @__PURE__ */ useVModels(props, emit, {
|
|
55011
|
+
passive: true
|
|
55012
|
+
});
|
|
55013
|
+
const globalOrg = vue.inject(
|
|
55014
|
+
PROVIDE_ORG,
|
|
55015
|
+
vue.computed(() => void 0)
|
|
55016
|
+
);
|
|
55017
|
+
const reProps = vue.computed(() => {
|
|
55018
|
+
const {
|
|
55019
|
+
type,
|
|
55020
|
+
showDeptName,
|
|
55021
|
+
showFullDeptPath,
|
|
55022
|
+
keys: keys2,
|
|
55023
|
+
modelValue: modelValue2,
|
|
55024
|
+
valueLabel: valueLabel2,
|
|
55025
|
+
inputValue: inputValue2,
|
|
55026
|
+
popupVisible: popupVisible2,
|
|
55027
|
+
options: options2,
|
|
55028
|
+
...serviceSelectOptions
|
|
55029
|
+
} = props;
|
|
55030
|
+
const globalService = globalOrg.value?.search;
|
|
55031
|
+
const globalSelect = globalOrg.value?.select;
|
|
55032
|
+
const otherOptions = merge(globalSelect, {
|
|
55033
|
+
type,
|
|
55034
|
+
showDeptName,
|
|
55035
|
+
showFullDeptPath
|
|
55036
|
+
});
|
|
55037
|
+
const reKeys = merge(qdOrgSelectKeys, globalSelect?.keys, keys2);
|
|
55038
|
+
const serviceSelectOptionsMerge = merge(
|
|
55039
|
+
globalService,
|
|
55040
|
+
globalSelect,
|
|
55041
|
+
{ keys: reKeys, pagination: false },
|
|
55042
|
+
serviceSelectOptions
|
|
55043
|
+
);
|
|
55044
|
+
const transformParams = serviceSelectOptionsMerge.transformParams;
|
|
55045
|
+
serviceSelectOptionsMerge.transformParams = (params) => {
|
|
55046
|
+
params.type = type;
|
|
55047
|
+
params.showFullDeptPath = showFullDeptPath;
|
|
55048
|
+
if (transformParams) return transformParams(params);
|
|
55049
|
+
return params;
|
|
55050
|
+
};
|
|
55051
|
+
return {
|
|
55052
|
+
...otherOptions,
|
|
55053
|
+
keys: reKeys,
|
|
55054
|
+
serviceSelectOptions: serviceSelectOptionsMerge,
|
|
55055
|
+
models: {
|
|
55056
|
+
modelValue: modelValue2,
|
|
55057
|
+
valueLabel: valueLabel2,
|
|
55058
|
+
inputValue: inputValue2,
|
|
55059
|
+
popupVisible: popupVisible2,
|
|
55060
|
+
options: options2
|
|
55061
|
+
}
|
|
55062
|
+
};
|
|
55063
|
+
});
|
|
55064
|
+
function buildOptions(data) {
|
|
55065
|
+
if (!data) return [];
|
|
55066
|
+
return data.map((item) => {
|
|
55067
|
+
const value = getOptionValue(item);
|
|
55068
|
+
const label = getOptionLabel(item);
|
|
55069
|
+
const disabled = getOptionDisabled(item);
|
|
55070
|
+
const jobNumber = getOptionJobNumber(item);
|
|
55071
|
+
const deptName = getOptionDeptName(item);
|
|
55072
|
+
const fullDeptPath = getOptionFullDeptPath(item);
|
|
55073
|
+
return {
|
|
55074
|
+
value,
|
|
55075
|
+
label,
|
|
55076
|
+
disabled,
|
|
55077
|
+
jobNumber,
|
|
55078
|
+
deptName,
|
|
55079
|
+
fullDeptPath,
|
|
55080
|
+
origOption: item
|
|
55081
|
+
};
|
|
55082
|
+
});
|
|
55083
|
+
}
|
|
55084
|
+
function getOptionValue(option) {
|
|
55085
|
+
return get(option, reProps.value.keys?.value || qdOrgSelectKeys.value);
|
|
55086
|
+
}
|
|
55087
|
+
function getOptionLabel(option) {
|
|
55088
|
+
return get(option, reProps.value.keys?.label || qdOrgSelectKeys.label);
|
|
55089
|
+
}
|
|
55090
|
+
function getOptionDisabled(option) {
|
|
55091
|
+
return get(option, reProps.value.keys?.disabled || qdOrgSelectKeys.disabled);
|
|
55092
|
+
}
|
|
55093
|
+
function getOptionJobNumber(option) {
|
|
55094
|
+
return get(option, reProps.value.keys?.jobNumber || qdOrgSelectKeys.jobNumber);
|
|
55095
|
+
}
|
|
55096
|
+
function getOptionDeptName(option) {
|
|
55097
|
+
return get(option, reProps.value.keys?.deptName || qdOrgSelectKeys.deptName);
|
|
55098
|
+
}
|
|
55099
|
+
function getOptionFullDeptPath(option) {
|
|
55100
|
+
const path = get(option, reProps.value.keys?.fullDeptPath || qdOrgSelectKeys.fullDeptPath);
|
|
55101
|
+
const res = {
|
|
55102
|
+
tooltipDisabled: void 0,
|
|
55103
|
+
content: path,
|
|
55104
|
+
abbreviatedContent: path
|
|
55105
|
+
};
|
|
55106
|
+
const abbreviatedContentSplit = res.abbreviatedContent.split("/");
|
|
55107
|
+
if (abbreviatedContentSplit.length > 2) {
|
|
55108
|
+
res.tooltipDisabled = false;
|
|
55109
|
+
res.abbreviatedContent = `${abbreviatedContentSplit[0]}/.../${abbreviatedContentSplit[abbreviatedContentSplit.length - 1]}`;
|
|
55110
|
+
}
|
|
55111
|
+
return res;
|
|
55112
|
+
}
|
|
55113
|
+
return (_ctx, _cache) => {
|
|
55114
|
+
return vue.openBlock(), vue.createBlock(vue.unref(QdServiceSelect), vue.mergeProps({
|
|
55115
|
+
modelValue: vue.unref(modelValue),
|
|
55116
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => vue.isRef(modelValue) ? modelValue.value = $event : null),
|
|
55117
|
+
"value-label": vue.unref(valueLabel),
|
|
55118
|
+
"onUpdate:valueLabel": _cache[1] || (_cache[1] = ($event) => vue.isRef(valueLabel) ? valueLabel.value = $event : null),
|
|
55119
|
+
input: vue.unref(inputValue),
|
|
55120
|
+
"onUpdate:input": _cache[2] || (_cache[2] = ($event) => vue.isRef(inputValue) ? inputValue.value = $event : null),
|
|
55121
|
+
"popup-visible": vue.unref(popupVisible),
|
|
55122
|
+
"onUpdate:popupVisible": _cache[3] || (_cache[3] = ($event) => vue.isRef(popupVisible) ? popupVisible.value = $event : null),
|
|
55123
|
+
options: vue.unref(options),
|
|
55124
|
+
"onUpdate:options": _cache[4] || (_cache[4] = ($event) => vue.isRef(options) ? options.value = $event : null),
|
|
55125
|
+
class: "qd-service-select"
|
|
55126
|
+
}, reProps.value.serviceSelectOptions), vue.createSlots({
|
|
55127
|
+
default: vue.withCtx((slotProps) => [
|
|
55128
|
+
vue.renderSlot(_ctx.$slots, "default", vue.normalizeProps(vue.guardReactiveProps(slotProps)), () => [
|
|
55129
|
+
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(buildOptions(slotProps.options), (item) => {
|
|
55130
|
+
return vue.openBlock(), vue.createBlock(vue.unref(tdesignVueNext.Option), vue.mergeProps({
|
|
55131
|
+
key: item.value,
|
|
55132
|
+
value: item.value,
|
|
55133
|
+
label: item.label,
|
|
55134
|
+
disabled: item.disabled,
|
|
55135
|
+
class: "qd-service-select__option"
|
|
55136
|
+
}, { ref_for: true }, item.origOption), {
|
|
55137
|
+
default: vue.withCtx(() => [
|
|
55138
|
+
vue.createElementVNode("p", _hoisted_1, [
|
|
55139
|
+
vue.createTextVNode(vue.toDisplayString(item.label) + " ", 1),
|
|
55140
|
+
item.jobNumber ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 0 }, [
|
|
55141
|
+
vue.createTextVNode("(" + vue.toDisplayString(item.jobNumber) + ")", 1)
|
|
55142
|
+
], 64)) : vue.createCommentVNode("", true)
|
|
55143
|
+
]),
|
|
55144
|
+
reProps.value.showFullDeptPath && item.fullDeptPath.content ? (vue.openBlock(), vue.createBlock(vue.unref(QdAutoTooltip), {
|
|
55145
|
+
key: 0,
|
|
55146
|
+
class: "qd-service-select__desc",
|
|
55147
|
+
"tooltip-disabled": item.fullDeptPath.tooltipDisabled,
|
|
55148
|
+
placement: "right"
|
|
55149
|
+
}, {
|
|
55150
|
+
content: vue.withCtx(() => [
|
|
55151
|
+
vue.createTextVNode(vue.toDisplayString(item.fullDeptPath.content), 1)
|
|
55152
|
+
]),
|
|
55153
|
+
default: vue.withCtx(() => [
|
|
55154
|
+
vue.createTextVNode(" " + vue.toDisplayString(item.fullDeptPath.abbreviatedContent), 1)
|
|
55155
|
+
]),
|
|
55156
|
+
_: 2
|
|
55157
|
+
}, 1032, ["tooltip-disabled"])) : reProps.value.showDeptName && item.deptName ? (vue.openBlock(), vue.createElementBlock("p", _hoisted_2, vue.toDisplayString(item.deptName), 1)) : vue.createCommentVNode("", true)
|
|
55158
|
+
]),
|
|
55159
|
+
_: 2
|
|
55160
|
+
}, 1040, ["value", "label", "disabled"]);
|
|
55161
|
+
}), 128))
|
|
55162
|
+
])
|
|
55163
|
+
]),
|
|
55164
|
+
_: 2
|
|
55165
|
+
}, [
|
|
55166
|
+
vue.renderList(_ctx.$slots, (_, name) => {
|
|
55167
|
+
return {
|
|
55168
|
+
name,
|
|
55169
|
+
fn: vue.withCtx((slotProps) => [
|
|
55170
|
+
vue.renderSlot(_ctx.$slots, name, vue.normalizeProps(vue.guardReactiveProps(slotProps)))
|
|
55171
|
+
])
|
|
55172
|
+
};
|
|
55173
|
+
})
|
|
55174
|
+
]), 1040, ["modelValue", "value-label", "input", "popup-visible", "options"]);
|
|
55175
|
+
};
|
|
55176
|
+
}
|
|
55177
|
+
});
|
|
54845
55178
|
const qdUploadProps = {
|
|
54846
55179
|
modelValue: () => [],
|
|
54847
55180
|
files: () => [],
|
|
@@ -55409,19 +55742,22 @@ const index = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-f067
|
|
|
55409
55742
|
exports.PROVIDE_FORM_ADD_BEFORE_SUBMIT_QUEUE = PROVIDE_FORM_ADD_BEFORE_SUBMIT_QUEUE;
|
|
55410
55743
|
exports.PROVIDE_GRID_ITEM_PROPS_KEY = PROVIDE_GRID_ITEM_PROPS_KEY;
|
|
55411
55744
|
exports.PROVIDE_GRID_WIDTH_KEY = PROVIDE_GRID_WIDTH_KEY;
|
|
55745
|
+
exports.QdAutoTooltip = QdAutoTooltip;
|
|
55412
55746
|
exports.QdConfigProvider = QdConfigProvider;
|
|
55413
55747
|
exports.QdCrudSearch = QdCrudSearch;
|
|
55414
55748
|
exports.QdFormItem = QdFormItem;
|
|
55415
55749
|
exports.QdGrid = QdGrid;
|
|
55416
55750
|
exports.QdGridItem = QdGridItem;
|
|
55417
55751
|
exports.QdServiceList = QdServiceList;
|
|
55752
|
+
exports.QdServiceSelect = QdServiceSelect;
|
|
55418
55753
|
exports.QdServiceTable = QdServiceTable;
|
|
55419
|
-
exports._sfc_main = _sfc_main$
|
|
55420
|
-
exports._sfc_main$1 = _sfc_main$
|
|
55421
|
-
exports._sfc_main$2 = _sfc_main$
|
|
55422
|
-
exports._sfc_main$3 = _sfc_main$
|
|
55423
|
-
exports._sfc_main$4 = _sfc_main$
|
|
55424
|
-
exports._sfc_main$5 = _sfc_main$
|
|
55754
|
+
exports._sfc_main = _sfc_main$k;
|
|
55755
|
+
exports._sfc_main$1 = _sfc_main$j;
|
|
55756
|
+
exports._sfc_main$2 = _sfc_main$f;
|
|
55757
|
+
exports._sfc_main$3 = _sfc_main$a;
|
|
55758
|
+
exports._sfc_main$4 = _sfc_main$6;
|
|
55759
|
+
exports._sfc_main$5 = _sfc_main$1;
|
|
55760
|
+
exports._sfc_main$6 = _sfc_main$b;
|
|
55425
55761
|
exports._typeof = _typeof;
|
|
55426
55762
|
exports.auth = auth;
|
|
55427
55763
|
exports.checkboxGroup = checkboxGroup;
|
|
@@ -55434,9 +55770,8 @@ exports.hasPermi = hasPermi;
|
|
|
55434
55770
|
exports.hasPermiDirective = hasPermiDirective;
|
|
55435
55771
|
exports.hasRole = hasRole;
|
|
55436
55772
|
exports.hasRoleDirective = hasRoleDirective;
|
|
55437
|
-
exports.index = index$
|
|
55438
|
-
exports.index$1 = index
|
|
55439
|
-
exports.index$2 = index;
|
|
55773
|
+
exports.index = index$1;
|
|
55774
|
+
exports.index$1 = index;
|
|
55440
55775
|
exports.list = list;
|
|
55441
55776
|
exports.parseVModelPath = parseVModelPath;
|
|
55442
55777
|
exports.qdAsyncCompute = qdAsyncCompute;
|
|
@@ -55447,7 +55782,6 @@ exports.qdUploadAcceptMap = qdUploadAcceptMap;
|
|
|
55447
55782
|
exports.qdUseComputeValue = qdUseComputeValue;
|
|
55448
55783
|
exports.radioGroup = radioGroup;
|
|
55449
55784
|
exports.resolveVModelBinding = resolveVModelBinding;
|
|
55450
|
-
exports.select = select;
|
|
55451
55785
|
exports.setValueByPath = setValueByPath;
|
|
55452
55786
|
exports.table = table;
|
|
55453
55787
|
exports.tag = tag;
|
|
@@ -55457,4 +55791,4 @@ exports.useDictDynamic = useDictDynamic;
|
|
|
55457
55791
|
exports.useDisabled = useDisabled;
|
|
55458
55792
|
exports.useModal = useModal;
|
|
55459
55793
|
exports.useReadonly = useReadonly;
|
|
55460
|
-
//# sourceMappingURL=index-
|
|
55794
|
+
//# sourceMappingURL=index-DqYBn3_5.js.map
|