fix:组件优化

main
向文可 4 years ago
parent ccbd7f96a0
commit facb4104d3

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

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

Loading…
Cancel
Save