tm-table 1.2.2 → 1.2.3
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 +8 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -359,6 +359,7 @@ import { Table, Column } from "tm-table/v3";
|
|
|
359
359
|
| label-width | 搜索表单标签宽度(全局配置) | String / Number | — | 100 |
|
|
360
360
|
| input-width | 搜索表单输入框宽度(全局配置) | String / Number | — | 200 |
|
|
361
361
|
| direction | 搜索表单布局方向(全局配置) | String | horizontal/vertical | horizontal |
|
|
362
|
+
| label-align | 搜索表单标签对齐方式(全局配置) | String | left/right/center | left |
|
|
362
363
|
|
|
363
364
|
### Table 事件
|
|
364
365
|
|
|
@@ -455,7 +456,7 @@ searchColumns: [
|
|
|
455
456
|
|
|
456
457
|
- **单独配置**:在 searchColumns 中为特定项设置的参数
|
|
457
458
|
- **全局配置**:在 tm-table 组件上设置的参数
|
|
458
|
-
- **默认值**:labelWidth: 100px, inputWidth: 200px, direction: 'horizontal'
|
|
459
|
+
- **默认值**:labelWidth: 100px, inputWidth: 200px, direction: 'horizontal', labelAlign: 'left'
|
|
459
460
|
|
|
460
461
|
#### 布局模式
|
|
461
462
|
|
|
@@ -798,6 +799,12 @@ options: async () => {
|
|
|
798
799
|
```
|
|
799
800
|
|
|
800
801
|
## 📝 更新日志
|
|
802
|
+
### 1.2.3
|
|
803
|
+
- 🎯 **新增布局配置功能**
|
|
804
|
+
- 支持搜索表单的 `labelAlign` 参数配置
|
|
805
|
+
- 支持全局配置和单独配置,单独配置优先级更高
|
|
806
|
+
- 🎯 **去除部分配置**
|
|
807
|
+
- `textarea` 组件,不再支持`rows`配置,使用`autosize`代替
|
|
801
808
|
|
|
802
809
|
### 1.2.1
|
|
803
810
|
|