idp-base-components-lib 1.0.6 → 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
@@ -57,17 +57,7 @@ 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
- ```
60
+ **说明**:组件库默认使用中文语言(zh-CN),自动生效,无需额外配置。
71
61
 
72
62
  ### 按需引入
73
63
 
@@ -102,28 +92,19 @@ const tableData = [
102
92
 
103
93
  ### VxeUI 语言配置(仅用于 VTable 组件)
104
94
 
105
- 组件库已自动配置 VxeUI 为中文。
106
-
107
- #### **完整引入**
95
+ 组件库已**自动配置** VxeUI 为中文,**无需手动调用任何配置函数**。
108
96
 
109
- 自动生效,无需额外配置。
97
+ 无论使用完整引入还是按需引入,只要导入了组件,中文配置都会自动生效。
110
98
 
111
- #### **按需引入**
99
+ #### **自定义语言(可选)**
112
100
 
113
- 需要在应用入口(如 `main.js`)调用一次:
101
+ 仅在需要使用其他语言时才需要配置:
114
102
 
115
103
  ```javascript
116
104
  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
105
  import vxeEnUS from "vxe-pc-ui/lib/language/en-US";
106
+
107
+ // 切换为英文
127
108
  setupVxeUI(vxeEnUS, "en-US");
128
109
  ```
129
110
 
package/dist/index.cjs.js CHANGED
@@ -37514,7 +37514,7 @@ const index = {
37514
37514
  PascalCase: _sfc_main$1,
37515
37515
  NavBar: _sfc_main,
37516
37516
  // 版本号
37517
- version: "1.0.6"
37517
+ version: "1.0.7"
37518
37518
  };
37519
37519
  function install(app, options = {}) {
37520
37520
  if (options.vxeLocale && options.vxeLanguage) {
package/dist/index.esm.js CHANGED
@@ -37512,7 +37512,7 @@ const index = {
37512
37512
  PascalCase: _sfc_main$1,
37513
37513
  NavBar: _sfc_main,
37514
37514
  // 版本号
37515
- version: "1.0.6"
37515
+ version: "1.0.7"
37516
37516
  };
37517
37517
  function install(app, options = {}) {
37518
37518
  if (options.vxeLocale && options.vxeLanguage) {
package/dist/index.umd.js CHANGED
@@ -37512,7 +37512,7 @@
37512
37512
  PascalCase: _sfc_main$1,
37513
37513
  NavBar: _sfc_main,
37514
37514
  // 版本号
37515
- version: "1.0.6"
37515
+ version: "1.0.7"
37516
37516
  };
37517
37517
  function install(app, options = {}) {
37518
37518
  if (options.vxeLocale && options.vxeLanguage) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "idp-base-components-lib",
3
- "version": "1.0.6",
3
+ "version": "1.0.7",
4
4
  "description": "IDP 基础组件库 - 基于 Vue 3 + Element Plus + vxe-table 构建的企业级组件库",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.esm.js",