perf: access 插件支持remote-select等配置

This commit is contained in:
xiaojunnuo
2026-02-09 14:45:56 +08:00
parent 99f5b8ebc1
commit d286c040a5
4 changed files with 37 additions and 17 deletions
@@ -10,6 +10,9 @@ export function getCommonColumnDefine(crudExpose: any, typeRef: any, api: any) {
provide("get:plugin:type", () => {
return "access";
});
provide("getCurrentPluginDefine", () => {
return currentDefine;
});
const AccessTypeDictRef = dict({
url: "/pi/access/accessTypeDict",
});
@@ -1,12 +1,11 @@
import { ColumnCompositionProps, compute, dict } from "@fast-crud/fast-crud";
import { Modal } from "ant-design-vue";
import { forEach, get, merge, set } from "lodash-es";
import { computed, provide, ref, toRef } from "vue";
import { useReference } from "/@/use/use-refrence";
import { forEach, get, merge, set } from "lodash-es";
import { Modal } from "ant-design-vue";
import { mitter } from "/@/utils/util.mitt";
import { useI18n } from "/src/locales";
import * as pipelineApi from "/@/views/certd/pipeline/api";
import { getAddonTypeDefine } from "/@/views/certd/addon/api";
import { useI18n } from "/src/locales";
export function addonProvide(api: any) {
provide("addonApi", api);
@@ -30,6 +29,10 @@ export function getCommonColumnDefine(crudExpose: any, typeRef: any, api: any, a
},
};
provide("getCurrentPluginDefine", () => {
return currentDefine;
});
function buildDefineFields(define: any, form: any, mode: string) {
const formWrapperRef = crudExpose.getFormWrapperRef();
const columnsRef = toRef(formWrapperRef.formOptions, "columns");
@@ -26,6 +26,10 @@ export function getCommonColumnDefine(crudExpose: any, typeRef: any, api: any) {
},
};
provide("getCurrentPluginDefine", () => {
return currentDefine;
});
function buildDefineFields(define: any, form: any, mode: string) {
const formWrapperRef = crudExpose.getFormWrapperRef();
const columnsRef = toRef(formWrapperRef.formOptions, "columns");