ll-plus 1.0.0 → 1.0.3
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 +37 -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,14 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var _export_sfc = (sfc, props) => {
|
|
6
|
+
const target = sfc.__vccOpts || sfc;
|
|
7
|
+
for (const [key, val] of props) {
|
|
8
|
+
target[key] = val;
|
|
9
|
+
}
|
|
10
|
+
return target;
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
exports.default = _export_sfc;
|
|
14
|
+
//# sourceMappingURL=_plugin-vue_export-helper.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"_plugin-vue_export-helper.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;"}
|
package/lib/component.js
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
require('./components/index.js');
|
|
6
|
+
var index = require('./components/icon/index.js');
|
|
7
|
+
|
|
8
|
+
"use strict";
|
|
9
|
+
var Components = [index.LlIcon];
|
|
10
|
+
|
|
11
|
+
exports.default = Components;
|
|
12
|
+
//# sourceMappingURL=component.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"component.js","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":["LlIcon"],"mappings":";;;;;;;;AAIA,iBAAe,CAACA,YAAM,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 size?: string | number;
|
|
8
|
-
readonly
|
|
29
|
+
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;
|
|
30
|
+
readonly iconName?: string | undefined;
|
|
31
|
+
readonly className?: string | undefined;
|
|
32
|
+
readonly color?: string | 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';
|
|
@@ -2,38 +2,15 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
var
|
|
5
|
+
require('../../utils/index.js');
|
|
6
|
+
var icon$1 = require('./src/icon.vue.js');
|
|
7
|
+
var icon = require('./src/icon.js');
|
|
8
|
+
var withInstall = require('../../utils/with-install.js');
|
|
7
9
|
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
color: String
|
|
11
|
-
};
|
|
12
|
-
|
|
13
|
-
var script = vue.defineComponent(Object.assign({
|
|
14
|
-
name: 'LlIcon'
|
|
15
|
-
}, { __name: 'icon', props: iconProps, setup(__props) {
|
|
16
|
-
const props = __props;
|
|
17
|
-
const bem = utils.createNamespace('icon');
|
|
18
|
-
const style = vue.computed(() => {
|
|
19
|
-
if (!props.color && !props.size)
|
|
20
|
-
return {};
|
|
21
|
-
return Object.assign(Object.assign({}, (props.color ? { color: props.color } : {})), (props.size ? { 'font-size': utils.addUnit(props.size) } : {}));
|
|
22
|
-
});
|
|
23
|
-
return (_ctx, _cache) => {
|
|
24
|
-
return (vue.openBlock(), vue.createElementBlock("i", {
|
|
25
|
-
class: vue.normalizeClass(vue.unref(bem).b()),
|
|
26
|
-
style: vue.normalizeStyle(style.value)
|
|
27
|
-
}, [
|
|
28
|
-
vue.renderSlot(_ctx.$slots, "default")
|
|
29
|
-
], 6));
|
|
30
|
-
};
|
|
31
|
-
} }));
|
|
32
|
-
|
|
33
|
-
script.__file = "packages/components/icon/src/icon.vue";
|
|
34
|
-
|
|
35
|
-
const LlIcon = utils.withInstall(script);
|
|
10
|
+
"use strict";
|
|
11
|
+
const LlIcon = withInstall.withInstall(icon$1.default);
|
|
36
12
|
|
|
13
|
+
exports.iconProps = icon.iconProps;
|
|
37
14
|
exports.LlIcon = LlIcon;
|
|
38
15
|
exports.default = LlIcon;
|
|
39
|
-
|
|
16
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","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":["withInstall","Icon"],"mappings":";;;;;;;;;;AAIa,MAAA,MAAA,GAASA,wBAAYC,cAAI;;;;;;"}
|
|
@@ -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,36 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
require('../../../utils/index.js');
|
|
4
|
+
var runtime = require('../../../utils/props/runtime.js');
|
|
5
|
+
|
|
6
|
+
"use strict";
|
|
7
|
+
const iconProps = runtime.buildProps({
|
|
8
|
+
// buildProps和defineprops一样
|
|
9
|
+
/**
|
|
10
|
+
* @description icon的类型
|
|
11
|
+
*/
|
|
12
|
+
iconName: {
|
|
13
|
+
type: String
|
|
14
|
+
},
|
|
15
|
+
/**
|
|
16
|
+
* @description icon的className
|
|
17
|
+
*/
|
|
18
|
+
className: {
|
|
19
|
+
type: String
|
|
20
|
+
},
|
|
21
|
+
/**
|
|
22
|
+
* @description svg 的 fill 颜色
|
|
23
|
+
*/
|
|
24
|
+
color: {
|
|
25
|
+
type: String
|
|
26
|
+
},
|
|
27
|
+
/**
|
|
28
|
+
* @description SVG 图标的大小,size x size
|
|
29
|
+
*/
|
|
30
|
+
size: {
|
|
31
|
+
type: runtime.definePropType([Number, String])
|
|
32
|
+
}
|
|
33
|
+
});
|
|
34
|
+
|
|
35
|
+
exports.iconProps = iconProps;
|
|
36
|
+
//# sourceMappingURL=icon.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"icon.js","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":["buildProps","definePropType"],"mappings":";;;;;;AAMO,MAAM,YAAYA,kBAAW,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,EAAAC,sBAAA,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 size?: string | number;
|
|
7
|
-
readonly
|
|
29
|
+
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;
|
|
30
|
+
readonly iconName?: string | undefined;
|
|
31
|
+
readonly className?: string | undefined;
|
|
32
|
+
readonly color?: string | 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,12 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var icon_vue_vue_type_script_setup_true_lang = require('./icon.vue2.js');
|
|
6
|
+
var _pluginVue_exportHelper = require('../../../_virtual/_plugin-vue_export-helper.js');
|
|
7
|
+
|
|
8
|
+
"use strict";
|
|
9
|
+
var Icon = /* @__PURE__ */ _pluginVue_exportHelper.default(icon_vue_vue_type_script_setup_true_lang.default, [["__file", "icon.vue"]]);
|
|
10
|
+
|
|
11
|
+
exports.default = Icon;
|
|
12
|
+
//# sourceMappingURL=icon.vue.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"icon.vue.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;"}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var vue = require('vue');
|
|
6
|
+
require('../../../utils/index.js');
|
|
7
|
+
var icon = require('./icon.js');
|
|
8
|
+
var addUnit = require('../../../utils/add-unit.js');
|
|
9
|
+
var createNamespace = require('../../../utils/create-namespace.js');
|
|
10
|
+
|
|
11
|
+
"use strict";
|
|
12
|
+
const _hoisted_1 = { "aria-hidden": "true" };
|
|
13
|
+
const _hoisted_2 = ["xlink:href"];
|
|
14
|
+
var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
15
|
+
...{
|
|
16
|
+
name: "LlIcon"
|
|
17
|
+
},
|
|
18
|
+
__name: "icon",
|
|
19
|
+
props: icon.iconProps,
|
|
20
|
+
setup(__props) {
|
|
21
|
+
const props = __props;
|
|
22
|
+
const iconName = vue.computed(() => {
|
|
23
|
+
return `#${props.iconName}`;
|
|
24
|
+
});
|
|
25
|
+
const svgClass = vue.computed(() => {
|
|
26
|
+
if (props.className) {
|
|
27
|
+
return `${bem.b()} ${props.className}`;
|
|
28
|
+
}
|
|
29
|
+
return "ll-icon";
|
|
30
|
+
});
|
|
31
|
+
const style = vue.computed(() => {
|
|
32
|
+
if (!props.size && !props.color) {
|
|
33
|
+
return {};
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
...props.size ? { "font-size": addUnit.addUnit(props.size) } : {},
|
|
37
|
+
...props.color ? { color: props.color } : {}
|
|
38
|
+
};
|
|
39
|
+
});
|
|
40
|
+
const bem = createNamespace.createNamespace("icon");
|
|
41
|
+
return (_ctx, _cache) => {
|
|
42
|
+
return vue.openBlock(), vue.createElementBlock(
|
|
43
|
+
"i",
|
|
44
|
+
{
|
|
45
|
+
class: vue.normalizeClass(svgClass.value),
|
|
46
|
+
style: vue.normalizeStyle(style.value)
|
|
47
|
+
},
|
|
48
|
+
[
|
|
49
|
+
vue.renderSlot(_ctx.$slots, "default", {}, () => [
|
|
50
|
+
(vue.openBlock(), vue.createElementBlock("svg", _hoisted_1, [
|
|
51
|
+
vue.createElementVNode("use", { "xlink:href": iconName.value }, null, 8, _hoisted_2)
|
|
52
|
+
]))
|
|
53
|
+
])
|
|
54
|
+
],
|
|
55
|
+
6
|
|
56
|
+
/* CLASS, STYLE */
|
|
57
|
+
);
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
});
|
|
61
|
+
|
|
62
|
+
exports.default = _sfc_main;
|
|
63
|
+
//# sourceMappingURL=icon.vue2.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"icon.vue2.js","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":["computed","addUnit","createNamespace"],"mappings":";;;;;;;;;;;;;;;;;;;;AAsBA,IAAA,MAAM,KAAQ,GAAA,OAAA,CAAA;AAGd,IAAM,MAAA,QAAA,GAAWA,aAAS,MAAM;AAC9B,MAAO,OAAA,CAAA,CAAA,EAAI,MAAM,QAAQ,CAAA,CAAA,CAAA;AAAA,KAC1B,CAAA,CAAA;AAED,IAAM,MAAA,QAAA,GAAWA,aAAS,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,GAAQA,aAAwB,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,EAAaC,gBAAQ,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,GAAMC,gCAAgB,MAAM,CAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/lib/components/index.js
CHANGED
|
@@ -1,12 +1,19 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var index = require('./icon/index.js');
|
|
4
|
+
var index$1 = require('./table/index.js');
|
|
5
|
+
var icon = require('./icon/src/icon.js');
|
|
6
|
+
var table = require('./table/src/table.js');
|
|
4
7
|
|
|
8
|
+
"use strict";
|
|
5
9
|
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
10
|
+
exports.LlIcon = index.LlIcon;
|
|
11
|
+
exports.LlTable = index$1.LlTable;
|
|
12
|
+
exports.iconProps = icon.iconProps;
|
|
13
|
+
exports.ImenuSwitchType = table.ImenuSwitchType;
|
|
14
|
+
exports.mainTableProps = table.mainTableProps;
|
|
15
|
+
exports.menuSwitchRadioList = table.menuSwitchRadioList;
|
|
16
|
+
exports.tableHeaderSearchProps = table.tableHeaderSearchProps;
|
|
17
|
+
exports.tablePaginationProps = table.tablePaginationProps;
|
|
18
|
+
exports.tableProps = table.tableProps;
|
|
19
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;"}
|