dlzn-ui 1.68.0 → 1.69.0

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.
@@ -5,9 +5,9 @@ declare const __VLS_export: import("vue").DefineComponent<CheckboxProps, {}, {},
5
5
  }, string, import("vue").PublicProps, Readonly<CheckboxProps> & Readonly<{
6
6
  "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
7
7
  }>, {
8
+ value: string | number | boolean;
8
9
  disabled: boolean;
9
10
  readonly: boolean;
10
- value: string | number | boolean;
11
11
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
12
12
  declare const _default: typeof __VLS_export;
13
13
  //#endregion
@@ -6,9 +6,9 @@ declare const __VLS_export: import("vue").DefineComponent<InputNumberProps$1, {}
6
6
  }, string, import("vue").PublicProps, Readonly<InputNumberProps$1> & Readonly<{
7
7
  "onUpdate:modelValue"?: ((value: InputNumberValue) => any) | undefined;
8
8
  }>, {
9
+ theme: "normal" | "row";
9
10
  disabled: boolean;
10
11
  readonly: boolean;
11
- theme: "normal" | "row";
12
12
  min: InputNumberValue;
13
13
  autoWidth: boolean;
14
14
  decimalPlaces: import("tdesign-vue-next").InputNumberDecimalPlaces;
@@ -2,8 +2,8 @@ import { PopupProps } from "./popup.js";
2
2
  //#region ../../packages/dlzn-ui/components/popup/src/popup.vue.d.ts
3
3
  declare const __VLS_export: import("vue").DefineComponent<PopupProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<PopupProps> & Readonly<{}>, {
4
4
  visible: boolean;
5
- showArrow: boolean;
6
5
  delay: number | Array<number>;
6
+ showArrow: boolean;
7
7
  hideEmptyPopup: boolean;
8
8
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
9
9
  declare const _default: typeof __VLS_export;
@@ -12,8 +12,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {},
12
12
  "onUpdate:modelValue"?: ((value: RangeInputValue) => any) | undefined;
13
13
  }>, {
14
14
  disabled: boolean | Array<boolean>;
15
- readonly: boolean;
16
15
  max: number;
16
+ readonly: boolean;
17
17
  min: number;
18
18
  decimalPlaces: number;
19
19
  isNumberRange: boolean;
@@ -1,18 +1,18 @@
1
1
  import { SelectProps } from "./select.js";
2
2
  //#region ../../packages/dlzn-ui/components/select/src/select.vue.d.ts
3
3
  declare const __VLS_export: import("vue").DefineComponent<SelectProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<SelectProps> & Readonly<{}>, {
4
+ keys: import("tdesign-vue-next").KeysType;
4
5
  disabled: boolean;
5
6
  readonly: boolean;
6
- keys: import("tdesign-vue-next").KeysType;
7
7
  showCheckAll: boolean;
8
8
  showArrow: boolean;
9
+ scroll: import("tdesign-vue-next").InfinityScroll;
9
10
  placeholder: string;
10
11
  clearable: boolean;
11
- multiple: boolean;
12
- scroll: import("tdesign-vue-next").InfinityScroll;
13
12
  filterable: boolean;
14
13
  inputValue: string;
15
14
  minCollapsedNum: number;
15
+ multiple: boolean;
16
16
  popupVisible: boolean;
17
17
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
18
18
  declare const _default: typeof __VLS_export;
@@ -1,8 +1,8 @@
1
1
  import { TagProps } from "./tag.js";
2
2
  //#region ../../packages/dlzn-ui/components/tag/src/tag.vue.d.ts
3
3
  declare const __VLS_export: import("vue").DefineComponent<TagProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<TagProps> & Readonly<{}>, {
4
- title: string | boolean;
5
4
  size: import("tdesign-vue-next").SizeEnum;
5
+ title: string | boolean;
6
6
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
7
7
  declare const _default: typeof __VLS_export;
8
8
  //#endregion
@@ -2,10 +2,10 @@ import { TreeProps as TreeProps$1 } from "./tree.js";
2
2
  import { TreeInstanceFunctions } from "tdesign-vue-next";
3
3
  //#region ../../packages/dlzn-ui/components/tree/src/tree.vue.d.ts
4
4
  declare const __VLS_export: import("vue").DefineComponent<TreeProps$1, TreeInstanceFunctions<import("tdesign-vue-next").TreeOptionData>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<TreeProps$1> & Readonly<{}>, {
5
- disabled: boolean;
6
- label: string | boolean | ((h: typeof import("vue").h, props: import("tdesign-vue-next").TreeNodeModel<import("tdesign-vue-next/es/tree/utils/adapt").TypeTreeOptionData>) => import("tdesign-vue-next").TNodeReturnValue);
7
5
  lazy: boolean;
6
+ disabled: boolean;
8
7
  icon: boolean | ((h: typeof import("vue").h, props: import("tdesign-vue-next").TreeNodeModel<import("tdesign-vue-next/es/tree/utils/adapt").TypeTreeOptionData>) => import("tdesign-vue-next").TNodeReturnValue);
8
+ label: string | boolean | ((h: typeof import("vue").h, props: import("tdesign-vue-next").TreeNodeModel<import("tdesign-vue-next/es/tree/utils/adapt").TypeTreeOptionData>) => import("tdesign-vue-next").TNodeReturnValue);
9
9
  hover: boolean;
10
10
  checkable: boolean;
11
11
  expandOnClickNode: boolean;
@@ -3,10 +3,10 @@ import { UploadInstanceFunctions, UploadProps } from "./upload.js";
3
3
  declare var __VLS_10: string, __VLS_11: any;
4
4
  type __VLS_Slots = {} & { [K in NonNullable<typeof __VLS_10>]?: (props: typeof __VLS_11) => any; };
5
5
  declare const __VLS_base: import("vue").DefineComponent<UploadProps, UploadInstanceFunctions, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<UploadProps> & Readonly<{}>, {
6
- disabled: boolean;
7
6
  theme: "custom" | "file" | "file-input" | "file-flow" | "image" | "image-flow";
8
- accept: string;
7
+ disabled: boolean;
9
8
  multiple: boolean;
9
+ accept: string;
10
10
  useMockProgress: boolean;
11
11
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
12
12
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
package/index.d.ts CHANGED
@@ -59,7 +59,7 @@ export interface AppParams {
59
59
  busComponentPropsMap: Record<string, any>;
60
60
  busFormItems: Map<string, AsyncComponentLoader>;
61
61
  useListPromiseMap: Record<string, () => Promise<ListItem[]>>;
62
- viewsEntryLazyImport: Record<string, LazyVueComponentImport>;
62
+ viewsEntryLazyImport: Record<string, AsyncVueComponentLoaderDefault>;
63
63
  }
64
64
  //#endregion
65
65
  export { AllowedComponentProps, ButtonProps, CardProps, CheckboxGroupProps, CheckboxProps, DEFAULT_ACCEPT, FormExposed, FormInstance, FormItem, FormItemComponentPropsUnderlyingWithMeta, FormItemProps, FormProps, FormPropsData, GetFormData, IconProps, ImageProps, ImageViewerProps, InputNumberProps, InputProps, LinkProps, PaginationProps, PopconfirmProps, PopupProps, RadioGroupProps, RangeInputProps, ResolvedFormItem, SelectProps, SetFormData, SliderProps, SlotItem, SwitchProps, _default as TButton, _default$1 as TCard, _default$2 as TCheckbox, _default$3 as TCheckboxGroup, _default$4 as TForm, _default$5 as TIcon, _default$6 as TImage, _default$7 as TImageViewer, _default$8 as TInput, _default$9 as TInputNumber, _default$10 as TLink, _default$11 as TPagination, _default$12 as TPopconfirm, _default$13 as TPopup, _default$14 as TRadioGroup, _default$15 as TRangeInput, _default$16 as TSelect, _default$17 as TSlider, _default$18 as TSwitch, _default$19 as TTabPanel, _default$20 as TTag, _default$21 as TTagInput, _default$22 as TTextarea, _default$23 as TTree, _default$24 as TTreeSelect, _default$25 as TUpload, type TabPanelProps, TagInputProps, TagProps, TextareaProps, TreeProps, TreeSelectProps, UploadFile, UploadInstanceFunctions, UploadProps, buttonPropsInit, cardPropsInit, formPropsInit, imagePropsInit, imageViewerPropsInit, inputNumberPropsInit, inputPropsInit, linkPropsInit, selectPropsInit, sliderPropsInit, switchPropsInit, tagInputPropsInit, tagPropsInit, treePropsInit };
package/package.json CHANGED
@@ -66,5 +66,5 @@
66
66
  "> 1%",
67
67
  "not dead"
68
68
  ],
69
- "version": "1.68.0"
69
+ "version": "1.69.0"
70
70
  }
@@ -2,7 +2,7 @@ import { Component, Ref } from "vue";
2
2
  //#region ../../packages/dlzn-ui/store/modules/router.d.ts
3
3
  export interface RouteRecordRaw {
4
4
  children?: RouteRecordRaw[];
5
- component?: Component | LazyVueComponentImport;
5
+ component?: AsyncVueComponentLoaderDefault | Component;
6
6
  meta: {
7
7
  fullScreen: boolean;
8
8
  hidden: boolean;
@@ -19,7 +19,7 @@ export interface RouteRecordRaw {
19
19
  }
20
20
  interface ResRouterItem extends Omit<RouteRecordRaw, 'children' | 'component' | 'meta' | 'redirect'> {
21
21
  children?: ResRouterItem[];
22
- component?: Component | LazyVueComponentImport | string;
22
+ component?: AsyncVueComponentLoaderDefault | Component | string;
23
23
  hidden?: boolean;
24
24
  meta?: {
25
25
  fullScreen?: boolean;
@@ -80,7 +80,7 @@ function _(e) {
80
80
  return;
81
81
  }
82
82
  return typeof t == "string" && h.push(g(t)), () => n().then((t) => ({
83
- ...t,
83
+ ...t.default,
84
84
  name: e.name
85
85
  }));
86
86
  }
package/types/globle.d.ts CHANGED
@@ -3,7 +3,9 @@ import type { Component } from 'vue'
3
3
  export {} // 为了让这个声明文件变成模块声明文件,而不是一个全局声明文件
4
4
 
5
5
  declare global {
6
- export type LazyVueComponentImport = () => Promise<Component>
6
+ export type AsyncVueComponentLoaderDefault = () => Promise<{
7
+ default: Component
8
+ }>
7
9
 
8
10
  type PettyPrimitive = null | number | string | undefined
9
11
  interface Window {