Vxe UI plug-in for compatibility with the ant-design-vue component.
npm install @vxe-ui/plugin-render-antdVxe UI plug-in for compatibility with the ant-design-vue component.
It corresponds to vxe-table v4 or vxe-pc-ui v4
``shell`
npm install @vxe-ui/plugin-render-antd
`javascript
// ...
// Use vxe-pc-ui
import { VxeUI } from 'vxe-pc-ui'
// Use vxe-table
// import { VxeUI } from 'vxe-table'
import VxeUIPluginRenderAntd from '@vxe-ui/plugin-render-antd'
import '@vxe-ui/plugin-render-antd/dist/style.css'
// ...
VxeUI.use(VxeUIPluginRenderAntd)
// VxeUI.use(VxeUIPluginRenderAntd, {
// // Antd,
// // prefixCls: 'ant'
// })
`
`javascript
// ...
import VxeUIPluginRenderAntd from '@vxe-ui/plugin-render-antd'
// ...
// If it is not a global installation, then a single import is required.
import { AInput, AInputNumber, ASelect } from 'ant-design-vue'
// ...
VxeUIPluginRenderAntd.component(AInput)
VxeUIPluginRenderAntd.component(AInputNumber)
VxeUIPluginRenderAntd.component(ASelect)
// ...
`
| 属性 | 描述 | 类型 | 可选值 | 默认值 |
|------|------|-----|-----|-----|
| name | 支持的渲染组件 | String | AInput, AAutocomplete, AInputNumber, ASwitch, ARate, AButton, AButtons | — |
| props | 渲染组件附加属性,参数请查看被渲染的 Component props | Object | — | {} |
| options | 只对 name=ASelect 有效,下拉组件选项列表 | Array | — | [] |
| optionProps | 只对 name=ASelect 有效,下拉组件选项属性参数配置 | Object | — | { value: 'value', label: 'label' } |
| optionGroups | 只对 name=ASelect 有效,下拉组件分组选项列表 | Array | — | [] |
| optionGroupProps | 只对 name=ASelect 有效,下拉组件分组选项属性参数配置 | Object | — | { options: 'options', label: 'label' } |
| events | 渲染组件附加事件,参数为 ( {row,rowIndex,column,columnIndex}, ...Component arguments ) | Object | — | — |
| 属性 | 描述 | 类型 | 可选值 | 默认值 |
|------|------|-----|-----|-----|
| name | 支持的渲染组件 | String | AInput, AAutocomplete, AInputNumber, ASelect, ACascader, ADatePicker, AMonthPicker, ARangePicker, AWeekPicker, ATimePicker, ATreeSelect, ASwitch, ARate, AButton, AButtons | — |
| props | 渲染组件附加属性,参数请查看被渲染的 Component props | Object | — | {} |
| options | 只对 name=ASelect 有效,下拉组件选项列表 | Array | — | [] |
| optionProps | 只对 name=ASelect 有效,下拉组件选项属性参数配置 | Object | — | { value: 'value', label: 'label' } |
| optionGroups | 只对 name=ASelect 有效,下拉组件分组选项列表 | Array | — | [] |
| optionGroupProps | 只对 name=ASelect 有效,下拉组件分组选项属性参数配置 | Object | — | { options: 'options', label: 'label' } |
| events | 渲染组件附加事件,参数为 ( {row,rowIndex,column,columnIndex}, ...Component arguments ) | Object | — | — |
| 属性 | 描述 | 类型 | 可选值 | 默认值 |
|------|------|-----|-----|-----|
| name | 支持的渲染组件 | String | AInput, AAutocomplete, AInputNumber, ASelect, ASwitch, ARate | — |
| props | 渲染组件附加属性,参数请查看被渲染的 Component props | Object | — | {} |
| options | 只对 name=ASelect 有效,下拉组件选项列表 | Array | — | [] |
| optionProps | 只对 name=ASelect 有效,下拉组件选项属性参数配置 | Object | — | { value: 'value', label: 'label' } |
| optionGroups | 只对 name=ASelect 有效,下拉组件分组选项列表 | Array | — | [] |
| optionGroupProps | 只对 name=ASelect 有效,下拉组件分组选项属性参数配置 | Object | — | { options: 'options', label: 'label' } |
| events | 渲染组件附加事件,参数为 ( {}, ...Component arguments ) | Object | — | — |
| 属性 | 描述 | 类型 | 可选值 | 默认值 |
|------|------|-----|-----|-----|
| name | 支持的渲染组件 | String | AInput, AAutocomplete, AInputNumber, ASelect, ASwitch, ARate, ARadio, ACheckbox, AButton, AButtons | — |
| props | 渲染组件附加属性,参数请查看被渲染的 Component props | Object | — | {} |
| options | 只对 name=ASelect 有效,下拉组件选项列表 | Array | — | [] |
| optionProps | 只对 name=ASelect 有效,下拉组件选项属性参数配置 | Object | — | { value: 'value', label: 'label' } |
| optionGroups | 只对 name=ASelect 有效,下拉组件分组选项列表 | Array | — | [] |
| optionGroupProps | 只对 name=ASelect 有效,下拉组件分组选项属性参数配置 | Object | — | { options: 'options', label: 'label' } |
| events | 渲染组件附加事件,参数为 ( {}, ...Component arguments ) | Object | — | — |
| 描述 |
|------|
| 'AInputWidget', 'ATextareaWidget', 'ANumberInputWidget', 'ADatePickerWidget', 'ASelectWidget', 'ARadioWidget', 'ACheckboxWidget', 'ASwitchWidget' |
`html`
:data="tableData"
:edit-config="{trigger: 'click', mode: 'cell'}">
`javascript`
export default {
data () {
return {
tableData: [
{ id: 100, name: 'test0', age: 28, sex: '1', date: '' },
{ id: 101, name: 'test1', age: 32, sex: '0', date: '' },
{ id: 102, name: 'test2', age: 36, sex: '1', date: '' }
]
}
}
}
`html`
:data="tableData">
`javascript``
export default {
data () {
return {
nameOptions: [
{ data: '' }
],
tableData: [
{ id: 100, name: 'test0', age: 28, date: '' },
{ id: 101, name: 'test1', age: 32, date: '' },
{ id: 102, name: 'test2', age: 36, date: '' }
]
}
}
}
Thank you to everyone who contributed to this project.

MIT © 2019-present, Xu Liangzhan