@infly/ui 1.0.8 → 1.0.12
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/README.md +3 -3
- package/index.js +9 -4
- package/package.json +1 -3
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# infly
|
|
1
|
+
# @infly/ui
|
|
2
2
|
|
|
3
3
|
## 介绍
|
|
4
4
|
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
|
|
10
10
|
## 软件架构
|
|
11
11
|
|
|
12
|
-
infly
|
|
12
|
+
@infly/ui
|
|
13
13
|
├── Base - 基础组件库
|
|
14
14
|
│ └── InflyForm - 动态表单组件
|
|
15
15
|
├── Business - 业务组件
|
|
@@ -19,5 +19,5 @@ infly-ui
|
|
|
19
19
|
|
|
20
20
|
```bash
|
|
21
21
|
# 项目安装
|
|
22
|
-
npm/pnpm install infly
|
|
22
|
+
npm/pnpm install @infly/ui
|
|
23
23
|
```
|
package/index.js
CHANGED
|
@@ -24,22 +24,27 @@ const businessComponents = requireBusiness.keys().reduce((components, modulePath
|
|
|
24
24
|
const allComponents = { ...baseComponents, ...businessComponents };
|
|
25
25
|
const components = Object.values(allComponents);
|
|
26
26
|
|
|
27
|
-
const install = Vue => {
|
|
27
|
+
const install = (Vue) => {
|
|
28
28
|
if (install.installed || !Vue) return;
|
|
29
29
|
install.installed = true;
|
|
30
|
-
components.forEach(component => Vue.component(component.name, component));
|
|
30
|
+
components.forEach((component) => Vue.component(component.name, component));
|
|
31
31
|
};
|
|
32
32
|
|
|
33
33
|
// CDN 支持
|
|
34
34
|
if (typeof window !== "undefined" && window.Vue) install(window.Vue);
|
|
35
35
|
|
|
36
|
+
// 动态导出
|
|
37
|
+
|
|
36
38
|
// 动态导出
|
|
37
39
|
export const {
|
|
38
40
|
InflyInput,
|
|
39
41
|
InflyCheckBox,
|
|
40
42
|
InflyForm,
|
|
41
|
-
|
|
43
|
+
InflyDialog,
|
|
42
44
|
InflyList,
|
|
43
|
-
InstitutionSelect
|
|
45
|
+
InstitutionSelect,
|
|
46
|
+
BusinessTag,
|
|
47
|
+
BusinessSwitch
|
|
44
48
|
} = allComponents;
|
|
49
|
+
|
|
45
50
|
export default { install, ...allComponents };
|
package/package.json
CHANGED
|
@@ -1,12 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@infly/ui",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.12",
|
|
4
4
|
"description": "组件库 ",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"test": "echo \"Error: no test specified\" && exit 1",
|
|
8
|
-
"build:entry": "node scripts/build-entry.js",
|
|
9
|
-
"build": "pnpm run build:entry && vite build",
|
|
10
8
|
"publishPkg": "npm version patch && npm publish --access=public --registry=https://registry.npmjs.org/"
|
|
11
9
|
},
|
|
12
10
|
"exports": {
|