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
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
const _bem = (prefixedName, blockSuffix, element, modifier) => {
|
|
2
|
-
if (blockSuffix) {
|
|
3
|
-
prefixedName += `-${blockSuffix}`;
|
|
4
|
-
}
|
|
5
|
-
if (element) {
|
|
6
|
-
prefixedName += `__${element}`;
|
|
7
|
-
}
|
|
8
|
-
if (modifier) {
|
|
9
|
-
prefixedName += `--${modifier}`;
|
|
10
|
-
}
|
|
11
|
-
return prefixedName;
|
|
12
|
-
};
|
|
13
|
-
function createBEM(prefixedName) {
|
|
14
|
-
const b = (blockSuffix = '') => _bem(prefixedName, blockSuffix, '', '');
|
|
15
|
-
const e = (element = '') => element ? _bem(prefixedName, '', element, '') : '';
|
|
16
|
-
const m = (modifier = '') => modifier ? _bem(prefixedName, '', '', modifier) : '';
|
|
17
|
-
const be = (blockSuffix = '', element = '') => blockSuffix && element ? _bem(prefixedName, blockSuffix, element, '') : '';
|
|
18
|
-
const em = (element, modifier) => element && modifier ? _bem(prefixedName, '', element, modifier) : '';
|
|
19
|
-
const bm = (blockSuffix, modifier) => blockSuffix && modifier ? _bem(prefixedName, blockSuffix, '', modifier) : '';
|
|
20
|
-
const bem = (blockSuffix, element, modifier) => blockSuffix && element && modifier
|
|
21
|
-
? _bem(prefixedName, blockSuffix, element, modifier)
|
|
22
|
-
: '';
|
|
23
|
-
const is = (name = '') => (name ? `is-${name}` : '');
|
|
24
|
-
return {
|
|
25
|
-
b,
|
|
26
|
-
e,
|
|
27
|
-
m,
|
|
28
|
-
be,
|
|
29
|
-
em,
|
|
30
|
-
bm,
|
|
31
|
-
bem,
|
|
32
|
-
is
|
|
33
|
-
};
|
|
34
|
-
}
|
|
35
|
-
export function createNamespace(name) {
|
|
36
|
-
const prefixedName = `ll-${name}`;
|
|
37
|
-
return createBEM(prefixedName);
|
|
38
|
-
}
|
package/es/utils/index.js
DELETED
package/es/utils/with-install.js
DELETED
package/index.esm.js
DELETED
|
@@ -1,91 +0,0 @@
|
|
|
1
|
-
import { defineComponent, computed, openBlock, createElementBlock, normalizeClass, unref, normalizeStyle, renderSlot } from 'vue';
|
|
2
|
-
|
|
3
|
-
const addUnit = (val) => {
|
|
4
|
-
return typeof val === 'string' ? val : val + 'px';
|
|
5
|
-
};
|
|
6
|
-
|
|
7
|
-
const _bem = (prefixedName, blockSuffix, element, modifier) => {
|
|
8
|
-
if (blockSuffix) {
|
|
9
|
-
prefixedName += `-${blockSuffix}`;
|
|
10
|
-
}
|
|
11
|
-
if (element) {
|
|
12
|
-
prefixedName += `__${element}`;
|
|
13
|
-
}
|
|
14
|
-
if (modifier) {
|
|
15
|
-
prefixedName += `--${modifier}`;
|
|
16
|
-
}
|
|
17
|
-
return prefixedName;
|
|
18
|
-
};
|
|
19
|
-
function createBEM(prefixedName) {
|
|
20
|
-
const b = (blockSuffix = '') => _bem(prefixedName, blockSuffix, '', '');
|
|
21
|
-
const e = (element = '') => element ? _bem(prefixedName, '', element, '') : '';
|
|
22
|
-
const m = (modifier = '') => modifier ? _bem(prefixedName, '', '', modifier) : '';
|
|
23
|
-
const be = (blockSuffix = '', element = '') => blockSuffix && element ? _bem(prefixedName, blockSuffix, element, '') : '';
|
|
24
|
-
const em = (element, modifier) => element && modifier ? _bem(prefixedName, '', element, modifier) : '';
|
|
25
|
-
const bm = (blockSuffix, modifier) => blockSuffix && modifier ? _bem(prefixedName, blockSuffix, '', modifier) : '';
|
|
26
|
-
const bem = (blockSuffix, element, modifier) => blockSuffix && element && modifier
|
|
27
|
-
? _bem(prefixedName, blockSuffix, element, modifier)
|
|
28
|
-
: '';
|
|
29
|
-
const is = (name = '') => (name ? `is-${name}` : '');
|
|
30
|
-
return {
|
|
31
|
-
b,
|
|
32
|
-
e,
|
|
33
|
-
m,
|
|
34
|
-
be,
|
|
35
|
-
em,
|
|
36
|
-
bm,
|
|
37
|
-
bem,
|
|
38
|
-
is
|
|
39
|
-
};
|
|
40
|
-
}
|
|
41
|
-
function createNamespace(name) {
|
|
42
|
-
const prefixedName = `ll-${name}`;
|
|
43
|
-
return createBEM(prefixedName);
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
const withInstall = (comp) => {
|
|
47
|
-
comp.install = function (app) {
|
|
48
|
-
app.component(comp.name, comp);
|
|
49
|
-
};
|
|
50
|
-
return comp;
|
|
51
|
-
};
|
|
52
|
-
|
|
53
|
-
const iconProps = {
|
|
54
|
-
size: [Number, String],
|
|
55
|
-
color: String
|
|
56
|
-
};
|
|
57
|
-
|
|
58
|
-
var script = defineComponent(Object.assign({
|
|
59
|
-
name: 'LlIcon'
|
|
60
|
-
}, { __name: 'icon', props: iconProps, setup(__props) {
|
|
61
|
-
const props = __props;
|
|
62
|
-
const bem = createNamespace('icon');
|
|
63
|
-
const style = computed(() => {
|
|
64
|
-
if (!props.color && !props.size)
|
|
65
|
-
return {};
|
|
66
|
-
return Object.assign(Object.assign({}, (props.color ? { color: props.color } : {})), (props.size ? { 'font-size': addUnit(props.size) } : {}));
|
|
67
|
-
});
|
|
68
|
-
return (_ctx, _cache) => {
|
|
69
|
-
return (openBlock(), createElementBlock("i", {
|
|
70
|
-
class: normalizeClass(unref(bem).b()),
|
|
71
|
-
style: normalizeStyle(style.value)
|
|
72
|
-
}, [
|
|
73
|
-
renderSlot(_ctx.$slots, "default")
|
|
74
|
-
], 6));
|
|
75
|
-
};
|
|
76
|
-
} }));
|
|
77
|
-
|
|
78
|
-
script.__file = "packages/components/icon/src/icon.vue";
|
|
79
|
-
|
|
80
|
-
const LlIcon = withInstall(script);
|
|
81
|
-
|
|
82
|
-
var components = [LlIcon];
|
|
83
|
-
|
|
84
|
-
const install = (app) => {
|
|
85
|
-
components.forEach(component => app.use(component));
|
|
86
|
-
};
|
|
87
|
-
var index = {
|
|
88
|
-
install
|
|
89
|
-
};
|
|
90
|
-
|
|
91
|
-
export { LlIcon, index as default, iconProps };
|
package/index.js
DELETED
|
@@ -1,101 +0,0 @@
|
|
|
1
|
-
(function (global, factory) {
|
|
2
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('vue')) :
|
|
3
|
-
typeof define === 'function' && define.amd ? define(['exports', 'vue'], factory) :
|
|
4
|
-
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.LlPlus = {}, global.Vue));
|
|
5
|
-
})(this, (function (exports, vue) { 'use strict';
|
|
6
|
-
|
|
7
|
-
const addUnit = (val) => {
|
|
8
|
-
return typeof val === 'string' ? val : val + 'px';
|
|
9
|
-
};
|
|
10
|
-
|
|
11
|
-
const _bem = (prefixedName, blockSuffix, element, modifier) => {
|
|
12
|
-
if (blockSuffix) {
|
|
13
|
-
prefixedName += `-${blockSuffix}`;
|
|
14
|
-
}
|
|
15
|
-
if (element) {
|
|
16
|
-
prefixedName += `__${element}`;
|
|
17
|
-
}
|
|
18
|
-
if (modifier) {
|
|
19
|
-
prefixedName += `--${modifier}`;
|
|
20
|
-
}
|
|
21
|
-
return prefixedName;
|
|
22
|
-
};
|
|
23
|
-
function createBEM(prefixedName) {
|
|
24
|
-
const b = (blockSuffix = '') => _bem(prefixedName, blockSuffix, '', '');
|
|
25
|
-
const e = (element = '') => element ? _bem(prefixedName, '', element, '') : '';
|
|
26
|
-
const m = (modifier = '') => modifier ? _bem(prefixedName, '', '', modifier) : '';
|
|
27
|
-
const be = (blockSuffix = '', element = '') => blockSuffix && element ? _bem(prefixedName, blockSuffix, element, '') : '';
|
|
28
|
-
const em = (element, modifier) => element && modifier ? _bem(prefixedName, '', element, modifier) : '';
|
|
29
|
-
const bm = (blockSuffix, modifier) => blockSuffix && modifier ? _bem(prefixedName, blockSuffix, '', modifier) : '';
|
|
30
|
-
const bem = (blockSuffix, element, modifier) => blockSuffix && element && modifier
|
|
31
|
-
? _bem(prefixedName, blockSuffix, element, modifier)
|
|
32
|
-
: '';
|
|
33
|
-
const is = (name = '') => (name ? `is-${name}` : '');
|
|
34
|
-
return {
|
|
35
|
-
b,
|
|
36
|
-
e,
|
|
37
|
-
m,
|
|
38
|
-
be,
|
|
39
|
-
em,
|
|
40
|
-
bm,
|
|
41
|
-
bem,
|
|
42
|
-
is
|
|
43
|
-
};
|
|
44
|
-
}
|
|
45
|
-
function createNamespace(name) {
|
|
46
|
-
const prefixedName = `ll-${name}`;
|
|
47
|
-
return createBEM(prefixedName);
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
const withInstall = (comp) => {
|
|
51
|
-
comp.install = function (app) {
|
|
52
|
-
app.component(comp.name, comp);
|
|
53
|
-
};
|
|
54
|
-
return comp;
|
|
55
|
-
};
|
|
56
|
-
|
|
57
|
-
const iconProps = {
|
|
58
|
-
size: [Number, String],
|
|
59
|
-
color: String
|
|
60
|
-
};
|
|
61
|
-
|
|
62
|
-
var script = vue.defineComponent(Object.assign({
|
|
63
|
-
name: 'LlIcon'
|
|
64
|
-
}, { __name: 'icon', props: iconProps, setup(__props) {
|
|
65
|
-
const props = __props;
|
|
66
|
-
const bem = createNamespace('icon');
|
|
67
|
-
const style = vue.computed(() => {
|
|
68
|
-
if (!props.color && !props.size)
|
|
69
|
-
return {};
|
|
70
|
-
return Object.assign(Object.assign({}, (props.color ? { color: props.color } : {})), (props.size ? { 'font-size': addUnit(props.size) } : {}));
|
|
71
|
-
});
|
|
72
|
-
return (_ctx, _cache) => {
|
|
73
|
-
return (vue.openBlock(), vue.createElementBlock("i", {
|
|
74
|
-
class: vue.normalizeClass(vue.unref(bem).b()),
|
|
75
|
-
style: vue.normalizeStyle(style.value)
|
|
76
|
-
}, [
|
|
77
|
-
vue.renderSlot(_ctx.$slots, "default")
|
|
78
|
-
], 6));
|
|
79
|
-
};
|
|
80
|
-
} }));
|
|
81
|
-
|
|
82
|
-
script.__file = "packages/components/icon/src/icon.vue";
|
|
83
|
-
|
|
84
|
-
const LlIcon = withInstall(script);
|
|
85
|
-
|
|
86
|
-
var components = [LlIcon];
|
|
87
|
-
|
|
88
|
-
const install = (app) => {
|
|
89
|
-
components.forEach(component => app.use(component));
|
|
90
|
-
};
|
|
91
|
-
var index = {
|
|
92
|
-
install
|
|
93
|
-
};
|
|
94
|
-
|
|
95
|
-
exports.LlIcon = LlIcon;
|
|
96
|
-
exports.default = index;
|
|
97
|
-
exports.iconProps = iconProps;
|
|
98
|
-
|
|
99
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
100
|
-
|
|
101
|
-
}));
|
package/lib/components.js
DELETED
package/lib/utils/add-util.js
DELETED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import Icon from './src/icon.vue';
|
|
2
|
-
export declare const LlIcon: import("ll-plus/es/utils").SFCWithInstall<import("vue").DefineComponent<{
|
|
3
|
-
readonly size: import("vue").PropType<string | number>;
|
|
4
|
-
readonly color: StringConstructor;
|
|
5
|
-
}, {
|
|
6
|
-
props: import("@vue/shared").LooseRequired<{
|
|
7
|
-
readonly size?: string | number;
|
|
8
|
-
readonly color?: string;
|
|
9
|
-
} & {}>;
|
|
10
|
-
bem: {
|
|
11
|
-
b: (blockSuffix?: string) => string;
|
|
12
|
-
e: (element?: string) => string;
|
|
13
|
-
m: (modifier?: string) => string;
|
|
14
|
-
be: (blockSuffix?: string, element?: string) => string;
|
|
15
|
-
em: (element: string, modifier: string) => string;
|
|
16
|
-
bm: (blockSuffix: string, modifier: string) => string;
|
|
17
|
-
bem: (blockSuffix: string, element: string, modifier: string) => string;
|
|
18
|
-
is: (name?: string) => string;
|
|
19
|
-
};
|
|
20
|
-
style: import("vue").ComputedRef<{
|
|
21
|
-
'font-size'?: string;
|
|
22
|
-
color?: string;
|
|
23
|
-
}>;
|
|
24
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
25
|
-
readonly size: import("vue").PropType<string | number>;
|
|
26
|
-
readonly color: StringConstructor;
|
|
27
|
-
}>>, {}, {}>>;
|
|
28
|
-
export default LlIcon;
|
|
29
|
-
export * from './src/icon';
|
|
30
|
-
declare module 'vue' {
|
|
31
|
-
interface GlobalComponents {
|
|
32
|
-
LlIcon: typeof Icon;
|
|
33
|
-
}
|
|
34
|
-
}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
declare const _default: import("vue").DefineComponent<{
|
|
2
|
-
readonly size: import("vue").PropType<string | number>;
|
|
3
|
-
readonly color: StringConstructor;
|
|
4
|
-
}, {
|
|
5
|
-
props: import("@vue/shared").LooseRequired<{
|
|
6
|
-
readonly size?: string | number;
|
|
7
|
-
readonly color?: string;
|
|
8
|
-
} & {}>;
|
|
9
|
-
bem: {
|
|
10
|
-
b: (blockSuffix?: string) => string;
|
|
11
|
-
e: (element?: string) => string;
|
|
12
|
-
m: (modifier?: string) => string;
|
|
13
|
-
be: (blockSuffix?: string, element?: string) => string;
|
|
14
|
-
em: (element: string, modifier: string) => string;
|
|
15
|
-
bm: (blockSuffix: string, modifier: string) => string;
|
|
16
|
-
bem: (blockSuffix: string, element: string, modifier: string) => string;
|
|
17
|
-
is: (name?: string) => string;
|
|
18
|
-
};
|
|
19
|
-
style: import("vue").ComputedRef<{
|
|
20
|
-
'font-size'?: string;
|
|
21
|
-
color?: string;
|
|
22
|
-
}>;
|
|
23
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
24
|
-
readonly size: import("vue").PropType<string | number>;
|
|
25
|
-
readonly color: StringConstructor;
|
|
26
|
-
}>>, {}, {}>;
|
|
27
|
-
export default _default;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './icon';
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|