@xuekl/cli-components 1.0.1 → 1.0.2

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.ts +27 -12
  2. package/package.json +2 -2
package/index.ts CHANGED
@@ -1,14 +1,29 @@
1
- import { App } from "vue";
1
+ import ContextMenu from './ContextMenu.vue'
2
+ import PaddingBox from './PaddingBox.vue'
3
+ import PageContainer from './PageContainer.vue'
4
+ import XklButton from './XklButton.vue'
5
+ import XklDatePicker from './XklDatePicker.vue'
6
+ import XklDict from './XklDict.vue'
7
+ import XklForm from './XklForm.vue'
8
+ import XklLink from './XklLink.vue'
9
+ import XklSelect from './XklSelect.vue'
10
+ import XklTable from './XklTable.vue'
11
+ import XklTree from './XklTree.vue'
12
+ import XklTreeSelect from './XklTreeSelect.vue'
13
+ import XklUpload from './XklUpload.vue'
2
14
 
3
- const files = import.meta.glob('./*.vue', { eager: true })
4
-
5
-
6
-
7
- export default function useComponent(app: App<Element>) {
8
- Object.keys(files).forEach((component) => {
9
- const file = (files[component] as any).default
10
-
11
- // 使用内置的组件名称 进行全局组件注册
12
- app.component(file.name, file)
13
- })
15
+ export {
16
+ ContextMenu,
17
+ PaddingBox,
18
+ PageContainer,
19
+ XklButton,
20
+ XklDatePicker,
21
+ XklDict,
22
+ XklForm,
23
+ XklLink,
24
+ XklSelect,
25
+ XklTable,
26
+ XklTree,
27
+ XklTreeSelect,
28
+ XklUpload,
14
29
  }
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@xuekl/cli-components",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "description": "",
5
- "main": "index.js",
5
+ "main": "index.ts",
6
6
  "scripts": {
7
7
  "test": "echo \"Error: no test specified\" && exit 1"
8
8
  },