dlzn-ui 1.58.0 → 1.60.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.
- package/components/card/index.d.ts +3 -2
- package/components/card/src/card.d.ts +10 -8
- package/components/card/src/card.vue.d.ts +5 -9
- package/components/card/src/card.vue_vue_type_style_index_0_scoped_4a93d2ce_lang.css +2 -0
- package/components/card/src/card2.mjs +2 -2
- package/components/index.d.ts +4 -1
- package/constants/index.d.ts +2 -1
- package/constants/others.d.ts +3 -1
- package/index.d.ts +4 -1
- package/package.json +2 -1
- package/utils/boolean.d.ts +2 -0
- package/utils/index.d.ts +6 -5
- package/utils/number.d.ts +4 -3
- package/utils/string.d.ts +2 -0
- package/utils/tool.d.ts +3 -1
- package/utils/tree.d.ts +11 -10
- package/components/card/src/card.vue_vue_type_style_index_0_scoped_14f2ea24_lang.css +0 -2
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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
|
|
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
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
readonly bodyFullHeight: false;
|
|
5
|
+
readonly headerBordered: true;
|
|
6
|
+
readonly shadow: true;
|
|
7
|
+
readonly titleEllipsis: false;
|
|
7
8
|
};
|
|
8
|
-
export type CardProps = Omit<
|
|
9
|
-
|
|
10
|
-
|
|
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
|
|
2
|
-
|
|
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
|
-
|
|
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.
|
|
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-
|
|
5
|
+
var n = /*#__PURE__*/ t(e, [["__scopeId", "data-v-4a93d2ce"]]);
|
|
6
6
|
//#endregion
|
|
7
7
|
export { n as default };
|
package/components/index.d.ts
CHANGED
package/constants/index.d.ts
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import { passwordReg, passwordRegMessage, validNumberStringReg } from "./others.js";
|
|
2
|
+
export { passwordReg, passwordRegMessage, validNumberStringReg };
|
package/constants/others.d.ts
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
//#region ../../packages/constants/others.d.ts
|
|
1
2
|
export declare const passwordReg: RegExp;
|
|
2
|
-
export declare const passwordRegMessage = "
|
|
3
|
+
export declare const passwordRegMessage = "密码8位及以上,含大写字母、小写字母、数字、特殊字符中至少三类";
|
|
3
4
|
export declare const validNumberStringReg: RegExp;
|
|
5
|
+
//#endregion
|
package/index.d.ts
CHANGED
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.
|
|
52
|
+
"version": "1.60.0"
|
|
52
53
|
}
|
package/utils/boolean.d.ts
CHANGED
|
@@ -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
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
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
|
-
|
|
3
|
-
|
|
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
|
-
|
|
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
|
|
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
|
-
|
|
3
|
-
|
|
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
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
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
|
-
|
|
23
|
-
|
|
24
|
-
|
|
23
|
+
idKey?: string;
|
|
24
|
+
includeLevel?: boolean;
|
|
25
|
+
includeParent?: boolean;
|
|
25
26
|
}): Record<string, any>[];
|
|
26
|
-
|
|
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}
|