fix:组件优化

main
向文可 3 years ago
parent ccbd7f96a0
commit facb4104d3

@ -385,7 +385,7 @@
{slots.operation?.()}
{props.operation.includes('import') ? (
<ElDialog
title={'模板导入 - ' + props.title}
title={'模板导入 - ' + props.title || props.code}
v-model={importVisible.value}
width="765px"
v-slots={{
@ -422,15 +422,16 @@
)}
{props.code ? (
<ElButton class="setting-btn" icon="setting" type="text" onClick={() => handleSetting()}>
设置
<ElIcon name="Setting" />
<span>设置</span>
</ElButton>
) : (
''
)}
<ElDialog
title={'表格设置 - ' + props.code}
title={'表格设置 - ' + props.title || props.code}
v-model={settingVisible.value}
width="765px"
width="800px"
onClose={() => handleCloseSetting()}
v-slots={{
footer: () => {
@ -450,24 +451,13 @@
<p>修改后如果显示异常刷新页面即可恢复正常</p>
<br />
<ElTable border stripe highlightCurrentRow data={setting.value} height="50vh">
<ElTableColumn
headerAlign="center"
align="center"
label="排序"
prop="_sort"
width="72px"
v-slots={{
default: ({ row }) => (
<ElInputNumber controls={false} v-model={row._sort} style="width:48px;" />
),
}}
/>
<ElTableColumn headerAlign="center" align="center" label="排序" prop="_sort" width="72px" />
<ElTableColumn
headerAlign="center"
align="center"
label="列名"
prop="label"
width="200px"
minWidth="200px"
v-slots={{
default: ({ row }) =>
row.type === 'index' ? (

@ -4,6 +4,7 @@
<script setup lang="jsx">
import { ElRadioGroup, ElRadioButton, ElRadio } from 'element-plus/es/components/radio/index';
import 'element-plus/es/components/radio/style/css';
import 'element-plus/es/components/radio-button/style/css';
const props = defineProps({
opts: {
type: Array,

Loading…
Cancel
Save