lew-ui 2.3.10 → 2.4.1
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/LICENSE +21 -21
- package/README.md +1 -1
- package/README.zh-CN.md +1 -1
- package/dist/components/alert/src/LewAlert.vue.d.ts +71 -12
- package/dist/components/alert/src/props.d.ts +27 -10
- package/dist/components/button/src/LewButton.vue.d.ts +21 -45
- package/dist/components/button/src/props.d.ts +5 -16
- package/dist/components/checkbox/src/LewCheckbox.vue.d.ts +2 -2
- package/dist/components/checkbox/src/LewCheckboxGroup.vue.d.ts +1 -1
- package/dist/components/drawer/src/LewDrawer.vue.d.ts +25 -3
- package/dist/components/empty/src/LewEmpty.vue.d.ts +6 -6
- package/dist/components/form/src/LewForm.vue.d.ts +1 -1
- package/dist/components/form/src/LewFormItem.vue.d.ts +4 -4
- package/dist/components/image/src/LewImage.vue.d.ts +1 -1
- package/dist/components/index.d.ts +0 -1
- package/dist/components/input-number/src/LewInputNumber.vue.d.ts +2 -2
- package/dist/components/magic-number/src/LewMagicNumber.vue.d.ts +1 -1
- package/dist/components/mark/src/LewMark.vue.d.ts +1 -1
- package/dist/components/menu/src/LewMenu.vue.d.ts +2 -2
- package/dist/components/menu/src/props.d.ts +1 -1
- package/dist/components/menu-tree/src/LewMenuTree.vue.d.ts +2 -2
- package/dist/components/menu-tree/src/props.d.ts +1 -1
- package/dist/components/modal/src/LewModal.vue.d.ts +25 -3
- package/dist/components/popok/src/LewPopok.vue.d.ts +25 -3
- package/dist/components/radio/src/LewRadio.vue.d.ts +2 -2
- package/dist/components/radio/src/LewRadioGroup.vue.d.ts +1 -1
- package/dist/components/switch/src/LewSwitch.vue.d.ts +1 -1
- package/dist/components/table/src/LewTable.vue.d.ts +2 -0
- package/dist/components/table/src/props.d.ts +1 -0
- package/dist/components/tabs/src/LewTabs.vue.d.ts +1 -1
- package/dist/components/tag/src/LewTag.vue.d.ts +17 -6
- package/dist/components/tag/src/props.d.ts +5 -0
- package/dist/components/text-trim/src/LewTextTrim.vue.d.ts +12 -5
- package/dist/components/text-trim/src/props.d.ts +1 -2
- package/dist/components/textarea/src/LewTextarea.vue.d.ts +1 -1
- package/dist/components/title/src/LewTitle.vue.d.ts +2 -2
- package/dist/components/upload/src/LewUpload.vue.d.ts +1 -1
- package/dist/confetti.browser.min.js +456 -456
- package/dist/directives/dialog/src/LewDialog.vue.d.ts +2 -2
- package/dist/directives/dialog/src/index.d.ts +2 -2
- package/dist/docs/docs/alert/demo/index.d.ts +5 -1
- package/dist/docs/docs/table/demo/index.d.ts +3 -1
- package/dist/docs/lib/data.d.ts +0 -90
- package/dist/index.mjs +1345 -3602
- package/dist/index.umd.js +32 -682
- package/dist/style.css +1 -1
- package/dist/utils/Icon.vue.d.ts +59 -0
- package/dist/utils/index.d.ts +3 -13
- package/package.json +4 -5
- package/dist/components/alert/__test__/alert.test.d.ts +0 -1
- package/dist/components/icon/index.d.ts +0 -3
- package/dist/docs/docs/icon/api/index.d.ts +0 -1
- package/dist/docs/docs/icon/api/props.d.ts +0 -11
- package/dist/docs/docs/icon/demo/index.d.ts +0 -6
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
declare const _default: import('vue').DefineComponent<globalThis.ExtractPropTypes<{
|
|
2
|
+
type: {
|
|
3
|
+
type: StringConstructor;
|
|
4
|
+
default: string;
|
|
5
|
+
};
|
|
6
|
+
dark: {
|
|
7
|
+
type: BooleanConstructor;
|
|
8
|
+
default: boolean;
|
|
9
|
+
};
|
|
10
|
+
strokeWidth: {
|
|
11
|
+
type: NumberConstructor;
|
|
12
|
+
default: number;
|
|
13
|
+
};
|
|
14
|
+
size: {
|
|
15
|
+
type: NumberConstructor;
|
|
16
|
+
default: number;
|
|
17
|
+
};
|
|
18
|
+
spinning: {
|
|
19
|
+
type: BooleanConstructor;
|
|
20
|
+
default: boolean;
|
|
21
|
+
};
|
|
22
|
+
speed: {
|
|
23
|
+
type: NumberConstructor;
|
|
24
|
+
default: number;
|
|
25
|
+
};
|
|
26
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<{
|
|
27
|
+
type: {
|
|
28
|
+
type: StringConstructor;
|
|
29
|
+
default: string;
|
|
30
|
+
};
|
|
31
|
+
dark: {
|
|
32
|
+
type: BooleanConstructor;
|
|
33
|
+
default: boolean;
|
|
34
|
+
};
|
|
35
|
+
strokeWidth: {
|
|
36
|
+
type: NumberConstructor;
|
|
37
|
+
default: number;
|
|
38
|
+
};
|
|
39
|
+
size: {
|
|
40
|
+
type: NumberConstructor;
|
|
41
|
+
default: number;
|
|
42
|
+
};
|
|
43
|
+
spinning: {
|
|
44
|
+
type: BooleanConstructor;
|
|
45
|
+
default: boolean;
|
|
46
|
+
};
|
|
47
|
+
speed: {
|
|
48
|
+
type: NumberConstructor;
|
|
49
|
+
default: number;
|
|
50
|
+
};
|
|
51
|
+
}>> & Readonly<{}>, {
|
|
52
|
+
type: string;
|
|
53
|
+
dark: boolean;
|
|
54
|
+
strokeWidth: number;
|
|
55
|
+
size: number;
|
|
56
|
+
spinning: boolean;
|
|
57
|
+
speed: number;
|
|
58
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
59
|
+
export default _default;
|
package/dist/utils/index.d.ts
CHANGED
|
@@ -1,15 +1,10 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* 获取图标类型用于提示框。
|
|
3
|
-
* @param {string | undefined} type - 提示框中显示的消息类型。
|
|
4
|
-
* @returns {string} 对应的图标类型。
|
|
5
|
-
*/
|
|
6
|
-
export declare const getIconType: (type: string | undefined) => string;
|
|
7
1
|
/**
|
|
8
2
|
* 获取颜色类型。
|
|
9
3
|
* @param {string | undefined} type - 消息类型。
|
|
10
4
|
* @returns {string} 对应的颜色类型。
|
|
11
5
|
*/
|
|
12
|
-
export declare const
|
|
6
|
+
export declare const iconColorType: Record<string, string>;
|
|
7
|
+
export declare const getColorType: (type: string) => string;
|
|
13
8
|
/**
|
|
14
9
|
* 将对象转换为类名字符串。
|
|
15
10
|
* @param {string} prefix - 类名前缀。
|
|
@@ -44,12 +39,6 @@ export declare const lewSetForm: ({ formRef, params }: {
|
|
|
44
39
|
* @returns {string} 生成的唯一ID。
|
|
45
40
|
*/
|
|
46
41
|
export declare const getUniqueId: () => string;
|
|
47
|
-
/**
|
|
48
|
-
* 获取状态图标的SVG字符串。
|
|
49
|
-
* @param {string} type - 状态类型。
|
|
50
|
-
* @returns {string} 对应的SVG字符串。
|
|
51
|
-
*/
|
|
52
|
-
export declare const getStatusIcon: (type: string) => any;
|
|
53
42
|
/**
|
|
54
43
|
* 根据映射格式化表单数据。
|
|
55
44
|
* @param {any} formMap - 表单映射。
|
|
@@ -80,3 +69,4 @@ export declare const getAssetsFile: ({ name, type }: {
|
|
|
80
69
|
* @returns {string} 文件图标的URL。
|
|
81
70
|
*/
|
|
82
71
|
export declare const getFileIcon: (fileName?: string) => string;
|
|
72
|
+
export declare const getIconInnerHTML: (e?: any) => string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "lew-ui",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.4.1",
|
|
4
4
|
"description": "A Component Library for Vue3.js.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"vue3",
|
|
@@ -44,11 +44,10 @@
|
|
|
44
44
|
"@vueuse/core": "^10.11.0",
|
|
45
45
|
"axios": "^1.6.7",
|
|
46
46
|
"dayjs": "^1.11.7",
|
|
47
|
-
"feather-icons": "^4.29.0",
|
|
48
47
|
"highlight.js": "^11.9.0",
|
|
49
48
|
"lodash-es": "^4.17.21",
|
|
49
|
+
"lucide-vue-next": "^0.441.0",
|
|
50
50
|
"tippy.js": "^6.3.7",
|
|
51
|
-
"vue-feather": "^2.0.0",
|
|
52
51
|
"vue-router": "^4.0.13",
|
|
53
52
|
"vuedraggable": "^4.1.0",
|
|
54
53
|
"yup": "^1.2.0"
|
|
@@ -89,8 +88,8 @@
|
|
|
89
88
|
"vite-plugin-style-import": "^2.0.0",
|
|
90
89
|
"vite-plugin-zip-pack": "^1.2.3",
|
|
91
90
|
"vitest": "^0.21.1",
|
|
92
|
-
"vue
|
|
93
|
-
"vue": "^
|
|
91
|
+
"vue": "^3.5.3",
|
|
92
|
+
"vue-tsc": "^2.0.11"
|
|
94
93
|
},
|
|
95
94
|
"peerDependencies": {
|
|
96
95
|
"vue": "^3.5.3"
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default as props } from './props';
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { default as DemoIcon1 } from './DemoIcon1.vue';
|
|
2
|
-
import { default as DemoIcon2 } from './DemoIcon2.vue';
|
|
3
|
-
import { default as DemoIcon1Code } from './DemoIcon1.vue?raw';
|
|
4
|
-
import { default as DemoIcon2Code } from './DemoIcon2.vue?raw';
|
|
5
|
-
|
|
6
|
-
export { DemoIcon1, DemoIcon1Code, DemoIcon2, DemoIcon2Code };
|