qidian-vue-ui 1.2.69 → 1.2.71

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 (49) hide show
  1. package/dist/components/codemirror/index.vue.d.ts +3 -3
  2. package/dist/components/config-provider/index.d.ts +20 -5
  3. package/dist/components/config-provider/types.d.ts +5 -0
  4. package/dist/components/config-provider/useConfig.d.ts +24 -4
  5. package/dist/components/crud/search/index.vue.d.ts +1 -1
  6. package/dist/components/crud/tabs-table/index.vue.d.ts +5 -5
  7. package/dist/components/dialog/index.vue.d.ts +2 -2
  8. package/dist/components/drawer/index.vue.d.ts +3 -3
  9. package/dist/components/icon/index.vue.mjs +7 -2
  10. package/dist/components/icon/index.vue.mjs.map +1 -1
  11. package/dist/components/md-editor/index.vue.d.ts +2 -2
  12. package/dist/components/md-editor/index.vue.mjs +1 -1
  13. package/dist/components/md-editor/index.vue2.mjs +0 -14
  14. package/dist/components/md-editor/index.vue2.mjs.map +1 -1
  15. package/dist/components/md-editor/index2.css +12 -12
  16. package/dist/components/md-editor/types.d.ts +1 -1
  17. package/dist/components/office/pdf/index.vue.mjs +1 -1
  18. package/dist/components/office/pdf/index.vue2.mjs +3 -3
  19. package/dist/components/office/pdf/index.vue2.mjs.map +1 -1
  20. package/dist/components/office/pdf/index2.css +21 -21
  21. package/dist/components/tinymce/index.css +9 -9
  22. package/dist/components/tinymce/index.vue.d.ts +1 -1
  23. package/dist/components/tinymce/index.vue.mjs +1 -1
  24. package/dist/components/tinymce/index.vue2.mjs +26 -7
  25. package/dist/components/tinymce/index.vue2.mjs.map +1 -1
  26. package/dist/hooks/useAgentChat/index.mjs +4 -3
  27. package/dist/hooks/useAgentChat/index.mjs.map +1 -1
  28. package/dist/hooks/useDict/index.mjs +4 -3
  29. package/dist/hooks/useDict/index.mjs.map +1 -1
  30. package/dist/hooks/useUserAvatar/index.mjs +3 -2
  31. package/dist/hooks/useUserAvatar/index.mjs.map +1 -1
  32. package/dist/index.mjs +2 -0
  33. package/dist/index.mjs.map +1 -1
  34. package/dist/locales/en-US.d.ts +14 -0
  35. package/dist/locales/en-US.mjs +14 -0
  36. package/dist/locales/en-US.mjs.map +1 -1
  37. package/dist/locales/zh-CN.d.ts +14 -0
  38. package/dist/locales/zh-CN.mjs +14 -0
  39. package/dist/locales/zh-CN.mjs.map +1 -1
  40. package/dist/locales/zh-TW.d.ts +14 -0
  41. package/dist/locales/zh-TW.mjs +14 -0
  42. package/dist/locales/zh-TW.mjs.map +1 -1
  43. package/dist/utils/auth.mjs +4 -2
  44. package/dist/utils/auth.mjs.map +1 -1
  45. package/dist/utils/index.d.ts +1 -0
  46. package/dist/utils/tools.d.ts +29 -0
  47. package/dist/utils/tools.mjs +6 -1
  48. package/dist/utils/tools.mjs.map +1 -1
  49. package/package.json +2 -2
@@ -11,8 +11,8 @@ declare const _default: import("vue").DefineComponent<QdCodemirrorProps, {
11
11
  modelValue: string;
12
12
  }> & Omit<{
13
13
  readonly modelValue: string;
14
- readonly style?: import("vue").CSSProperties | undefined;
15
14
  readonly placeholder?: string | undefined;
15
+ readonly style?: import("vue").CSSProperties | undefined;
16
16
  readonly disabled?: boolean | undefined;
17
17
  readonly autofocus?: boolean | undefined;
18
18
  readonly root?: Document | ShadowRoot | undefined;
@@ -140,8 +140,8 @@ declare const _default: import("vue").DefineComponent<QdCodemirrorProps, {
140
140
  indentWithTab: boolean;
141
141
  autoDestroy: boolean;
142
142
  modelValue: string;
143
- style?: import("vue").CSSProperties | undefined;
144
143
  placeholder?: string | undefined;
144
+ style?: import("vue").CSSProperties | undefined;
145
145
  onBlur?: ((viewUpdate: import("@codemirror/view").ViewUpdate) => any) | undefined | undefined;
146
146
  onChange?: ((value: string, viewUpdate: import("@codemirror/view").ViewUpdate) => any) | undefined | undefined;
147
147
  onFocus?: ((viewUpdate: import("@codemirror/view").ViewUpdate) => any) | undefined | undefined;
@@ -165,8 +165,8 @@ declare const _default: import("vue").DefineComponent<QdCodemirrorProps, {
165
165
  }, string, import("vue").PublicProps, Readonly<QdCodemirrorProps> & Readonly<{
166
166
  "onUpdate:modelValue"?: ((args_0: string | undefined) => any) | undefined;
167
167
  }>, {
168
- style: import("vue").CSSProperties;
169
168
  placeholder: string;
169
+ style: import("vue").CSSProperties;
170
170
  disabled: boolean;
171
171
  autofocus: boolean;
172
172
  language: import("./types").QdCodemirrorLanguageName;
@@ -108,6 +108,11 @@ export declare const QdConfigProvider: import("vue").DefineComponent<{
108
108
  pinRightHelp?: string;
109
109
  resetText?: string;
110
110
  };
111
+ tinymce?: {
112
+ uploadNotConfigured?: string;
113
+ uploadFailed?: string;
114
+ fontFormats?: Record<string, string>;
115
+ };
111
116
  }) | undefined;
112
117
  }, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
113
118
  [key: string]: any;
@@ -221,11 +226,14 @@ export declare const QdConfigProvider: import("vue").DefineComponent<{
221
226
  pinRightHelp?: string;
222
227
  resetText?: string;
223
228
  };
229
+ tinymce?: {
230
+ uploadNotConfigured?: string;
231
+ uploadFailed?: string;
232
+ fontFormats?: Record<string, string>;
233
+ };
224
234
  }) | undefined;
225
235
  }> & Readonly<{}>, {
226
- dict: import("../..").QdDictBaseOptions<import("../..").QdDictItem, unknown, string, string> | undefined;
227
- avatar: import("../..").QdAvatarBaseOptions | undefined;
228
- globalConfig: (Omit<import("tdesign-vue-next").GlobalConfigProvider, "form" | "table" | "upload" | "chat"> & {
236
+ globalConfig: (Omit<import("tdesign-vue-next").GlobalConfigProvider, "upload" | "chat" | "form" | "table"> & {
229
237
  loading?: {
230
238
  text?: string;
231
239
  };
@@ -321,6 +329,11 @@ export declare const QdConfigProvider: import("vue").DefineComponent<{
321
329
  pinRightHelp?: string;
322
330
  resetText?: string;
323
331
  };
332
+ tinymce?: {
333
+ uploadNotConfigured?: string;
334
+ uploadFailed?: string;
335
+ fontFormats?: Record<string, string>;
336
+ };
324
337
  }) | undefined;
325
338
  upload: Pick<import("..").QdUploadProps<import("tdesign-vue-next").UploadFile, unknown, string | number | (string | number)[], string | number | (string | number)[], unknown, string | string[], string | string[], unknown, string | number | (string | number)[], string | number | (string | number)[]>, "del" | "name" | "action" | "headers" | "method" | "isBatchUpload" | "requestMethod" | "listOssByIds" | "listOssByUrls"> | undefined;
326
339
  office: {
@@ -331,14 +344,16 @@ export declare const QdConfigProvider: import("vue").DefineComponent<{
331
344
  pdfWasmUrl?: string | undefined;
332
345
  pdfStandardFontDataUrl?: string | undefined;
333
346
  } | undefined;
347
+ tinymce: Pick<import("../tinymce").QdTinymceProps, "name" | "action" | "headers" | "method" | "formatResponse" | "bucketConfigKey" | "skinUrl" | "skinDarkUrl" | "localeUrl" | "contentCss" | "emoticonsUrl" | "externalPlugins"> | undefined;
348
+ dict: import("../..").QdDictBaseOptions<import("../..").QdDictItem, unknown, string, string> | undefined;
349
+ avatar: import("../..").QdAvatarBaseOptions | undefined;
350
+ agentChat: Pick<import("../..").UseAgentChatOptions, "getSessionId" | "getUrl"> | undefined;
334
351
  user: import("./types").QdUser | undefined;
335
352
  org: {
336
353
  search?: Pick<import("..").QdOrgSelectProps, "service" | "transformParams" | "transformRes">;
337
354
  select?: Partial<Pick<import("..").QdOrgSelectProps, "type" | "showDeptName" | "showFullDeptPath" | "keys">>;
338
355
  listOrgByIds?: import("..").QdOrgListByIdsOptions;
339
356
  } | undefined;
340
- agentChat: Pick<import("../..").UseAgentChatOptions, "getSessionId" | "getUrl"> | undefined;
341
- tinymce: Pick<import("../tinymce").QdTinymceProps, "name" | "action" | "headers" | "method" | "formatResponse" | "bucketConfigKey" | "skinUrl" | "skinDarkUrl" | "localeUrl" | "contentCss" | "emoticonsUrl" | "externalPlugins"> | undefined;
342
357
  locale: string | undefined;
343
358
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
344
359
  export type { QdConfigProviderProps } from './types';
@@ -122,5 +122,10 @@ export interface QdConfigProviderProps {
122
122
  pinRightHelp?: string;
123
123
  resetText?: string;
124
124
  };
125
+ tinymce?: {
126
+ uploadNotConfigured?: string;
127
+ uploadFailed?: string;
128
+ fontFormats?: Record<string, string>;
129
+ };
125
130
  };
126
131
  }
@@ -1,6 +1,6 @@
1
1
  import type { QdConfigProviderProps } from './types';
2
2
  export declare function useConfig<T extends keyof NonNullable<QdConfigProviderProps['globalConfig']>>(key: T, componentLocale?: NonNullable<QdConfigProviderProps['globalConfig']>[T]): {
3
- t: <T_1 extends keyof NonNullable<(Omit<import("tdesign-vue-next").GlobalConfigProvider, "form" | "table" | "upload" | "chat"> & {
3
+ t: <T_1 extends keyof NonNullable<(Omit<import("tdesign-vue-next").GlobalConfigProvider, "upload" | "chat" | "form" | "table"> & {
4
4
  loading?: {
5
5
  text?: string;
6
6
  };
@@ -96,7 +96,12 @@ export declare function useConfig<T extends keyof NonNullable<QdConfigProviderPr
96
96
  pinRightHelp?: string;
97
97
  resetText?: string;
98
98
  };
99
- })[T]> = keyof NonNullable<(Omit<import("tdesign-vue-next").GlobalConfigProvider, "form" | "table" | "upload" | "chat"> & {
99
+ tinymce?: {
100
+ uploadNotConfigured?: string;
101
+ uploadFailed?: string;
102
+ fontFormats?: Record<string, string>;
103
+ };
104
+ })[T]> = keyof NonNullable<(Omit<import("tdesign-vue-next").GlobalConfigProvider, "upload" | "chat" | "form" | "table"> & {
100
105
  loading?: {
101
106
  text?: string;
102
107
  };
@@ -192,7 +197,12 @@ export declare function useConfig<T extends keyof NonNullable<QdConfigProviderPr
192
197
  pinRightHelp?: string;
193
198
  resetText?: string;
194
199
  };
195
- })[T]>>(path: T_1) => NonNullable<NonNullable<(Omit<import("tdesign-vue-next").GlobalConfigProvider, "form" | "table" | "upload" | "chat"> & {
200
+ tinymce?: {
201
+ uploadNotConfigured?: string;
202
+ uploadFailed?: string;
203
+ fontFormats?: Record<string, string>;
204
+ };
205
+ })[T]>>(path: T_1) => NonNullable<NonNullable<(Omit<import("tdesign-vue-next").GlobalConfigProvider, "upload" | "chat" | "form" | "table"> & {
196
206
  loading?: {
197
207
  text?: string;
198
208
  };
@@ -288,8 +298,13 @@ export declare function useConfig<T extends keyof NonNullable<QdConfigProviderPr
288
298
  pinRightHelp?: string;
289
299
  resetText?: string;
290
300
  };
301
+ tinymce?: {
302
+ uploadNotConfigured?: string;
303
+ uploadFailed?: string;
304
+ fontFormats?: Record<string, string>;
305
+ };
291
306
  })[T]>[T_1]>;
292
- global: import("vue").ComputedRef<NonNullable<(Omit<import("tdesign-vue-next").GlobalConfigProvider, "form" | "table" | "upload" | "chat"> & {
307
+ global: import("vue").ComputedRef<NonNullable<(Omit<import("tdesign-vue-next").GlobalConfigProvider, "upload" | "chat" | "form" | "table"> & {
293
308
  loading?: {
294
309
  text?: string;
295
310
  };
@@ -385,5 +400,10 @@ export declare function useConfig<T extends keyof NonNullable<QdConfigProviderPr
385
400
  pinRightHelp?: string;
386
401
  resetText?: string;
387
402
  };
403
+ tinymce?: {
404
+ uploadNotConfigured?: string;
405
+ uploadFailed?: string;
406
+ fontFormats?: Record<string, string>;
407
+ };
388
408
  })[T]>>;
389
409
  };
@@ -22,9 +22,9 @@ declare const __VLS_component: import("vue").DefineComponent<QdCrudSearchProps,
22
22
  }, string, import("vue").PublicProps, Readonly<QdCrudSearchProps> & Readonly<{
23
23
  "onUpdate:data"?: ((args_0: import("tdesign-vue-next").Data | undefined) => any) | undefined;
24
24
  }>, {
25
- data: import("tdesign-vue-next").Data;
26
25
  requiredMark: boolean;
27
26
  requiredMarkPosition: "left" | "right";
27
+ data: import("tdesign-vue-next").Data;
28
28
  disabled: boolean;
29
29
  readonly: boolean;
30
30
  grid: import("../..").QdGridItemProps;
@@ -40,12 +40,7 @@ declare const _default: <D extends TableRowData = TableRowData, R = unknown, P =
40
40
  cacheColumnsKey?: string;
41
41
  columns?: import("..").QdCrudTableCol<D>[] | undefined;
42
42
  sort?: import("tdesign-vue-next").TableSort | undefined;
43
- transformRes?: ((res: R) => import("qidian-shared").ServicePageRes<D> | Promise<import("qidian-shared").ServicePageRes<D>>) | undefined;
44
- service?: ((params: TP) => Promise<R>) | undefined;
45
- transformParams?: ((params: ServiceMaybePageParams<Pag>) => TP | Promise<TP>) | undefined;
46
- data?: D[] | undefined;
47
43
  empty?: (string | import("tdesign-vue-next").TNode) | undefined;
48
- scroll?: import("tdesign-vue-next").TScroll | undefined;
49
44
  pagination?: (Pag extends ServicePagination ? false | Pag : Pag) | undefined;
50
45
  tree?: (import("tdesign-vue-next").TableTreeConfig & {
51
46
  lazyLoad?: boolean;
@@ -67,6 +62,11 @@ declare const _default: <D extends TableRowData = TableRowData, R = unknown, P =
67
62
  row: D;
68
63
  }) => import("tdesign-vue-next").TNodeReturnValue) | undefined;
69
64
  bordered?: boolean | undefined;
65
+ transformRes?: ((res: R) => import("qidian-shared").ServicePageRes<D> | Promise<import("qidian-shared").ServicePageRes<D>>) | undefined;
66
+ service?: ((params: TP) => Promise<R>) | undefined;
67
+ transformParams?: ((params: ServiceMaybePageParams<Pag>) => TP | Promise<TP>) | undefined;
68
+ data?: D[] | undefined;
69
+ scroll?: import("tdesign-vue-next").TScroll | undefined;
70
70
  loadingProps?: Partial<import("tdesign-vue-next").LoadingProps> | undefined;
71
71
  attach?: import("tdesign-vue-next").AttachNode | undefined;
72
72
  onChange?: ((data: import("tdesign-vue-next").TableChangeData, context: import("tdesign-vue-next").TableChangeContext<D>) => void) | undefined;
@@ -17,11 +17,11 @@ declare const __VLS_component: import("vue").DefineComponent<QdDialogProps, {
17
17
  }, string, import("vue").PublicProps, Readonly<QdDialogProps> & Readonly<{
18
18
  "onUpdate:visible"?: ((args_0: boolean | undefined) => any) | undefined;
19
19
  }>, {
20
+ closeOnEscKeydown: boolean;
21
+ closeOnOverlayClick: boolean;
20
22
  theme: "default" | "info" | "warning" | "danger" | "success";
21
23
  footer: boolean | import("tdesign-vue-next").TNode;
22
24
  header: string | boolean | import("tdesign-vue-next").TNode;
23
- closeOnEscKeydown: boolean;
24
- closeOnOverlayClick: boolean;
25
25
  attach: import("tdesign-vue-next").AttachNode;
26
26
  preventScrollThrough: boolean;
27
27
  showOverlay: boolean;
@@ -11,11 +11,11 @@ declare const __VLS_component: import("vue").DefineComponent<QdDrawerProps, {
11
11
  }, string, import("vue").PublicProps, Readonly<QdDrawerProps> & Readonly<{
12
12
  "onUpdate:visible"?: ((args_0: boolean | undefined) => any) | undefined;
13
13
  }>, {
14
- footer: boolean | import("tdesign-vue-next").TNode;
15
- header: string | boolean | import("tdesign-vue-next").TNode;
14
+ size: string;
16
15
  closeOnEscKeydown: boolean;
17
16
  closeOnOverlayClick: boolean;
18
- size: string;
17
+ footer: boolean | import("tdesign-vue-next").TNode;
18
+ header: string | boolean | import("tdesign-vue-next").TNode;
19
19
  attach: import("tdesign-vue-next").AttachNode;
20
20
  preventScrollThrough: boolean;
21
21
  showOverlay: boolean;
@@ -1,5 +1,6 @@
1
1
  import { defineComponent, computed, defineAsyncComponent, createBlock, openBlock, resolveDynamicComponent, normalizeProps, guardReactiveProps } from "vue";
2
2
  import { formatGlob } from "qidian-shared";
3
+ import { useUICsl } from "../../utils/tools.mjs";
3
4
  const _sfc_main = /* @__PURE__ */ defineComponent({
4
5
  ...{
5
6
  name: "QdIcon"
@@ -15,6 +16,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
15
16
  },
16
17
  setup(__props) {
17
18
  const props = __props;
19
+ const csl = useUICsl("icon");
18
20
  const loadIcons = formatGlob(
19
21
  /* @__PURE__ */ Object.assign({
20
22
  "/node_modules/tdesign-icons-vue-next/esm/components/ability-open.js": () => import("../../node_modules/.pnpm/tdesign-icons-vue-next@0.4.4_vue@3.5.26_typescript@5.9.3_/node_modules/tdesign-icons-vue-next/esm/components/ability-open.mjs").then((m) => m["default"]),
@@ -2372,9 +2374,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
2372
2374
  );
2373
2375
  const comp = computed(() => {
2374
2376
  const { name } = props;
2375
- if (!name) return "";
2377
+ if (!name) return;
2376
2378
  const loadItem = loadIcons[name];
2377
- if (!loadItem) return "";
2379
+ if (!loadItem) {
2380
+ csl.warn("loadIcon", `图标 "${name}" 不存在`);
2381
+ return;
2382
+ }
2378
2383
  return defineAsyncComponent(() => loadItem());
2379
2384
  });
2380
2385
  return (_ctx, _cache) => {