@a2simcode/ui 0.0.7 → 0.0.9
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/dist/components/autocomplete/index.d.ts +6 -6
- package/dist/components/barcode/index.d.ts +6 -6
- package/dist/components/buttons/index.d.ts +12 -12
- package/dist/components/cascader-select/index.d.ts +6 -6
- package/dist/components/checkbox/index.d.ts +6 -6
- package/dist/components/code-mirror/index.d.ts +3 -3
- package/dist/components/comp/index.d.ts +6 -6
- package/dist/components/count/index.d.ts +73 -0
- package/dist/components/count/src/count.vue.d.ts +41 -0
- package/dist/components/count-up/index.d.ts +87 -0
- package/dist/components/count-up/src/count-up.vue.d.ts +43 -0
- package/dist/components/data-panel/index.d.ts +27 -0
- package/dist/components/data-panel/src/data-panel.vue.d.ts +24 -0
- package/dist/components/dialog/index.d.ts +6 -6
- package/dist/components/dialog-full/index.d.ts +6 -6
- package/dist/components/divider/index.d.ts +25 -0
- package/dist/components/divider/src/divider.vue.d.ts +29 -0
- package/dist/components/drawer/index.d.ts +6 -6
- package/dist/components/dynamic-layer/index.d.ts +3 -3
- package/dist/components/form/index.d.ts +3 -3
- package/dist/components/form-item/index.d.ts +6 -6
- package/dist/components/guid/index.d.ts +35 -0
- package/dist/components/guid/src/guid.vue.d.ts +28 -0
- package/dist/components/hpanel/index.d.ts +22 -0
- package/dist/components/hpanel/src/hpanel.vue.d.ts +19 -0
- package/dist/components/icon/index.d.ts +3 -3
- package/dist/components/index.d.ts +37 -1
- package/dist/components/input/index.d.ts +6 -6
- package/dist/components/input/src/input.vue.d.ts +1 -1
- package/dist/components/input-button/index.d.ts +65 -0
- package/dist/components/input-button/src/input-button.vue.d.ts +65 -0
- package/dist/components/input-code/index.d.ts +52 -0
- package/dist/components/input-code/src/input-code.vue.d.ts +41 -0
- package/dist/components/input-tag/index.d.ts +3 -3
- package/dist/components/layer/index.d.ts +6 -6
- package/dist/components/number/index.d.ts +3 -3
- package/dist/components/page/index.d.ts +6 -6
- package/dist/components/rate/index.d.ts +3 -3
- package/dist/components/select/index.d.ts +11 -11
- package/dist/components/slider/index.d.ts +3 -3
- package/dist/components/table/index.d.ts +18 -18
- package/dist/components/title/index.d.ts +37 -0
- package/dist/components/title/src/title.vue.d.ts +35 -0
- package/dist/core/utils/common.d.ts +26 -0
- package/dist/core/utils/is.d.ts +2 -0
- package/dist/simcode-ui.es.js +2325 -1703
- package/dist/simcode-ui.umd.js +16 -1
- package/dist/stats.html +1 -1
- package/dist/ui.css +1 -1
- package/package.json +3 -1
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
export interface TitleProps {
|
|
2
|
+
/**
|
|
3
|
+
* 标题文本内容
|
|
4
|
+
*/
|
|
5
|
+
title?: string;
|
|
6
|
+
/**
|
|
7
|
+
* 自定义样式对象
|
|
8
|
+
*/
|
|
9
|
+
style?: Record<string, any>;
|
|
10
|
+
/**
|
|
11
|
+
* 自定义类名
|
|
12
|
+
*/
|
|
13
|
+
class?: string;
|
|
14
|
+
/**
|
|
15
|
+
* 文本颜色
|
|
16
|
+
*/
|
|
17
|
+
color?: string;
|
|
18
|
+
/**
|
|
19
|
+
* 字体大小,支持数字(px)或字符串
|
|
20
|
+
*/
|
|
21
|
+
size?: number | string;
|
|
22
|
+
/**
|
|
23
|
+
* 字体粗细 (normal | bold | bolder | lighter | 100-900)
|
|
24
|
+
*/
|
|
25
|
+
weight?: string | number;
|
|
26
|
+
}
|
|
27
|
+
declare const _default: import('vue').DefineComponent<TitleProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<TitleProps> & Readonly<{}>, {
|
|
28
|
+
size: number | string;
|
|
29
|
+
color: string;
|
|
30
|
+
style: Record<string, any>;
|
|
31
|
+
title: string;
|
|
32
|
+
class: string;
|
|
33
|
+
weight: string | number;
|
|
34
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
35
|
+
export default _default;
|
|
@@ -15,6 +15,7 @@ export declare function deepClone(data: any): any;
|
|
|
15
15
|
* 对象拷贝
|
|
16
16
|
*/
|
|
17
17
|
export declare function clone(res: Record<string, any>, data: Record<string, any>, notKeys?: string[]): void;
|
|
18
|
+
export declare const buildUUID: () => string;
|
|
18
19
|
export declare function buildShortUUID(prefix?: string): string;
|
|
19
20
|
/**
|
|
20
21
|
* 将字符串转换为函数
|
|
@@ -39,3 +40,28 @@ export declare const getFunction: (fun: string) => {
|
|
|
39
40
|
*/
|
|
40
41
|
export declare function set(obj: any, path: string | string[], value: any): any;
|
|
41
42
|
export declare const toDecimal: (x: any) => number;
|
|
43
|
+
/**
|
|
44
|
+
* 分页方法
|
|
45
|
+
* @param pageNo
|
|
46
|
+
* @param pageSize
|
|
47
|
+
* @param array
|
|
48
|
+
* @returns
|
|
49
|
+
*/
|
|
50
|
+
export declare const pagination: (pageNo: number, pageSize: number, array: any[]) => any[];
|
|
51
|
+
export declare const paginationEx: (params: Record<string, any>, array: any[]) => {
|
|
52
|
+
rows: any[];
|
|
53
|
+
total: number;
|
|
54
|
+
page: any;
|
|
55
|
+
records: number;
|
|
56
|
+
};
|
|
57
|
+
export declare const uniqueArray: (arr: any[]) => any[];
|
|
58
|
+
export declare const numberToChinese: (num: string) => string;
|
|
59
|
+
export declare const numberToThousandSeparator: (num: string) => string;
|
|
60
|
+
/**
|
|
61
|
+
* 用来获取文字宽度
|
|
62
|
+
* @param text
|
|
63
|
+
* @returns
|
|
64
|
+
*/
|
|
65
|
+
export declare const getTextWidth: (text: string) => number | undefined;
|
|
66
|
+
export declare function upFirst(str: string): string;
|
|
67
|
+
export declare function lowerFirst(str: string, isFlag?: boolean): string;
|
package/dist/core/utils/is.d.ts
CHANGED