hw-cus-ui 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.
- package/HwBtn/HwBtn.vue +16 -0
- package/index.ts +16 -0
- package/package.json +2 -2
package/HwBtn/HwBtn.vue
ADDED
package/index.ts
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
// import type { App } from 'vue';
|
|
2
|
+
import HwBtn from "./HwBtn/HwBtn.vue"; // 引入封装好的组件
|
|
3
|
+
|
|
4
|
+
// const coms = [HwBtn]; // 将来如果有其它组件,都可以写到这个数组里
|
|
5
|
+
|
|
6
|
+
// // 批量组件注册
|
|
7
|
+
// const install = function (app: App) {
|
|
8
|
+
// coms.forEach((com) => {
|
|
9
|
+
// if(com.name){
|
|
10
|
+
// app.component(com.name, com);
|
|
11
|
+
// }
|
|
12
|
+
|
|
13
|
+
// });
|
|
14
|
+
// };
|
|
15
|
+
|
|
16
|
+
export default {HwBtn}; // 这个方法以后再使用的时候可以被use调用
|