@vxe-ui/plugin-render-antd 4.0.7 → 4.0.8
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/LICENSE +20 -20
- package/README.md +153 -151
- package/dist/all.common.js +9 -9
- package/dist/form-design/checkbox-widget.js +1 -1
- package/dist/form-design/date-picker-widget.js +1 -1
- package/dist/form-design/input-widget.js +1 -1
- package/dist/form-design/number-input-widget.js +1 -1
- package/dist/form-design/radio-widget.js +1 -1
- package/dist/form-design/select-widget.js +1 -1
- package/dist/form-design/switch-widget.js +1 -1
- package/dist/form-design/textarea-widget.js +1 -1
- package/dist/index.common.js +1 -1
- package/dist/index.js +1 -1
- package/dist/index.umd.js +9 -9
- package/dist/index.umd.min.js +1 -1
- package/package.json +74 -73
- package/src/form/index.ts +309 -309
- package/src/form-design/checkbox-widget.ts +164 -164
- package/src/form-design/date-picker-widget.ts +144 -144
- package/src/form-design/index.ts +101 -101
- package/src/form-design/input-widget.ts +144 -144
- package/src/form-design/number-input-widget.ts +144 -144
- package/src/form-design/radio-widget.ts +164 -164
- package/src/form-design/select-widget.ts +156 -156
- package/src/form-design/switch-widget.ts +140 -140
- package/src/form-design/textarea-widget.ts +148 -148
- package/src/form-design/use.ts +255 -255
- package/src/index.ts +71 -71
- package/src/table/index.ts +543 -542
- package/types/index.d.ts +12 -12
package/LICENSE
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2019 Xu Liangzhan
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2019 Xu Liangzhan
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
21
|
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,151 +1,153 @@
|
|
|
1
|
-
# @vxe-ui/plugin-render-antd
|
|
2
|
-
|
|
3
|
-
[Vxe UI](https://vxeui.com/) plug-in for compatibility with the [ant-design-vue](https://www.npmjs.com/package/ant-design-vue) component.
|
|
4
|
-
|
|
5
|
-
## Compatibility
|
|
6
|
-
|
|
7
|
-
It corresponds to [vxe-table v4](https://www.npmjs.com/package/vxe-table) or [vxe-pc-ui v4](https://www.npmjs.com/package/vxe-pc-ui)
|
|
8
|
-
|
|
9
|
-
## Installing
|
|
10
|
-
|
|
11
|
-
```shell
|
|
12
|
-
npm install @vxe-ui/plugin-render-antd
|
|
13
|
-
```
|
|
14
|
-
|
|
15
|
-
```javascript
|
|
16
|
-
// ...
|
|
17
|
-
// Use vxe-pc-ui
|
|
18
|
-
import { VxeUI } from 'vxe-pc-ui'
|
|
19
|
-
// Use vxe-table
|
|
20
|
-
// import { VxeUI } from 'vxe-table'
|
|
21
|
-
import VxeUIPluginRenderAntd from '@vxe-ui/plugin-render-antd'
|
|
22
|
-
import '@vxe-ui/plugin-render-antd/dist/style.css'
|
|
23
|
-
// ...
|
|
24
|
-
|
|
25
|
-
VxeUI.use(VxeUIPluginRenderAntd)
|
|
26
|
-
```
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
## API
|
|
30
|
-
|
|
31
|
-
### cell-render 默认的渲染器配置项说明
|
|
32
|
-
|
|
33
|
-
| 属性 | 描述 | 类型 | 可选值 | 默认值 |
|
|
34
|
-
|------|------|-----|-----|-----|
|
|
35
|
-
| name | 支持的渲染组件 | String | AInput, AAutocomplete, AInputNumber, ASwitch, ARate, AButton, AButtons | — |
|
|
36
|
-
| props | 渲染组件附加属性,参数请查看被渲染的 Component props | Object | — | {} |
|
|
37
|
-
| options | 只对 name=ASelect 有效,下拉组件选项列表 | Array | — | [] |
|
|
38
|
-
| optionProps | 只对 name=ASelect 有效,下拉组件选项属性参数配置 | Object | — | { value: 'value', label: 'label' } |
|
|
39
|
-
| optionGroups | 只对 name=ASelect 有效,下拉组件分组选项列表 | Array | — | [] |
|
|
40
|
-
| optionGroupProps | 只对 name=ASelect 有效,下拉组件分组选项属性参数配置 | Object | — | { options: 'options', label: 'label' } |
|
|
41
|
-
| events | 渲染组件附加事件,参数为 ( {row,rowIndex,column,columnIndex}, ...Component arguments ) | Object | — | — |
|
|
42
|
-
|
|
43
|
-
### edit-render 可编辑渲染器配置项说明
|
|
44
|
-
|
|
45
|
-
| 属性 | 描述 | 类型 | 可选值 | 默认值 |
|
|
46
|
-
|------|------|-----|-----|-----|
|
|
47
|
-
| name | 支持的渲染组件 | String | AInput, AAutocomplete, AInputNumber, ASelect, ACascader, ADatePicker, AMonthPicker, ARangePicker, AWeekPicker, ATimePicker, ATreeSelect, ASwitch, ARate, AButton, AButtons | — |
|
|
48
|
-
| props | 渲染组件附加属性,参数请查看被渲染的 Component props | Object | — | {} |
|
|
49
|
-
| options | 只对 name=ASelect 有效,下拉组件选项列表 | Array | — | [] |
|
|
50
|
-
| optionProps | 只对 name=ASelect 有效,下拉组件选项属性参数配置 | Object | — | { value: 'value', label: 'label' } |
|
|
51
|
-
| optionGroups | 只对 name=ASelect 有效,下拉组件分组选项列表 | Array | — | [] |
|
|
52
|
-
| optionGroupProps | 只对 name=ASelect 有效,下拉组件分组选项属性参数配置 | Object | — | { options: 'options', label: 'label' } |
|
|
53
|
-
| events | 渲染组件附加事件,参数为 ( {row,rowIndex,column,columnIndex}, ...Component arguments ) | Object | — | — |
|
|
54
|
-
|
|
55
|
-
### filter-render 筛选渲染器配置项说明
|
|
56
|
-
|
|
57
|
-
| 属性 | 描述 | 类型 | 可选值 | 默认值 |
|
|
58
|
-
|------|------|-----|-----|-----|
|
|
59
|
-
| name | 支持的渲染组件 | String | AInput, AAutocomplete, AInputNumber, ASelect, ASwitch, ARate | — |
|
|
60
|
-
| props | 渲染组件附加属性,参数请查看被渲染的 Component props | Object | — | {} |
|
|
61
|
-
| options | 只对 name=ASelect 有效,下拉组件选项列表 | Array | — | [] |
|
|
62
|
-
| optionProps | 只对 name=ASelect 有效,下拉组件选项属性参数配置 | Object | — | { value: 'value', label: 'label' } |
|
|
63
|
-
| optionGroups | 只对 name=ASelect 有效,下拉组件分组选项列表 | Array | — | [] |
|
|
64
|
-
| optionGroupProps | 只对 name=ASelect 有效,下拉组件分组选项属性参数配置 | Object | — | { options: 'options', label: 'label' } |
|
|
65
|
-
| events | 渲染组件附加事件,参数为 ( {}, ...Component arguments ) | Object | — | — |
|
|
66
|
-
|
|
67
|
-
### item-render 表单-项选渲染器配置项说明
|
|
68
|
-
|
|
69
|
-
| 属性 | 描述 | 类型 | 可选值 | 默认值 |
|
|
70
|
-
|------|------|-----|-----|-----|
|
|
71
|
-
| name | 支持的渲染组件 | String | AInput, AAutocomplete, AInputNumber, ASelect, ASwitch, ARate, ARadio, ACheckbox, AButton, AButtons | — |
|
|
72
|
-
| props | 渲染组件附加属性,参数请查看被渲染的 Component props | Object | — | {} |
|
|
73
|
-
| options | 只对 name=ASelect 有效,下拉组件选项列表 | Array | — | [] |
|
|
74
|
-
| optionProps | 只对 name=ASelect 有效,下拉组件选项属性参数配置 | Object | — | { value: 'value', label: 'label' } |
|
|
75
|
-
| optionGroups | 只对 name=ASelect 有效,下拉组件分组选项列表 | Array | — | [] |
|
|
76
|
-
| optionGroupProps | 只对 name=ASelect 有效,下拉组件分组选项属性参数配置 | Object | — | { options: 'options', label: 'label' } |
|
|
77
|
-
| events | 渲染组件附加事件,参数为 ( {}, ...Component arguments ) | Object | — | — |
|
|
78
|
-
|
|
79
|
-
### 表单设计器配置项
|
|
80
|
-
|
|
81
|
-
| 描述 |
|
|
82
|
-
|------|
|
|
83
|
-
| 'AInputWidget', 'ATextareaWidget', 'ANumberInputWidget', 'ADatePickerWidget', 'ASelectWidget', 'ARadioWidget', 'ACheckboxWidget', 'ASwitchWidget' |
|
|
84
|
-
|
|
85
|
-
## Cell demo
|
|
86
|
-
|
|
87
|
-
```html
|
|
88
|
-
<vxe-table
|
|
89
|
-
height="600"
|
|
90
|
-
:data="tableData"
|
|
91
|
-
:edit-config="{trigger: 'click', mode: 'cell'}">
|
|
92
|
-
<vxe-column field="name" title="Name" :edit-render="{name: 'AInput'}"></vxe-column>
|
|
93
|
-
<vxe-column field="age" title="Age" :edit-render="{name: 'AInputNumber'}"></vxe-column>
|
|
94
|
-
<vxe-column field="date" title="Date" width="200" :edit-render="{name: 'ADatePicker'}"></vxe-column>
|
|
95
|
-
</vxe-table>
|
|
96
|
-
```
|
|
97
|
-
|
|
98
|
-
```javascript
|
|
99
|
-
export default {
|
|
100
|
-
data () {
|
|
101
|
-
return {
|
|
102
|
-
tableData: [
|
|
103
|
-
{ id: 100, name: 'test0', age: 28, sex: '1', date: '' },
|
|
104
|
-
{ id: 101, name: 'test1', age: 32, sex: '0', date: '' },
|
|
105
|
-
{ id: 102, name: 'test2', age: 36, sex: '1', date: '' }
|
|
106
|
-
]
|
|
107
|
-
}
|
|
108
|
-
}
|
|
109
|
-
}
|
|
110
|
-
```
|
|
111
|
-
|
|
112
|
-
## Filter demo
|
|
113
|
-
|
|
114
|
-
```html
|
|
115
|
-
<
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
```
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
{ id:
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
1
|
+
# @vxe-ui/plugin-render-antd
|
|
2
|
+
|
|
3
|
+
[Vxe UI](https://vxeui.com/) plug-in for compatibility with the [ant-design-vue](https://www.npmjs.com/package/ant-design-vue) component.
|
|
4
|
+
|
|
5
|
+
## Compatibility
|
|
6
|
+
|
|
7
|
+
It corresponds to [vxe-table v4](https://www.npmjs.com/package/vxe-table) or [vxe-pc-ui v4](https://www.npmjs.com/package/vxe-pc-ui)
|
|
8
|
+
|
|
9
|
+
## Installing
|
|
10
|
+
|
|
11
|
+
```shell
|
|
12
|
+
npm install @vxe-ui/plugin-render-antd
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
```javascript
|
|
16
|
+
// ...
|
|
17
|
+
// Use vxe-pc-ui
|
|
18
|
+
import { VxeUI } from 'vxe-pc-ui'
|
|
19
|
+
// Use vxe-table
|
|
20
|
+
// import { VxeUI } from 'vxe-table'
|
|
21
|
+
import VxeUIPluginRenderAntd from '@vxe-ui/plugin-render-antd'
|
|
22
|
+
import '@vxe-ui/plugin-render-antd/dist/style.css'
|
|
23
|
+
// ...
|
|
24
|
+
|
|
25
|
+
VxeUI.use(VxeUIPluginRenderAntd)
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
## API
|
|
30
|
+
|
|
31
|
+
### cell-render 默认的渲染器配置项说明
|
|
32
|
+
|
|
33
|
+
| 属性 | 描述 | 类型 | 可选值 | 默认值 |
|
|
34
|
+
|------|------|-----|-----|-----|
|
|
35
|
+
| name | 支持的渲染组件 | String | AInput, AAutocomplete, AInputNumber, ASwitch, ARate, AButton, AButtons | — |
|
|
36
|
+
| props | 渲染组件附加属性,参数请查看被渲染的 Component props | Object | — | {} |
|
|
37
|
+
| options | 只对 name=ASelect 有效,下拉组件选项列表 | Array | — | [] |
|
|
38
|
+
| optionProps | 只对 name=ASelect 有效,下拉组件选项属性参数配置 | Object | — | { value: 'value', label: 'label' } |
|
|
39
|
+
| optionGroups | 只对 name=ASelect 有效,下拉组件分组选项列表 | Array | — | [] |
|
|
40
|
+
| optionGroupProps | 只对 name=ASelect 有效,下拉组件分组选项属性参数配置 | Object | — | { options: 'options', label: 'label' } |
|
|
41
|
+
| events | 渲染组件附加事件,参数为 ( {row,rowIndex,column,columnIndex}, ...Component arguments ) | Object | — | — |
|
|
42
|
+
|
|
43
|
+
### edit-render 可编辑渲染器配置项说明
|
|
44
|
+
|
|
45
|
+
| 属性 | 描述 | 类型 | 可选值 | 默认值 |
|
|
46
|
+
|------|------|-----|-----|-----|
|
|
47
|
+
| name | 支持的渲染组件 | String | AInput, AAutocomplete, AInputNumber, ASelect, ACascader, ADatePicker, AMonthPicker, ARangePicker, AWeekPicker, ATimePicker, ATreeSelect, ASwitch, ARate, AButton, AButtons | — |
|
|
48
|
+
| props | 渲染组件附加属性,参数请查看被渲染的 Component props | Object | — | {} |
|
|
49
|
+
| options | 只对 name=ASelect 有效,下拉组件选项列表 | Array | — | [] |
|
|
50
|
+
| optionProps | 只对 name=ASelect 有效,下拉组件选项属性参数配置 | Object | — | { value: 'value', label: 'label' } |
|
|
51
|
+
| optionGroups | 只对 name=ASelect 有效,下拉组件分组选项列表 | Array | — | [] |
|
|
52
|
+
| optionGroupProps | 只对 name=ASelect 有效,下拉组件分组选项属性参数配置 | Object | — | { options: 'options', label: 'label' } |
|
|
53
|
+
| events | 渲染组件附加事件,参数为 ( {row,rowIndex,column,columnIndex}, ...Component arguments ) | Object | — | — |
|
|
54
|
+
|
|
55
|
+
### filter-render 筛选渲染器配置项说明
|
|
56
|
+
|
|
57
|
+
| 属性 | 描述 | 类型 | 可选值 | 默认值 |
|
|
58
|
+
|------|------|-----|-----|-----|
|
|
59
|
+
| name | 支持的渲染组件 | String | AInput, AAutocomplete, AInputNumber, ASelect, ASwitch, ARate | — |
|
|
60
|
+
| props | 渲染组件附加属性,参数请查看被渲染的 Component props | Object | — | {} |
|
|
61
|
+
| options | 只对 name=ASelect 有效,下拉组件选项列表 | Array | — | [] |
|
|
62
|
+
| optionProps | 只对 name=ASelect 有效,下拉组件选项属性参数配置 | Object | — | { value: 'value', label: 'label' } |
|
|
63
|
+
| optionGroups | 只对 name=ASelect 有效,下拉组件分组选项列表 | Array | — | [] |
|
|
64
|
+
| optionGroupProps | 只对 name=ASelect 有效,下拉组件分组选项属性参数配置 | Object | — | { options: 'options', label: 'label' } |
|
|
65
|
+
| events | 渲染组件附加事件,参数为 ( {}, ...Component arguments ) | Object | — | — |
|
|
66
|
+
|
|
67
|
+
### item-render 表单-项选渲染器配置项说明
|
|
68
|
+
|
|
69
|
+
| 属性 | 描述 | 类型 | 可选值 | 默认值 |
|
|
70
|
+
|------|------|-----|-----|-----|
|
|
71
|
+
| name | 支持的渲染组件 | String | AInput, AAutocomplete, AInputNumber, ASelect, ASwitch, ARate, ARadio, ACheckbox, AButton, AButtons | — |
|
|
72
|
+
| props | 渲染组件附加属性,参数请查看被渲染的 Component props | Object | — | {} |
|
|
73
|
+
| options | 只对 name=ASelect 有效,下拉组件选项列表 | Array | — | [] |
|
|
74
|
+
| optionProps | 只对 name=ASelect 有效,下拉组件选项属性参数配置 | Object | — | { value: 'value', label: 'label' } |
|
|
75
|
+
| optionGroups | 只对 name=ASelect 有效,下拉组件分组选项列表 | Array | — | [] |
|
|
76
|
+
| optionGroupProps | 只对 name=ASelect 有效,下拉组件分组选项属性参数配置 | Object | — | { options: 'options', label: 'label' } |
|
|
77
|
+
| events | 渲染组件附加事件,参数为 ( {}, ...Component arguments ) | Object | — | — |
|
|
78
|
+
|
|
79
|
+
### 表单设计器配置项
|
|
80
|
+
|
|
81
|
+
| 描述 |
|
|
82
|
+
|------|
|
|
83
|
+
| 'AInputWidget', 'ATextareaWidget', 'ANumberInputWidget', 'ADatePickerWidget', 'ASelectWidget', 'ARadioWidget', 'ACheckboxWidget', 'ASwitchWidget' |
|
|
84
|
+
|
|
85
|
+
## Table Cell demo
|
|
86
|
+
|
|
87
|
+
```html
|
|
88
|
+
<vxe-table
|
|
89
|
+
height="600"
|
|
90
|
+
:data="tableData"
|
|
91
|
+
:edit-config="{trigger: 'click', mode: 'cell'}">
|
|
92
|
+
<vxe-column field="name" title="Name" :edit-render="{name: 'AInput'}"></vxe-column>
|
|
93
|
+
<vxe-column field="age" title="Age" :edit-render="{name: 'AInputNumber'}"></vxe-column>
|
|
94
|
+
<vxe-column field="date" title="Date" width="200" :edit-render="{name: 'ADatePicker'}"></vxe-column>
|
|
95
|
+
</vxe-table>
|
|
96
|
+
```
|
|
97
|
+
|
|
98
|
+
```javascript
|
|
99
|
+
export default {
|
|
100
|
+
data () {
|
|
101
|
+
return {
|
|
102
|
+
tableData: [
|
|
103
|
+
{ id: 100, name: 'test0', age: 28, sex: '1', date: '' },
|
|
104
|
+
{ id: 101, name: 'test1', age: 32, sex: '0', date: '' },
|
|
105
|
+
{ id: 102, name: 'test2', age: 36, sex: '1', date: '' }
|
|
106
|
+
]
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
```
|
|
111
|
+
|
|
112
|
+
## Table Filter demo
|
|
113
|
+
|
|
114
|
+
```html
|
|
115
|
+
<template>
|
|
116
|
+
<vxe-table
|
|
117
|
+
height="600"
|
|
118
|
+
:data="tableData">
|
|
119
|
+
<vxe-column field="name" title="Name":filters="nameOptions" :filter-render="{name: 'AInput'}"></vxe-column>
|
|
120
|
+
<vxe-column field="age" title="Age"></vxe-column>
|
|
121
|
+
<vxe-column field="date" title="Date" ></vxe-column>
|
|
122
|
+
</vxe-table>
|
|
123
|
+
</template>
|
|
124
|
+
```
|
|
125
|
+
|
|
126
|
+
```javascript
|
|
127
|
+
import { defineComponent } from 'vue'
|
|
128
|
+
|
|
129
|
+
export default defineComponent({
|
|
130
|
+
setup () {
|
|
131
|
+
return {
|
|
132
|
+
nameOptions: [
|
|
133
|
+
{ data: '' }
|
|
134
|
+
],
|
|
135
|
+
tableData: [
|
|
136
|
+
{ id: 100, name: 'test0', age: 28, date: '' },
|
|
137
|
+
{ id: 101, name: 'test1', age: 32, date: '' },
|
|
138
|
+
{ id: 102, name: 'test2', age: 36, date: '' }
|
|
139
|
+
]
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
})
|
|
143
|
+
```
|
|
144
|
+
|
|
145
|
+
## Contributors
|
|
146
|
+
|
|
147
|
+
Thank you to everyone who contributed to this project.
|
|
148
|
+
|
|
149
|
+
[](https://github.com/x-extends/vxe-ui-plugins/graphs/contributors)
|
|
150
|
+
|
|
151
|
+
## License
|
|
152
|
+
|
|
153
|
+
[MIT](LICENSE) © 2019-present, Xu Liangzhan
|
package/dist/all.common.js
CHANGED
|
@@ -127,7 +127,7 @@ function createWidgetACheckbox(VxeUI) {
|
|
|
127
127
|
$formView = renderParams.$formView;
|
|
128
128
|
if ($formView) {
|
|
129
129
|
var itemValue = $formView ? $formView.getItemValue(widget) : null;
|
|
130
|
-
$formView.
|
|
130
|
+
$formView.updateWidgetStatus(widget, itemValue);
|
|
131
131
|
}
|
|
132
132
|
};
|
|
133
133
|
return function () {
|
|
@@ -270,7 +270,7 @@ function createWidgetADatePicker(VxeUI) {
|
|
|
270
270
|
$formView = renderParams.$formView;
|
|
271
271
|
if ($formView) {
|
|
272
272
|
var itemValue = $formView ? $formView.getItemValue(widget) : null;
|
|
273
|
-
$formView.
|
|
273
|
+
$formView.updateWidgetStatus(widget, itemValue);
|
|
274
274
|
}
|
|
275
275
|
};
|
|
276
276
|
return function () {
|
|
@@ -594,7 +594,7 @@ function createWidgetAInput(VxeUI) {
|
|
|
594
594
|
$formView = renderParams.$formView;
|
|
595
595
|
if ($formView) {
|
|
596
596
|
var itemValue = $formView ? $formView.getItemValue(widget) : null;
|
|
597
|
-
$formView.
|
|
597
|
+
$formView.updateWidgetStatus(widget, itemValue);
|
|
598
598
|
}
|
|
599
599
|
};
|
|
600
600
|
return function () {
|
|
@@ -736,7 +736,7 @@ function createWidgetAInputNumber(VxeUI) {
|
|
|
736
736
|
$formView = renderParams.$formView;
|
|
737
737
|
if ($formView) {
|
|
738
738
|
var itemValue = $formView ? $formView.getItemValue(widget) : null;
|
|
739
|
-
$formView.
|
|
739
|
+
$formView.updateWidgetStatus(widget, itemValue);
|
|
740
740
|
}
|
|
741
741
|
};
|
|
742
742
|
return function () {
|
|
@@ -900,7 +900,7 @@ function createWidgetARadio(VxeUI) {
|
|
|
900
900
|
$formView = renderParams.$formView;
|
|
901
901
|
if ($formView) {
|
|
902
902
|
var itemValue = $formView ? $formView.getItemValue(widget) : null;
|
|
903
|
-
$formView.
|
|
903
|
+
$formView.updateWidgetStatus(widget, itemValue);
|
|
904
904
|
}
|
|
905
905
|
};
|
|
906
906
|
return function () {
|
|
@@ -1053,7 +1053,7 @@ function createWidgetASelect(VxeUI) {
|
|
|
1053
1053
|
$formView = renderParams.$formView;
|
|
1054
1054
|
if ($formView) {
|
|
1055
1055
|
var itemValue = $formView ? $formView.getItemValue(widget) : null;
|
|
1056
|
-
$formView.
|
|
1056
|
+
$formView.updateWidgetStatus(widget, itemValue);
|
|
1057
1057
|
}
|
|
1058
1058
|
};
|
|
1059
1059
|
return function () {
|
|
@@ -1196,7 +1196,7 @@ function createWidgetASwitch(VxeUI) {
|
|
|
1196
1196
|
$formView = renderParams.$formView;
|
|
1197
1197
|
if ($formView) {
|
|
1198
1198
|
var itemValue = $formView ? $formView.getItemValue(widget) : null;
|
|
1199
|
-
$formView.
|
|
1199
|
+
$formView.updateWidgetStatus(widget, itemValue);
|
|
1200
1200
|
}
|
|
1201
1201
|
};
|
|
1202
1202
|
return function () {
|
|
@@ -1338,7 +1338,7 @@ function createWidgetATextarea(VxeUI) {
|
|
|
1338
1338
|
$formView = renderParams.$formView;
|
|
1339
1339
|
if ($formView) {
|
|
1340
1340
|
var itemValue = $formView ? $formView.getItemValue(widget) : null;
|
|
1341
|
-
$formView.
|
|
1341
|
+
$formView.updateWidgetStatus(widget, itemValue);
|
|
1342
1342
|
}
|
|
1343
1343
|
};
|
|
1344
1344
|
return function () {
|
|
@@ -1957,7 +1957,7 @@ var VxeUIPluginRenderAntd = exports.VxeUIPluginRenderAntd = {
|
|
|
1957
1957
|
install: function install(VxeUI, options) {
|
|
1958
1958
|
// 检查版本
|
|
1959
1959
|
if (!/^(4)\./.test(VxeUI.uiVersion)) {
|
|
1960
|
-
console.error('[plugin-render-antd 4.
|
|
1960
|
+
console.error('[@vxe-ui/plugin-render-antd 4.0.8] Requires vxe-table 4.7.0+ version. https://vxeui.com/other4/#/plugin-export-xlsx/install');
|
|
1961
1961
|
}
|
|
1962
1962
|
(0, _table.defineTableRender)(VxeUI);
|
|
1963
1963
|
(0, _form.defineFormRender)(VxeUI);
|
|
@@ -126,7 +126,7 @@ function createWidgetACheckbox(VxeUI) {
|
|
|
126
126
|
$formView = renderParams.$formView;
|
|
127
127
|
if ($formView) {
|
|
128
128
|
var itemValue = $formView ? $formView.getItemValue(widget) : null;
|
|
129
|
-
$formView.
|
|
129
|
+
$formView.updateWidgetStatus(widget, itemValue);
|
|
130
130
|
}
|
|
131
131
|
};
|
|
132
132
|
return function () {
|
|
@@ -106,7 +106,7 @@ function createWidgetADatePicker(VxeUI) {
|
|
|
106
106
|
$formView = renderParams.$formView;
|
|
107
107
|
if ($formView) {
|
|
108
108
|
var itemValue = $formView ? $formView.getItemValue(widget) : null;
|
|
109
|
-
$formView.
|
|
109
|
+
$formView.updateWidgetStatus(widget, itemValue);
|
|
110
110
|
}
|
|
111
111
|
};
|
|
112
112
|
return function () {
|
|
@@ -108,7 +108,7 @@ function createWidgetAInput(VxeUI) {
|
|
|
108
108
|
$formView = renderParams.$formView;
|
|
109
109
|
if ($formView) {
|
|
110
110
|
var itemValue = $formView ? $formView.getItemValue(widget) : null;
|
|
111
|
-
$formView.
|
|
111
|
+
$formView.updateWidgetStatus(widget, itemValue);
|
|
112
112
|
}
|
|
113
113
|
};
|
|
114
114
|
return function () {
|
|
@@ -106,7 +106,7 @@ function createWidgetAInputNumber(VxeUI) {
|
|
|
106
106
|
$formView = renderParams.$formView;
|
|
107
107
|
if ($formView) {
|
|
108
108
|
var itemValue = $formView ? $formView.getItemValue(widget) : null;
|
|
109
|
-
$formView.
|
|
109
|
+
$formView.updateWidgetStatus(widget, itemValue);
|
|
110
110
|
}
|
|
111
111
|
};
|
|
112
112
|
return function () {
|
|
@@ -126,7 +126,7 @@ function createWidgetARadio(VxeUI) {
|
|
|
126
126
|
$formView = renderParams.$formView;
|
|
127
127
|
if ($formView) {
|
|
128
128
|
var itemValue = $formView ? $formView.getItemValue(widget) : null;
|
|
129
|
-
$formView.
|
|
129
|
+
$formView.updateWidgetStatus(widget, itemValue);
|
|
130
130
|
}
|
|
131
131
|
};
|
|
132
132
|
return function () {
|
|
@@ -116,7 +116,7 @@ function createWidgetASelect(VxeUI) {
|
|
|
116
116
|
$formView = renderParams.$formView;
|
|
117
117
|
if ($formView) {
|
|
118
118
|
var itemValue = $formView ? $formView.getItemValue(widget) : null;
|
|
119
|
-
$formView.
|
|
119
|
+
$formView.updateWidgetStatus(widget, itemValue);
|
|
120
120
|
}
|
|
121
121
|
};
|
|
122
122
|
return function () {
|
|
@@ -104,7 +104,7 @@ function createWidgetASwitch(VxeUI) {
|
|
|
104
104
|
$formView = renderParams.$formView;
|
|
105
105
|
if ($formView) {
|
|
106
106
|
var itemValue = $formView ? $formView.getItemValue(widget) : null;
|
|
107
|
-
$formView.
|
|
107
|
+
$formView.updateWidgetStatus(widget, itemValue);
|
|
108
108
|
}
|
|
109
109
|
};
|
|
110
110
|
return function () {
|
|
@@ -106,7 +106,7 @@ function createWidgetATextarea(VxeUI) {
|
|
|
106
106
|
$formView = renderParams.$formView;
|
|
107
107
|
if ($formView) {
|
|
108
108
|
var itemValue = $formView ? $formView.getItemValue(widget) : null;
|
|
109
|
-
$formView.
|
|
109
|
+
$formView.updateWidgetStatus(widget, itemValue);
|
|
110
110
|
}
|
|
111
111
|
};
|
|
112
112
|
return function () {
|
package/dist/index.common.js
CHANGED
|
@@ -51,7 +51,7 @@ var VxeUIPluginRenderAntd = exports.VxeUIPluginRenderAntd = {
|
|
|
51
51
|
install: function install(VxeUI, options) {
|
|
52
52
|
// 检查版本
|
|
53
53
|
if (!/^(4)\./.test(VxeUI.uiVersion)) {
|
|
54
|
-
console.error('[plugin-render-antd 4.
|
|
54
|
+
console.error('[@vxe-ui/plugin-render-antd 4.0.8] Requires vxe-table 4.7.0+ version. https://vxeui.com/other4/#/plugin-export-xlsx/install');
|
|
55
55
|
}
|
|
56
56
|
(0, _table.defineTableRender)(VxeUI);
|
|
57
57
|
(0, _form.defineFormRender)(VxeUI);
|
package/dist/index.js
CHANGED
|
@@ -51,7 +51,7 @@ var VxeUIPluginRenderAntd = exports.VxeUIPluginRenderAntd = {
|
|
|
51
51
|
install: function install(VxeUI, options) {
|
|
52
52
|
// 检查版本
|
|
53
53
|
if (!/^(4)\./.test(VxeUI.uiVersion)) {
|
|
54
|
-
console.error('[plugin-render-antd 4.
|
|
54
|
+
console.error('[@vxe-ui/plugin-render-antd 4.0.8] Requires vxe-table 4.7.0+ version. https://vxeui.com/other4/#/plugin-export-xlsx/install');
|
|
55
55
|
}
|
|
56
56
|
(0, _table.defineTableRender)(VxeUI);
|
|
57
57
|
(0, _form.defineFormRender)(VxeUI);
|
package/dist/index.umd.js
CHANGED
|
@@ -172,7 +172,7 @@
|
|
|
172
172
|
$formView = renderParams.$formView;
|
|
173
173
|
if ($formView) {
|
|
174
174
|
var itemValue = $formView ? $formView.getItemValue(widget) : null;
|
|
175
|
-
$formView.
|
|
175
|
+
$formView.updateWidgetStatus(widget, itemValue);
|
|
176
176
|
}
|
|
177
177
|
};
|
|
178
178
|
return function () {
|
|
@@ -320,7 +320,7 @@
|
|
|
320
320
|
$formView = renderParams.$formView;
|
|
321
321
|
if ($formView) {
|
|
322
322
|
var itemValue = $formView ? $formView.getItemValue(widget) : null;
|
|
323
|
-
$formView.
|
|
323
|
+
$formView.updateWidgetStatus(widget, itemValue);
|
|
324
324
|
}
|
|
325
325
|
};
|
|
326
326
|
return function () {
|
|
@@ -658,7 +658,7 @@
|
|
|
658
658
|
$formView = renderParams.$formView;
|
|
659
659
|
if ($formView) {
|
|
660
660
|
var itemValue = $formView ? $formView.getItemValue(widget) : null;
|
|
661
|
-
$formView.
|
|
661
|
+
$formView.updateWidgetStatus(widget, itemValue);
|
|
662
662
|
}
|
|
663
663
|
};
|
|
664
664
|
return function () {
|
|
@@ -803,7 +803,7 @@
|
|
|
803
803
|
$formView = renderParams.$formView;
|
|
804
804
|
if ($formView) {
|
|
805
805
|
var itemValue = $formView ? $formView.getItemValue(widget) : null;
|
|
806
|
-
$formView.
|
|
806
|
+
$formView.updateWidgetStatus(widget, itemValue);
|
|
807
807
|
}
|
|
808
808
|
};
|
|
809
809
|
return function () {
|
|
@@ -974,7 +974,7 @@
|
|
|
974
974
|
$formView = renderParams.$formView;
|
|
975
975
|
if ($formView) {
|
|
976
976
|
var itemValue = $formView ? $formView.getItemValue(widget) : null;
|
|
977
|
-
$formView.
|
|
977
|
+
$formView.updateWidgetStatus(widget, itemValue);
|
|
978
978
|
}
|
|
979
979
|
};
|
|
980
980
|
return function () {
|
|
@@ -1136,7 +1136,7 @@
|
|
|
1136
1136
|
$formView = renderParams.$formView;
|
|
1137
1137
|
if ($formView) {
|
|
1138
1138
|
var itemValue = $formView ? $formView.getItemValue(widget) : null;
|
|
1139
|
-
$formView.
|
|
1139
|
+
$formView.updateWidgetStatus(widget, itemValue);
|
|
1140
1140
|
}
|
|
1141
1141
|
};
|
|
1142
1142
|
return function () {
|
|
@@ -1284,7 +1284,7 @@
|
|
|
1284
1284
|
$formView = renderParams.$formView;
|
|
1285
1285
|
if ($formView) {
|
|
1286
1286
|
var itemValue = $formView ? $formView.getItemValue(widget) : null;
|
|
1287
|
-
$formView.
|
|
1287
|
+
$formView.updateWidgetStatus(widget, itemValue);
|
|
1288
1288
|
}
|
|
1289
1289
|
};
|
|
1290
1290
|
return function () {
|
|
@@ -1429,7 +1429,7 @@
|
|
|
1429
1429
|
$formView = renderParams.$formView;
|
|
1430
1430
|
if ($formView) {
|
|
1431
1431
|
var itemValue = $formView ? $formView.getItemValue(widget) : null;
|
|
1432
|
-
$formView.
|
|
1432
|
+
$formView.updateWidgetStatus(widget, itemValue);
|
|
1433
1433
|
}
|
|
1434
1434
|
};
|
|
1435
1435
|
return function () {
|
|
@@ -2126,7 +2126,7 @@
|
|
|
2126
2126
|
install: function install(VxeUI, options) {
|
|
2127
2127
|
// 检查版本
|
|
2128
2128
|
if (!/^(4)\./.test(VxeUI.uiVersion)) {
|
|
2129
|
-
console.error('[plugin-render-antd 4.
|
|
2129
|
+
console.error('[@vxe-ui/plugin-render-antd 4.0.8] Requires vxe-table 4.7.0+ version. https://vxeui.com/other4/#/plugin-export-xlsx/install');
|
|
2130
2130
|
}
|
|
2131
2131
|
(0, _table.defineTableRender)(VxeUI);
|
|
2132
2132
|
(0, _form.defineFormRender)(VxeUI);
|