mirror of
https://github.com/certd/certd.git
synced 2026-04-24 04:17:25 +08:00
🔱: [client] sync upgrade with 6 commits [trident-sync]
build: publish success perf: antdv示例背景设置为白色 fix: card布局情况下,header-top header-bottom同时跟search显隐的bug fix: 修复table-select 示例右上角自定义插槽无法设置的bug feat: 将代码编辑器单独打包到@fast-crud/editor-code,加快不需要code的项目的打包速度,如果您使用了editor-code,请按照文档重新进行editor-code的集成 BREAKING CHANGE: 将代码编辑器单独打包到@fast-crud/editor-code,,如果您使用了editor-code,请按照文档重新进行editor-code的集成
This commit is contained in:
@@ -12,7 +12,7 @@ import { GetSignedUrl } from "/@/views/crud/component/uploader/s3/api";
|
||||
import { notification } from "ant-design-vue";
|
||||
import { usePreferences } from "/@/vben/preferences";
|
||||
import { columnSizeSaver } from "/@/plugin/fast-crud/column-size-saver";
|
||||
|
||||
import { FsEditorCode } from "@fast-crud/editor-code";
|
||||
function install(app: any, options: any = {}) {
|
||||
app.use(UiAntdv);
|
||||
//设置日志级别
|
||||
@@ -343,6 +343,7 @@ function install(app: any, options: any = {}) {
|
||||
app.use(FsExtendsTime);
|
||||
app.use(FsExtendsCopyable);
|
||||
app.use(FsExtendsInput);
|
||||
app.use(FsEditorCode);
|
||||
|
||||
const { addTypes, getType } = useTypes();
|
||||
//此处演示修改官方字段类型
|
||||
|
||||
@@ -4,7 +4,7 @@ import cssWorker from "monaco-editor/esm/vs/language/css/css.worker?worker";
|
||||
import htmlWorker from "monaco-editor/esm/vs/language/html/html.worker?worker";
|
||||
import yamlWorker from "./yaml.worker?worker";
|
||||
import tsWorker from "monaco-editor/esm/vs/language/typescript/ts.worker?worker";
|
||||
import { registerWorker } from "@fast-crud/fast-extends";
|
||||
import { registerWorker } from "@fast-crud/editor-code";
|
||||
export function setupMonaco() {
|
||||
registerWorker("json", jsonWorker);
|
||||
registerWorker(["css", "less", "scss"], cssWorker);
|
||||
|
||||
@@ -78,7 +78,7 @@ function transformComponent(component: VNode, route: RouteLocationNormalizedLoad
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div class="relative h-full">
|
||||
<div class="relative h-full bg-white dark:bg-black">
|
||||
<IFrameRouterView />
|
||||
<RouterView v-slot="{ Component, route }">
|
||||
<Transition :name="getTransitionName(route)" appear mode="out-in">
|
||||
|
||||
@@ -112,7 +112,7 @@ function menuIcon(menu: MenuRecordRaw) {
|
||||
|
||||
.vben-normal-menu__name,
|
||||
.vben-normal-menu__icon {
|
||||
@apply text-primary-foreground font-semibold;
|
||||
@apply font-semibold;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import * as api from "./api";
|
||||
|
||||
import { FsEditorCodeValidators } from "@fast-crud/fast-extends";
|
||||
import { FsEditorCodeValidators } from "@fast-crud/editor-code";
|
||||
import { AddReq, CreateCrudOptionsProps, CreateCrudOptionsRet, DelReq, EditReq, UserPageQuery, UserPageRes, ValueBuilderContext, ValueResolveContext } from "@fast-crud/fast-crud";
|
||||
export default async function ({ crudExpose }: CreateCrudOptionsProps): Promise<CreateCrudOptionsRet> {
|
||||
const pageRequest = async (query: UserPageQuery): Promise<UserPageRes> => {
|
||||
|
||||
@@ -22,6 +22,9 @@ export default async function ({ crudExpose }: CreateCrudOptionsProps): Promise<
|
||||
};
|
||||
|
||||
const crudOptionsOverride = {
|
||||
container: {
|
||||
is: "fs-layout-card"
|
||||
},
|
||||
table: {
|
||||
scroll: {
|
||||
x: 2000
|
||||
@@ -124,7 +127,8 @@ export default async function ({ crudExpose }: CreateCrudOptionsProps): Promise<
|
||||
placeholder: "点击选择"
|
||||
},
|
||||
createCrudOptions: createCrudOptionsText,
|
||||
crudOptionsOverride: crudOptionsOverride
|
||||
crudOptionsOverride: crudOptionsOverride,
|
||||
isSyncCreate: true
|
||||
}
|
||||
},
|
||||
column: {
|
||||
|
||||
Reference in New Issue
Block a user