idp-base-components-lib 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 +20 -0
- package/dist/index.cjs.js +1592 -1584
- package/dist/index.esm.js +1593 -1585
- package/dist/index.umd.js +1594 -1585
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -57,6 +57,8 @@ app.use(IdpComponents);
|
|
|
57
57
|
app.mount("#app");
|
|
58
58
|
```
|
|
59
59
|
|
|
60
|
+
**说明**:组件库默认使用中文语言(zh-CN),自动生效,无需额外配置。
|
|
61
|
+
|
|
60
62
|
### 按需引入
|
|
61
63
|
|
|
62
64
|
```vue
|
|
@@ -88,6 +90,24 @@ const tableData = [
|
|
|
88
90
|
</script>
|
|
89
91
|
```
|
|
90
92
|
|
|
93
|
+
### VxeUI 语言配置(仅用于 VTable 组件)
|
|
94
|
+
|
|
95
|
+
组件库已**自动配置** VxeUI 为中文,**无需手动调用任何配置函数**。
|
|
96
|
+
|
|
97
|
+
无论使用完整引入还是按需引入,只要导入了组件,中文配置都会自动生效。
|
|
98
|
+
|
|
99
|
+
#### **自定义语言(可选)**
|
|
100
|
+
|
|
101
|
+
仅在需要使用其他语言时才需要配置:
|
|
102
|
+
|
|
103
|
+
```javascript
|
|
104
|
+
import { setupVxeUI } from "idp-base-components-lib";
|
|
105
|
+
import vxeEnUS from "vxe-pc-ui/lib/language/en-US";
|
|
106
|
+
|
|
107
|
+
// 切换为英文
|
|
108
|
+
setupVxeUI(vxeEnUS, "en-US");
|
|
109
|
+
```
|
|
110
|
+
|
|
91
111
|
## 📚 组件列表
|
|
92
112
|
|
|
93
113
|
### 基础组件
|