mirror of
https://github.com/certd/certd.git
synced 2026-07-19 21:27:35 +08:00
🔱: [client] sync upgrade with 5 commits [trident-sync]
refactor: 1 refactor: 1.11.1 refactor: 1.11.1 perf: useFs优化,增加context:UseFsContext
This commit is contained in:
@@ -15,8 +15,7 @@ import createCrudOptions from "./crud.jsx";
|
||||
export default defineComponent({
|
||||
name: "FormBase",
|
||||
setup() {
|
||||
const customValue: any = {}; //自定义变量,传给createCrudOptions的额外参数(可以任意命名,任意多个)
|
||||
const { crudBinding, crudRef, crudExpose, customExport } = useFs({ createCrudOptions, customValue } as UseFsProps);
|
||||
const { crudBinding, crudRef, crudExpose } = useFs({ createCrudOptions });
|
||||
|
||||
// 页面打开后获取列表数据
|
||||
onMounted(async () => {
|
||||
|
||||
@@ -19,7 +19,7 @@ export default defineComponent({
|
||||
name: "FormCustomForm",
|
||||
setup(props, ctx) {
|
||||
// 页面打开后获取列表数据
|
||||
const { crudBinding, crudRef, crudExpose } = useFs({ createCrudOptions } as UseFsProps);
|
||||
const { crudBinding, crudRef, crudExpose } = useFs({ createCrudOptions });
|
||||
|
||||
onMounted(() => {
|
||||
crudExpose.doRefresh();
|
||||
|
||||
@@ -16,7 +16,7 @@ export default defineComponent({
|
||||
name: "FormSingleColumn",
|
||||
setup() {
|
||||
const customValue: any = {}; //自定义变量,传给createCrudOptions的额外参数(可以任意命名,任意多个)
|
||||
const { crudBinding, crudRef, crudExpose, customExport } = useFs({ createCrudOptions, customValue } as UseFsProps);
|
||||
const { crudBinding, crudRef, crudExpose } = useFs({ createCrudOptions, context: customValue });
|
||||
|
||||
// 页面打开后获取列表数据
|
||||
onMounted(async () => {
|
||||
|
||||
Reference in New Issue
Block a user