review:同步 vue5 官方的差异
This commit is contained in:
@@ -222,6 +222,7 @@ async function initComponentAdapter() {
|
||||
'select',
|
||||
{
|
||||
component: ElTreeSelect,
|
||||
// TODO @xingyu:这里要加 props: { label: 'label', children: 'children' }, vben 官方是有的
|
||||
nodeKey: 'value',
|
||||
loadingSlot: 'loading',
|
||||
optionsPropName: 'data',
|
||||
@@ -250,6 +251,7 @@ async function initComponentAdapter() {
|
||||
},
|
||||
// 自定义默认按钮
|
||||
DefaultButton: (props, { attrs, slots }) => {
|
||||
// TODO @xingyu:, type: 'info' 要加么?vben5 是有的;
|
||||
return h(ElButton, { ...props, attrs }, slots);
|
||||
},
|
||||
// 自定义主要按钮
|
||||
|
||||
@@ -8,6 +8,7 @@ import type { ComponentType } from './component';
|
||||
import { setupVbenForm, useVbenForm as useForm, z } from '@vben/common-ui';
|
||||
import { $t } from '@vben/locales';
|
||||
|
||||
// TODO @xingyu:要不搞到全局的校验?
|
||||
const MOBILE_REGEX = /(?:0|86|\+86)?1[3-9]\d{9}/;
|
||||
|
||||
async function initSetupVbenForm() {
|
||||
|
||||
@@ -133,7 +133,7 @@ async function handleNotificationMakeAll() {
|
||||
|
||||
/** 清空通知 */
|
||||
async function handleNotificationClear() {
|
||||
handleNotificationMakeAll();
|
||||
await handleNotificationMakeAll();
|
||||
}
|
||||
|
||||
/** 标记单个已读 */
|
||||
|
||||
Reference in New Issue
Block a user