@uf_lee/leeui 1.0.42 → 1.0.44
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 +46 -8
- package/dist/leeui.es.js +4872 -4811
- package/dist/leeui.umd.js +12 -12
- package/dist/types/components/LElTable/src/LElTable copy.vue.d.ts +64 -0
- package/dist/types/components/LElTable/src/LElTable.vue.d.ts +33 -2
- package/dist/types/components/LElTable/src/types.d.ts +2 -0
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -63,20 +63,58 @@ git clone https://gitee.com/uf_lee/lee-ui-test.git
|
|
|
63
63
|
| -------- | ------ | --------------------- | ---- |
|
|
64
64
|
| `schema` | 表单配置项 | `FormSchema[]` | `[]` |
|
|
65
65
|
| `model` | 表单数据对象 | `Record<string, any>` | `{}` |
|
|
66
|
+
| `rules` | 表单验证规则 | `Record<string, any>` | `{}` |
|
|
67
|
+
| `register` | 注册组件 | `Register` | - | @register="register" |
|
|
66
68
|
|
|
67
69
|
### `LElCom` 组件
|
|
68
70
|
|
|
69
|
-
| 参数 | 说明 | 类型 | 默认值 |
|
|
70
|
-
| --------- | ------- | ------------ | --- |
|
|
71
|
-
| `data` | 单个表单项配置 | `FormSchema` | - |
|
|
72
|
-
| `v-model` | 绑定的数据值 | `any` | - |
|
|
71
|
+
| 参数 | 说明 | 类型 | 默认值 | 案例 |
|
|
72
|
+
| --------- | ------- | ------------ | --- | ---|
|
|
73
|
+
| `data` | 单个表单项配置 | `FormSchema` | - | :data="data" |
|
|
74
|
+
| `v-model` | 绑定的数据值 | `any` | - | v-model="value" |
|
|
73
75
|
|
|
74
76
|
### `LElTable` 组件
|
|
75
77
|
|
|
76
|
-
| 参数 | 说明 | 类型 | 默认值 |
|
|
77
|
-
| --------- | ------- | ------------ | --- |
|
|
78
|
-
| `schema` | 表格配置项 | `TableSchema[]` | `[]` |
|
|
79
|
-
| `data` | 表格数据对象 | `Record<string, any>` | `{}` |
|
|
78
|
+
| 参数 | 说明 | 类型 | 默认值 | 案例 |
|
|
79
|
+
| --------- | ------- | ------------ | --- | ---|
|
|
80
|
+
| `schema` | 表格配置项 | `TableSchema[]` | `[]` | :schema="schema" |
|
|
81
|
+
| `data` | 表格数据对象 | `Record<string, any>` | `{}` | :data="tableData" |
|
|
82
|
+
| `register` | 注册表格组件 | `TableRegister` | - | @register="register" |
|
|
83
|
+
| `isForm` | 是否为表单模式 | `boolean` | `false` | :isForm="true" |
|
|
84
|
+
| `rules` | 表单验证规则 | `Record<string, any>` | `{}` | :rules="rules" |
|
|
85
|
+
|
|
86
|
+
## 本地调试方法
|
|
87
|
+
在lee-ui目录下执行:npm link
|
|
88
|
+
cd c:\www\leeui\lee-ui
|
|
89
|
+
npm link
|
|
90
|
+
在需要使用的项目目录下执行:npm link @uf_lee/leeui
|
|
91
|
+
cd c:\www\leeui\lee-ui-test
|
|
92
|
+
npm link @uf_lee/leeui
|
|
93
|
+
在依赖项目中解除链接
|
|
94
|
+
cd c:\www\leeui\lee-ui-test
|
|
95
|
+
npm unlink @uf_lee/leeui
|
|
96
|
+
(可选)在 leeui 项目中解除全局链接
|
|
97
|
+
cd c:\www\leeui\lee-ui
|
|
98
|
+
npm unlink @uf_lee/leeui
|
|
99
|
+
|
|
100
|
+
注意:需要执行npm run build 代码才会生效
|
|
101
|
+
|
|
102
|
+
## 本地调试方案2:使用软链接
|
|
103
|
+
设置 package.json 文件中:
|
|
104
|
+
"@uf_lee/leeui": "file:../lee-ui",
|
|
105
|
+
然后执行
|
|
106
|
+
cd c:\www\leeui\lee-ui-test
|
|
107
|
+
npm install @uf_lee/leeui
|
|
108
|
+
|
|
109
|
+
注意:lee-ui需要执行npm run build 代码才会生效
|
|
110
|
+
cd c:\www\leeui\lee-ui
|
|
111
|
+
npm run build
|
|
112
|
+
|
|
113
|
+
恢复
|
|
114
|
+
npm uninstall @uf_lee/leeui
|
|
115
|
+
npm install @uf_lee/leeui
|
|
116
|
+
|
|
117
|
+
|
|
80
118
|
|
|
81
119
|
## 🤝 贡献指南
|
|
82
120
|
|