idp-base-components-lib 1.0.4 → 1.0.6

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
@@ -57,6 +57,18 @@ app.use(IdpComponents);
57
57
  app.mount("#app");
58
58
  ```
59
59
 
60
+ **注意**:组件库默认使用中文语言(zh-CN)。如需自定义语言:
61
+
62
+ ```javascript
63
+ import IdpComponents from "idp-base-components-lib";
64
+ import vxeEnUS from "vxe-pc-ui/lib/language/en-US";
65
+
66
+ app.use(IdpComponents, {
67
+ vxeLocale: vxeEnUS,
68
+ vxeLanguage: "en-US",
69
+ });
70
+ ```
71
+
60
72
  ### 按需引入
61
73
 
62
74
  ```vue
@@ -88,6 +100,33 @@ const tableData = [
88
100
  </script>
89
101
  ```
90
102
 
103
+ ### VxeUI 语言配置(仅用于 VTable 组件)
104
+
105
+ 组件库已自动配置 VxeUI 为中文。
106
+
107
+ #### **完整引入**
108
+
109
+ 自动生效,无需额外配置。
110
+
111
+ #### **按需引入**
112
+
113
+ 需要在应用入口(如 `main.js`)调用一次:
114
+
115
+ ```javascript
116
+ import { setupVxeUI } from "idp-base-components-lib";
117
+ import vxeZhCN from "vxe-pc-ui/lib/language/zh-CN";
118
+
119
+ // 初始化 VxeUI(仅需调用一次)
120
+ setupVxeUI(vxeZhCN, "zh-CN");
121
+ ```
122
+
123
+ #### **自定义语言**
124
+
125
+ ```javascript
126
+ import vxeEnUS from "vxe-pc-ui/lib/language/en-US";
127
+ setupVxeUI(vxeEnUS, "en-US");
128
+ ```
129
+
91
130
  ## 📚 组件列表
92
131
 
93
132
  ### 基础组件