qidian-vue-ui 1.1.3 → 1.1.4

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.
Files changed (32) hide show
  1. package/dist/components/auto-tooltip/index.vue.d.ts +1 -0
  2. package/dist/components/auto-tooltip/types.d.ts +1 -0
  3. package/dist/components/config-provider/config.d.ts +1 -0
  4. package/dist/components/config-provider/index.d.ts +13 -0
  5. package/dist/components/config-provider/types.d.ts +5 -0
  6. package/dist/components/dialog/form.vue.d.ts +3 -3
  7. package/dist/components/index.d.ts +1 -0
  8. package/dist/components/org/index.d.ts +2 -0
  9. package/dist/components/org/select/index.vue.d.ts +28 -0
  10. package/dist/components/org/select/props.d.ts +22 -0
  11. package/dist/components/org/select/types.d.ts +22 -0
  12. package/dist/components/service/select.vue.d.ts +7 -2
  13. package/dist/components/service/types.d.ts +5 -8
  14. package/dist/{en-US-CjCyqzcw.mjs → en-US-BKTDfmC9.mjs} +2 -2
  15. package/dist/{en-US-CjCyqzcw.mjs.map → en-US-BKTDfmC9.mjs.map} +1 -1
  16. package/dist/{en-US-y9tzQi2g.js → en-US-CbAnYUnu.js} +2 -2
  17. package/dist/{en-US-y9tzQi2g.js.map → en-US-CbAnYUnu.js.map} +1 -1
  18. package/dist/{index-y0rs3mPR.js → index-CS-VK5Q3.js} +434 -99
  19. package/dist/index-CS-VK5Q3.js.map +1 -0
  20. package/dist/{index-Dhb_qv4a.mjs → index-yfS549bC.mjs} +459 -124
  21. package/dist/index-yfS549bC.mjs.map +1 -0
  22. package/dist/qidian-vue-ui.css +22 -9
  23. package/dist/qidian-vue-ui.js +7 -6
  24. package/dist/qidian-vue-ui.js.map +1 -1
  25. package/dist/qidian-vue-ui.mjs +33 -32
  26. package/dist/{zh-TW-B3lQU0Yb.js → zh-TW-DmJALjvQ.js} +2 -2
  27. package/dist/{zh-TW-B3lQU0Yb.js.map → zh-TW-DmJALjvQ.js.map} +1 -1
  28. package/dist/{zh-TW-BJwmP2NG.mjs → zh-TW-WsxT2gkJ.mjs} +2 -2
  29. package/dist/{zh-TW-BJwmP2NG.mjs.map → zh-TW-WsxT2gkJ.mjs.map} +1 -1
  30. package/package.json +1 -1
  31. package/dist/index-Dhb_qv4a.mjs.map +0 -1
  32. package/dist/index-y0rs3mPR.js.map +0 -1
@@ -19,14 +19,14 @@ var __privateWrapper = (obj, member, setter, getter) => ({
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
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";
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, Upload, Popup, Badge } from "tdesign-vue-next";
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
- const _hoisted_1$4 = { class: "qd-auto-tooltip" };
25
- const _hoisted_2$3 = {
24
+ const _hoisted_1$5 = { class: "qd-auto-tooltip" };
25
+ const _hoisted_2$4 = {
26
26
  key: 0,
27
27
  class: "pre-wrap"
28
28
  };
29
- const _sfc_main$k = /* @__PURE__ */ defineComponent({
29
+ const _sfc_main$l = /* @__PURE__ */ defineComponent({
30
30
  ...{
31
31
  name: "QdAutoTooltip"
32
32
  },
@@ -35,12 +35,13 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
35
35
  content: {},
36
36
  preWrap: { type: Boolean },
37
37
  ellipsis: { default: 1 },
38
+ tooltipDisabled: { type: Boolean, default: void 0 },
38
39
  placement: {},
39
40
  attach: { default: "body" }
40
41
  },
41
42
  setup(__props) {
42
43
  useCssVars((_ctx) => ({
43
- "v4b8b74b0": _ctx.ellipsis
44
+ "v07d46710": _ctx.ellipsis
44
45
  }));
45
46
  const props = __props;
46
47
  const contentRef = useTemplateRef("content");
@@ -58,16 +59,16 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
58
59
  );
59
60
  return (_ctx, _cache) => {
60
61
  const _directive_resize = resolveDirective("resize");
61
- return openBlock(), createElementBlock("div", _hoisted_1$4, [
62
+ return openBlock(), createElementBlock("div", _hoisted_1$5, [
62
63
  createVNode(unref(Tooltip), {
63
64
  attach: __props.attach,
64
65
  placement: __props.placement,
65
- disabled: !isEllipsis.value,
66
+ disabled: __props.tooltipDisabled ?? !isEllipsis.value,
66
67
  "destroy-on-close": ""
67
68
  }, {
68
69
  content: withCtx(() => [
69
70
  renderSlot(_ctx.$slots, "content", {}, () => [
70
- __props.preWrap ? (openBlock(), createElementBlock("span", _hoisted_2$3, [
71
+ __props.preWrap ? (openBlock(), createElementBlock("span", _hoisted_2$4, [
71
72
  renderSlot(_ctx.$slots, "default", {}, () => [
72
73
  createTextVNode(toDisplayString(__props.content), 1)
73
74
  ], true)
@@ -102,11 +103,11 @@ const _export_sfc = (sfc, props) => {
102
103
  }
103
104
  return target;
104
105
  };
105
- const index$2 = /* @__PURE__ */ _export_sfc(_sfc_main$k, [["__scopeId", "data-v-06bb89ce"]]);
106
+ const QdAutoTooltip = /* @__PURE__ */ _export_sfc(_sfc_main$l, [["__scopeId", "data-v-41eb5480"]]);
106
107
  const qdCardProps = {
107
108
  bordered: false
108
109
  };
109
- const _sfc_main$j = /* @__PURE__ */ defineComponent({
110
+ const _sfc_main$k = /* @__PURE__ */ defineComponent({
110
111
  __name: "index",
111
112
  props: /* @__PURE__ */ mergeDefaults({
112
113
  actions: {},
@@ -1276,7 +1277,7 @@ function usePagination(service) {
1276
1277
  };
1277
1278
  const injectedGlobalOptions = inject(GLOBAL_OPTIONS_PROVIDE_KEY, {});
1278
1279
  const {
1279
- pagination,
1280
+ pagination: pagination2,
1280
1281
  ...restOptions
1281
1282
  } = options;
1282
1283
  const {
@@ -1284,7 +1285,7 @@ function usePagination(service) {
1284
1285
  pageSizeKey,
1285
1286
  totalKey,
1286
1287
  totalPageKey
1287
- } = merge$1(defaultPaginationOptions, getGlobalOptions().pagination || {}, injectedGlobalOptions.pagination || {}, pagination || {});
1288
+ } = merge$1(defaultPaginationOptions, getGlobalOptions().pagination || {}, injectedGlobalOptions.pagination || {}, pagination2 || {});
1288
1289
  const finallyOptions = merge$1({
1289
1290
  defaultParams: [{
1290
1291
  [currentKey]: 1,
@@ -12371,7 +12372,7 @@ function useServiceLoadMore({
12371
12372
  manual,
12372
12373
  transformParams,
12373
12374
  transformRes,
12374
- pagination,
12375
+ pagination: pagination2,
12375
12376
  onBefore,
12376
12377
  onAfter,
12377
12378
  onSuccess,
@@ -12395,7 +12396,7 @@ function useServiceLoadMore({
12395
12396
  } = useLoadMore(
12396
12397
  async (params) => {
12397
12398
  const res = { list: [], page: 1, total: 0 };
12398
- const paginationV = unref(pagination);
12399
+ const paginationV = unref(pagination2);
12399
12400
  const currentParams = paginationV !== false ? {
12400
12401
  pageNum: isEmpty(params?.page) ? 1 : params.page + 1,
12401
12402
  pageSize: params?.size ?? paginationV?.pageSize ?? 30
@@ -12495,7 +12496,7 @@ function useServicePagination({
12495
12496
  pollingInterval,
12496
12497
  transformParams,
12497
12498
  transformRes,
12498
- pagination,
12499
+ pagination: pagination2,
12499
12500
  onBefore,
12500
12501
  onAfter,
12501
12502
  onSuccess,
@@ -12525,7 +12526,7 @@ function useServicePagination({
12525
12526
  } = usePagination(
12526
12527
  async (params2) => {
12527
12528
  const res = { list: [], page: 1, total: 0 };
12528
- const paginationV = unref(pagination);
12529
+ const paginationV = unref(pagination2);
12529
12530
  const currentParams = paginationV !== false ? {
12530
12531
  pageNum: params2?.page ?? 1,
12531
12532
  pageSize: params2?.size ?? paginationV?.pageSize ?? 10
@@ -12706,6 +12707,7 @@ function useTimer(type = "timeout") {
12706
12707
  const PROVIDE_USER = Symbol("QdUser");
12707
12708
  const PROVIDE_DICT = Symbol("QdDict");
12708
12709
  const PROVIDE_UPLOAD = Symbol("QdUpload");
12710
+ const PROVIDE_ORG = Symbol("QdOrg");
12709
12711
  const PROVIDE_GLOBAL_CONFIG = Symbol("QdGlobalConfig");
12710
12712
  const QdConfigProvider = defineComponent({
12711
12713
  name: "QdConfigProvider",
@@ -12726,6 +12728,10 @@ const QdConfigProvider = defineComponent({
12726
12728
  type: Object,
12727
12729
  default: void 0
12728
12730
  },
12731
+ org: {
12732
+ type: Object,
12733
+ default: void 0
12734
+ },
12729
12735
  agentChat: {
12730
12736
  type: Object,
12731
12737
  default: void 0
@@ -12746,9 +12752,11 @@ const QdConfigProvider = defineComponent({
12746
12752
  const user = computed(() => props.user);
12747
12753
  const dict = computed(() => props.dict);
12748
12754
  const upload = computed(() => props.upload);
12755
+ const org = computed(() => props.org);
12749
12756
  provide(PROVIDE_USER, user);
12750
12757
  provide(PROVIDE_DICT, dict);
12751
12758
  provide(PROVIDE_UPLOAD, upload);
12759
+ provide(PROVIDE_ORG, org);
12752
12760
  provide(PROVIDE_GLOBAL_CONFIG, mergedGlobalConfig);
12753
12761
  watch(
12754
12762
  () => [props.user, props.dict, props.agentChat],
@@ -12764,8 +12772,8 @@ const QdConfigProvider = defineComponent({
12764
12772
  watchEffect(async () => {
12765
12773
  const localeMap = {
12766
12774
  "zh-CN": () => Promise.resolve().then(() => zhCN$1),
12767
- "zh-TW": () => import("./zh-TW-BJwmP2NG.mjs"),
12768
- "en-US": () => import("./en-US-CjCyqzcw.mjs")
12775
+ "zh-TW": () => import("./zh-TW-WsxT2gkJ.mjs"),
12776
+ "en-US": () => import("./en-US-BKTDfmC9.mjs")
12769
12777
  };
12770
12778
  const loadLocale = localeMap[props.locale] || localeMap["zh-CN"];
12771
12779
  const [err, res] = await to(
@@ -13962,7 +13970,7 @@ function resolveVModelBinding(context, vModel, defaultValue) {
13962
13970
  }
13963
13971
  return bindings;
13964
13972
  }
13965
- const _sfc_main$i = /* @__PURE__ */ defineComponent({
13973
+ const _sfc_main$j = /* @__PURE__ */ defineComponent({
13966
13974
  ...{
13967
13975
  name: "QdConfigRenderer"
13968
13976
  },
@@ -14077,7 +14085,7 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
14077
14085
  return {
14078
14086
  name: slotName,
14079
14087
  fn: withCtx((slotProps) => [
14080
- slotConfig ? (openBlock(), createBlock(_sfc_main$i, mergeProps({
14088
+ slotConfig ? (openBlock(), createBlock(_sfc_main$j, mergeProps({
14081
14089
  key: 0,
14082
14090
  config: slotConfig,
14083
14091
  context: slotConfig.context || currentContext.value
@@ -14280,7 +14288,10 @@ const qdServiceSelectProps = {
14280
14288
  convStr: false
14281
14289
  };
14282
14290
  const qdServiceSelectKeys = {
14283
- value: "value"
14291
+ value: "value",
14292
+ label: "label",
14293
+ disabled: "disabled",
14294
+ children: "children"
14284
14295
  };
14285
14296
  const qdServiceListProps = {
14286
14297
  data: () => []
@@ -15158,7 +15169,7 @@ function useConfig(key, componentLocale) {
15158
15169
  global: globalConfig
15159
15170
  };
15160
15171
  }
15161
- const _sfc_main$h = /* @__PURE__ */ defineComponent({
15172
+ const _sfc_main$i = /* @__PURE__ */ defineComponent({
15162
15173
  ...{
15163
15174
  name: "QdServiceTable"
15164
15175
  },
@@ -15477,7 +15488,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
15477
15488
  manual,
15478
15489
  transformParams,
15479
15490
  transformRes,
15480
- pagination,
15491
+ pagination: pagination2,
15481
15492
  cacheKey,
15482
15493
  cacheTime,
15483
15494
  pollingInterval,
@@ -15666,7 +15677,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
15666
15677
  manual,
15667
15678
  transformParams,
15668
15679
  transformRes: reTransformRes,
15669
- pagination,
15680
+ pagination: pagination2,
15670
15681
  cacheKey,
15671
15682
  cacheTime,
15672
15683
  pollingInterval,
@@ -15819,8 +15830,8 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
15819
15830
  };
15820
15831
  }
15821
15832
  });
15822
- const QdServiceTable = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["__scopeId", "data-v-5a4b2682"]]);
15823
- const _sfc_main$g = /* @__PURE__ */ defineComponent({
15833
+ const QdServiceTable = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["__scopeId", "data-v-5a4b2682"]]);
15834
+ const _sfc_main$h = /* @__PURE__ */ defineComponent({
15824
15835
  ...{
15825
15836
  name: "QdServiceList"
15826
15837
  },
@@ -15861,7 +15872,7 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
15861
15872
  manual,
15862
15873
  transformParams,
15863
15874
  transformRes,
15864
- pagination,
15875
+ pagination: pagination2,
15865
15876
  onBefore,
15866
15877
  onAfter,
15867
15878
  onSuccess,
@@ -15885,7 +15896,7 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
15885
15896
  manual,
15886
15897
  transformParams,
15887
15898
  transformRes,
15888
- pagination,
15899
+ pagination: pagination2,
15889
15900
  onBefore,
15890
15901
  onAfter,
15891
15902
  onSuccess,
@@ -16045,7 +16056,7 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
16045
16056
  };
16046
16057
  }
16047
16058
  });
16048
- const QdServiceList = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["__scopeId", "data-v-d790966c"]]);
16059
+ const QdServiceList = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["__scopeId", "data-v-d790966c"]]);
16049
16060
  const qdDictConvStrSeparator = ",";
16050
16061
  const qdDictSelectProps = {
16051
16062
  showArrow: true,
@@ -16078,7 +16089,7 @@ const qdDictTagProps = {
16078
16089
  options: void 0,
16079
16090
  strict: false
16080
16091
  };
16081
- const _sfc_main$f = /* @__PURE__ */ defineComponent({
16092
+ const _sfc_main$g = /* @__PURE__ */ defineComponent({
16082
16093
  ...{
16083
16094
  name: "QdServiceSelect"
16084
16095
  },
@@ -16086,6 +16097,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
16086
16097
  props: /* @__PURE__ */ mergeDefaults({
16087
16098
  defaultSelectFirst: { type: Boolean },
16088
16099
  convStr: { type: [Boolean, String] },
16100
+ valueLabel: {},
16089
16101
  searchKey: {},
16090
16102
  fillOptions: {},
16091
16103
  transformParams: { type: Function },
@@ -16153,11 +16165,11 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
16153
16165
  transformRes: { type: Function },
16154
16166
  pagination: {}
16155
16167
  }, qdServiceSelectProps),
16156
- emits: ["update:modelValue", "update:inputValue", "update:popupVisible", "update:options"],
16168
+ emits: ["update:modelValue", "update:valueLabel", "update:inputValue", "update:popupVisible", "update:options"],
16157
16169
  setup(__props, { expose: __expose, emit: __emit }) {
16158
16170
  const props = __props;
16159
16171
  const emit = __emit;
16160
- const { modelValue, inputValue, popupVisible, options } = /* @__PURE__ */ useVModels(props, emit, {
16172
+ const { modelValue, valueLabel, inputValue, popupVisible, options } = /* @__PURE__ */ useVModels(props, emit, {
16161
16173
  passive: true
16162
16174
  });
16163
16175
  const reModelValue = computed({
@@ -16189,6 +16201,35 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
16189
16201
  }
16190
16202
  }
16191
16203
  });
16204
+ const reValueLabel = computed({
16205
+ get: () => {
16206
+ const { convStr, selectOptions } = reProps.value;
16207
+ const { multiple, valueType } = selectOptions;
16208
+ if (!multiple || valueType === "object") return valueLabel.value;
16209
+ if (isEmpty(valueLabel.value)) return [];
16210
+ if (typeof valueLabel.value === "string") {
16211
+ return valueLabel.value.split(
16212
+ (typeof convStr === "string" ? convStr : "") || qdDictConvStrSeparator
16213
+ );
16214
+ }
16215
+ return valueLabel.value;
16216
+ },
16217
+ set: (val) => {
16218
+ const { convStr, selectOptions } = reProps.value;
16219
+ const { multiple, valueType } = selectOptions;
16220
+ if (!multiple || valueType === "object") {
16221
+ valueLabel.value = val;
16222
+ return;
16223
+ }
16224
+ if (convStr && Array.isArray(val)) {
16225
+ valueLabel.value = val.join(
16226
+ (typeof convStr === "string" ? convStr : "") || qdDictConvStrSeparator
16227
+ );
16228
+ } else {
16229
+ valueLabel.value = val;
16230
+ }
16231
+ }
16232
+ });
16192
16233
  const { t } = useConfig("loading");
16193
16234
  const search = ref("");
16194
16235
  const autofocus = ref(false);
@@ -16198,7 +16239,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
16198
16239
  manual,
16199
16240
  transformParams,
16200
16241
  transformRes,
16201
- pagination,
16242
+ pagination: pagination2,
16202
16243
  onBefore,
16203
16244
  onAfter,
16204
16245
  onSuccess,
@@ -16212,6 +16253,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
16212
16253
  inputValue: inputValue2,
16213
16254
  popupVisible: inPopupVisible,
16214
16255
  options: inOptions,
16256
+ valueLabel: valueLabel2,
16215
16257
  popupProps,
16216
16258
  filterable,
16217
16259
  filter,
@@ -16219,6 +16261,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
16219
16261
  onSearch,
16220
16262
  onPopupVisibleChange,
16221
16263
  onFocus,
16264
+ onChange,
16222
16265
  ...selectOptions
16223
16266
  } = props;
16224
16267
  const rePopupProps = popupProps || {};
@@ -16246,6 +16289,20 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
16246
16289
  popupVisible.value = true;
16247
16290
  }
16248
16291
  };
16292
+ const reOnChange = (value, context) => {
16293
+ onChange?.(value, context);
16294
+ const { selectOptions: selectOptions2 } = reProps.value;
16295
+ const { multiple, keys: keys2 } = selectOptions2;
16296
+ const labelKey = keys2?.label || qdServiceSelectKeys.label;
16297
+ if (multiple) {
16298
+ const selectedLabels = context.selectedOptions?.map(
16299
+ (option) => option[labelKey]
16300
+ ).filter(Boolean) || [];
16301
+ reValueLabel.value = selectedLabels;
16302
+ } else {
16303
+ reValueLabel.value = context.option?.[labelKey] || "";
16304
+ }
16305
+ };
16249
16306
  const reSearchKey = toArr(searchKey);
16250
16307
  const mergedTransformParams = (params) => {
16251
16308
  const searchData = {};
@@ -16272,14 +16329,15 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
16272
16329
  popupProps: rePopupProps,
16273
16330
  onSearch: reOnSearch,
16274
16331
  onPopupVisibleChange: reOnPopupVisibleChange,
16275
- onfocus: reOnFocus
16332
+ onFocus: reOnFocus,
16333
+ onChange: reOnChange
16276
16334
  },
16277
16335
  serviceOptions: {
16278
16336
  service,
16279
16337
  manual,
16280
16338
  transformParams: mergedTransformParams,
16281
16339
  transformRes,
16282
- pagination,
16340
+ pagination: pagination2,
16283
16341
  onBefore,
16284
16342
  onAfter,
16285
16343
  onSuccess,
@@ -16287,6 +16345,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
16287
16345
  },
16288
16346
  models: {
16289
16347
  modelValue: modelValue2,
16348
+ valueLabel: valueLabel2,
16290
16349
  inputValue: inputValue2,
16291
16350
  popupVisible: inPopupVisible,
16292
16351
  options: inOptions
@@ -16393,10 +16452,12 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
16393
16452
  "onUpdate:input": _cache[1] || (_cache[1] = ($event) => isRef(inputValue) ? inputValue.value = $event : null),
16394
16453
  "popup-visible": unref(popupVisible),
16395
16454
  "onUpdate:popupVisible": _cache[2] || (_cache[2] = ($event) => isRef(popupVisible) ? popupVisible.value = $event : null),
16396
- options: unref(options),
16397
16455
  autofocus: autofocus.value,
16398
16456
  loading: selectLoad.value
16399
- }, reProps.value.selectOptions), createSlots({
16457
+ }, {
16458
+ ...reProps.value.selectOptions,
16459
+ ..._ctx.$slots.default ? {} : { options: unref(options) }
16460
+ }), createSlots({
16400
16461
  "panel-bottom-content": withCtx(() => [
16401
16462
  unref(loading) && !unref(firstLoad) ? (openBlock(), createBlock(unref(Loading), {
16402
16463
  key: 0,
@@ -16405,6 +16466,11 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
16405
16466
  text: unref(t)("text")
16406
16467
  }, null, 8, ["text"])) : _ctx.$slots["panel-bottom-content"] ? renderSlot(_ctx.$slots, "panel-bottom-content", { key: 1 }, void 0, true) : createCommentVNode("", true)
16407
16468
  ]),
16469
+ default: withCtx(() => [
16470
+ renderSlot(_ctx.$slots, "default", {
16471
+ options: unref(options)
16472
+ }, void 0, true)
16473
+ ]),
16408
16474
  _: 2
16409
16475
  }, [
16410
16476
  renderList(unref(extractSlotsWithoutPrefix)(_ctx.$slots, "panel-bottom"), (_, name) => {
@@ -16415,11 +16481,11 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
16415
16481
  ])
16416
16482
  };
16417
16483
  })
16418
- ]), 1040, ["modelValue", "input", "popup-visible", "options", "autofocus", "loading"]);
16484
+ ]), 1040, ["modelValue", "input", "popup-visible", "autofocus", "loading"]);
16419
16485
  };
16420
16486
  }
16421
16487
  });
16422
- const select = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["__scopeId", "data-v-a9450c1a"]]);
16488
+ const QdServiceSelect = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["__scopeId", "data-v-3096e760"]]);
16423
16489
  const qdDialogProps = {
16424
16490
  width: "min(960px, 100%)",
16425
16491
  theme: "default",
@@ -16440,7 +16506,7 @@ const qdDialogFormProps = {
16440
16506
  ...qdFormProps,
16441
16507
  wrapper: () => qdDialogProps
16442
16508
  };
16443
- const _sfc_main$e = /* @__PURE__ */ defineComponent({
16509
+ const _sfc_main$f = /* @__PURE__ */ defineComponent({
16444
16510
  ...{
16445
16511
  name: "QdDialog"
16446
16512
  },
@@ -16560,7 +16626,7 @@ const DEFAULT_BREAKPOINTS = {
16560
16626
  };
16561
16627
  const DEFAULT_COL = 1;
16562
16628
  const DEFAULT_ROW = 1;
16563
- const _sfc_main$d = /* @__PURE__ */ defineComponent({
16629
+ const _sfc_main$e = /* @__PURE__ */ defineComponent({
16564
16630
  ...{
16565
16631
  name: "QdGrid"
16566
16632
  },
@@ -16611,8 +16677,8 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
16611
16677
  };
16612
16678
  }
16613
16679
  });
16614
- const QdGrid = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["__scopeId", "data-v-f53624a2"]]);
16615
- const _sfc_main$c = /* @__PURE__ */ defineComponent({
16680
+ const QdGrid = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["__scopeId", "data-v-f53624a2"]]);
16681
+ const _sfc_main$d = /* @__PURE__ */ defineComponent({
16616
16682
  ...{
16617
16683
  name: "QdGridItem"
16618
16684
  },
@@ -16678,8 +16744,8 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
16678
16744
  };
16679
16745
  }
16680
16746
  });
16681
- const QdGridItem = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["__scopeId", "data-v-f8a13f89"]]);
16682
- const _sfc_main$b = /* @__PURE__ */ defineComponent({
16747
+ const QdGridItem = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["__scopeId", "data-v-f8a13f89"]]);
16748
+ const _sfc_main$c = /* @__PURE__ */ defineComponent({
16683
16749
  ...{
16684
16750
  name: "QdFormItem"
16685
16751
  },
@@ -16722,7 +16788,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
16722
16788
  reRules.push({ required: true, message: `${messagePrefix}${formItemOptions.label}` });
16723
16789
  }
16724
16790
  }
16725
- component.placeholder = component.placeholder ?? `${messagePrefix}${formItemOptions.label}`;
16791
+ component.placeholder = component.placeholder ?? (compName.search("picker") > -1 ? "" : `${messagePrefix}${formItemOptions.label}`);
16726
16792
  component.clearable = component.clearable ?? (required ? false : props.defaultClearable ?? true);
16727
16793
  }
16728
16794
  return {
@@ -16743,7 +16809,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
16743
16809
  crudMode: reProps.value.formItemOptions.crudMode,
16744
16810
  context: __props.context
16745
16811
  }, () => [
16746
- reProps.value.configRendererOptions.config ? (openBlock(), createBlock(unref(_sfc_main$i), mergeProps({
16812
+ reProps.value.configRendererOptions.config ? (openBlock(), createBlock(unref(_sfc_main$j), mergeProps({
16747
16813
  key: 0,
16748
16814
  class: "qd-form-item__component"
16749
16815
  }, reProps.value.configRendererOptions), null, 16)) : createCommentVNode("", true)
@@ -16757,7 +16823,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
16757
16823
  };
16758
16824
  }
16759
16825
  });
16760
- const QdFormItem = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["__scopeId", "data-v-0a78416c"]]);
16826
+ const QdFormItem = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["__scopeId", "data-v-b295e48f"]]);
16761
16827
  const PROVIDE_FORM_ADD_BEFORE_SUBMIT_QUEUE = Symbol("QdFormAddBeforeSubmitQueue");
16762
16828
  function useModal() {
16763
16829
  const { t } = useConfig("modal");
@@ -16931,7 +16997,7 @@ function useModal() {
16931
16997
  confirm
16932
16998
  };
16933
16999
  }
16934
- const _sfc_main$a = /* @__PURE__ */ defineComponent({
17000
+ const _sfc_main$b = /* @__PURE__ */ defineComponent({
16935
17001
  ...{
16936
17002
  name: "QdForm"
16937
17003
  },
@@ -17104,7 +17170,7 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
17104
17170
  };
17105
17171
  }
17106
17172
  });
17107
- const _sfc_main$9 = /* @__PURE__ */ defineComponent({
17173
+ const _sfc_main$a = /* @__PURE__ */ defineComponent({
17108
17174
  __name: "form",
17109
17175
  props: /* @__PURE__ */ mergeDefaults({
17110
17176
  onSubmit: { type: Function },
@@ -17210,12 +17276,12 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
17210
17276
  };
17211
17277
  __expose(expose);
17212
17278
  return (_ctx, _cache) => {
17213
- return openBlock(), createBlock(_sfc_main$e, mergeProps({
17279
+ return openBlock(), createBlock(_sfc_main$f, mergeProps({
17214
17280
  visible: unref(visible),
17215
17281
  "onUpdate:visible": _cache[1] || (_cache[1] = ($event) => isRef(visible) ? visible.value = $event : null)
17216
17282
  }, reProps.value.qdDialogOptions), createSlots({
17217
17283
  default: withCtx(() => [
17218
- createVNode(unref(_sfc_main$a), mergeProps({
17284
+ createVNode(unref(_sfc_main$b), mergeProps({
17219
17285
  ref: "form",
17220
17286
  data: unref(data),
17221
17287
  "onUpdate:data": _cache[0] || (_cache[0] = ($event) => isRef(data) ? data.value = $event : null)
@@ -17259,7 +17325,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
17259
17325
  };
17260
17326
  }
17261
17327
  });
17262
- const _sfc_main$8 = /* @__PURE__ */ defineComponent({
17328
+ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
17263
17329
  ...{
17264
17330
  name: "QdCrudSearch"
17265
17331
  },
@@ -17312,9 +17378,9 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
17312
17378
  });
17313
17379
  __expose(expose);
17314
17380
  return (_ctx, _cache) => {
17315
- return openBlock(), createBlock(unref(_sfc_main$j), { class: "qd-crud-search" }, createSlots({
17381
+ return openBlock(), createBlock(unref(_sfc_main$k), { class: "qd-crud-search" }, createSlots({
17316
17382
  default: withCtx(() => [
17317
- createVNode(unref(_sfc_main$a), mergeProps({
17383
+ createVNode(unref(_sfc_main$b), mergeProps({
17318
17384
  ref: "form",
17319
17385
  data: unref(data),
17320
17386
  "onUpdate:data": _cache[0] || (_cache[0] = ($event) => isRef(data) ? data.value = $event : null)
@@ -17343,7 +17409,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
17343
17409
  };
17344
17410
  }
17345
17411
  });
17346
- const QdCrudSearch = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["__scopeId", "data-v-2cf11b71"]]);
17412
+ const QdCrudSearch = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["__scopeId", "data-v-2cf11b71"]]);
17347
17413
  async function getBytes(stream, onChunk) {
17348
17414
  const reader = stream.getReader();
17349
17415
  let result;
@@ -18166,17 +18232,17 @@ function useDisabled(context) {
18166
18232
  return false;
18167
18233
  });
18168
18234
  }
18169
- const _hoisted_1$3 = {
18235
+ const _hoisted_1$4 = {
18170
18236
  class: "qd-crud-table"
18171
18237
  };
18172
- const _hoisted_2$2 = {
18238
+ const _hoisted_2$3 = {
18173
18239
  class: "qd-crud-table__toolbar"
18174
18240
  };
18175
18241
  const _hoisted_3$1 = {
18176
18242
  key: 0,
18177
18243
  class: "qd-crud-table__toolbar-separator"
18178
18244
  };
18179
- const _sfc_main$7 = /* @__PURE__ */ defineComponent({
18245
+ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
18180
18246
  ...{
18181
18247
  name: "QdCrudTable"
18182
18248
  },
@@ -18974,7 +19040,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
18974
19040
  });
18975
19041
  __expose(expose);
18976
19042
  return (_ctx, _cache) => {
18977
- return openBlock(), createElementBlock("div", _hoisted_1$3, [reProps.value.searchOptions?.items?.length ? withDirectives((openBlock(), createBlock(QdCrudSearch, mergeProps({
19043
+ return openBlock(), createElementBlock("div", _hoisted_1$4, [reProps.value.searchOptions?.items?.length ? withDirectives((openBlock(), createBlock(QdCrudSearch, mergeProps({
18978
19044
  key: 0,
18979
19045
  ref: "search",
18980
19046
  data: unref(searchData),
@@ -19008,10 +19074,10 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
19008
19074
  name: item.filterName,
19009
19075
  fn: withCtx((slotProps) => [renderSlot(_ctx.$slots, item.originalName, normalizeProps(guardReactiveProps(slotProps)), void 0, true)])
19010
19076
  };
19011
- })]), 1040, ["data", "class"])), [[vShow, searchVisible.value]]) : createCommentVNode("", true), createVNode(unref(_sfc_main$j), {
19077
+ })]), 1040, ["data", "class"])), [[vShow, searchVisible.value]]) : createCommentVNode("", true), createVNode(unref(_sfc_main$k), {
19012
19078
  class: "qd-crud-table__body"
19013
19079
  }, {
19014
- default: withCtx(() => [createElementVNode("div", _hoisted_2$2, [createVNode(unref(Space), {
19080
+ default: withCtx(() => [createElementVNode("div", _hoisted_2$3, [createVNode(unref(Space), {
19015
19081
  align: "center",
19016
19082
  size: 0
19017
19083
  }, {
@@ -19020,7 +19086,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
19020
19086
  key: item.uid || index2
19021
19087
  }, [getActionSeparator(item, {
19022
19088
  index: index2
19023
- }) ? (openBlock(), createElementBlock("span", _hoisted_3$1)) : createCommentVNode("", true), withDirectives(createVNode(unref(_sfc_main$i), {
19089
+ }) ? (openBlock(), createElementBlock("span", _hoisted_3$1)) : createCommentVNode("", true), withDirectives(createVNode(unref(_sfc_main$j), {
19024
19090
  context: getConfigRendererCtx(item),
19025
19091
  config: {
19026
19092
  is: unref(Button),
@@ -19132,7 +19198,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
19132
19198
  }) ? (openBlock(), createBlock(unref(Divider), {
19133
19199
  key: 0,
19134
19200
  layout: "vertical"
19135
- })) : createCommentVNode("", true), withDirectives(createVNode(unref(_sfc_main$i), {
19201
+ })) : createCommentVNode("", true), withDirectives(createVNode(unref(_sfc_main$j), {
19136
19202
  context: getConfigRendererCtx(item, slotProps),
19137
19203
  config: {
19138
19204
  is: unref(Link),
@@ -19157,10 +19223,10 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
19157
19223
  })]), 1040, ["data", "selected-row-keys", "active-row-keys", "column-controller-visible", "display-columns", "expanded-row-keys", "filter-value", "sort", "expanded-tree-nodes"])]),
19158
19224
  _: 3
19159
19225
  }), (openBlock(true), createElementBlock(Fragment, null, renderList(dialogFormMap, (dialogForm, uid) => {
19160
- return openBlock(), createBlock(unref(_sfc_main$i), {
19226
+ return openBlock(), createBlock(unref(_sfc_main$j), {
19161
19227
  key: uid,
19162
19228
  config: {
19163
- is: unref(_sfc_main$9),
19229
+ is: unref(_sfc_main$a),
19164
19230
  ...dialogForm.form,
19165
19231
  vModelVisible: "self.visible",
19166
19232
  vModelData: "self.data",
@@ -19172,16 +19238,16 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
19172
19238
  };
19173
19239
  }
19174
19240
  });
19175
- const table = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["__scopeId", "data-v-00994826"]]);
19176
- const _hoisted_1$2 = {
19241
+ const table = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["__scopeId", "data-v-00994826"]]);
19242
+ const _hoisted_1$3 = {
19177
19243
  key: 0,
19178
19244
  class: "qd-crud-list__header"
19179
19245
  };
19180
- const _hoisted_2$1 = {
19246
+ const _hoisted_2$2 = {
19181
19247
  key: 1,
19182
19248
  class: "qd-crud-list__toolbar"
19183
19249
  };
19184
- const _sfc_main$6 = /* @__PURE__ */ defineComponent({
19250
+ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
19185
19251
  __name: "list",
19186
19252
  props: /* @__PURE__ */ mergeDefaults({
19187
19253
  search: {},
@@ -19296,7 +19362,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
19296
19362
  return (_ctx, _cache) => {
19297
19363
  return openBlock(), createElementBlock("div", {
19298
19364
  class: normalizeClass(["qd-crud-list", reProps.value.serviceListOptions.scroll?.target ? "qd-crud-list--has-scroll-target" : ""])
19299
- }, [reProps.value.searchOptions?.items?.length || _ctx.$slots.actions ? (openBlock(), createElementBlock("div", _hoisted_1$2, [reProps.value.searchOptions?.items?.length ? (openBlock(), createBlock(QdCrudSearch, mergeProps({
19365
+ }, [reProps.value.searchOptions?.items?.length || _ctx.$slots.actions ? (openBlock(), createElementBlock("div", _hoisted_1$3, [reProps.value.searchOptions?.items?.length ? (openBlock(), createBlock(QdCrudSearch, mergeProps({
19300
19366
  key: 0,
19301
19367
  ref: "search",
19302
19368
  data: unref(searchData),
@@ -19329,7 +19395,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
19329
19395
  name: item.filterName,
19330
19396
  fn: withCtx((slotProps) => [renderSlot(_ctx.$slots, item.originalName, normalizeProps(guardReactiveProps(slotProps)), void 0, true)])
19331
19397
  };
19332
- })]), 1040, ["data"])) : createCommentVNode("", true), _ctx.$slots.actions ? (openBlock(), createElementBlock("div", _hoisted_2$1, [createVNode(unref(Space), {
19398
+ })]), 1040, ["data"])) : createCommentVNode("", true), _ctx.$slots.actions ? (openBlock(), createElementBlock("div", _hoisted_2$2, [createVNode(unref(Space), {
19333
19399
  align: "center",
19334
19400
  size: "small"
19335
19401
  }, {
@@ -19354,14 +19420,14 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
19354
19420
  };
19355
19421
  }
19356
19422
  });
19357
- const list = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-66a035f0"]]);
19423
+ const list = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["__scopeId", "data-v-66a035f0"]]);
19358
19424
  function defineQdCrudTable(config) {
19359
19425
  return config;
19360
19426
  }
19361
19427
  function defineQdCrudList(config) {
19362
19428
  return config;
19363
19429
  }
19364
- const _sfc_main$5 = /* @__PURE__ */ defineComponent({
19430
+ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
19365
19431
  ...{
19366
19432
  name: "QdDictSelect"
19367
19433
  },
@@ -19515,7 +19581,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
19515
19581
  };
19516
19582
  }
19517
19583
  });
19518
- const _sfc_main$4 = /* @__PURE__ */ defineComponent({
19584
+ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
19519
19585
  ...{
19520
19586
  name: "QdDictRadioGroup"
19521
19587
  },
@@ -19563,8 +19629,8 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
19563
19629
  };
19564
19630
  }
19565
19631
  });
19566
- const radioGroup = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-e97fb1f0"]]);
19567
- const _sfc_main$3 = /* @__PURE__ */ defineComponent({
19632
+ const radioGroup = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-e97fb1f0"]]);
19633
+ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
19568
19634
  ...{
19569
19635
  name: "QdDictCheckboxGroup"
19570
19636
  },
@@ -19630,9 +19696,9 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
19630
19696
  };
19631
19697
  }
19632
19698
  });
19633
- const checkboxGroup = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["__scopeId", "data-v-ef427474"]]);
19634
- const _hoisted_1$1 = { class: "qd-dict-tag" };
19635
- const _sfc_main$2 = /* @__PURE__ */ defineComponent({
19699
+ const checkboxGroup = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-ef427474"]]);
19700
+ const _hoisted_1$2 = { class: "qd-dict-tag" };
19701
+ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
19636
19702
  ...{
19637
19703
  name: "QdDictTag"
19638
19704
  },
@@ -19676,7 +19742,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
19676
19742
  });
19677
19743
  return (_ctx, _cache) => {
19678
19744
  const _directive_loading = resolveDirective("loading");
19679
- return withDirectives((openBlock(), createElementBlock("div", _hoisted_1$1, [
19745
+ return withDirectives((openBlock(), createElementBlock("div", _hoisted_1$2, [
19680
19746
  (openBlock(true), createElementBlock(Fragment, null, renderList(matchOptions.value, (item, index2) => {
19681
19747
  return openBlock(), createElementBlock(Fragment, null, [
19682
19748
  (!reProps.value.theme || reProps.value.theme === "text") && !__props.variant && (item.theme === "text" || !item.theme) ? (openBlock(), createElementBlock("span", {
@@ -19717,7 +19783,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
19717
19783
  };
19718
19784
  }
19719
19785
  });
19720
- const tag = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-cab615cf"]]);
19786
+ const tag = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["__scopeId", "data-v-cab615cf"]]);
19721
19787
  const isNodeJS = typeof process === "object" && process + "" === "[object process]" && !process.versions.nw && !(process.versions.electron && process.type && process.type !== "browser");
19722
19788
  const FONT_IDENTITY_MATRIX = [1e-3, 0, 0, 1e-3, 0, 0];
19723
19789
  const LINE_FACTOR = 1.35;
@@ -54534,15 +54600,15 @@ function useZoom({ viewer, updateViewer, debounceUpdateViewer }) {
54534
54600
  onResize
54535
54601
  };
54536
54602
  }
54537
- const _hoisted_1 = {
54603
+ const _hoisted_1$1 = {
54538
54604
  key: 0,
54539
54605
  class: "qd-office-pdf__controls"
54540
54606
  };
54541
- const _hoisted_2 = { class: "qd-office-pdf__controls-body" };
54607
+ const _hoisted_2$1 = { class: "qd-office-pdf__controls-body" };
54542
54608
  const _hoisted_3 = { class: "qd-office-pdf__controls-page" };
54543
54609
  const _hoisted_4 = { class: "qd-office-pdf__controls-page-input" };
54544
54610
  const _hoisted_5 = { class: "qd-office-pdf__controls-scale" };
54545
- const _sfc_main$1 = /* @__PURE__ */ defineComponent({
54611
+ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
54546
54612
  ...{
54547
54613
  name: "QdOfficePdf"
54548
54614
  },
@@ -54719,8 +54785,8 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
54719
54785
  { "300": true }
54720
54786
  ]
54721
54787
  ]),
54722
- viewer.value ? (openBlock(), createElementBlock("div", _hoisted_1, [
54723
- createElementVNode("div", _hoisted_2, [
54788
+ viewer.value ? (openBlock(), createElementBlock("div", _hoisted_1$1, [
54789
+ createElementVNode("div", _hoisted_2$1, [
54724
54790
  createElementVNode("div", _hoisted_3, [
54725
54791
  createVNode(unref(Tooltip), {
54726
54792
  content: unref(t)("prevPage"),
@@ -54839,7 +54905,275 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
54839
54905
  };
54840
54906
  }
54841
54907
  });
54842
- const index$1 = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-1fea4dd8"]]);
54908
+ const index$1 = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-1fea4dd8"]]);
54909
+ const { pagination, ...otherQdServiceSelectProps } = qdServiceSelectProps;
54910
+ const qdOrgSelectProps = {
54911
+ ...otherQdServiceSelectProps,
54912
+ showFullDeptPath: true
54913
+ };
54914
+ const qdOrgSelectKeys = {
54915
+ ...qdServiceSelectKeys,
54916
+ value: "id",
54917
+ label: "label",
54918
+ jobNumber: "properties.jobNumber",
54919
+ deptName: "properties.deptName",
54920
+ fullDeptPath: "properties.fullDeptPath"
54921
+ };
54922
+ const _hoisted_1 = { class: "qd-service-select__label" };
54923
+ const _hoisted_2 = {
54924
+ key: 1,
54925
+ class: "qd-service-select__desc"
54926
+ };
54927
+ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
54928
+ ...{
54929
+ name: "QdOrgSelect"
54930
+ },
54931
+ __name: "index",
54932
+ props: /* @__PURE__ */ mergeDefaults({
54933
+ type: {},
54934
+ showDeptName: { type: Boolean },
54935
+ showFullDeptPath: { type: Boolean },
54936
+ transformParams: { type: Function },
54937
+ keys: {},
54938
+ defaultSelectFirst: { type: Boolean },
54939
+ convStr: { type: [Boolean, String] },
54940
+ valueLabel: {},
54941
+ searchKey: {},
54942
+ fillOptions: {},
54943
+ autoWidth: { type: Boolean },
54944
+ autofocus: { type: Boolean },
54945
+ borderless: { type: Boolean },
54946
+ clearable: { type: Boolean },
54947
+ collapsedItems: {},
54948
+ creatable: { type: Boolean },
54949
+ disabled: { type: Boolean },
54950
+ empty: {},
54951
+ filter: { type: Function },
54952
+ filterable: { type: Boolean },
54953
+ inputProps: {},
54954
+ inputValue: {},
54955
+ defaultInputValue: {},
54956
+ label: {},
54957
+ loading: { type: Boolean },
54958
+ loadingText: {},
54959
+ max: {},
54960
+ minCollapsedNum: {},
54961
+ multiple: { type: Boolean },
54962
+ options: {},
54963
+ panelBottomContent: {},
54964
+ panelTopContent: {},
54965
+ placeholder: {},
54966
+ popupProps: {},
54967
+ popupVisible: { type: Boolean },
54968
+ defaultPopupVisible: { type: Boolean },
54969
+ prefixIcon: {},
54970
+ readonly: { type: Boolean },
54971
+ reserveKeyword: { type: Boolean },
54972
+ scroll: {},
54973
+ selectInputProps: {},
54974
+ showArrow: { type: Boolean },
54975
+ size: {},
54976
+ status: {},
54977
+ suffix: {},
54978
+ suffixIcon: {},
54979
+ tagInputProps: {},
54980
+ tagProps: {},
54981
+ tips: {},
54982
+ value: {},
54983
+ defaultValue: {},
54984
+ modelValue: {},
54985
+ valueDisplay: {},
54986
+ valueType: {},
54987
+ onBlur: { type: Function },
54988
+ onChange: { type: Function },
54989
+ onClear: { type: Function },
54990
+ onCreate: { type: Function },
54991
+ onEnter: { type: Function },
54992
+ onFocus: { type: Function },
54993
+ onInputChange: { type: Function },
54994
+ onPopupVisibleChange: { type: Function },
54995
+ onRemove: { type: Function },
54996
+ onSearch: { type: Function },
54997
+ onBefore: { type: Function },
54998
+ onAfter: { type: Function },
54999
+ onSuccess: { type: Function },
55000
+ onError: { type: Function },
55001
+ service: { type: Function },
55002
+ manual: { type: Boolean },
55003
+ transformRes: { type: Function }
55004
+ }, qdOrgSelectProps),
55005
+ emits: ["update:modelValue", "update:valueLabel", "update:inputValue", "update:popupVisible", "update:options"],
55006
+ setup(__props, { emit: __emit }) {
55007
+ const props = __props;
55008
+ const emit = __emit;
55009
+ const { modelValue, valueLabel, inputValue, popupVisible, options } = /* @__PURE__ */ useVModels(props, emit, {
55010
+ passive: true
55011
+ });
55012
+ const globalOrg = inject(
55013
+ PROVIDE_ORG,
55014
+ computed(() => void 0)
55015
+ );
55016
+ const reProps = computed(() => {
55017
+ const {
55018
+ type,
55019
+ showDeptName,
55020
+ showFullDeptPath,
55021
+ keys: keys2,
55022
+ modelValue: modelValue2,
55023
+ valueLabel: valueLabel2,
55024
+ inputValue: inputValue2,
55025
+ popupVisible: popupVisible2,
55026
+ options: options2,
55027
+ ...serviceSelectOptions
55028
+ } = props;
55029
+ const globalService = globalOrg.value?.search;
55030
+ const globalSelect = globalOrg.value?.select;
55031
+ const otherOptions = merge(globalSelect, {
55032
+ type,
55033
+ showDeptName,
55034
+ showFullDeptPath
55035
+ });
55036
+ const reKeys = merge(qdOrgSelectKeys, globalSelect?.keys, keys2);
55037
+ const serviceSelectOptionsMerge = merge(
55038
+ globalService,
55039
+ globalSelect,
55040
+ { keys: reKeys, pagination: false },
55041
+ serviceSelectOptions
55042
+ );
55043
+ const transformParams = serviceSelectOptionsMerge.transformParams;
55044
+ serviceSelectOptionsMerge.transformParams = (params) => {
55045
+ params.type = type;
55046
+ params.showFullDeptPath = showFullDeptPath;
55047
+ if (transformParams) return transformParams(params);
55048
+ return params;
55049
+ };
55050
+ return {
55051
+ ...otherOptions,
55052
+ keys: reKeys,
55053
+ serviceSelectOptions: serviceSelectOptionsMerge,
55054
+ models: {
55055
+ modelValue: modelValue2,
55056
+ valueLabel: valueLabel2,
55057
+ inputValue: inputValue2,
55058
+ popupVisible: popupVisible2,
55059
+ options: options2
55060
+ }
55061
+ };
55062
+ });
55063
+ function buildOptions(data) {
55064
+ if (!data) return [];
55065
+ return data.map((item) => {
55066
+ const value = getOptionValue(item);
55067
+ const label = getOptionLabel(item);
55068
+ const disabled = getOptionDisabled(item);
55069
+ const jobNumber = getOptionJobNumber(item);
55070
+ const deptName = getOptionDeptName(item);
55071
+ const fullDeptPath = getOptionFullDeptPath(item);
55072
+ return {
55073
+ value,
55074
+ label,
55075
+ disabled,
55076
+ jobNumber,
55077
+ deptName,
55078
+ fullDeptPath,
55079
+ origOption: item
55080
+ };
55081
+ });
55082
+ }
55083
+ function getOptionValue(option) {
55084
+ return get(option, reProps.value.keys?.value || qdOrgSelectKeys.value);
55085
+ }
55086
+ function getOptionLabel(option) {
55087
+ return get(option, reProps.value.keys?.label || qdOrgSelectKeys.label);
55088
+ }
55089
+ function getOptionDisabled(option) {
55090
+ return get(option, reProps.value.keys?.disabled || qdOrgSelectKeys.disabled);
55091
+ }
55092
+ function getOptionJobNumber(option) {
55093
+ return get(option, reProps.value.keys?.jobNumber || qdOrgSelectKeys.jobNumber);
55094
+ }
55095
+ function getOptionDeptName(option) {
55096
+ return get(option, reProps.value.keys?.deptName || qdOrgSelectKeys.deptName);
55097
+ }
55098
+ function getOptionFullDeptPath(option) {
55099
+ const path = get(option, reProps.value.keys?.fullDeptPath || qdOrgSelectKeys.fullDeptPath);
55100
+ const res = {
55101
+ tooltipDisabled: void 0,
55102
+ content: path,
55103
+ abbreviatedContent: path
55104
+ };
55105
+ const abbreviatedContentSplit = res.abbreviatedContent.split("/");
55106
+ if (abbreviatedContentSplit.length > 2) {
55107
+ res.tooltipDisabled = false;
55108
+ res.abbreviatedContent = `${abbreviatedContentSplit[0]}/.../${abbreviatedContentSplit[abbreviatedContentSplit.length - 1]}`;
55109
+ }
55110
+ return res;
55111
+ }
55112
+ return (_ctx, _cache) => {
55113
+ return openBlock(), createBlock(unref(QdServiceSelect), mergeProps({
55114
+ modelValue: unref(modelValue),
55115
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef(modelValue) ? modelValue.value = $event : null),
55116
+ "value-label": unref(valueLabel),
55117
+ "onUpdate:valueLabel": _cache[1] || (_cache[1] = ($event) => isRef(valueLabel) ? valueLabel.value = $event : null),
55118
+ input: unref(inputValue),
55119
+ "onUpdate:input": _cache[2] || (_cache[2] = ($event) => isRef(inputValue) ? inputValue.value = $event : null),
55120
+ "popup-visible": unref(popupVisible),
55121
+ "onUpdate:popupVisible": _cache[3] || (_cache[3] = ($event) => isRef(popupVisible) ? popupVisible.value = $event : null),
55122
+ options: unref(options),
55123
+ "onUpdate:options": _cache[4] || (_cache[4] = ($event) => isRef(options) ? options.value = $event : null),
55124
+ class: "qd-service-select"
55125
+ }, reProps.value.serviceSelectOptions), createSlots({
55126
+ default: withCtx((slotProps) => [
55127
+ renderSlot(_ctx.$slots, "default", normalizeProps(guardReactiveProps(slotProps)), () => [
55128
+ (openBlock(true), createElementBlock(Fragment, null, renderList(buildOptions(slotProps.options), (item) => {
55129
+ return openBlock(), createBlock(unref(Option), mergeProps({
55130
+ key: item.value,
55131
+ value: item.value,
55132
+ label: item.label,
55133
+ disabled: item.disabled,
55134
+ class: "qd-service-select__option"
55135
+ }, { ref_for: true }, item.origOption), {
55136
+ default: withCtx(() => [
55137
+ createElementVNode("p", _hoisted_1, [
55138
+ createTextVNode(toDisplayString(item.label) + " ", 1),
55139
+ item.jobNumber ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
55140
+ createTextVNode("(" + toDisplayString(item.jobNumber) + ")", 1)
55141
+ ], 64)) : createCommentVNode("", true)
55142
+ ]),
55143
+ reProps.value.showFullDeptPath && item.fullDeptPath.content ? (openBlock(), createBlock(unref(QdAutoTooltip), {
55144
+ key: 0,
55145
+ class: "qd-service-select__desc",
55146
+ "tooltip-disabled": item.fullDeptPath.tooltipDisabled,
55147
+ placement: "right"
55148
+ }, {
55149
+ content: withCtx(() => [
55150
+ createTextVNode(toDisplayString(item.fullDeptPath.content), 1)
55151
+ ]),
55152
+ default: withCtx(() => [
55153
+ createTextVNode(" " + toDisplayString(item.fullDeptPath.abbreviatedContent), 1)
55154
+ ]),
55155
+ _: 2
55156
+ }, 1032, ["tooltip-disabled"])) : reProps.value.showDeptName && item.deptName ? (openBlock(), createElementBlock("p", _hoisted_2, toDisplayString(item.deptName), 1)) : createCommentVNode("", true)
55157
+ ]),
55158
+ _: 2
55159
+ }, 1040, ["value", "label", "disabled"]);
55160
+ }), 128))
55161
+ ])
55162
+ ]),
55163
+ _: 2
55164
+ }, [
55165
+ renderList(_ctx.$slots, (_, name) => {
55166
+ return {
55167
+ name,
55168
+ fn: withCtx((slotProps) => [
55169
+ renderSlot(_ctx.$slots, name, normalizeProps(guardReactiveProps(slotProps)))
55170
+ ])
55171
+ };
55172
+ })
55173
+ ]), 1040, ["modelValue", "value-label", "input", "popup-visible", "options"]);
55174
+ };
55175
+ }
55176
+ });
54843
55177
  const qdUploadProps = {
54844
55178
  modelValue: () => [],
54845
55179
  files: () => [],
@@ -55405,46 +55739,47 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
55405
55739
  });
55406
55740
  const index = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-f0674a59"]]);
55407
55741
  export {
55408
- qdFormGutter as A,
55409
- qdFormGrid as B,
55410
- QdGrid as C,
55411
- QdGridItem as D,
55412
- PROVIDE_GRID_WIDTH_KEY as E,
55413
- PROVIDE_GRID_ITEM_PROPS_KEY as F,
55414
- QdServiceTable as G,
55415
- QdServiceList as H,
55416
- select as I,
55417
- index as J,
55418
- qdUploadAcceptMap as K,
55419
- hasPermiDirective as L,
55420
- hasPermi as M,
55421
- hasRoleDirective as N,
55422
- hasRole as O,
55742
+ QdFormItem as A,
55743
+ qdFormGutter as B,
55744
+ qdFormGrid as C,
55745
+ QdGrid as D,
55746
+ QdGridItem as E,
55747
+ PROVIDE_GRID_WIDTH_KEY as F,
55748
+ PROVIDE_GRID_ITEM_PROPS_KEY as G,
55749
+ QdServiceTable as H,
55750
+ QdServiceList as I,
55751
+ QdServiceSelect as J,
55752
+ index as K,
55753
+ qdUploadAcceptMap as L,
55754
+ hasPermiDirective as M,
55755
+ hasPermi as N,
55756
+ hasRoleDirective as O,
55423
55757
  PROVIDE_FORM_ADD_BEFORE_SUBMIT_QUEUE as P,
55424
- QdConfigProvider as Q,
55425
- useAgentChat as R,
55426
- useModal as S,
55427
- useDict as T,
55428
- useDictDynamic as U,
55429
- useReadonly as V,
55430
- useDisabled as W,
55431
- auth as X,
55758
+ QdAutoTooltip as Q,
55759
+ hasRole as R,
55760
+ useAgentChat as S,
55761
+ useModal as T,
55762
+ useDict as U,
55763
+ useDictDynamic as V,
55764
+ useReadonly as W,
55765
+ useDisabled as X,
55766
+ auth as Y,
55432
55767
  _typeof as _,
55433
- _sfc_main$j as a,
55434
- _sfc_main$i as b,
55768
+ _sfc_main$k as a,
55769
+ QdConfigProvider as b,
55435
55770
  commonjsGlobal as c,
55436
55771
  dayjs_minExports$1 as d,
55437
- qdAsyncCompute as e,
55438
- qdUseComputeValue as f,
55439
- getValueByPath as g,
55440
- QdCrudSearch as h,
55441
- index$2 as i,
55772
+ _sfc_main$j as e,
55773
+ qdAsyncCompute as f,
55774
+ qdUseComputeValue as g,
55775
+ getValueByPath as h,
55776
+ QdCrudSearch as i,
55442
55777
  defineQdCrudTable as j,
55443
55778
  defineQdCrudList as k,
55444
55779
  list as l,
55445
- _sfc_main$e as m,
55446
- _sfc_main$9 as n,
55447
- _sfc_main$5 as o,
55780
+ _sfc_main$f as m,
55781
+ _sfc_main$a as n,
55782
+ _sfc_main$6 as o,
55448
55783
  parseVModelPath as p,
55449
55784
  qdCompute as q,
55450
55785
  resolveVModelBinding as r,
@@ -55454,7 +55789,7 @@ export {
55454
55789
  checkboxGroup as v,
55455
55790
  tag as w,
55456
55791
  index$1 as x,
55457
- _sfc_main$a as y,
55458
- QdFormItem as z
55792
+ _sfc_main$1 as y,
55793
+ _sfc_main$b as z
55459
55794
  };
55460
- //# sourceMappingURL=index-Dhb_qv4a.mjs.map
55795
+ //# sourceMappingURL=index-yfS549bC.mjs.map