holyes-table 1.0.5 → 1.0.7

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 CHANGED
@@ -47,15 +47,24 @@
47
47
 
48
48
  2. 引入样式
49
49
 
50
- ```bash
50
+ ```typescript
51
+ // main.ts
51
52
  import 'holyes-table/style.css'
52
53
  ```
53
54
 
54
55
  3. 引入组件
55
56
 
56
- ```bash
57
+ ```typescript
58
+ // 组件中引入
59
+ // xxx.vue
60
+ import HolyesTable from "holyes-table"
61
+
62
+ // 或者全局安装,后续就不用引入了
57
63
  // main.ts
64
+ import { createApp } from 'vue'
65
+ import app from './app.vue'
58
66
  import HolyesTable from "holyes-table"
67
+ createApp(app).use(HolyesTable).mount('#app')
59
68
  ```
60
69
 
61
70
  ### 简单示例