pull/229/head
xiaojunnuo 2024-10-28 21:55:37 +08:00
parent 5c992c3214
commit e626367a06
7 changed files with 22 additions and 11 deletions

View File

@ -2,7 +2,7 @@ import { request } from "/@/api/service";
export type ComponentPropsType = { export type ComponentPropsType = {
type: string; type: string;
typeName: string; typeName: string;
action: string; action?: string;
form: any; form: any;
value?: any; value?: any;
}; };

View File

@ -1,7 +1,7 @@
<template> <template>
<div> <div>
<contextHolder /> <contextHolder />
<a-input :value="value" :allow-clear="true" v-bind="attrs" @update:value="emit('update:value', $event)"> <a-input v-bind="attrs" :value="value" :allow-clear="true" @update:value="emit('update:value', $event)">
<template #suffix> <template #suffix>
<a-tag class="cursor-pointer" @click="getDeviceId">ID</a-tag> <a-tag class="cursor-pointer" @click="getDeviceId">ID</a-tag>
</template> </template>

View File

@ -2,8 +2,21 @@
<div class="fs-multiple-page-control-group"> <div class="fs-multiple-page-control-group">
<div class="fs-multiple-page-control-content"> <div class="fs-multiple-page-control-content">
<div class="fs-multiple-page-control-content-inner"> <div class="fs-multiple-page-control-content-inner">
<a-tabs class="fs-multiple-page-control fs-multiple-page-sort" :active-key="page.getCurrent" type="editable-card" hide-add @tab-click="handleClick" @edit="handleTabEdit"> <a-tabs
<a-tab-pane v-for="item in page.getOpened" :key="item.fullPath" :tab="item.meta?.title || '未命名'" :name="item.fullPath" :closable="isTabClosable(item)" /> class="fs-multiple-page-control fs-multiple-page-sort"
:active-key="page.getCurrent"
type="editable-card"
hide-add
@tab-click="handleClick"
@edit="handleTabEdit"
>
<a-tab-pane
v-for="item in page.getOpened"
:key="item.fullPath"
:tab="item.meta?.title || '未命名'"
:name="item.fullPath"
:closable="isTabClosable(item)"
/>
</a-tabs> </a-tabs>
<!-- <fs-contextmenu v-model:open="contextmenuFlag" :x="contentmenuX" :y="contentmenuY">--> <!-- <fs-contextmenu v-model:open="contextmenuFlag" :x="contentmenuX" :y="contentmenuY">-->
<!-- <fs-contextmenu-list--> <!-- <fs-contextmenu-list-->

View File

@ -4,7 +4,7 @@ export const headerResource = [
path: "https://certd.docmirror.cn", path: "https://certd.docmirror.cn",
meta: { meta: {
icon: "ion:document-text-outline" icon: "ion:document-text-outline"
}, }
}, },
{ {
title: "源码", title: "源码",

View File

@ -16,7 +16,7 @@ export function getCommonColumnDefine(crudExpose: any, typeRef: any, api: any) {
} }
}; };
function buildDefineFields(define: any, form: any) { function buildDefineFields(define: any, form: any, mode: string) {
const formWrapperRef = crudExpose.getFormWrapperRef(); const formWrapperRef = crudExpose.getFormWrapperRef();
const columnsRef = toRef(formWrapperRef.formOptions, "columns"); const columnsRef = toRef(formWrapperRef.formOptions, "columns");
@ -34,7 +34,7 @@ export function getCommonColumnDefine(crudExpose: any, typeRef: any, api: any) {
}; };
const column = merge({ title: key }, defaultPluginConfig, field); const column = merge({ title: key }, defaultPluginConfig, field);
if (value.encrypt === true) { if (value.encrypt === true && mode != "add") {
column.suffixRender = (scope: { form: any; key: string }) => { column.suffixRender = (scope: { form: any; key: string }) => {
const { form, key } = scope; const { form, key } = scope;
const inputKey = scope.key.replace("access.", ""); const inputKey = scope.key.replace("access.", "");
@ -92,7 +92,7 @@ export function getCommonColumnDefine(crudExpose: any, typeRef: any, api: any) {
if (!immediate) { if (!immediate) {
form.access = {}; form.access = {};
} }
buildDefineFields(define, form); buildDefineFields(define, form, mode);
} }
}, },
helper: computed(() => { helper: computed(() => {

View File

@ -16,8 +16,6 @@ export class PluginManager {
} }
this.map = map; this.map = map;
} }
} }
export const pluginManager = new PluginManager(); export const pluginManager = new PluginManager();