🔱: [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:
GitHub Actions Bot
2023-03-17 19:23:57 +00:00
parent 6ec697b010
commit 9f1f36774d
30 changed files with 86 additions and 63 deletions
@@ -18,8 +18,8 @@ import createCrudOptions from "./crud";
export default defineComponent({
name: "DictSharedManager",
setup() {
const customValue: any = {}; //自定义变量,传给createCrudOptions的额外参数(可以任意命名,任意多个)
const { crudBinding, crudRef, crudExpose, customExport } = useFs({ createCrudOptions, customValue });
const context: any = {}; //自定义变量,传给createCrudOptions的额外参数(可以任意命名,任意多个)
const { crudBinding, crudRef, crudExpose } = useFs({ createCrudOptions, context });
// 页面打开后获取列表数据
onMounted(() => {
@@ -20,7 +20,7 @@ export default defineComponent({
setup() {
// crud组件的ref
const customValue: any = {}; //自定义变量,传给createCrudOptions的额外参数(可以任意命名,任意多个)
const { crudBinding, crudRef, crudExpose, customExport } = useFs({ createCrudOptions, customValue });
const { crudBinding, crudRef, crudExpose, context } = useFs({ createCrudOptions, context: customValue });
// 页面打开后获取列表数据
onMounted(() => {