Browse Source

👣 制定代码规范模板团队规则

master
wangxiang 3 years ago
parent
commit
5d35bd8bef
  1. 1
      kicc-ui/src/components/Button/src/PopConfirmButton.vue
  2. 8
      kicc-ui/src/views/system/dept/index.vue
  3. 2
      kicc-ui/src/views/system/menu/index.vue

1
kicc-ui/src/components/Button/src/PopConfirmButton.vue

@ -41,7 +41,6 @@
return () => { return () => {
const bindValues = omit(unref(getBindValues), 'icon'); const bindValues = omit(unref(getBindValues), 'icon');
const btnBind = omit(bindValues, 'title'); const btnBind = omit(bindValues, 'title');
// @ts-ignore
if (btnBind.disabled) btnBind.color = ''; if (btnBind.disabled) btnBind.color = '';
const Button = h(BasicButton, btnBind, extendSlots(slots)); const Button = h(BasicButton, btnBind, extendSlots(slots));

8
kicc-ui/src/views/system/dept/index.vue

@ -25,7 +25,7 @@
label: '新增', label: '新增',
icon: 'ant-design:plus-circle-outlined', icon: 'ant-design:plus-circle-outlined',
auth: ['dept_add'], auth: ['dept_add'],
onClick: handleAdd.bind(null, record), onClick: handleAdd.bind(null, record)
}, },
{ {
label: '删除', label: '删除',
@ -34,8 +34,8 @@
color: 'error', color: 'error',
popConfirm: { popConfirm: {
title: '是否确认删除', title: '是否确认删除',
confirm: handleDel.bind(null, record), confirm: handleDel.bind(null, record)
}, }
}]" }]"
/> />
</template> </template>
@ -81,7 +81,7 @@
showIndexColumn: false, showIndexColumn: false,
canResize: false, canResize: false,
actionColumn: { actionColumn: {
width: 220, width: 250,
title: '操作', title: '操作',
dataIndex: 'action', dataIndex: 'action',
slots: { customRender: 'action' }, slots: { customRender: 'action' },

2
kicc-ui/src/views/system/menu/index.vue

@ -81,7 +81,7 @@
showIndexColumn: false, showIndexColumn: false,
canResize: false, canResize: false,
actionColumn: { actionColumn: {
width: 220, width: 250,
title: '操作', title: '操作',
dataIndex: 'action', dataIndex: 'action',
slots: { customRender: 'action' }, slots: { customRender: 'action' },

Loading…
Cancel
Save