dlzn-ui 1.58.0 → 1.59.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.
@@ -1,2 +1,3 @@
1
- export * from './src/card';
2
- export { default as TCard } from './src/card.vue';
1
+ import { CardProps, cardPropsInit } from "./src/card.js";
2
+ import _default from "./src/card.vue.js";
3
+ export { CardProps, _default as TCard, cardPropsInit };
@@ -1,11 +1,13 @@
1
- import { CardProps as _CardProps } from 'tdesign-vue-next';
1
+ import { CardProps as CardProps$1 } from "tdesign-vue-next";
2
+ //#region ../../packages/components/card/src/card.d.ts
2
3
  export declare const cardPropsInit: {
3
- readonly bodyFullHeight: false;
4
- readonly headerBordered: true;
5
- readonly shadow: true;
6
- readonly titleEllipsis: false;
4
+ readonly bodyFullHeight: false;
5
+ readonly headerBordered: true;
6
+ readonly shadow: true;
7
+ readonly titleEllipsis: false;
7
8
  };
8
- export type CardProps = Omit<_CardProps, 'content'> & {
9
- bodyFullHeight?: boolean;
10
- titleEllipsis?: boolean;
9
+ export type CardProps = Omit<CardProps$1, 'content'> & {
10
+ bodyFullHeight?: boolean;
11
+ titleEllipsis?: boolean;
11
12
  };
13
+ //#endregion
@@ -1,10 +1,6 @@
1
- import { CardProps } from './card';
2
- import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
- declare const __VLS_export: DefineComponent<CardProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<CardProps> & Readonly<{}>, {
4
- headerBordered: boolean;
5
- shadow: boolean;
6
- bodyFullHeight: boolean;
7
- titleEllipsis: boolean;
8
- }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
1
+ import { CardProps } from "./card.js";
2
+ //#region ../../packages/components/card/src/card.vue.d.ts
3
+ declare const __VLS_export: import("vue").DefineComponent<CardProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<CardProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
9
4
  declare const _default: typeof __VLS_export;
10
- export default _default;
5
+ //#endregion
6
+ export { _default as default };
@@ -0,0 +1,2 @@
1
+ /*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */
2
+ .title_ellipsis[data-v-4a93d2ce] .t-card__header-wrapper{display:inline;overflow:hidden}.title_ellipsis[data-v-4a93d2ce] .t-card__title{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}[data-v-4a93d2ce] .t-card__title{line-height:32px}[data-v-4a93d2ce] .t-card__header{align-items:flex-start}[data-v-4a93d2ce] .t-card__title--bordered:last-child{border-bottom:none}[data-v-4a93d2ce] .t-card__body:has(>.t-form:last-child){padding-bottom:0}[data-v-4a93d2ce] .t-card__actions{min-height:32px;color:inherit;align-items:center;display:flex}[data-v-4a93d2ce] .t-loading__parent:has(.t-card__body.flex-1){flex-direction:column;flex:1;display:flex;overflow-y:auto}
@@ -1,7 +1,7 @@
1
1
  import e from "./card.vue_vue_type_script_setup_true_lang.mjs";
2
- import './card.vue_vue_type_style_index_0_scoped_14f2ea24_lang.css';/* empty css */
2
+ import './card.vue_vue_type_style_index_0_scoped_4a93d2ce_lang.css';/* empty css */
3
3
  import t from "../../../_virtual/_plugin-vue_export-helper.mjs";
4
4
  //#region ../../packages/components/card/src/card.vue
5
- var n = /*#__PURE__*/ t(e, [["__scopeId", "data-v-14f2ea24"]]);
5
+ var n = /*#__PURE__*/ t(e, [["__scopeId", "data-v-4a93d2ce"]]);
6
6
  //#endregion
7
7
  export { n as default };
@@ -1 +1,4 @@
1
- export * from './card';
1
+ import { CardProps, cardPropsInit } from "./card/src/card.js";
2
+ import _default from "./card/src/card.vue.js";
3
+ import "./card/index.js";
4
+ export { CardProps, _default as TCard, cardPropsInit };
@@ -1 +1,2 @@
1
- export * from './others';
1
+ import { passwordReg, passwordRegMessage, validNumberStringReg } from "./others.js";
2
+ export { passwordReg, passwordRegMessage, validNumberStringReg };
@@ -1,3 +1,5 @@
1
+ //#region ../../packages/constants/others.d.ts
1
2
  export declare const passwordReg: RegExp;
2
- export declare const passwordRegMessage = "\u5BC6\u78018\u4F4D\u53CA\u4EE5\u4E0A\uFF0C\u542B\u5927\u5199\u5B57\u6BCD\u3001\u5C0F\u5199\u5B57\u6BCD\u3001\u6570\u5B57\u3001\u7279\u6B8A\u5B57\u7B26\u4E2D\u81F3\u5C11\u4E09\u7C7B";
3
+ export declare const passwordRegMessage = "密码8位及以上,含大写字母、小写字母、数字、特殊字符中至少三类";
3
4
  export declare const validNumberStringReg: RegExp;
5
+ //#endregion
package/index.d.ts CHANGED
@@ -1 +1,4 @@
1
- export * from '../components';
1
+ import { CardProps, cardPropsInit } from "./components/card/src/card.js";
2
+ import _default from "./components/card/src/card.vue.js";
3
+ import "./components/index.js";
4
+ export { CardProps, _default as TCard, cardPropsInit };
package/package.json CHANGED
@@ -33,6 +33,7 @@
33
33
  "tdesign-vue-next": "^1.20.5",
34
34
  "typescript": "^6.0.3",
35
35
  "vue": "^3.5.41",
36
+ "vue-router": "^5.2.0",
36
37
  "vue-tsc": "^3.3.10"
37
38
  },
38
39
  "dependencies": {
@@ -48,5 +49,5 @@
48
49
  "> 1%",
49
50
  "not dead"
50
51
  ],
51
- "version": "1.58.0"
52
+ "version": "1.59.0"
52
53
  }
@@ -1,3 +1,4 @@
1
+ //#region ../../packages/utils/boolean.d.ts
1
2
  /**
2
3
  * @description: 判断是否为空值,一般用于表单填写时的判断
3
4
  * @example 0 和 false 是合法值
@@ -8,3 +9,4 @@ export declare function isFalsy(val: any): val is '' | null | undefined;
8
9
  * @description: 判断是否为有效的数字字符串
9
10
  */
10
11
  export declare function isValidNumberString(val: any): val is string;
12
+ //#endregion
package/utils/index.d.ts CHANGED
@@ -1,5 +1,6 @@
1
- export * from './boolean';
2
- export * from './number';
3
- export * from './string';
4
- export * from './tool';
5
- export * from './tree';
1
+ import { isFalsy, isValidNumberString } from "./boolean.js";
2
+ import { formatNumber, formatSecondsToChinese } from "./number.js";
3
+ import { getFilenameFromUrl, queryStringToObject, stringDisplay } from "./string.js";
4
+ import { aesDecrypt, aesEncrypt, saveAs } from "./tool.js";
5
+ import { flatArrToTree, treeToFlatArr } from "./tree.js";
6
+ export { aesDecrypt, aesEncrypt, flatArrToTree, formatNumber, formatSecondsToChinese, getFilenameFromUrl, isFalsy, isValidNumberString, queryStringToObject, saveAs, stringDisplay, treeToFlatArr };
package/utils/number.d.ts CHANGED
@@ -1,6 +1,7 @@
1
+ //#region ../../packages/utils/number.d.ts
1
2
  type FormatNumberConfig = ConstructorParameters<typeof Intl.NumberFormat>[1] & {
2
- roundingMode?: 'ceil' | 'expand' | 'floor' | 'halfCeil' | 'halfEven' | 'halfExpand' | 'halfFloor' | 'halfTrunc' | 'trunc';
3
- trailingZeroDisplay?: 'auto' | 'stripIfInteger';
3
+ roundingMode?: 'ceil' | 'expand' | 'floor' | 'halfCeil' | 'halfEven' | 'halfExpand' | 'halfFloor' | 'halfTrunc' | 'trunc';
4
+ trailingZeroDisplay?: 'auto' | 'stripIfInteger';
4
5
  };
5
6
  export declare function formatNumber(n: any, config?: FormatNumberConfig): string;
6
7
  /**
@@ -9,4 +10,4 @@ export declare function formatNumber(n: any, config?: FormatNumberConfig): strin
9
10
  * @return {string}
10
11
  */
11
12
  export declare function formatSecondsToChinese(seconds: number): string;
12
- export {};
13
+ //#endregion
package/utils/string.d.ts CHANGED
@@ -1,3 +1,4 @@
1
+ //#region ../../packages/utils/string.d.ts
1
2
  /**
2
3
  * @description: 从 url 中获取文件名
3
4
  * @param {string} url
@@ -12,3 +13,4 @@ export declare function queryStringToObject(queryString: string): Record<string,
12
13
  * @return {string}
13
14
  */
14
15
  export declare function stringDisplay(val: any): string;
16
+ //#endregion
package/utils/tool.d.ts CHANGED
@@ -1,4 +1,6 @@
1
- import { default as FileSaver } from 'file-saver';
1
+ import FileSaver from "file-saver";
2
+ //#region ../../packages/utils/tool.d.ts
2
3
  export declare function aesDecrypt(word: string, keyWord: string): Promise<string>;
3
4
  export declare function aesEncrypt(word: string, keyWord: string): Promise<string>;
4
5
  export declare function saveAs(arg1: Parameters<typeof FileSaver.saveAs>[0], arg2?: Parameters<typeof FileSaver.saveAs>[1], arg3?: FileSaver.FileSaverOptions): Promise<void>;
6
+ //#endregion
package/utils/tree.d.ts CHANGED
@@ -1,6 +1,7 @@
1
+ //#region ../../packages/utils/tree.d.ts
1
2
  interface TreeNode {
2
- [key: string]: any;
3
- children?: TreeNode[];
3
+ [key: string]: any;
4
+ children?: TreeNode[];
4
5
  }
5
6
  /**
6
7
  * 将扁平数组转换为树形结构
@@ -13,14 +14,14 @@ interface TreeNode {
13
14
  * @returns 树形结构数组
14
15
  */
15
16
  export declare function flatArrToTree(data: Record<string, any>[], options?: {
16
- childrenKey?: string;
17
- idKey?: string;
18
- parentKey?: string;
19
- rootParentId?: null | string;
17
+ childrenKey?: string;
18
+ idKey?: string;
19
+ parentKey?: string;
20
+ rootParentId?: null | string;
20
21
  }): TreeNode[];
21
22
  export declare function treeToFlatArr(tree: TreeNode[], options?: {
22
- idKey?: string;
23
- includeLevel?: boolean;
24
- includeParent?: boolean;
23
+ idKey?: string;
24
+ includeLevel?: boolean;
25
+ includeParent?: boolean;
25
26
  }): Record<string, any>[];
26
- export {};
27
+ //#endregion
@@ -1,2 +0,0 @@
1
- /*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */
2
- .title_ellipsis[data-v-14f2ea24] .t-card__header-wrapper{display:inline;overflow:hidden}.title_ellipsis[data-v-14f2ea24] .t-card__title{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}[data-v-14f2ea24] .t-card__title{line-height:32px}[data-v-14f2ea24] .t-card__header{align-items:flex-start}[data-v-14f2ea24] .t-card__title--bordered:last-child{border-bottom:none}[data-v-14f2ea24] .t-card__body:has(>.t-form:last-child){padding-bottom:0}[data-v-14f2ea24] .t-card__actions{min-height:32px;color:inherit;align-items:center;display:flex}[data-v-14f2ea24] .t-loading__parent:has(.t-card__body.flex-1){flex-direction:column;flex:1;display:flex;overflow-y:auto}