rayyy-vue-table-components 1.2.26 → 1.2.28
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 +32 -0
- package/dist/index.es.js +2224 -2042
- package/dist/index.umd.js +14 -14
- package/dist/rayyy-vue-table-components.css +1 -1
- package/dist/src/index.d.ts +5 -1
- package/dist/src/types/components.d.ts +2 -0
- package/package.json +1 -1
- package/src/components/layout/MainPanel.vue +2 -2
- package/src/components/layout/SearchableListPanel.vue +1 -1
- package/src/types/components.d.ts +2 -0
package/README.md
CHANGED
|
@@ -54,8 +54,40 @@ import App from './App.vue'
|
|
|
54
54
|
|
|
55
55
|
const app = createApp(App)
|
|
56
56
|
|
|
57
|
+
// 方式一:分別安裝(推薦)
|
|
57
58
|
app.use(ElementPlus)
|
|
58
59
|
app.use(VueTableComponents)
|
|
60
|
+
|
|
61
|
+
// 方式二:使用組件庫內建的 Element Plus(自動設定繁體中文)
|
|
62
|
+
// app.use(VueTableComponents, {
|
|
63
|
+
// locale: zhTw // 可選,預設為繁體中文
|
|
64
|
+
// })
|
|
65
|
+
|
|
66
|
+
app.mount('#app')
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
### 語系設定
|
|
70
|
+
|
|
71
|
+
組件庫內建繁體中文語系,您也可以自定義語系:
|
|
72
|
+
|
|
73
|
+
```typescript
|
|
74
|
+
import { createApp } from 'vue'
|
|
75
|
+
import zhTw from 'element-plus/es/locale/lang/zh-tw'
|
|
76
|
+
import en from 'element-plus/es/locale/lang/en'
|
|
77
|
+
import VueTableComponents from 'rayyy-vue-table-components'
|
|
78
|
+
|
|
79
|
+
const app = createApp(App)
|
|
80
|
+
|
|
81
|
+
// 使用繁體中文(預設)
|
|
82
|
+
app.use(VueTableComponents, {
|
|
83
|
+
locale: zhTw
|
|
84
|
+
})
|
|
85
|
+
|
|
86
|
+
// 或使用英文
|
|
87
|
+
app.use(VueTableComponents, {
|
|
88
|
+
locale: en
|
|
89
|
+
})
|
|
90
|
+
|
|
59
91
|
app.mount('#app')
|
|
60
92
|
```
|
|
61
93
|
|