解决helper问题

This commit is contained in:
猿小天
2022-10-28 15:08:58 +08:00
parent 529d588d2b
commit 527fd8bb11
6 changed files with 1382 additions and 840 deletions

View File

@@ -58,6 +58,7 @@ const { themeConfig } = storeToRefs(stores);
// https://vue-i18n.intlify.dev/guide/essentials/fallback.html#explicit-fallback-with-one-locale
export const i18n = createI18n({
legacy: false,
globalInjection: true,
silentTranslationWarn: true,
missingWarn: false,
silentFallbackWarn: true,

View File

@@ -1,6 +1,7 @@
import { CrudExpose, CrudOptions, AddReq, DelReq, EditReq, dict } from '@fast-crud/fast-crud';
import _ from 'lodash-es';
import {h} from 'vue';
import {tabBarProps} from "element-plus";
interface CreateCrudOptionsTypes {
crudOptions: CrudOptions;
}
@@ -169,7 +170,7 @@ export const createCrudOptions = function ({crudExpose}: {crudExpose: CrudExpose
col: { span: 24 },
helper: {
render() {
return ('<div>请正确填写,以免请求时被拦截。匹配单例使用正则,例如:/api/xx/.*?/</div>');
return <el-tag>使,:/api/xx/.*?/</el-tag>
},
},
component: {
@@ -218,4 +219,4 @@ export const createCrudOptions = function ({crudExpose}: {crudExpose: CrudExpose
},
},
};
};
};