ll-plus 1.0.0 → 2.0.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/es/_virtual/_plugin-vue_export-helper.mjs +10 -0
- package/es/_virtual/_plugin-vue_export-helper.mjs.map +1 -0
- package/es/component.mjs +8 -0
- package/es/component.mjs.map +1 -0
- package/es/components/icon/index.d.ts +55 -10
- package/es/components/icon/index.mjs +10 -0
- package/es/components/icon/index.mjs.map +1 -0
- package/es/components/icon/src/icon.d.ts +27 -3
- package/es/components/icon/src/icon.mjs +34 -0
- package/es/components/icon/src/icon.mjs.map +1 -0
- package/es/components/icon/src/icon.vue.d.ts +56 -10
- package/es/components/icon/src/icon.vue.mjs +8 -0
- package/es/components/icon/src/icon.vue.mjs.map +1 -0
- package/es/components/icon/src/icon.vue2.mjs +59 -0
- package/es/components/icon/src/icon.vue2.mjs.map +1 -0
- package/es/components/index.d.ts +1 -0
- package/es/components/index.mjs +7 -0
- package/es/components/index.mjs.map +1 -0
- package/es/components/table/index.d.ts +592 -0
- package/es/components/table/index.mjs +10 -0
- package/es/components/table/index.mjs.map +1 -0
- package/es/components/table/src/components/header-search.vue.d.ts +110 -0
- package/es/components/table/src/components/header-search.vue.mjs +8 -0
- package/es/components/table/src/components/header-search.vue.mjs.map +1 -0
- package/es/components/table/src/components/header-search.vue2.mjs +125 -0
- package/es/components/table/src/components/header-search.vue2.mjs.map +1 -0
- package/es/components/table/src/components/main-table.vue.d.ts +254 -0
- package/es/components/table/src/components/main-table.vue.mjs +8 -0
- package/es/components/table/src/components/main-table.vue.mjs.map +1 -0
- package/es/components/table/src/components/main-table.vue2.mjs +549 -0
- package/es/components/table/src/components/main-table.vue2.mjs.map +1 -0
- package/es/components/table/src/components/pagination.vue.d.ts +65 -0
- package/es/components/table/src/components/pagination.vue.mjs +8 -0
- package/es/components/table/src/components/pagination.vue.mjs.map +1 -0
- package/es/components/table/src/components/pagination.vue2.mjs +37 -0
- package/es/components/table/src/components/pagination.vue2.mjs.map +1 -0
- package/es/components/table/src/table.d.ts +148 -0
- package/es/components/table/src/table.mjs +196 -0
- package/es/components/table/src/table.mjs.map +1 -0
- package/es/components/table/src/table.vue.d.ts +586 -0
- package/es/components/table/src/table.vue.mjs +8 -0
- package/es/components/table/src/table.vue.mjs.map +1 -0
- package/es/components/table/src/table.vue2.mjs +134 -0
- package/es/components/table/src/table.vue2.mjs.map +1 -0
- package/es/defaults.d.ts +4 -0
- package/es/defaults.mjs +8 -0
- package/es/defaults.mjs.map +1 -0
- package/es/index.d.ts +4 -6
- package/es/index.mjs +12 -0
- package/es/index.mjs.map +1 -0
- package/es/ll-plus/defaults.d.ts +4 -0
- package/es/ll-plus/index.d.ts +4 -0
- package/es/ll-plus/make-installer.d.ts +4 -0
- package/es/locale/index.d.ts +10 -0
- package/es/locale/index.mjs +6 -0
- package/es/locale/index.mjs.map +1 -0
- package/es/locale/lang/en_US.d.ts +144 -0
- package/es/locale/lang/en_US.mjs +147 -0
- package/es/locale/lang/en_US.mjs.map +1 -0
- package/es/locale/lang/zh_CN.d.ts +169 -0
- package/es/locale/lang/zh_CN.mjs +172 -0
- package/es/locale/lang/zh_CN.mjs.map +1 -0
- package/es/locale/lang/zh_TW.d.ts +125 -0
- package/es/locale/lang/zh_TW.mjs +128 -0
- package/es/locale/lang/zh_TW.mjs.map +1 -0
- package/es/make-installer.d.ts +4 -0
- package/es/make-installer.mjs +12 -0
- package/es/make-installer.mjs.map +1 -0
- package/es/utils/add-unit.mjs +7 -0
- package/es/utils/add-unit.mjs.map +1 -0
- package/es/utils/create-namespace.mjs +40 -0
- package/es/utils/create-namespace.mjs.map +1 -0
- package/es/utils/index.d.ts +2 -1
- package/es/utils/index.mjs +8 -0
- package/es/utils/index.mjs.map +1 -0
- package/es/utils/props/index.d.ts +3 -0
- package/es/utils/props/index.mjs +6 -0
- package/es/utils/props/index.mjs.map +1 -0
- package/es/utils/props/runtime.d.ts +29 -0
- package/es/utils/props/runtime.mjs +53 -0
- package/es/utils/props/runtime.mjs.map +1 -0
- package/es/utils/props/types.d.ts +120 -0
- package/es/utils/props/types.mjs +2 -0
- package/es/utils/props/types.mjs.map +1 -0
- package/es/utils/props/util.d.ts +8 -0
- package/es/utils/props/util.mjs +2 -0
- package/es/utils/props/util.mjs.map +1 -0
- package/es/utils/types.d.ts +10 -0
- package/es/utils/types.mjs +30 -0
- package/es/utils/types.mjs.map +1 -0
- package/es/utils/with-install.mjs +10 -0
- package/es/utils/with-install.mjs.map +1 -0
- package/global.d.ts +11 -0
- package/index.full.js +8305 -0
- package/index.full.min.js +25 -0
- package/index.full.min.js.map +1 -0
- package/index.full.min.mjs +25 -0
- package/index.full.min.mjs.map +1 -0
- package/index.full.mjs +8288 -0
- package/lib/_virtual/_plugin-vue_export-helper.js +14 -0
- package/lib/_virtual/_plugin-vue_export-helper.js.map +1 -0
- package/lib/component.js +12 -0
- package/lib/component.js.map +1 -0
- package/lib/components/icon/index.d.ts +55 -10
- package/lib/components/icon/index.js +8 -31
- package/lib/components/icon/index.js.map +1 -0
- package/lib/components/icon/src/icon.d.ts +27 -3
- package/lib/components/icon/src/icon.js +36 -0
- package/lib/components/icon/src/icon.js.map +1 -0
- package/lib/components/icon/src/icon.vue.d.ts +56 -10
- package/lib/components/icon/src/icon.vue.js +12 -0
- package/lib/components/icon/src/icon.vue.js.map +1 -0
- package/lib/components/icon/src/icon.vue2.js +63 -0
- package/lib/components/icon/src/icon.vue2.js.map +1 -0
- package/lib/components/index.d.ts +1 -0
- package/lib/components/index.js +15 -8
- package/lib/components/index.js.map +1 -0
- package/lib/components/table/index.d.ts +592 -0
- package/lib/components/table/index.js +21 -0
- package/lib/components/table/index.js.map +1 -0
- package/lib/components/table/src/components/header-search.vue.d.ts +110 -0
- package/lib/components/table/src/components/header-search.vue.js +12 -0
- package/lib/components/table/src/components/header-search.vue.js.map +1 -0
- package/lib/components/table/src/components/header-search.vue2.js +129 -0
- package/lib/components/table/src/components/header-search.vue2.js.map +1 -0
- package/lib/components/table/src/components/main-table.vue.d.ts +254 -0
- package/lib/components/table/src/components/main-table.vue.js +12 -0
- package/lib/components/table/src/components/main-table.vue.js.map +1 -0
- package/lib/components/table/src/components/main-table.vue2.js +553 -0
- package/lib/components/table/src/components/main-table.vue2.js.map +1 -0
- package/lib/components/table/src/components/pagination.vue.d.ts +65 -0
- package/lib/components/table/src/components/pagination.vue.js +12 -0
- package/lib/components/table/src/components/pagination.vue.js.map +1 -0
- package/lib/components/table/src/components/pagination.vue2.js +41 -0
- package/lib/components/table/src/components/pagination.vue2.js.map +1 -0
- package/lib/components/table/src/table.d.ts +148 -0
- package/lib/components/table/src/table.js +203 -0
- package/lib/components/table/src/table.js.map +1 -0
- package/lib/components/table/src/table.vue.d.ts +586 -0
- package/lib/components/table/src/table.vue.js +12 -0
- package/lib/components/table/src/table.vue.js.map +1 -0
- package/lib/components/table/src/table.vue2.js +138 -0
- package/lib/components/table/src/table.vue2.js.map +1 -0
- package/lib/defaults.d.ts +4 -0
- package/lib/defaults.js +12 -0
- package/lib/defaults.js.map +1 -0
- package/lib/index.d.ts +4 -6
- package/lib/index.js +20 -15
- package/lib/index.js.map +1 -0
- package/lib/ll-plus/component.d.ts +3 -0
- package/lib/ll-plus/defaults.d.ts +4 -0
- package/lib/ll-plus/index.d.ts +4 -0
- package/lib/ll-plus/make-installer.d.ts +4 -0
- package/lib/locale/index.d.ts +10 -0
- package/lib/locale/index.js +12 -0
- package/lib/locale/index.js.map +1 -0
- package/lib/locale/lang/en_US.d.ts +144 -0
- package/lib/locale/lang/en_US.js +151 -0
- package/lib/locale/lang/en_US.js.map +1 -0
- package/lib/locale/lang/zh_CN.d.ts +169 -0
- package/lib/locale/lang/zh_CN.js +176 -0
- package/lib/locale/lang/zh_CN.js.map +1 -0
- package/lib/locale/lang/zh_TW.d.ts +125 -0
- package/lib/locale/lang/zh_TW.js +132 -0
- package/lib/locale/lang/zh_TW.js.map +1 -0
- package/lib/make-installer.d.ts +4 -0
- package/lib/make-installer.js +14 -0
- package/lib/make-installer.js.map +1 -0
- package/lib/utils/add-unit.js +9 -0
- package/lib/utils/add-unit.js.map +1 -0
- package/lib/utils/create-namespace.js +34 -34
- package/lib/utils/create-namespace.js.map +1 -0
- package/lib/utils/index.d.ts +2 -1
- package/lib/utils/index.js +18 -18
- package/lib/utils/index.js.map +1 -0
- package/lib/utils/props/index.d.ts +3 -0
- package/lib/utils/props/index.js +14 -0
- package/lib/utils/props/index.js.map +1 -0
- package/lib/utils/props/runtime.d.ts +29 -0
- package/lib/utils/props/runtime.js +59 -0
- package/lib/utils/props/runtime.js.map +1 -0
- package/lib/utils/props/types.d.ts +120 -0
- package/lib/utils/props/types.js +4 -0
- package/lib/utils/props/types.js.map +1 -0
- package/lib/utils/props/util.d.ts +8 -0
- package/lib/utils/props/util.js +4 -0
- package/lib/utils/props/util.js.map +1 -0
- package/lib/utils/types.d.ts +10 -0
- package/lib/utils/types.js +70 -0
- package/lib/utils/types.js.map +1 -0
- package/lib/utils/with-install.js +8 -6
- package/lib/utils/with-install.js.map +1 -0
- package/package.json +39 -3
- package/theme-chalk/css/icon.css +1 -1
- package/theme-chalk/css/index.css +5 -1
- package/theme-chalk/css/table.css +5 -0
- package/theme-chalk/fonts/iconfont.js +1 -0
- package/theme-chalk/fonts/iconfont.json +1262 -0
- package/types/packages/component.d.ts +3 -0
- package/types/packages/components/icon/index.d.ts +79 -0
- package/types/packages/components/icon/src/icon.d.ts +30 -0
- package/types/packages/components/icon/src/icon.vue.d.ts +73 -0
- package/types/packages/components/index.d.ts +2 -0
- package/types/packages/components/table/index.d.ts +592 -0
- package/types/packages/components/table/src/components/header-search.vue.d.ts +110 -0
- package/types/packages/components/table/src/components/main-table.vue.d.ts +254 -0
- package/types/packages/components/table/src/components/pagination.vue.d.ts +65 -0
- package/types/packages/components/table/src/table.d.ts +148 -0
- package/types/packages/components/table/src/table.vue.d.ts +586 -0
- package/types/packages/defaults.d.ts +4 -0
- package/types/packages/index.d.ts +4 -0
- package/types/packages/ll-plus/component.d.ts +3 -0
- package/types/packages/ll-plus/defaults.d.ts +4 -0
- package/types/packages/ll-plus/index.d.ts +4 -0
- package/types/packages/ll-plus/make-installer.d.ts +4 -0
- package/types/packages/locale/index.d.ts +10 -0
- package/types/packages/locale/lang/en_US.d.ts +144 -0
- package/types/packages/locale/lang/zh_CN.d.ts +169 -0
- package/types/packages/locale/lang/zh_TW.d.ts +125 -0
- package/types/packages/make-installer.d.ts +4 -0
- package/types/{utils → packages/utils}/index.d.ts +2 -1
- package/types/packages/utils/props/index.d.ts +3 -0
- package/types/packages/utils/props/runtime.d.ts +29 -0
- package/types/packages/utils/props/types.d.ts +120 -0
- package/types/packages/utils/props/util.d.ts +8 -0
- package/types/packages/utils/types.d.ts +10 -0
- package/types/tsconfig.web.tsbuildinfo +1 -0
- package/entry/types/index.d.ts +0 -6
- package/es/components/icon/index.js +0 -33
- package/es/components/index.js +0 -1
- package/es/components.js +0 -5
- package/es/index.js +0 -11
- package/es/utils/add-util.js +0 -3
- package/es/utils/create-namespace.js +0 -38
- package/es/utils/index.js +0 -3
- package/es/utils/with-install.js +0 -6
- package/index.esm.js +0 -91
- package/index.js +0 -101
- package/lib/components.js +0 -9
- package/lib/utils/add-util.js +0 -7
- package/theme-chalk/fonts/iconfont.ttf +0 -0
- package/theme-chalk/fonts/iconfont.woff +0 -0
- package/theme-chalk/fonts/iconfont.woff2 +0 -0
- package/types/components/icon/index.d.ts +0 -34
- package/types/components/icon/src/icon.d.ts +0 -6
- package/types/components/icon/src/icon.vue.d.ts +0 -27
- package/types/components/index.d.ts +0 -1
- /package/{entry/types/components.d.ts → es/component.d.ts} +0 -0
- /package/es/{components.d.ts → ll-plus/component.d.ts} +0 -0
- /package/es/utils/{add-util.d.ts → add-unit.d.ts} +0 -0
- /package/lib/{components.d.ts → component.d.ts} +0 -0
- /package/lib/utils/{add-util.d.ts → add-unit.d.ts} +0 -0
- /package/types/{utils/add-util.d.ts → packages/utils/add-unit.d.ts} +0 -0
- /package/types/{utils → packages/utils}/create-namespace.d.ts +0 -0
- /package/types/{utils → packages/utils}/with-install.d.ts +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"_plugin-vue_export-helper.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;"}
|
package/es/component.mjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"component.mjs","sources":["../../packages/ll-plus/component.ts"],"sourcesContent":["import type { Plugin } from 'vue'\n\nimport { LlIcon } from '@ll-plus/components/index'\n\nexport default [LlIcon] as Plugin[]\n"],"names":[],"mappings":";;;;AAIA,iBAAe,CAAC,MAAM,CAAA;;;;"}
|
|
@@ -1,12 +1,39 @@
|
|
|
1
1
|
import Icon from './src/icon.vue';
|
|
2
2
|
export declare const LlIcon: import("ll-plus/es/utils").SFCWithInstall<import("vue").DefineComponent<{
|
|
3
|
-
readonly
|
|
4
|
-
|
|
3
|
+
readonly iconName: {
|
|
4
|
+
readonly type: import("vue").PropType<string>;
|
|
5
|
+
readonly required: false;
|
|
6
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
7
|
+
__epPropKey: true;
|
|
8
|
+
};
|
|
9
|
+
readonly className: {
|
|
10
|
+
readonly type: import("vue").PropType<string>;
|
|
11
|
+
readonly required: false;
|
|
12
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
13
|
+
__epPropKey: true;
|
|
14
|
+
};
|
|
15
|
+
readonly color: {
|
|
16
|
+
readonly type: import("vue").PropType<string>;
|
|
17
|
+
readonly required: false;
|
|
18
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
19
|
+
__epPropKey: true;
|
|
20
|
+
};
|
|
21
|
+
readonly size: {
|
|
22
|
+
readonly type: import("vue").PropType<import("ll-plus/es/utils").EpPropMergeType<(new (...args: any[]) => string | number) | (() => string | number) | ((new (...args: any[]) => string | number) | (() => string | number))[], unknown, unknown>>;
|
|
23
|
+
readonly required: false;
|
|
24
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
25
|
+
__epPropKey: true;
|
|
26
|
+
};
|
|
5
27
|
}, {
|
|
6
28
|
props: import("@vue/shared").LooseRequired<{
|
|
7
|
-
readonly
|
|
8
|
-
readonly
|
|
29
|
+
readonly iconName?: string | undefined;
|
|
30
|
+
readonly className?: string | undefined;
|
|
31
|
+
readonly color?: string | undefined;
|
|
32
|
+
readonly size?: import("ll-plus/es/utils").EpPropMergeType<(new (...args: any[]) => string | number) | (() => string | number) | ((new (...args: any[]) => string | number) | (() => string | number))[], unknown, unknown> | undefined;
|
|
9
33
|
} & {}>;
|
|
34
|
+
iconName: import("vue").ComputedRef<string>;
|
|
35
|
+
svgClass: import("vue").ComputedRef<string>;
|
|
36
|
+
style: import("vue").ComputedRef<import("vue").CSSProperties>;
|
|
10
37
|
bem: {
|
|
11
38
|
b: (blockSuffix?: string) => string;
|
|
12
39
|
e: (element?: string) => string;
|
|
@@ -17,13 +44,31 @@ export declare const LlIcon: import("ll-plus/es/utils").SFCWithInstall<import("v
|
|
|
17
44
|
bem: (blockSuffix: string, element: string, modifier: string) => string;
|
|
18
45
|
is: (name?: string) => string;
|
|
19
46
|
};
|
|
20
|
-
style: import("vue").ComputedRef<{
|
|
21
|
-
'font-size'?: string;
|
|
22
|
-
color?: string;
|
|
23
|
-
}>;
|
|
24
47
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
25
|
-
readonly
|
|
26
|
-
|
|
48
|
+
readonly iconName: {
|
|
49
|
+
readonly type: import("vue").PropType<string>;
|
|
50
|
+
readonly required: false;
|
|
51
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
52
|
+
__epPropKey: true;
|
|
53
|
+
};
|
|
54
|
+
readonly className: {
|
|
55
|
+
readonly type: import("vue").PropType<string>;
|
|
56
|
+
readonly required: false;
|
|
57
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
58
|
+
__epPropKey: true;
|
|
59
|
+
};
|
|
60
|
+
readonly color: {
|
|
61
|
+
readonly type: import("vue").PropType<string>;
|
|
62
|
+
readonly required: false;
|
|
63
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
64
|
+
__epPropKey: true;
|
|
65
|
+
};
|
|
66
|
+
readonly size: {
|
|
67
|
+
readonly type: import("vue").PropType<import("ll-plus/es/utils").EpPropMergeType<(new (...args: any[]) => string | number) | (() => string | number) | ((new (...args: any[]) => string | number) | (() => string | number))[], unknown, unknown>>;
|
|
68
|
+
readonly required: false;
|
|
69
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
70
|
+
__epPropKey: true;
|
|
71
|
+
};
|
|
27
72
|
}>>, {}, {}>>;
|
|
28
73
|
export default LlIcon;
|
|
29
74
|
export * from './src/icon';
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import '../../utils/index.mjs';
|
|
2
|
+
import Icon from './src/icon.vue.mjs';
|
|
3
|
+
export { iconProps } from './src/icon.mjs';
|
|
4
|
+
import { withInstall } from '../../utils/with-install.mjs';
|
|
5
|
+
|
|
6
|
+
"use strict";
|
|
7
|
+
const LlIcon = withInstall(Icon);
|
|
8
|
+
|
|
9
|
+
export { LlIcon, LlIcon as default };
|
|
10
|
+
//# sourceMappingURL=index.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.mjs","sources":["../../../../packages/components/icon/index.ts"],"sourcesContent":["import { withInstall } from '@ll-plus/utils'\n\nimport Icon from './src/icon.vue'\n\nexport const LlIcon = withInstall(Icon)\nexport default LlIcon\nexport * from './src/icon'\n\n// 把ZIcon组件类型合并带全局组件中 到时候使用时有提示\ndeclare module 'vue' {\n export interface GlobalComponents {\n LlIcon: typeof Icon\n }\n}\n"],"names":[],"mappings":";;;;;;AAIa,MAAA,MAAA,GAAS,YAAY,IAAI;;;;"}
|
|
@@ -1,6 +1,30 @@
|
|
|
1
|
-
import { ExtractPropTypes
|
|
1
|
+
import type { ExtractPropTypes } from 'vue';
|
|
2
|
+
import type Icon from './icon.vue';
|
|
2
3
|
export declare const iconProps: {
|
|
3
|
-
readonly
|
|
4
|
-
|
|
4
|
+
readonly iconName: {
|
|
5
|
+
readonly type: import("vue").PropType<string>;
|
|
6
|
+
readonly required: false;
|
|
7
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
8
|
+
__epPropKey: true;
|
|
9
|
+
};
|
|
10
|
+
readonly className: {
|
|
11
|
+
readonly type: import("vue").PropType<string>;
|
|
12
|
+
readonly required: false;
|
|
13
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
14
|
+
__epPropKey: true;
|
|
15
|
+
};
|
|
16
|
+
readonly color: {
|
|
17
|
+
readonly type: import("vue").PropType<string>;
|
|
18
|
+
readonly required: false;
|
|
19
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
20
|
+
__epPropKey: true;
|
|
21
|
+
};
|
|
22
|
+
readonly size: {
|
|
23
|
+
readonly type: import("vue").PropType<import("ll-plus/es/utils").EpPropMergeType<(new (...args: any[]) => string | number) | (() => string | number) | ((new (...args: any[]) => string | number) | (() => string | number))[], unknown, unknown>>;
|
|
24
|
+
readonly required: false;
|
|
25
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
26
|
+
__epPropKey: true;
|
|
27
|
+
};
|
|
5
28
|
};
|
|
6
29
|
export type IconProps = ExtractPropTypes<typeof iconProps>;
|
|
30
|
+
export type IconInstance = InstanceType<typeof Icon>;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import '../../../utils/index.mjs';
|
|
2
|
+
import { buildProps, definePropType } from '../../../utils/props/runtime.mjs';
|
|
3
|
+
|
|
4
|
+
"use strict";
|
|
5
|
+
const iconProps = buildProps({
|
|
6
|
+
// buildProps和defineprops一样
|
|
7
|
+
/**
|
|
8
|
+
* @description icon的类型
|
|
9
|
+
*/
|
|
10
|
+
iconName: {
|
|
11
|
+
type: String
|
|
12
|
+
},
|
|
13
|
+
/**
|
|
14
|
+
* @description icon的className
|
|
15
|
+
*/
|
|
16
|
+
className: {
|
|
17
|
+
type: String
|
|
18
|
+
},
|
|
19
|
+
/**
|
|
20
|
+
* @description svg 的 fill 颜色
|
|
21
|
+
*/
|
|
22
|
+
color: {
|
|
23
|
+
type: String
|
|
24
|
+
},
|
|
25
|
+
/**
|
|
26
|
+
* @description SVG 图标的大小,size x size
|
|
27
|
+
*/
|
|
28
|
+
size: {
|
|
29
|
+
type: definePropType([Number, String])
|
|
30
|
+
}
|
|
31
|
+
});
|
|
32
|
+
|
|
33
|
+
export { iconProps };
|
|
34
|
+
//# sourceMappingURL=icon.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"icon.mjs","sources":["../../../../../packages/components/icon/src/icon.ts"],"sourcesContent":["import type { ExtractPropTypes } from 'vue'\n\nimport { buildProps, definePropType } from '@ll-plus/utils'\n\nimport type Icon from './icon.vue'\n\nexport const iconProps = buildProps({\n // buildProps和defineprops一样\n /**\n * @description icon的类型\n */\n iconName: {\n type: String\n },\n /**\n * @description icon的className\n */\n className: {\n type: String\n },\n /**\n * @description svg 的 fill 颜色\n */\n color: {\n type: String\n },\n /**\n * @description SVG 图标的大小,size x size\n */\n size: {\n type: definePropType<number | string>([Number, String])\n }\n} as const)\n\n// 导出iconProps\nexport type IconProps = ExtractPropTypes<typeof iconProps> // ExtractPropTypes和defineCpmponent类似\n// 导出icon实列类型\nexport type IconInstance = InstanceType<typeof Icon>\n"],"names":[],"mappings":";;;;AAMO,MAAM,YAAY,UAAW,CAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAKlC,QAAU,EAAA;AAAA,IACR,IAAM,EAAA,MAAA;AAAA,GACR;AAAA;AAAA;AAAA;AAAA,EAIA,SAAW,EAAA;AAAA,IACT,IAAM,EAAA,MAAA;AAAA,GACR;AAAA;AAAA;AAAA;AAAA,EAIA,KAAO,EAAA;AAAA,IACL,IAAM,EAAA,MAAA;AAAA,GACR;AAAA;AAAA;AAAA;AAAA,EAIA,IAAM,EAAA;AAAA,IACJ,IAAM,EAAA,cAAA,CAAgC,CAAC,MAAA,EAAQ,MAAM,CAAC,CAAA;AAAA,GACxD;AACF,CAAU;;;;"}
|
|
@@ -1,11 +1,39 @@
|
|
|
1
|
+
import { CSSProperties } from 'vue';
|
|
1
2
|
declare const _default: import("vue").DefineComponent<{
|
|
2
|
-
readonly
|
|
3
|
-
|
|
3
|
+
readonly iconName: {
|
|
4
|
+
readonly type: import("vue").PropType<string>;
|
|
5
|
+
readonly required: false;
|
|
6
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
7
|
+
__epPropKey: true;
|
|
8
|
+
};
|
|
9
|
+
readonly className: {
|
|
10
|
+
readonly type: import("vue").PropType<string>;
|
|
11
|
+
readonly required: false;
|
|
12
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
13
|
+
__epPropKey: true;
|
|
14
|
+
};
|
|
15
|
+
readonly color: {
|
|
16
|
+
readonly type: import("vue").PropType<string>;
|
|
17
|
+
readonly required: false;
|
|
18
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
19
|
+
__epPropKey: true;
|
|
20
|
+
};
|
|
21
|
+
readonly size: {
|
|
22
|
+
readonly type: import("vue").PropType<import("ll-plus/es/utils").EpPropMergeType<(new (...args: any[]) => string | number) | (() => string | number) | ((new (...args: any[]) => string | number) | (() => string | number))[], unknown, unknown>>;
|
|
23
|
+
readonly required: false;
|
|
24
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
25
|
+
__epPropKey: true;
|
|
26
|
+
};
|
|
4
27
|
}, {
|
|
5
28
|
props: import("@vue/shared").LooseRequired<{
|
|
6
|
-
readonly
|
|
7
|
-
readonly
|
|
29
|
+
readonly iconName?: string | undefined;
|
|
30
|
+
readonly className?: string | undefined;
|
|
31
|
+
readonly color?: string | undefined;
|
|
32
|
+
readonly size?: import("ll-plus/es/utils").EpPropMergeType<(new (...args: any[]) => string | number) | (() => string | number) | ((new (...args: any[]) => string | number) | (() => string | number))[], unknown, unknown> | undefined;
|
|
8
33
|
} & {}>;
|
|
34
|
+
iconName: import("vue").ComputedRef<string>;
|
|
35
|
+
svgClass: import("vue").ComputedRef<string>;
|
|
36
|
+
style: import("vue").ComputedRef<CSSProperties>;
|
|
9
37
|
bem: {
|
|
10
38
|
b: (blockSuffix?: string) => string;
|
|
11
39
|
e: (element?: string) => string;
|
|
@@ -16,12 +44,30 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
16
44
|
bem: (blockSuffix: string, element: string, modifier: string) => string;
|
|
17
45
|
is: (name?: string) => string;
|
|
18
46
|
};
|
|
19
|
-
style: import("vue").ComputedRef<{
|
|
20
|
-
'font-size'?: string;
|
|
21
|
-
color?: string;
|
|
22
|
-
}>;
|
|
23
47
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
24
|
-
readonly
|
|
25
|
-
|
|
48
|
+
readonly iconName: {
|
|
49
|
+
readonly type: import("vue").PropType<string>;
|
|
50
|
+
readonly required: false;
|
|
51
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
52
|
+
__epPropKey: true;
|
|
53
|
+
};
|
|
54
|
+
readonly className: {
|
|
55
|
+
readonly type: import("vue").PropType<string>;
|
|
56
|
+
readonly required: false;
|
|
57
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
58
|
+
__epPropKey: true;
|
|
59
|
+
};
|
|
60
|
+
readonly color: {
|
|
61
|
+
readonly type: import("vue").PropType<string>;
|
|
62
|
+
readonly required: false;
|
|
63
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
64
|
+
__epPropKey: true;
|
|
65
|
+
};
|
|
66
|
+
readonly size: {
|
|
67
|
+
readonly type: import("vue").PropType<import("ll-plus/es/utils").EpPropMergeType<(new (...args: any[]) => string | number) | (() => string | number) | ((new (...args: any[]) => string | number) | (() => string | number))[], unknown, unknown>>;
|
|
68
|
+
readonly required: false;
|
|
69
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
70
|
+
__epPropKey: true;
|
|
71
|
+
};
|
|
26
72
|
}>>, {}, {}>;
|
|
27
73
|
export default _default;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import _sfc_main from './icon.vue2.mjs';
|
|
2
|
+
import _export_sfc from '../../../_virtual/_plugin-vue_export-helper.mjs';
|
|
3
|
+
|
|
4
|
+
"use strict";
|
|
5
|
+
var Icon = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "icon.vue"]]);
|
|
6
|
+
|
|
7
|
+
export { Icon as default };
|
|
8
|
+
//# sourceMappingURL=icon.vue.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"icon.vue.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;"}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { defineComponent, computed, openBlock, createElementBlock, normalizeClass, normalizeStyle, renderSlot, createElementVNode } from 'vue';
|
|
2
|
+
import '../../../utils/index.mjs';
|
|
3
|
+
import { iconProps } from './icon.mjs';
|
|
4
|
+
import { addUnit } from '../../../utils/add-unit.mjs';
|
|
5
|
+
import { createNamespace } from '../../../utils/create-namespace.mjs';
|
|
6
|
+
|
|
7
|
+
"use strict";
|
|
8
|
+
const _hoisted_1 = { "aria-hidden": "true" };
|
|
9
|
+
const _hoisted_2 = ["xlink:href"];
|
|
10
|
+
var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
11
|
+
...{
|
|
12
|
+
name: "LlIcon"
|
|
13
|
+
},
|
|
14
|
+
__name: "icon",
|
|
15
|
+
props: iconProps,
|
|
16
|
+
setup(__props) {
|
|
17
|
+
const props = __props;
|
|
18
|
+
const iconName = computed(() => {
|
|
19
|
+
return `#${props.iconName}`;
|
|
20
|
+
});
|
|
21
|
+
const svgClass = computed(() => {
|
|
22
|
+
if (props.className) {
|
|
23
|
+
return `${bem.b()} ${props.className}`;
|
|
24
|
+
}
|
|
25
|
+
return "ll-icon";
|
|
26
|
+
});
|
|
27
|
+
const style = computed(() => {
|
|
28
|
+
if (!props.size && !props.color) {
|
|
29
|
+
return {};
|
|
30
|
+
}
|
|
31
|
+
return {
|
|
32
|
+
...props.size ? { "font-size": addUnit(props.size) } : {},
|
|
33
|
+
...props.color ? { color: props.color } : {}
|
|
34
|
+
};
|
|
35
|
+
});
|
|
36
|
+
const bem = createNamespace("icon");
|
|
37
|
+
return (_ctx, _cache) => {
|
|
38
|
+
return openBlock(), createElementBlock(
|
|
39
|
+
"i",
|
|
40
|
+
{
|
|
41
|
+
class: normalizeClass(svgClass.value),
|
|
42
|
+
style: normalizeStyle(style.value)
|
|
43
|
+
},
|
|
44
|
+
[
|
|
45
|
+
renderSlot(_ctx.$slots, "default", {}, () => [
|
|
46
|
+
(openBlock(), createElementBlock("svg", _hoisted_1, [
|
|
47
|
+
createElementVNode("use", { "xlink:href": iconName.value }, null, 8, _hoisted_2)
|
|
48
|
+
]))
|
|
49
|
+
])
|
|
50
|
+
],
|
|
51
|
+
6
|
|
52
|
+
/* CLASS, STYLE */
|
|
53
|
+
);
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
});
|
|
57
|
+
|
|
58
|
+
export { _sfc_main as default };
|
|
59
|
+
//# sourceMappingURL=icon.vue2.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"icon.vue2.mjs","sources":["../../../../../packages/components/icon/src/icon.vue"],"sourcesContent":["<template>\n <i :class=\"svgClass\" :style=\"style\">\n <slot>\n <svg aria-hidden=\"true\">\n <use :xlink:href=\"iconName\" />\n </svg>\n </slot>\n </i>\n</template>\n<script lang=\"ts\" setup>\nimport { computed, CSSProperties } from 'vue'\n\nimport { createNamespace, addUnit } from '@ll-plus/utils'\n\nimport { iconProps } from './icon'\n\n// 1.defineOptions\ndefineOptions({\n name: 'LlIcon'\n})\n\n// 2.defineProps\nconst props = defineProps(iconProps)\n// 3.ref/const\n// 图标在 iconfont 中的名字\nconst iconName = computed(() => {\n return `#${props.iconName}`\n})\n// 给图标添加上类名\nconst svgClass = computed(() => {\n if (props.className) {\n return `${bem.b()} ${props.className}`\n }\n return 'll-icon'\n})\n// 给图标加size和color\nconst style = computed<CSSProperties>(() => {\n if (!props.size && !props.color) {\n return {}\n }\n return {\n ...(props.size ? { 'font-size': addUnit(props.size) } : {}),\n ...(props.color ? { color: props.color } : {})\n }\n})\nconst bem = createNamespace('icon')\n</script>\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAsBA,IAAA,MAAM,KAAQ,GAAA,OAAA,CAAA;AAGd,IAAM,MAAA,QAAA,GAAW,SAAS,MAAM;AAC9B,MAAO,OAAA,CAAA,CAAA,EAAI,MAAM,QAAQ,CAAA,CAAA,CAAA;AAAA,KAC1B,CAAA,CAAA;AAED,IAAM,MAAA,QAAA,GAAW,SAAS,MAAM;AAC9B,MAAA,IAAI,MAAM,SAAW,EAAA;AACnB,QAAA,OAAO,GAAG,GAAI,CAAA,CAAA,EAAG,CAAA,CAAA,EAAI,MAAM,SAAS,CAAA,CAAA,CAAA;AAAA,OACtC;AACA,MAAO,OAAA,SAAA,CAAA;AAAA,KACR,CAAA,CAAA;AAED,IAAM,MAAA,KAAA,GAAQ,SAAwB,MAAM;AAC1C,MAAA,IAAI,CAAC,KAAA,CAAM,IAAQ,IAAA,CAAC,MAAM,KAAO,EAAA;AAC/B,QAAA,OAAO,EAAC,CAAA;AAAA,OACV;AACA,MAAO,OAAA;AAAA,QACL,GAAI,KAAM,CAAA,IAAA,GAAO,EAAE,WAAA,EAAa,QAAQ,KAAM,CAAA,IAAI,CAAE,EAAA,GAAI,EAAC;AAAA,QACzD,GAAI,MAAM,KAAQ,GAAA,EAAE,OAAO,KAAM,CAAA,KAAA,KAAU,EAAC;AAAA,OAC9C,CAAA;AAAA,KACD,CAAA,CAAA;AACD,IAAM,MAAA,GAAA,GAAM,gBAAgB,MAAM,CAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/es/components/index.d.ts
CHANGED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export { LlIcon } from './icon/index.mjs';
|
|
2
|
+
export { LlTable } from './table/index.mjs';
|
|
3
|
+
export { iconProps } from './icon/src/icon.mjs';
|
|
4
|
+
export { ImenuSwitchType, mainTableProps, menuSwitchRadioList, tableHeaderSearchProps, tablePaginationProps, tableProps } from './table/src/table.mjs';
|
|
5
|
+
|
|
6
|
+
"use strict";
|
|
7
|
+
//# sourceMappingURL=index.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;"}
|