@vxe-ui/plugin-render-iview
v4.1.3
Published
Vxe UI plug-in for compatibility with the view-ui-plus component.
Readme
@vxe-ui/plugin-render-iview
Vxe UI plug-in for compatibility with the view-ui-plus component.
Compatibility
It corresponds to vxe-table v4 or vxe-pc-ui v4
Installing
npm install @vxe-ui/plugin-render-iview// ...
// Use vxe-pc-ui
import { VxeUI } from 'vxe-pc-ui'
// Use vxe-table
// import { VxeUI } from 'vxe-table'
import VxeUIPluginRenderIView from '@vxe-ui/plugin-render-iview'
import '@vxe-ui/plugin-render-iview/dist/style.css'
// ...
VxeUI.use(VxeUIPluginRenderIView)API
Table Cell demo
<vxe-table
height="600"
:data="tableData"
:edit-config="{trigger: 'click', mode: 'cell'}">
<vxe-column field="name" title="Name" :edit-render="{}">
<template #edit="{ row }">
<Input v-model="row.name"></Input>
</template>
<template #default="{ row }">
<span>{{ row.name }}</span>
</template>
</vxe-column>
<vxe-column field="age" title="Age" :edit-render="{}">
<template #edit="{ row }">
<Input v-model="row.age"></Input>
</template>
<template #default="{ row }">
<span>{{ row.age }}</span>
</template>
</vxe-column>
<vxe-column field="date" title="Date" width="200" :edit-render="{}">
<template #edit="{ row }">
<DatePicker type="date" v-model="row.date"></DatePicker>
</template>
<template #default="{ row }">
<span>{{ row.date }}</span>
</template>
</vxe-column>
</vxe-table>Contributors
Thank you to everyone who contributed to this project.
License
MIT © 2019-present, Xu Liangzhan
