@infly/ui 1.0.9 → 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.
Files changed (2) hide show
  1. package/index.js +9 -4
  2. package/package.json +1 -3
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
- InflyModal,
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.9",
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": {