We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
<template> <FForm labelWidth="100px"> <FFormItem label="是否固定表头:"> <FRadioGroup v-model="fixedHeader" :options="[ { label: '否', value: false }, { label: '是', value: true }, ]" /> </FFormItem> <FFormItem label="是否固定列:"> <FRadioGroup v-model="fixedColumn" :options="[ { label: '否', value: false }, { label: '是', value: true }, ]" /> </FFormItem> <FButton @click="addOne">Add one</FButton> <FFormItem label="表单表格"> <FTable :data="data" bordered verticalLine :height="fixedHeader ? 350 : undefined" > <FTableColumn prop="date" label="日期" :ellipsis="{ tooltip: { popperClass: 'a', showAfter: 500 } }" :width="150" :fixed="fixedColumn ? 'left' : false" /> <FTableColumn prop="name" label="姓名" :width="150" :fixed="fixedColumn ? 'left' : false" /> <FTableColumn label="配送信息"> <FTableColumn prop="name" label="姓名" :width="150" /> <FTableColumn label="地址信息"> <FTableColumn prop="province" label="省份" :width="150" /> <FTableColumn prop="city" label="市区" :width="150" /> <FTableColumn prop="address" label="详细地址" :width="500" /> <FTableColumn prop="zip" label="邮编" :width="120" /> </FTableColumn> </FTableColumn> <FTableColumn prop="zip" label="邮编" :width="120" :fixed="fixedColumn ? 'right' : false" /> <FTableColumn label="操作" align="center" :width="200" :action="action" :fixed="fixedColumn ? 'right' : false" /> </FTable></FFormItem> </FForm> <FDivider /> </template> <script> import { defineComponent, ref } from 'vue'; export default defineComponent({ setup() { const data = ref([]) data.value = Array.from([], (i) => { return { date: `2016-05-2016-05-2016-05-2016-05-2016-05-2016-05-2016-05-2016-05-${ i < 10 ? `0${i}` : i }`, name: '王小虎', province: '上海', city: '普陀区', address: '上海市普陀区金沙江路 1518 弄', zip: 200333, }; }); const fixedHeader = ref(true); const fixedColumn = ref(false); const action = [ { label: '编辑', func: (row) => { console.log('[table.scroll] [action.编辑] row:', row); }, }, { label: '删除', func: (row) => { console.log('[table.scroll] [action.删除] row:', row); }, }, ]; return { data, fixedHeader, fixedColumn, action, }; }, }); </script> <style> .fes-form-item-content{ width: 0; } </style>
No response
FormItem直接嵌套,渲染正常
0.8.50
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
问题描述
如何复现
No response
代码
No response
预期结果
FormItem直接嵌套,渲染正常
环境描述/版本信息
0.8.50
其它补充内容
No response
The text was updated successfully, but these errors were encountered: