yc-vep-ui 0.0.2 → 0.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/Card/index.d.ts +19 -0
- package/dist/components/Chart/Bar.d.ts +4 -0
- package/dist/components/Chart/Pie.d.ts +4 -0
- package/dist/components/Chart/Series.d.ts +10 -0
- package/dist/components/Chart/index.d.ts +4 -0
- package/dist/components/Descriptions/index.d.ts +17 -0
- package/dist/components/Dialog/index.d.ts +20 -0
- package/dist/components/Editor/index.d.ts +17 -0
- package/dist/components/Filter/index.d.ts +30 -0
- package/dist/components/Form/index.d.ts +26 -0
- package/dist/components/InfiniteScroll/index.d.ts +23 -0
- package/dist/components/Table/UiColumn.d.ts +23 -0
- package/dist/components/Table/index.d.ts +19 -0
- package/dist/components/Tree/index.d.ts +32 -0
- package/dist/components/index.d.ts +10 -0
- package/dist/components/utils/render.d.ts +71 -0
- package/dist/components/utils/tools.d.ts +5 -0
- package/dist/entry.d.ts +16 -0
- package/dist/vep-ui.es.js +1 -1
- package/dist/vep-ui.umd.js +1 -1
- package/dist/yc-vep-ui.css +1 -1
- package/package.json +5 -4
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { ICardProps } from './type.d';
|
|
2
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
3
|
+
declare function __VLS_template(): {
|
|
4
|
+
attrs: Partial<{}>;
|
|
5
|
+
slots: {
|
|
6
|
+
default?(_: {}): any;
|
|
7
|
+
};
|
|
8
|
+
refs: {};
|
|
9
|
+
rootEl: any;
|
|
10
|
+
};
|
|
11
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
12
|
+
declare const __VLS_component: DefineComponent<ICardProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ICardProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
13
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
14
|
+
export default _default;
|
|
15
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
16
|
+
new (): {
|
|
17
|
+
$slots: S;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { IBarProps } from './type.d';
|
|
2
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
3
|
+
declare const _default: DefineComponent<IBarProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<IBarProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
4
|
+
export default _default;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { IPieProps } from './type.d';
|
|
2
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
3
|
+
declare const _default: DefineComponent<IPieProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<IPieProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
4
|
+
export default _default;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { EChartsOption } from 'echarts';
|
|
2
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
3
|
+
type __VLS_Props = {
|
|
4
|
+
option: EChartsOption;
|
|
5
|
+
height?: string;
|
|
6
|
+
};
|
|
7
|
+
declare const _default: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
8
|
+
chartRef: HTMLDivElement;
|
|
9
|
+
}, HTMLDivElement>;
|
|
10
|
+
export default _default;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { IDescriptionsProps } from './type.d';
|
|
2
|
+
import { VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, ShallowUnwrapRef, VNode } from 'vue';
|
|
3
|
+
declare const _default: <T extends Record<string, any>>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
4
|
+
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{} & VNodeProps & AllowedComponentProps & ComponentCustomProps, never>, never> & IDescriptionsProps<T> & Partial<{}>> & PublicProps;
|
|
5
|
+
expose(exposed: ShallowUnwrapRef<{}>): void;
|
|
6
|
+
attrs: any;
|
|
7
|
+
slots: {
|
|
8
|
+
title?(_: {}): any;
|
|
9
|
+
};
|
|
10
|
+
emit: {};
|
|
11
|
+
}>) => VNode & {
|
|
12
|
+
__ctx?: Awaited<typeof __VLS_setup>;
|
|
13
|
+
};
|
|
14
|
+
export default _default;
|
|
15
|
+
type __VLS_PrettifyLocal<T> = {
|
|
16
|
+
[K in keyof T]: T[K];
|
|
17
|
+
} & {};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { Component, DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
2
|
+
interface IProps {
|
|
3
|
+
visible: boolean;
|
|
4
|
+
width?: string;
|
|
5
|
+
disabled?: boolean;
|
|
6
|
+
component: Component;
|
|
7
|
+
componentProps?: Record<string, any>;
|
|
8
|
+
}
|
|
9
|
+
declare const _default: DefineComponent<IProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
10
|
+
submit: (...args: any[]) => void;
|
|
11
|
+
close: (...args: any[]) => void;
|
|
12
|
+
"update:visible": (...args: any[]) => void;
|
|
13
|
+
}, string, PublicProps, Readonly<IProps> & Readonly<{
|
|
14
|
+
onSubmit?: ((...args: any[]) => any) | undefined;
|
|
15
|
+
onClose?: ((...args: any[]) => any) | undefined;
|
|
16
|
+
"onUpdate:visible"?: ((...args: any[]) => any) | undefined;
|
|
17
|
+
}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
18
|
+
slotRef: unknown;
|
|
19
|
+
}, any>;
|
|
20
|
+
export default _default;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { IEditorProps } from './type.d';
|
|
2
|
+
import { ModelRef, DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
3
|
+
type __VLS_Props = IEditorProps;
|
|
4
|
+
declare const modelValue: ModelRef<string, string, string, string>;
|
|
5
|
+
type __VLS_PublicProps = {
|
|
6
|
+
modelValue?: typeof modelValue['value'];
|
|
7
|
+
} & __VLS_Props;
|
|
8
|
+
declare const _default: DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
9
|
+
change: (...args: any[]) => void;
|
|
10
|
+
"update:modelValue": (value: string) => void;
|
|
11
|
+
}, string, PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
12
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
|
13
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
14
|
+
}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
15
|
+
editorRef: HTMLDivElement;
|
|
16
|
+
}, HTMLDivElement>;
|
|
17
|
+
export default _default;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { IFilterProps } from './type.d';
|
|
2
|
+
import { VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, ShallowUnwrapRef, Reactive, VNode } from 'vue';
|
|
3
|
+
import { DistributeRef } from '@vue/reactivity';
|
|
4
|
+
declare const _default: <T extends Record<string, any>>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
5
|
+
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
|
|
6
|
+
readonly onSubmit?: ((...args: any[]) => any) | undefined;
|
|
7
|
+
readonly onReset?: ((...args: any[]) => any) | undefined;
|
|
8
|
+
readonly onSearch?: ((...args: any[]) => any) | undefined;
|
|
9
|
+
} & VNodeProps & AllowedComponentProps & ComponentCustomProps, never>, "onReset" | "onSubmit" | "onSearch"> & IFilterProps<T> & Partial<{}>> & PublicProps;
|
|
10
|
+
expose(exposed: ShallowUnwrapRef<{}>): void;
|
|
11
|
+
attrs: any;
|
|
12
|
+
slots: {
|
|
13
|
+
left?(_: {
|
|
14
|
+
form: DistributeRef<Reactive<T>>;
|
|
15
|
+
}): any;
|
|
16
|
+
handle?(_: {
|
|
17
|
+
form: DistributeRef<Reactive<T>>;
|
|
18
|
+
}): any;
|
|
19
|
+
right?(_: {
|
|
20
|
+
form: DistributeRef<Reactive<T>>;
|
|
21
|
+
}): any;
|
|
22
|
+
};
|
|
23
|
+
emit: (event: "submit" | "reset" | "search", ...args: any[]) => void;
|
|
24
|
+
}>) => VNode & {
|
|
25
|
+
__ctx?: Awaited<typeof __VLS_setup>;
|
|
26
|
+
};
|
|
27
|
+
export default _default;
|
|
28
|
+
type __VLS_PrettifyLocal<T> = {
|
|
29
|
+
[K in keyof T]: T[K];
|
|
30
|
+
} & {};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { IFormProps, IFormInstance } from '../type';
|
|
2
|
+
import { VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, ShallowUnwrapRef, Reactive, VNode } from 'vue';
|
|
3
|
+
import { DistributeRef } from '@vue/reactivity';
|
|
4
|
+
declare const _default: <T extends Record<string, any>>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
5
|
+
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
|
|
6
|
+
readonly onSubmit?: ((...args: any[]) => any) | undefined;
|
|
7
|
+
readonly onReset?: ((...args: any[]) => any) | undefined;
|
|
8
|
+
} & VNodeProps & AllowedComponentProps & ComponentCustomProps, never>, "onReset" | "onSubmit"> & IFormProps<T> & Partial<{}>> & PublicProps;
|
|
9
|
+
expose(exposed: ShallowUnwrapRef<IFormInstance>): void;
|
|
10
|
+
attrs: any;
|
|
11
|
+
slots: {
|
|
12
|
+
default?(_: {
|
|
13
|
+
form: DistributeRef<Reactive<T>>;
|
|
14
|
+
}): any;
|
|
15
|
+
handle?(_: {
|
|
16
|
+
form: DistributeRef<Reactive<T>>;
|
|
17
|
+
}): any;
|
|
18
|
+
};
|
|
19
|
+
emit: (event: "submit" | "reset", ...args: any[]) => void;
|
|
20
|
+
}>) => VNode & {
|
|
21
|
+
__ctx?: Awaited<typeof __VLS_setup>;
|
|
22
|
+
};
|
|
23
|
+
export default _default;
|
|
24
|
+
type __VLS_PrettifyLocal<T> = {
|
|
25
|
+
[K in keyof T]: T[K];
|
|
26
|
+
} & {};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { IInfiniteScrollProps } from './type.d';
|
|
2
|
+
import { VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, ShallowUnwrapRef, VNode } from 'vue';
|
|
3
|
+
declare const _default: <T>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
4
|
+
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
|
|
5
|
+
readonly "onNode-click"?: ((...args: any[]) => any) | undefined;
|
|
6
|
+
} & VNodeProps & AllowedComponentProps & ComponentCustomProps, never>, "onNode-click"> & IInfiniteScrollProps<T> & Partial<{}>> & PublicProps;
|
|
7
|
+
expose(exposed: ShallowUnwrapRef<{}>): void;
|
|
8
|
+
attrs: any;
|
|
9
|
+
slots: {
|
|
10
|
+
plus?(_: {}): any;
|
|
11
|
+
handle?(_: {}): any;
|
|
12
|
+
itemHandle?(_: {
|
|
13
|
+
data: T;
|
|
14
|
+
}): any;
|
|
15
|
+
};
|
|
16
|
+
emit: (event: "node-click", ...args: any[]) => void;
|
|
17
|
+
}>) => VNode & {
|
|
18
|
+
__ctx?: Awaited<typeof __VLS_setup>;
|
|
19
|
+
};
|
|
20
|
+
export default _default;
|
|
21
|
+
type __VLS_PrettifyLocal<T> = {
|
|
22
|
+
[K in keyof T]: T[K];
|
|
23
|
+
} & {};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { IColumn } from './type.d';
|
|
2
|
+
import { VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, ShallowUnwrapRef, VNode } from 'vue';
|
|
3
|
+
declare const _default: <T extends Record<string, any>>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
4
|
+
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
|
|
5
|
+
readonly "onUpdate:data"?: ((...args: any[]) => any) | undefined;
|
|
6
|
+
} & VNodeProps & AllowedComponentProps & ComponentCustomProps, never>, "onUpdate:data"> & {
|
|
7
|
+
key?: string;
|
|
8
|
+
data: T[];
|
|
9
|
+
column: IColumn<T>;
|
|
10
|
+
align?: "center" | "left" | "right";
|
|
11
|
+
size?: "large" | "default" | "small";
|
|
12
|
+
} & Partial<{}>> & PublicProps;
|
|
13
|
+
expose(exposed: ShallowUnwrapRef<{}>): void;
|
|
14
|
+
attrs: any;
|
|
15
|
+
slots: {};
|
|
16
|
+
emit: (event: "update:data", ...args: any[]) => void;
|
|
17
|
+
}>) => VNode & {
|
|
18
|
+
__ctx?: Awaited<typeof __VLS_setup>;
|
|
19
|
+
};
|
|
20
|
+
export default _default;
|
|
21
|
+
type __VLS_PrettifyLocal<T> = {
|
|
22
|
+
[K in keyof T]: T[K];
|
|
23
|
+
} & {};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { ITableProps } from './type';
|
|
2
|
+
import { VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, ShallowUnwrapRef, VNode } from 'vue';
|
|
3
|
+
declare const _default: <T extends Record<string, any>>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
4
|
+
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
|
|
5
|
+
readonly onPagination?: ((...args: any[]) => any) | undefined;
|
|
6
|
+
} & VNodeProps & AllowedComponentProps & ComponentCustomProps, never>, "onPagination"> & ITableProps<T> & Partial<{}>> & PublicProps;
|
|
7
|
+
expose(exposed: ShallowUnwrapRef<{}>): void;
|
|
8
|
+
attrs: any;
|
|
9
|
+
slots: {
|
|
10
|
+
default?(_: {}): any;
|
|
11
|
+
};
|
|
12
|
+
emit: (event: "pagination", ...args: any[]) => void;
|
|
13
|
+
}>) => VNode & {
|
|
14
|
+
__ctx?: Awaited<typeof __VLS_setup>;
|
|
15
|
+
};
|
|
16
|
+
export default _default;
|
|
17
|
+
type __VLS_PrettifyLocal<T> = {
|
|
18
|
+
[K in keyof T]: T[K];
|
|
19
|
+
} & {};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { ITreeProps } from './type';
|
|
2
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
3
|
+
declare function __VLS_template(): {
|
|
4
|
+
attrs: Partial<{}>;
|
|
5
|
+
slots: {
|
|
6
|
+
handle?(_: {
|
|
7
|
+
style: {};
|
|
8
|
+
}): any;
|
|
9
|
+
'node-handle'?(_: {
|
|
10
|
+
data: any;
|
|
11
|
+
}): any;
|
|
12
|
+
};
|
|
13
|
+
refs: {
|
|
14
|
+
treeRef: unknown;
|
|
15
|
+
};
|
|
16
|
+
rootEl: HTMLDivElement;
|
|
17
|
+
};
|
|
18
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
19
|
+
declare const __VLS_component: DefineComponent<ITreeProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
20
|
+
change: (...args: any[]) => void;
|
|
21
|
+
}, string, PublicProps, Readonly<ITreeProps> & Readonly<{
|
|
22
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
|
23
|
+
}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
24
|
+
treeRef: unknown;
|
|
25
|
+
}, HTMLDivElement>;
|
|
26
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
27
|
+
export default _default;
|
|
28
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
29
|
+
new (): {
|
|
30
|
+
$slots: S;
|
|
31
|
+
};
|
|
32
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { default as UiCard } from './Card/index';
|
|
2
|
+
import { default as UiTable } from './Table/index';
|
|
3
|
+
import { default as UiFilter } from './Filter/index';
|
|
4
|
+
import { default as UiForm } from './Form/index';
|
|
5
|
+
import { default as UiEditor } from './Editor/index';
|
|
6
|
+
import { default as UiTree } from './Tree/index';
|
|
7
|
+
import { default as UiInfiniteScroll } from './InfiniteScroll/index';
|
|
8
|
+
import { default as UiDescriptions } from './Descriptions/index';
|
|
9
|
+
import { default as UiDialog } from './Dialog/index';
|
|
10
|
+
export { UiCard, UiTable, UiFilter, UiForm, UiEditor, UiTree, UiInfiniteScroll, UiDescriptions, UiDialog };
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import { LinkProps, TagProps, SwitchProps, SelectProps, DatePickerProps, InputProps, InputTagProps, TimeSelectProps, ButtonProps, InputNumberProps, RadioGroupProps, TextProps } from 'element-plus';
|
|
2
|
+
import { VNode, RendererNode, RendererElement } from 'vue';
|
|
3
|
+
declare function button(props: ButtonProps | ButtonProps[]): VNode<RendererNode, RendererElement, {
|
|
4
|
+
[key: string]: any;
|
|
5
|
+
}>;
|
|
6
|
+
declare function link(props: LinkProps & {
|
|
7
|
+
prop: string;
|
|
8
|
+
lineClamp?: number;
|
|
9
|
+
type?: 'primary' | 'success' | 'warning' | 'info' | 'danger';
|
|
10
|
+
}): VNode<RendererNode, RendererElement, {
|
|
11
|
+
[key: string]: any;
|
|
12
|
+
}>;
|
|
13
|
+
declare function tag(props: TagProps & {
|
|
14
|
+
prop: string;
|
|
15
|
+
}): VNode<RendererNode, RendererElement, {
|
|
16
|
+
[key: string]: any;
|
|
17
|
+
}>;
|
|
18
|
+
declare function _switch(props: SwitchProps): VNode<RendererNode, RendererElement, {
|
|
19
|
+
[key: string]: any;
|
|
20
|
+
}>;
|
|
21
|
+
declare function select(props: SelectProps): VNode<RendererNode, RendererElement, {
|
|
22
|
+
[key: string]: any;
|
|
23
|
+
}>;
|
|
24
|
+
declare function datePicker(props: DatePickerProps & {
|
|
25
|
+
onChange?: (val: string) => void;
|
|
26
|
+
}): VNode<RendererNode, RendererElement, {
|
|
27
|
+
[key: string]: any;
|
|
28
|
+
}>;
|
|
29
|
+
declare function timeSelect(props: TimeSelectProps): VNode<RendererNode, RendererElement, {
|
|
30
|
+
[key: string]: any;
|
|
31
|
+
}>;
|
|
32
|
+
declare function input(props: InputProps): VNode<RendererNode, RendererElement, {
|
|
33
|
+
[key: string]: any;
|
|
34
|
+
}>;
|
|
35
|
+
declare function inputNumber(props: InputNumberProps): VNode<RendererNode, RendererElement, {
|
|
36
|
+
[key: string]: any;
|
|
37
|
+
}>;
|
|
38
|
+
declare function textarea(props: InputProps): VNode<RendererNode, RendererElement, {
|
|
39
|
+
[key: string]: any;
|
|
40
|
+
}>;
|
|
41
|
+
declare function inputTag(props: InputTagProps): VNode<RendererNode, RendererElement, {
|
|
42
|
+
[key: string]: any;
|
|
43
|
+
}>;
|
|
44
|
+
declare function editor(props: any): VNode<RendererNode, RendererElement, {
|
|
45
|
+
[key: string]: any;
|
|
46
|
+
}>;
|
|
47
|
+
declare function radio(props: RadioGroupProps): VNode<RendererNode, RendererElement, {
|
|
48
|
+
[key: string]: any;
|
|
49
|
+
}>;
|
|
50
|
+
declare function text(props: TextProps & {
|
|
51
|
+
prop: string;
|
|
52
|
+
}): VNode<RendererNode, RendererElement, {
|
|
53
|
+
[key: string]: any;
|
|
54
|
+
}>;
|
|
55
|
+
declare const _default: {
|
|
56
|
+
button: typeof button;
|
|
57
|
+
link: typeof link;
|
|
58
|
+
tag: typeof tag;
|
|
59
|
+
switch: typeof _switch;
|
|
60
|
+
select: typeof select;
|
|
61
|
+
datePicker: typeof datePicker;
|
|
62
|
+
timeSelect: typeof timeSelect;
|
|
63
|
+
input: typeof input;
|
|
64
|
+
inputNumber: typeof inputNumber;
|
|
65
|
+
textarea: typeof textarea;
|
|
66
|
+
inputTag: typeof inputTag;
|
|
67
|
+
editor: typeof editor;
|
|
68
|
+
radio: typeof radio;
|
|
69
|
+
text: typeof text;
|
|
70
|
+
};
|
|
71
|
+
export default _default;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { IField } from '../type';
|
|
2
|
+
export declare function getLabelWidth(width?: string | number): string;
|
|
3
|
+
export declare function getValueWidth(width: number | string): string;
|
|
4
|
+
export declare function getRenderAttr<T>(field: IField<T>, data: T): any;
|
|
5
|
+
export declare function renderNode<T>(field: IField<T>, data: T): any;
|
package/dist/entry.d.ts
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { App } from 'vue';
|
|
2
|
+
import { default as UiCard } from './components/Card/index';
|
|
3
|
+
import { default as UiTable } from './components/Table/index';
|
|
4
|
+
import { default as UiFilter } from './components/Filter/index';
|
|
5
|
+
import { default as UiForm } from './components/Form/index';
|
|
6
|
+
import { default as UiEditor } from './components/Editor/index';
|
|
7
|
+
import { default as UiTree } from './components/Tree/index';
|
|
8
|
+
import { default as UiInfiniteScroll } from './components/InfiniteScroll/index';
|
|
9
|
+
import { default as UiDescriptions } from './components/Descriptions/index';
|
|
10
|
+
import { default as UiDialog } from './components/Dialog/index';
|
|
11
|
+
import { UiPie, UiSeries, UiBar } from './components/Chart';
|
|
12
|
+
export { UiCard, UiTable, UiFilter, UiForm, UiEditor, UiTree, UiInfiniteScroll, UiDescriptions, UiDialog, UiPie, UiSeries, UiBar, };
|
|
13
|
+
declare const _default: {
|
|
14
|
+
install(app: App): void;
|
|
15
|
+
};
|
|
16
|
+
export default _default;
|
package/dist/vep-ui.es.js
CHANGED
package/dist/vep-ui.umd.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(e,t){typeof exports==`object`&&typeof module<`u`?t(exports,require(`vue`),require(`element-plus`),require(`aieditor`),require(`echarts`)):typeof define==`function`&&define.amd?define([`exports`,`vue`,`element-plus`,`aieditor`,`echarts`],t):(e=typeof globalThis<`u`?globalThis:e||self,t(e.VepUi={},e.Vue,e.ElementPlus,e.AiEditor,e.echarts))})(this,function(e,t,n,r,i){Object.defineProperties(e,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});var a={class:(0,t.normalizeClass)({bodyClass:!0})},o=(0,t.defineComponent)({__name:`index`,props:{title:{},bodyClass:{},hideBorder:{type:Boolean},icon:{}},setup(e){let n=(0,t.computed)(()=>({display:`flex`,alignItems:`center`,gap:`4px`,borderBottom:e.hideBorder?`1px solid #e5e7eb`:`none`}));return(r,i)=>{let o=(0,t.resolveComponent)(`el-icon`),s=(0,t.resolveComponent)(`el-card`);return(0,t.openBlock)(),(0,t.createBlock)(s,(0,t.mergeProps)(r.$attrs,{class:{"ui-card":!0,hideBorder:e.hideBorder}}),(0,t.createSlots)({default:(0,t.withCtx)(()=>[(0,t.createElementVNode)(`div`,a,[(0,t.renderSlot)(r.$slots,`default`,{},void 0,!0)])]),_:2},[e.title&&e.title?.length>0?{name:`header`,fn:(0,t.withCtx)(()=>[(0,t.createElementVNode)(`div`,{style:(0,t.normalizeStyle)(n.value)},[e.icon?((0,t.openBlock)(),(0,t.createBlock)(o,{key:0},{default:(0,t.withCtx)(()=>[((0,t.openBlock)(),(0,t.createBlock)((0,t.resolveDynamicComponent)(e.icon),{color:`#2563eb`}))]),_:1})):(0,t.createCommentVNode)(``,!0),i[0]||((0,t.setBlockTracking)(-1,!0),(i[0]=(0,t.createElementVNode)(`h4`,null,[(0,t.createTextVNode)((0,t.toDisplayString)(e.title),1)])).cacheIndex=0,(0,t.setBlockTracking)(1),i[0])],4)]),key:`0`}:void 0]),1040,[`class`])}}}),s=(e,t)=>{let n=e.__vccOpts||e;for(let[e,r]of t)n[e]=r;return n},c=s(o,[[`__scopeId`,`data-v-ae248017`]]),l=(0,t.defineComponent)({name:`ArrowRight`,__name:`arrow-right`,setup(e){return(e,n)=>((0,t.openBlock)(),(0,t.createElementBlock)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 1024 1024`},[(0,t.createElementVNode)(`path`,{fill:`currentColor`,d:`M340.864 149.312a30.59 30.59 0 0 0 0 42.752L652.736 512 340.864 831.872a30.59 30.59 0 0 0 0 42.752 29.12 29.12 0 0 0 41.728 0L714.24 534.336a32 32 0 0 0 0-44.672L382.592 149.376a29.12 29.12 0 0 0-41.728 0z`})]))}}),u=(0,t.defineComponent)({name:`ArrowUp`,__name:`arrow-up`,setup(e){return(e,n)=>((0,t.openBlock)(),(0,t.createElementBlock)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 1024 1024`},[(0,t.createElementVNode)(`path`,{fill:`currentColor`,d:`m488.832 344.32-339.84 356.672a32 32 0 0 0 0 44.16l.384.384a29.44 29.44 0 0 0 42.688 0l320-335.872 319.872 335.872a29.44 29.44 0 0 0 42.688 0l.384-.384a32 32 0 0 0 0-44.16L535.168 344.32a32 32 0 0 0-46.336 0`})]))}}),d=(0,t.defineComponent)({name:`CirclePlus`,__name:`circle-plus`,setup(e){return(e,n)=>((0,t.openBlock)(),(0,t.createElementBlock)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 1024 1024`},[(0,t.createElementVNode)(`path`,{fill:`currentColor`,d:`M352 480h320a32 32 0 1 1 0 64H352a32 32 0 0 1 0-64`}),(0,t.createElementVNode)(`path`,{fill:`currentColor`,d:`M480 672V352a32 32 0 1 1 64 0v320a32 32 0 0 1-64 0`}),(0,t.createElementVNode)(`path`,{fill:`currentColor`,d:`M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896`})]))}}),f=(0,t.defineComponent)({name:`Delete`,__name:`delete`,setup(e){return(e,n)=>((0,t.openBlock)(),(0,t.createElementBlock)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 1024 1024`},[(0,t.createElementVNode)(`path`,{fill:`currentColor`,d:`M160 256H96a32 32 0 0 1 0-64h256V95.936a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32V192h256a32 32 0 1 1 0 64h-64v672a32 32 0 0 1-32 32H192a32 32 0 0 1-32-32zm448-64v-64H416v64zM224 896h576V256H224zm192-128a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32m192 0a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32`})]))}}),p=(0,t.defineComponent)({name:`DocumentAdd`,__name:`document-add`,setup(e){return(e,n)=>((0,t.openBlock)(),(0,t.createElementBlock)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 1024 1024`},[(0,t.createElementVNode)(`path`,{fill:`currentColor`,d:`M832 384H576V128H192v768h640zm-26.496-64L640 154.496V320zM160 64h480l256 256v608a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32m320 512V448h64v128h128v64H544v128h-64V640H352v-64z`})]))}}),m=(0,t.defineComponent)({name:`Edit`,__name:`edit`,setup(e){return(e,n)=>((0,t.openBlock)(),(0,t.createElementBlock)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 1024 1024`},[(0,t.createElementVNode)(`path`,{fill:`currentColor`,d:`M832 512a32 32 0 1 1 64 0v352a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h352a32 32 0 0 1 0 64H192v640h640z`}),(0,t.createElementVNode)(`path`,{fill:`currentColor`,d:`m469.952 554.24 52.8-7.552L847.104 222.4a32 32 0 1 0-45.248-45.248L477.44 501.44l-7.552 52.8zm422.4-422.4a96 96 0 0 1 0 135.808l-331.84 331.84a32 32 0 0 1-18.112 9.088L436.8 623.68a32 32 0 0 1-36.224-36.224l15.104-105.6a32 32 0 0 1 9.024-18.112l331.904-331.84a96 96 0 0 1 135.744 0z`})]))}}),h=(0,t.defineComponent)({name:`Folder`,__name:`folder`,setup(e){return(e,n)=>((0,t.openBlock)(),(0,t.createElementBlock)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 1024 1024`},[(0,t.createElementVNode)(`path`,{fill:`currentColor`,d:`M128 192v640h768V320H485.76L357.504 192zm-32-64h287.872l128.384 128H928a32 32 0 0 1 32 32v576a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32`})]))}}),g=(0,t.defineComponent)({name:`MoreFilled`,__name:`more-filled`,setup(e){return(e,n)=>((0,t.openBlock)(),(0,t.createElementBlock)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 1024 1024`},[(0,t.createElementVNode)(`path`,{fill:`currentColor`,d:`M176 416a112 112 0 1 1 0 224 112 112 0 0 1 0-224m336 0a112 112 0 1 1 0 224 112 112 0 0 1 0-224m336 0a112 112 0 1 1 0 224 112 112 0 0 1 0-224`})]))}}),_=(0,t.defineComponent)({name:`Promotion`,__name:`promotion`,setup(e){return(e,n)=>((0,t.openBlock)(),(0,t.createElementBlock)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 1024 1024`},[(0,t.createElementVNode)(`path`,{fill:`currentColor`,d:`m64 448 832-320-128 704-446.08-243.328L832 192 242.816 545.472zm256 512V657.024L512 768z`})]))}}),v=(0,t.defineComponent)({name:`Refresh`,__name:`refresh`,setup(e){return(e,n)=>((0,t.openBlock)(),(0,t.createElementBlock)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 1024 1024`},[(0,t.createElementVNode)(`path`,{fill:`currentColor`,d:`M771.776 794.88A384 384 0 0 1 128 512h64a320 320 0 0 0 555.712 216.448H654.72a32 32 0 1 1 0-64h149.056a32 32 0 0 1 32 32v148.928a32 32 0 1 1-64 0v-50.56zM276.288 295.616h92.992a32 32 0 0 1 0 64H220.16a32 32 0 0 1-32-32V178.56a32 32 0 0 1 64 0v50.56A384 384 0 0 1 896.128 512h-64a320 320 0 0 0-555.776-216.384z`})]))}}),y=(0,t.defineComponent)({name:`Search`,__name:`search`,setup(e){return(e,n)=>((0,t.openBlock)(),(0,t.createElementBlock)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 1024 1024`},[(0,t.createElementVNode)(`path`,{fill:`currentColor`,d:`m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704`})]))}});function b(e){return typeof e==`number`?e+`px`:e||`100px`}function x(e){return typeof e==`number`?e+`px`:e||`180px`}function S(e,t){let n={};return Object.keys(Y).forEach(r=>{let i=r;n[i]=(n={})=>({props:{prop:e.prop,...n,"onUpdate:modelValue":n=>t[e.prop]=n,onChange:r=>n.onChange?.(r)||(t[e.prop]=r)},type:i,component:Y[i]})}),(n=>typeof e.render==`function`?e.render({h:n,data:t}):n.input(n.props||{}))(n)}function C(e,t){let n=S(e,t);return typeof n==`object`&&(n.component||=n),n}var w={class:`flex flex-row justify-end items-center w-full`},T=s((0,t.defineComponent)({name:`UiDefaultFilter`,__name:`index`,props:{type:{},size:{default:`default`},fields:{},expandNum:{},valueWidth:{default:`100%`},labelWidth:{default:`100px`},omitFields:{default:()=>[]},rules:{},required:{type:Boolean},column:{default:4},filterFixedValues:{default:()=>({page:1})}},emits:[`submit`,`reset`,`search`],setup(e,{emit:n}){let r=n,i=(0,t.createPropsRestProxy)(e,[`fields`,`labelWidth`,`valueWidth`,`omitFields`,`column`,`size`,`filterFixedValues`]),a=(0,t.reactive)({expandNum:0,expand:!1}),o=(0,t.reactive)({}),s=(0,t.computed)(()=>e.fields.slice(0,a.expand?e.fields.length:a.expandNum)),c=(0,t.computed)(()=>24-s.value?.reduce((t,n)=>t+(n.span||24/e.column),0)%24-24/e.column);(0,t.onMounted)(()=>{a.expandNum=i?.expandNum??2*e.column-1,e.fields.forEach(e=>{let t=S(e,o)?.props?.defaultValue;t!==void 0&&(o[e.prop]=t)})});function d(){let n={};Object.keys(o).forEach(e=>{if(o[e]!==void 0){let r=(0,t.toValue)(o[e]);n[e]=typeof r==`string`?r.trim():r}}),r(`submit`,{...n,...e.filterFixedValues}),r(`search`,{...n,...e.filterFixedValues})}function f(){Object.keys(o).forEach(t=>{e.omitFields.includes(t)||(o[t]=void 0)}),r(`reset`,o)}return(n,r)=>{let i=(0,t.resolveComponent)(`el-input`),p=(0,t.resolveComponent)(`el-form-item`),m=(0,t.resolveComponent)(`el-col`),h=(0,t.resolveComponent)(`el-button`),g=(0,t.resolveComponent)(`el-row`),_=(0,t.resolveComponent)(`el-form`);return(0,t.openBlock)(),(0,t.createBlock)(_,(0,t.mergeProps)({model:o,class:`w-full ui-filter`,size:e.size},n.$attrs),{default:(0,t.withCtx)(()=>[(0,t.createVNode)(g,{gutter:20,class:`mb-[-15px]`},{default:(0,t.withCtx)(()=>[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(s.value,n=>((0,t.openBlock)(),(0,t.createBlock)(m,{span:n.span||24/e.column},{default:(0,t.withCtx)(()=>[((0,t.openBlock)(),(0,t.createBlock)(p,{key:n.prop,label:n.label,"label-width":(0,t.unref)(b)(n?.labelWidth||e.labelWidth),"value-width":(0,t.unref)(x)(n?.valueWidth||e.valueWidth)},{default:(0,t.withCtx)(()=>[n.render?((0,t.openBlock)(),(0,t.createBlock)((0,t.resolveDynamicComponent)((0,t.unref)(S)(n,o).component),(0,t.mergeProps)({key:0,modelValue:o[n.prop],"onUpdate:modelValue":e=>o[n.prop]=e},{ref_for:!0},(0,t.unref)(S)(n,o).props,{clearable:!0,style:{width:(0,t.unref)(x)(n?.valueWidth||e.valueWidth)}}),null,16,[`modelValue`,`onUpdate:modelValue`,`style`])):((0,t.openBlock)(),(0,t.createBlock)(i,{key:1,modelValue:o[n.prop],"onUpdate:modelValue":e=>o[n.prop]=e,placeholder:`请输入`,clearable:!0,style:(0,t.normalizeStyle)({width:(0,t.unref)(x)(n?.valueWidth||e.valueWidth)})},null,8,[`modelValue`,`onUpdate:modelValue`,`style`]))]),_:2},1032,[`label`,`label-width`,`value-width`]))]),_:2},1032,[`span`]))),256)),(0,t.createVNode)(m,{span:24/e.column,offset:c.value},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(p,{label:``,"label-width":`30px`},{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)(`div`,w,[(0,t.renderSlot)(n.$slots,`left`,{form:o},void 0,!0),e.fields.length>=2*e.column?((0,t.openBlock)(),(0,t.createBlock)(h,{key:0,text:``,icon:a.expand?(0,t.unref)(u):(0,t.unref)(l),onClick:r[0]||=e=>a.expand=!a.expand},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(a.expand?`收起`:`展开`),1)]),_:1},8,[`icon`])):(0,t.createCommentVNode)(``,!0),(0,t.createVNode)(h,{icon:(0,t.unref)(y),type:`primary`,onClick:d},{default:(0,t.withCtx)(()=>[...r[1]||=[(0,t.createTextVNode)(`查询`,-1)]]),_:1},8,[`icon`]),(0,t.createVNode)(h,{icon:(0,t.unref)(v),onClick:f},{default:(0,t.withCtx)(()=>[...r[2]||=[(0,t.createTextVNode)(`重置`,-1)]]),_:1},8,[`icon`]),(0,t.renderSlot)(n.$slots,`handle`,{form:o},void 0,!0),(0,t.renderSlot)(n.$slots,`right`,{form:o},void 0,!0)])]),_:3})]),_:3},8,[`span`,`offset`])]),_:3})]),_:3},16,[`model`,`size`])}}}),[[`__scopeId`,`data-v-592774c8`]]),E={key:0,style:{display:`inline-block`}},D={key:0,style:{display:`inline-block`}},ee={key:0,class:`ui-form-buttons`},O=s((0,t.defineComponent)({__name:`index`,props:{fields:{},expandNum:{},valueWidth:{default:`auto`},labelWidth:{default:`100px`},labelPosition:{default:`top`},omitFields:{default:()=>[]},rules:{default:()=>(0,t.reactive)({})},required:{type:Boolean},column:{default:24},defaultValues:{},form:{},valueModel:{default:`default`},size:{}},emits:[`submit`,`reset`],setup(e,{expose:n,emit:r}){(0,t.useCssVars)(e=>({ec46e5ec:e.column/2}));let i=r,a=(0,t.createPropsRestProxy)(e,[`fields`,`labelWidth`,`valueWidth`,`omitFields`,`rules`,`labelPosition`,`valueModel`,`column`]),o=(0,t.ref)(0),s=(0,t.ref)(),c=(0,t.reactive)({}),l=(0,t.computed)(()=>{let n=(0,t.toValue)(c);return e.fields.forEach(e=>{let t=e.prop?n?.[e.prop]:void 0,r=C(e,c)?.props?.defaultValue;c[e.prop]=t??r??void 0,e?.slots&&e?.slots?.length>0&&e.slots.forEach(e=>{let t=e.prop?n?.[e.prop]:void 0,r=C(e,c)?.props?.defaultValue;c[e.prop]=t??r??void 0})}),e.fields.filter(e=>typeof e.prop==`string`)}),u=(0,t.computed)(()=>{if(e.rules&&Object.keys(e.rules).length)return e.rules;let t={};return l.value.forEach(e=>{e.rules&&Object.keys(e.rules).length?t[e.prop]=e.rules:e.required&&(t[e.prop]=[{required:!0,message:`请输入`+e.label,trigger:`change`}])}),t});(0,t.watchEffect)(()=>{Object.assign(c,a?.form)});async function d(e){let n=!0;if(await e.validate(e=>{n=e}),!n)return;let r={};Object.keys(c).forEach(e=>{c[e]!==void 0&&(r[e]=(0,t.toValue)(c[e]))}),i(`submit`,r)}function f(){s&&s.value?.clearValidate()}function p(){Object.keys(c).forEach(t=>{e.omitFields.includes(t)||(c[t]=void 0)}),o.value+=1,i(`reset`,c)}function m(){return c}function h(e){Object.keys(e).forEach(t=>{c[t]=e[t]})}async function g(){return new Promise(e=>{s.value?.validate((t,n)=>e(n))})}return n({getValues:m,setValues:h,clearValidate:f,onSubmit:d,validate:g}),(n,r)=>{let i=(0,t.resolveComponent)(`el-input`),a=(0,t.resolveComponent)(`el-form-item`),f=(0,t.resolveComponent)(`el-form`),m=(0,t.resolveComponent)(`el-button`);return(0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,null,[(0,t.createVNode)(f,(0,t.mergeProps)({ref_key:`uiFormRef`,ref:s,model:c},n.$attrs,{rules:u.value,inline:e.labelPosition!==`top`,"label-position":e.labelPosition,class:{"ui-form":!0,horizontal:e.labelPosition!==`top`},"validate-on-rule-change":!1}),{default:(0,t.withCtx)(()=>[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(l.value,r=>((0,t.openBlock)(),(0,t.createBlock)(a,{key:r.prop,label:r.label,"label-width":e.labelWidth,"value-width":e.valueWidth,prop:r.prop,style:(0,t.normalizeStyle)({width:`${r?.width?r?.width+`px`:`100%`}`,gridColumn:`span ${(r?.span||e.column)/2||1}`})},{default:(0,t.withCtx)(()=>[r.render?((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:0},[(0,t.unref)(C)(r,c).component?((0,t.openBlock)(),(0,t.createBlock)((0,t.resolveDynamicComponent)((0,t.unref)(C)(r,c).component),(0,t.mergeProps)({key:1,modelValue:c[r.prop],"onUpdate:modelValue":e=>c[r.prop]=e},{ref_for:!0},(0,t.unref)(C)(r,c).props,{clearable:!0,key:`${r.prop}-${o.value}`,style:{display:`inline-block`},class:{underline:e.valueModel===`underline`}}),null,16,[`modelValue`,`onUpdate:modelValue`,`class`])):((0,t.openBlock)(),(0,t.createElementBlock)(`span`,E,(0,t.toDisplayString)((0,t.unref)(C)(r,c)||`-`),1)),((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(r.slots,r=>(0,t.renderSlot)(n.$slots,`default`,{form:c},()=>[(0,t.unref)(C)(r,c).component?((0,t.openBlock)(),(0,t.createBlock)((0,t.resolveDynamicComponent)((0,t.unref)(C)(r,c).component),(0,t.mergeProps)({key:1,modelValue:c[r.prop],"onUpdate:modelValue":e=>c[r.prop]=e,"default-value":r.defaultValue,placeholder:r.placeholder},{ref_for:!0},(0,t.unref)(C)(r,c).props,{style:{display:`inline-block`,marginLeft:`10px`,width:`${r.width?r.width+`px`:`100%`}`},class:{underline:e.valueModel===`underline`},clearable:!0,key:`${r.prop}-${o.value}`}),null,16,[`modelValue`,`onUpdate:modelValue`,`default-value`,`placeholder`,`style`,`class`])):((0,t.openBlock)(),(0,t.createElementBlock)(`span`,D,(0,t.toDisplayString)((0,t.unref)(C)(r,c)||`-`),1))],!0)),256))],64)):((0,t.openBlock)(),(0,t.createBlock)(i,{key:1,modelValue:c[r.prop],"onUpdate:modelValue":e=>c[r.prop]=e,placeholder:`请输入`,clearable:!0,class:(0,t.normalizeClass)({underline:e.valueModel===`underline`})},null,8,[`modelValue`,`onUpdate:modelValue`,`class`]))]),_:2},1032,[`label`,`label-width`,`value-width`,`prop`,`style`]))),128))]),_:3},16,[`model`,`rules`,`inline`,`label-position`,`class`]),n.$attrs?.hideHandle?(0,t.createCommentVNode)(``,!0):((0,t.openBlock)(),(0,t.createElementBlock)(`div`,ee,[(0,t.renderSlot)(n.$slots,`handle`,{form:c},void 0,!0),(0,t.createVNode)(m,{icon:(0,t.unref)(v),onClick:r[0]||=e=>s.value&&p(),size:n.$props.size},{default:(0,t.withCtx)(()=>[...r[2]||=[(0,t.createTextVNode)(`重置`,-1)]]),_:1},8,[`icon`,`size`]),(0,t.createVNode)(m,{icon:(0,t.unref)(_),type:`primary`,onClick:r[1]||=e=>s.value&&d(s.value),size:n.$props.size},{default:(0,t.withCtx)(()=>[...r[3]||=[(0,t.createTextVNode)(`提交`,-1)]]),_:1},8,[`icon`,`size`])]))],64)}}}),[[`__scopeId`,`data-v-f8f2a1f5`]]),k=[`disabled`],A=(0,t.defineComponent)({__name:`index`,props:(0,t.mergeModels)({defaultValue:{default:``},disabled:{type:Boolean,default:!1}},{modelValue:{type:String,default:``},modelModifiers:{}}),emits:(0,t.mergeModels)([`change`],[`update:modelValue`]),setup(e,{emit:n}){let i=(0,t.ref)(),a=(0,t.useModel)(e,`modelValue`),o=(0,t.ref)(a.value||e.defaultValue||``),s=null,c=n;return(0,t.onMounted)(()=>{s=new r.AiEditor({element:i.value,placeholder:`点击输入内容...`,content:a.value||e.defaultValue||``,toolbarExcludeKeys:[`ai`],onChange:e=>{let t=e.getHtml();a.value=t,o.value=t,c(`change`,t)}}),s.setEditable(!e.disabled)}),(0,t.watch)(a,e=>{s&&e!==s.getHtml()&&s.setContent(e)}),(0,t.onUnmounted)(()=>{s&&s.destroy()}),(n,r)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{ref_key:`editorRef`,ref:i,style:{height:`500px`},disabled:e.disabled},null,8,k))}}),te={class:`ui-tree-wrapper`},ne={key:0,style:{display:`flex`,"flex-direction":`row`,"justify-content":`space-between`,"align-items":`center`,gap:`10px`}},re={class:`custom-tree-node`},ie={class:`node-label flex items-center gap-1`},ae={class:`text-red-500 flex items-center`},j=s((0,t.defineComponent)({__name:`index`,props:{id:{},data:{default:()=>[]},filterable:{type:Boolean},placeholder:{},hidePlusHandle:{type:Boolean},hideNodeAdd:{type:Boolean},hideNodeEdit:{type:Boolean},hideNodeDel:{type:Boolean},hideNodeHandle:{type:Boolean},nodeKey:{},props:{default:()=>({label:`label`})}},emits:[`change`],setup(e,{emit:r}){let i=(0,t.createPropsRestProxy)(e,[`filterable`,`placeholder`,`data`,`props`]),a=(0,t.ref)(``),o=(0,t.ref)(),s=(0,t.ref)(null);(0,t.watch)(a,t=>{e.filterable&&s.value.filter(t)});function c(t,n){return t?n?.[e.props?.label||`label`]?.includes(t)??!1:!0}function l(e,t){e?.stopPropagation(),o.value=t.id}function u(){n.ElMessageBox.prompt(`请输入新的名称`,`添加节点`,{confirmButtonText:`确定`,cancelButtonText:`取消`,callback:async e=>{if(e.action===`confirm`){if(!i?.id)return;console.log(`添加 =》》`,e?.value)}}})}function _(e){n.ElMessageBox.prompt(`请输入新的名称`,`重命名`,{confirmButtonText:`确定`,cancelButtonText:`取消`,inputValue:e.label}).then(async({value:e})=>{console.log(`修改节点 =》》`,e)})}async function v(e){e.id&&console.log(`删除节点 =》》`,e.id)}return(n,r)=>{let o=(0,t.resolveComponent)(`el-input`),y=(0,t.resolveComponent)(`el-icon`),b=(0,t.resolveComponent)(`el-button`),x=(0,t.resolveComponent)(`el-dropdown-item`),S=(0,t.resolveComponent)(`el-dropdown-menu`),C=(0,t.resolveComponent)(`el-dropdown`),w=(0,t.resolveComponent)(`el-tree-v2`);return(0,t.openBlock)(),(0,t.createElementBlock)(`div`,te,[e.filterable?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,ne,[(0,t.createVNode)(o,{modelValue:a.value,"onUpdate:modelValue":r[0]||=e=>a.value=e,placeholder:e.placeholder??`请输入`,clearable:``},null,8,[`modelValue`,`placeholder`]),i?.hidePlusHandle?(0,t.createCommentVNode)(``,!0):((0,t.openBlock)(),(0,t.createBlock)(b,{key:0,style:{margin:`0px`,padding:`0px`},link:``},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(y,{size:22},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(d),{onClick:r[1]||=e=>u()})]),_:1})]),_:1}))])):(0,t.createCommentVNode)(``,!0),(0,t.renderSlot)(n.$slots,`handle`,{style:`margin-top: 8px`},void 0,!0),(0,t.createVNode)(w,(0,t.mergeProps)({ref_key:`treeRef`,ref:s,style:{"margin-top":`8px`}},{...n.$props,...n.$attrs},{"node-key":i?.nodeKey||`id`,"highlight-current":!0,"filter-method":c}),{default:(0,t.withCtx)(({data:a})=>[(0,t.createElementVNode)(`div`,re,[(0,t.createElementVNode)(`div`,ie,[a?.children?.length?((0,t.openBlock)(),(0,t.createBlock)(y,{key:0},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(h))]),_:1})):(0,t.createCommentVNode)(``,!0),(0,t.createTextVNode)(` `+(0,t.toDisplayString)(a?.[e.props?.label||`label`])+` `+(0,t.toDisplayString)(a?.children?.length?`(${a.children.length})`:``),1)]),i.hideNodeHandle?(0,t.createCommentVNode)(``,!0):((0,t.openBlock)(),(0,t.createBlock)(C,{key:0,trigger:`click`},{dropdown:(0,t.withCtx)(()=>[(0,t.createVNode)(S,null,{default:(0,t.withCtx)(()=>[i?.hideNodeAdd?(0,t.createCommentVNode)(``,!0):((0,t.openBlock)(),(0,t.createBlock)(x,{key:0,onClick:r[2]||=e=>u()},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(y,null,{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(p))]),_:1}),r[3]||=(0,t.createTextVNode)(`添加 `,-1)]),_:1})),i?.hideNodeEdit?(0,t.createCommentVNode)(``,!0):((0,t.openBlock)(),(0,t.createBlock)(x,{key:1,onClick:e=>_(a)},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(y,null,{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(m))]),_:1}),r[4]||=(0,t.createTextVNode)(`编辑 `,-1)]),_:1},8,[`onClick`])),i?.hideNodeDel?(0,t.createCommentVNode)(``,!0):((0,t.openBlock)(),(0,t.createBlock)(x,{key:2,onClick:e=>v(a)},{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)(`span`,ae,[(0,t.createVNode)(y,null,{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(f))]),_:1}),r[5]||=(0,t.createTextVNode)(`删除 `,-1)])]),_:1},8,[`onClick`])),(0,t.renderSlot)(n.$slots,`node-handle`,{data:a},void 0,!0)]),_:2},1024)]),default:(0,t.withCtx)(()=>[(0,t.createVNode)(y,{onClick:e=>l(e,a)},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(g))]),_:1},8,[`onClick`])]),_:2},1024))])]),_:3},16,[`node-key`])])}}}),[[`__scopeId`,`data-v-a155afd8`]]),M={style:{height:`100%`}},N={style:{display:`flex`,"flex-direction":`row`,"justify-content":`space-between`,"align-items":`center`,gap:`10px`}},P={style:{margin:`10px 0px`}},F=[`onClick`],I={key:0},L=s((0,t.defineComponent)({__name:`index`,props:{loading:{default:()=>(0,t.ref)(!1)},data:{},placeholder:{},props:{},vInfiniteScroll:{type:Function},filterable:{type:Boolean}},emits:[`node-click`],setup(e,{emit:n}){let r=n,i=(0,t.ref)(``),a=(0,t.ref)(),o=(0,t.computed)(()=>i.value?e.data.filter(t=>t[e.props?.label||`label`]?.includes(i.value)):e.data);(0,t.watch)(()=>[a.value,e.data?.[0]],t=>{!t[0]&&t[1]&&(a.value=e.data?.[0])},{immediate:!0});function s(e){a.value=e,r(`node-click`,e)}return(n,r)=>{let c=(0,t.resolveComponent)(`el-input`);return(0,t.openBlock)(),(0,t.createElementBlock)(`div`,M,[(0,t.createElementVNode)(`div`,N,[e.filterable?((0,t.openBlock)(),(0,t.createBlock)(c,{key:0,modelValue:i.value,"onUpdate:modelValue":r[0]||=e=>i.value=e,placeholder:e.placeholder??`请输入`},null,8,[`modelValue`,`placeholder`])):(0,t.createCommentVNode)(``,!0),(0,t.renderSlot)(n.$slots,`plus`,{},void 0,!0)]),(0,t.createElementVNode)(`div`,P,[(0,t.renderSlot)(n.$slots,`handle`,{},void 0,!0)]),(0,t.withDirectives)(((0,t.openBlock)(),(0,t.createElementBlock)(`ul`,(0,t.mergeProps)({class:`infinite-list`,"infinite-scroll-immediate":!1},n.$attrs),[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(o.value,(r,i)=>((0,t.openBlock)(),(0,t.createElementBlock)(`li`,{key:`infinite-list-`+i,class:(0,t.normalizeClass)({"infinite-list-item":!0,active:r===a.value}),onClick:e=>s(r)},[(0,t.createElementVNode)(`span`,null,(0,t.toDisplayString)(r[e.props?.label||`label`]),1),(0,t.renderSlot)(n.$slots,`itemHandle`,{data:r},void 0,!0)],10,F))),128))],16)),[[(0,t.unref)(e.vInfiniteScroll),e.vInfiniteScroll]]),e.loading.value?((0,t.openBlock)(),(0,t.createElementBlock)(`p`,I,`loading...`)):(0,t.createCommentVNode)(``,!0)])}}}),[[`__scopeId`,`data-v-2180fa82`]]),R={key:0,style:{padding:`10px 0px`,"margin-bottom":`10px`,"border-bottom":`1px solid #e5e5e5`}},z={key:1},B=s((0,t.defineComponent)({__name:`index`,props:{data:{},fields:{default:()=>[]},column:{default:4},title:{default:``},border:{type:Boolean},direction:{},size:{},extra:{},labelWidth:{}},setup(e){let n=(0,t.createPropsRestProxy)(e,[`title`,`column`,`fields`,`data`]);return(r,i)=>{let a=(0,t.resolveComponent)(`el-descriptions-item`),o=(0,t.resolveComponent)(`el-descriptions`);return(0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,null,[e.title?((0,t.openBlock)(),(0,t.createElementBlock)(`h4`,R,(0,t.toDisplayString)(e.title),1)):(0,t.createCommentVNode)(``,!0),(0,t.renderSlot)(r.$slots,`title`,{},void 0,!0),(0,t.createVNode)(o,(0,t.mergeProps)({column:e.column},n,{class:`ui-descriptions`}),{default:(0,t.withCtx)(()=>[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.fields,n=>((0,t.openBlock)(),(0,t.createBlock)(a,{key:n.prop,label:n.label,span:n.span||2},{default:(0,t.withCtx)(()=>[n.render?((0,t.openBlock)(),(0,t.createBlock)((0,t.resolveDynamicComponent)((0,t.unref)(S)(n,e.data).component),(0,t.mergeProps)({key:0,modelValue:e.data[n.prop],"onUpdate:modelValue":t=>e.data[n.prop]=t},{ref_for:!0},(0,t.unref)(S)(n,e.data).props,{clearable:!0,key:n.prop,style:{display:`inline-block`}}),null,16,[`modelValue`,`onUpdate:modelValue`])):((0,t.openBlock)(),(0,t.createElementBlock)(`span`,z,(0,t.toDisplayString)(e.data[n.prop]||`-`),1))]),_:2},1032,[`label`,`span`]))),128))]),_:1},16,[`column`])],64)}}}),[[`__scopeId`,`data-v-f02c30f9`]]),V={key:0,class:`flex mt-3 justify-end`},H=(0,t.defineComponent)({__name:`index`,props:{visible:{type:Boolean},width:{},disabled:{type:Boolean},component:{},componentProps:{}},emits:[`update:visible`,`close`,`submit`],setup(e,{emit:n}){let r=n,i=e,a=(0,t.ref)();function o(){r(`close`),r(`update:visible`,!1)}function s(){r(`submit`,(0,t.toValue)(a?.value||{})),r(`update:visible`,!1)}return(e,n)=>{let r=(0,t.resolveComponent)(`el-button`),c=(0,t.resolveComponent)(`el-dialog`);return(0,t.openBlock)(),(0,t.createBlock)(c,(0,t.mergeProps)(e.$attrs,{"model-value":i.visible,"show-close":i.disabled,fullscreen:!i.width,"destroy-on-close":``,"lock-scroll":!1,"close-on-click-modal":!1,"onUpdate:modelValue":n[0]||=e=>!e&&o(),onClose:o}),{default:(0,t.withCtx)(()=>[((0,t.openBlock)(),(0,t.createBlock)((0,t.resolveDynamicComponent)(i.component),(0,t.mergeProps)({ref_key:`slotRef`,ref:a},i.componentProps),null,16)),i.disabled?(0,t.createCommentVNode)(``,!0):((0,t.openBlock)(),(0,t.createElementBlock)(`div`,V,[(0,t.createVNode)(r,{onClick:o},{default:(0,t.withCtx)(()=>[...n[1]||=[(0,t.createTextVNode)(`取消`,-1)]]),_:1}),(0,t.createVNode)(r,{type:`primary`,onClick:s},{default:(0,t.withCtx)(()=>[...n[2]||=[(0,t.createTextVNode)(`确定`,-1)]]),_:1})]))]),_:1},16,[`model-value`,`show-close`,`fullscreen`])}}});function U(e){return(0,t.h)(`template`,{style:{display:`flex`,flexDirection:`row`,flexWrap:`wrap`}},(Array.isArray(e)?e:[e]).map(e=>{let{text:r,...i}=e;return(0,t.h)(n.ElButton,{...i,link:!0,size:`small`,type:e.type||`default`},()=>r)}))}function W(e){return Array.isArray(e)?(0,t.h)(`div`,{style:{display:`flex`,gap:`8px`,flexDirection:`row`,flexWrap:`wrap`}},e.map(e=>(0,t.h)(n.ElLink,{...e,type:e.type||`primary`},(0,t.h)(n.ElText,{lineClamp:e?.lineClamp,type:e.type||`primary`},()=>e.prop)))):(0,t.h)(n.ElLink,{...e,type:e.type||`primary`},(0,t.h)(n.ElText,{lineClamp:e?.lineClamp,type:e.type||`primary`},()=>e.prop))}function G(e){return(0,t.h)(`div`,{style:{display:`flex`,gap:`4px`,flexDirection:`row`,flexWrap:`wrap`}},(Array.isArray(e.prop)?e.prop:[e.prop]).map(r=>(0,t.h)(n.ElTag,e,()=>r)))}function K(e){return(0,t.h)(n.ElTag,{...e})}function q(e){return(0,t.h)(n.ElSelect,{style:{minWidth:`160px`},...e,placeholder:`请选择`,filterable:!0})}function oe(e){let r=e?.type===`datetime`?`YYYY-MM-DD HH:mm:ss`:`YYYY-MM-DD`;return(0,t.h)(n.ElDatePicker,{format:r,valueFormat:r,startPlaceholder:`开始时间`,endPlaceholder:`结束时间`,...e,placeholder:`请选择`,"onUpdate:modelValue":t=>e?.onChange?.(t)})}function se(e){let{start:r=`00:00`,end:i=`23:30`,...a}=e;return(0,t.h)(n.ElTimeSelect,{start:r,end:i,...a,placeholder:`请选择`,filterable:!0})}function ce(e){return(0,t.h)(n.ElInput,{...e,placeholder:`请输入`})}function le(e){let{align:r=`left`,controlsPosition:i=`right`,...a}=e;return(0,t.h)(n.ElInputNumber,{align:r,style:{...e?.style||{},width:`100%`},controlsPosition:i,placeholder:`请输入`,...a})}function ue(e){let{rows:r=1,...i}=e;return(0,t.h)(n.ElInput,{placeholder:`请输入`,rows:r,...i,type:`textarea`})}function de(e){return(0,t.h)(n.ElInputTag,{placeholder:`请输入`,...e,clearable:!1})}function J(e){return(0,t.h)(A,e)}function fe(e){return(0,t.h)(n.ElRadioGroup,e)}function pe(e){return(0,t.h)(n.ElText,e,()=>e.prop)}var Y={button:U,link:W,tag:G,switch:K,select:q,datePicker:oe,timeSelect:se,input:ce,inputNumber:le,textarea:ue,inputTag:de,editor:J,radio:fe,text:pe},me=(0,t.defineComponent)({name:`UiColumn`,__name:`UiColumn`,props:{key:{},data:{},column:{},align:{},size:{}},emits:[`update:data`],setup(e,{emit:n}){let r=n,i=e;function a(e,n,i){let a={};Object.keys(Y).forEach(t=>{let o=t;a[o]=t=>{let a=Array.isArray(t)?t:{placeholder:`请输入`,filterable:!0,...t,prop:t?.prop||e[i.prop],modelValue:t?.prop||e[i.prop],onChange:t?.onChange||(e=>r(`update:data`,n,i.prop,e)),onInput:t?.onInput||(e=>r(`update:data`,n,i.prop,e))};return Y[o](a)}});let o=i.render?i.render({data:e,index:n,h:a,column:i}):null;return o?typeof o==`object`?o:(0,t.h)(`div`,{innerHTML:String(o)}):null}return(n,r)=>{let o=(0,t.resolveComponent)(`UiColumn`,!0),s=(0,t.resolveComponent)(`el-table-column`),c=(0,t.resolveComponent)(`el-text`);return e.column?.children&&e.column?.children?.length>0?((0,t.openBlock)(),(0,t.createBlock)(s,{key:0,label:e.column.label,align:i.align},{default:(0,t.withCtx)(()=>[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.column.children,e=>((0,t.openBlock)(),(0,t.createBlock)(o,(0,t.mergeProps)({column:e,data:i.data},{ref_for:!0},n.$attrs,{align:i.align}),null,16,[`column`,`data`,`align`]))),256))]),_:1},8,[`label`,`align`])):((0,t.openBlock)(),(0,t.createBlock)(s,{key:1,prop:String(e.column.prop),label:e.column.label,"column-key":String(e.column.prop),align:i.align,width:e.column.width,"show-overflow-tooltip":e.column.showOverflowTooltip},{default:(0,t.withCtx)(({row:n,$index:r})=>[e.column.render?((0,t.openBlock)(),(0,t.createBlock)((0,t.resolveDynamicComponent)(a(n,r,e.column)),{key:0,align:i.align,size:i.size},null,8,[`align`,`size`])):((0,t.openBlock)(),(0,t.createBlock)(c,{key:1,"line-clamp":e.column?.lineClamp||2},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(n[e.column.prop]),1)]),_:2},1032,[`line-clamp`]))]),_:1},8,[`prop`,`label`,`column-key`,`align`,`width`,`show-overflow-tooltip`]))}}}),X=s((0,t.defineComponent)({__name:`index`,props:{loading:{type:[Boolean,Object],default:!1},border:{type:Boolean,default:!1},size:{default:`default`},data:{default:()=>(0,t.reactive)([])},columns:{},align:{default:`left`},hidePagination:{type:Boolean,default:!1},pagination:{default:()=>(0,t.reactive)({page:1,pageSize:10,total:0,pageSizes:[10,20,50]})},currentChange:{type:Function},selectionChange:{type:Function},selectable:{type:Function},defaultCheckedKeys:{},rowKey:{}},emits:[`pagination`],setup(e,{emit:n}){let r=n,i=(0,t.createPropsRestProxy)(e,[`loading`,`border`,`align`,`hidePagination`,`pagination`,`data`,`size`]),a=(0,t.ref)(),o=(0,t.computed)(()=>(0,t.toValue)(i.columns)?.some(e=>e.type===`index`)),s=(0,t.computed)(()=>(0,t.toValue)(i.columns)?.some(e=>e.type===`selection`)),c=(0,t.computed)(()=>!i.columns||!i.columns.length?[]:i.columns.filter(e=>e.type!==`index`&&e.type!==`selection`));(0,t.watch)(()=>[i.defaultCheckedKeys,e.data],([e,n])=>{!e?.length||!n?.length||(0,t.nextTick)(()=>{if(!a.value)return;let t=n.filter(t=>e.includes(t.id));a.value.clearSelection(),t.forEach(e=>a.value?.toggleRowSelection(e,!0))})},{immediate:!0});function l(n,i){e.pagination.page=n||e.pagination.page,e.pagination.pageSize=i||e.pagination.pageSize,r(`pagination`,(0,t.toValue)(e.pagination))}function u(t,n,r){e.data[t]&&(e.data[t]={...e.data[t],[n]:r})}return(n,r)=>{let d=(0,t.resolveComponent)(`el-table-column`),f=(0,t.resolveComponent)(`el-table`),p=(0,t.resolveComponent)(`el-pagination`),m=(0,t.resolveDirective)(`loading`);return(0,t.openBlock)(),(0,t.createElementBlock)(`div`,null,[(0,t.withDirectives)(((0,t.openBlock)(),(0,t.createBlock)(f,(0,t.mergeProps)({border:e.border},n.$attrs,{data:e.data,lazy:!0,class:`ui-table`,fit:``,ref_key:`tableRef`,ref:a}),{default:(0,t.withCtx)(()=>[s.value?((0,t.openBlock)(),(0,t.createBlock)(d,{key:0,type:`selection`,selectable:i.selectable,"column-key":`selection_0`,align:e.align,fixed:`left`},null,8,[`selectable`,`align`])):(0,t.createCommentVNode)(``,!0),o.value?((0,t.openBlock)(),(0,t.createBlock)(d,{key:1,fixed:`left`,type:`index`,label:`序号`,width:`60`,"column-key":`index_1`,align:e.align},null,8,[`align`])):(0,t.createCommentVNode)(``,!0),((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(c.value,(n,r)=>((0,t.openBlock)(),(0,t.createBlock)(me,{key:r+`column_`+n?.prop?.toString(),column:n,data:e.data,align:e.align,"onUpdate:data":u,size:e.size},null,8,[`column`,`data`,`align`,`size`]))),128))]),_:1},16,[`border`,`data`])),[[m,e.loading]]),e.hidePagination?(0,t.createCommentVNode)(``,!0):((0,t.openBlock)(),(0,t.createBlock)(p,{key:0,class:`ui-pagination`,size:`small`,background:``,layout:`total, sizes, prev, pager, next, jumper`,"page-sizes":e.pagination?.pageSizes||[10,20,50],"page-size":e.pagination.pageSize,"onUpdate:pageSize":r[0]||=t=>e.pagination.pageSize=t,"current-page":e.pagination.page,"onUpdate:currentPage":r[1]||=t=>e.pagination.page=t,total:e.pagination.total,"onUpdate:total":r[2]||=t=>e.pagination.total=t,onChange:l},null,8,[`page-sizes`,`page-size`,`current-page`,`total`])),(0,t.renderSlot)(n.$slots,`default`,{},void 0,!0)])}}}),[[`__scopeId`,`data-v-f401a9a8`]]),Z=(0,t.defineComponent)({__name:`Series`,props:{option:{},height:{}},setup(e){let n=e,r=(0,t.ref)(null),a=(0,t.ref)(null);(0,t.onMounted)(()=>{r.value&&(a.value=(0,i.init)(r.value),o())}),(0,t.onBeforeUnmount)(()=>{a.value&&a.value.dispose()}),(0,t.watch)(()=>n.option,e=>{e&&o()},{deep:!0});function o(){a.value&&(!Array.isArray(n?.option.series)||!n?.option?.series?.length||a.value.setOption(n.option))}return(e,i)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,(0,t.mergeProps)(e.$attrs,{style:{width:`100%`,height:n.height||`100%`,minHeight:n.height||`260px`},ref_key:`chartRef`,ref:r}),null,16))}}),Q=(0,t.defineComponent)({__name:`Pie`,props:{data:{},option:{},title:{},horizontal:{type:Boolean},height:{}},setup(e){let n=e,r=(0,t.computed)(()=>{let e=n?.option||{},t=Array.isArray(n?.option?.series)?n.option.series.filter(e=>e&&typeof e==`object`&&`type`in e&&e.type===`pie`):[],r=t[0]||{},i=e?.legend?.orient;return{title:{text:n?.title||``,left:`left`},tooltip:{trigger:`item`},legend:e?.legend??(n?.horizontal?{orient:`vertical`,top:`center`,right:`10%`,data:n?.data?.map(e=>e.name),formatter:e=>{let t=n?.data?.find(t=>t.name===e);return`${e} ${t?t.value:0}`}}:{top:`5%`,left:`center`}),series:t.length>0?t:[{name:r?.name||`xx饼图`,type:`pie`,radius:[`40%`,`70%`],center:n?.horizontal||i===`vertical`?[`30%`,`50%`]:[`50%`,`50%`],avoidLabelOverlap:!1,itemStyle:{borderRadius:10},label:{show:!1,position:`center`},emphasis:{label:{show:!0,fontSize:40,fontWeight:`bold`}},labelLine:{show:!1},data:n.data||[]}]}});return(n,i)=>((0,t.openBlock)(),(0,t.createBlock)(Z,(0,t.mergeProps)({option:r.value,height:e.height},n.$attrs),null,16,[`option`,`height`]))}}),$=(0,t.defineComponent)({__name:`Bar`,props:{data:{},option:{},title:{}},setup(e){let n=e,r=(0,t.computed)(()=>{let e=n?.option||{};return{title:{text:n?.title||``,left:`left`},tooltip:{trigger:`axis`},legend:{top:`5%`,left:`center`,...e?.legend||{}},xAxis:{type:`category`,data:n.data.map(e=>e.name)},yAxis:{type:`value`},series:n?.option?.series||n.data?.map(e=>({name:e?.name||`xx柱状图`,type:`bar`,data:e.value,barWidth:`20%`}))}});return(e,n)=>((0,t.openBlock)(),(0,t.createBlock)(Z,{option:r.value},null,8,[`option`]))}}),he={UiCard:c,UiTable:X,UiFilter:T,UiForm:O,UiEditor:A,UiTree:j,UiInfiniteScroll:L,UiDescriptions:B,UiDialog:H,UiPie:Q,UiSeries:Z,UiBar:$};e.UiBar=$,e.UiCard=c,e.UiDescriptions=B,e.UiDialog=H,e.UiEditor=A,e.UiFilter=T,e.UiForm=O,e.UiInfiniteScroll=L,e.UiPie=Q,e.UiSeries=Z,e.UiTable=X,e.UiTree=j,e.default={install(e){for(let[t,n]of Object.entries(he))e.component(t,n)}}});
|
|
1
|
+
(function(e,t){typeof exports==`object`&&typeof module<`u`?t(exports,require(`vue`),require(`element-plus`),require(`aieditor`),require(`echarts`)):typeof define==`function`&&define.amd?define([`exports`,`vue`,`element-plus`,`aieditor`,`echarts`],t):(e=typeof globalThis<`u`?globalThis:e||self,t(e.VepUi={},e.Vue,e.ElementPlus,e.AiEditor,e.echarts))})(this,function(e,t,n,r,i){Object.defineProperties(e,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});var a={class:(0,t.normalizeClass)({bodyClass:!0})},o=(0,t.defineComponent)({__name:`index`,props:{title:{},bodyClass:{},hideBorder:{type:Boolean},icon:{}},setup(e){let n=(0,t.computed)(()=>({display:`flex`,alignItems:`center`,gap:`4px`,borderBottom:e.hideBorder?`1px solid #e5e7eb`:`none`}));return(r,i)=>{let o=(0,t.resolveComponent)(`el-icon`),s=(0,t.resolveComponent)(`el-card`);return(0,t.openBlock)(),(0,t.createBlock)(s,(0,t.mergeProps)(r.$attrs,{class:{"ui-card":!0,hideBorder:e.hideBorder}}),(0,t.createSlots)({default:(0,t.withCtx)(()=>[(0,t.createElementVNode)(`div`,a,[(0,t.renderSlot)(r.$slots,`default`,{},void 0,!0)])]),_:2},[e.title&&e.title?.length>0?{name:`header`,fn:(0,t.withCtx)(()=>[(0,t.createElementVNode)(`div`,{style:(0,t.normalizeStyle)(n.value)},[e.icon?((0,t.openBlock)(),(0,t.createBlock)(o,{key:0},{default:(0,t.withCtx)(()=>[((0,t.openBlock)(),(0,t.createBlock)((0,t.resolveDynamicComponent)(e.icon),{color:`#2563eb`}))]),_:1})):(0,t.createCommentVNode)(``,!0),i[0]||((0,t.setBlockTracking)(-1,!0),(i[0]=(0,t.createElementVNode)(`h4`,null,[(0,t.createTextVNode)((0,t.toDisplayString)(e.title),1)])).cacheIndex=0,(0,t.setBlockTracking)(1),i[0])],4)]),key:`0`}:void 0]),1040,[`class`])}}}),s=(e,t)=>{let n=e.__vccOpts||e;for(let[e,r]of t)n[e]=r;return n},c=s(o,[[`__scopeId`,`data-v-ae248017`]]),l=(0,t.defineComponent)({name:`ArrowRight`,__name:`arrow-right`,setup(e){return(e,n)=>((0,t.openBlock)(),(0,t.createElementBlock)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 1024 1024`},[(0,t.createElementVNode)(`path`,{fill:`currentColor`,d:`M340.864 149.312a30.59 30.59 0 0 0 0 42.752L652.736 512 340.864 831.872a30.59 30.59 0 0 0 0 42.752 29.12 29.12 0 0 0 41.728 0L714.24 534.336a32 32 0 0 0 0-44.672L382.592 149.376a29.12 29.12 0 0 0-41.728 0z`})]))}}),u=(0,t.defineComponent)({name:`ArrowUp`,__name:`arrow-up`,setup(e){return(e,n)=>((0,t.openBlock)(),(0,t.createElementBlock)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 1024 1024`},[(0,t.createElementVNode)(`path`,{fill:`currentColor`,d:`m488.832 344.32-339.84 356.672a32 32 0 0 0 0 44.16l.384.384a29.44 29.44 0 0 0 42.688 0l320-335.872 319.872 335.872a29.44 29.44 0 0 0 42.688 0l.384-.384a32 32 0 0 0 0-44.16L535.168 344.32a32 32 0 0 0-46.336 0`})]))}}),d=(0,t.defineComponent)({name:`CirclePlus`,__name:`circle-plus`,setup(e){return(e,n)=>((0,t.openBlock)(),(0,t.createElementBlock)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 1024 1024`},[(0,t.createElementVNode)(`path`,{fill:`currentColor`,d:`M352 480h320a32 32 0 1 1 0 64H352a32 32 0 0 1 0-64`}),(0,t.createElementVNode)(`path`,{fill:`currentColor`,d:`M480 672V352a32 32 0 1 1 64 0v320a32 32 0 0 1-64 0`}),(0,t.createElementVNode)(`path`,{fill:`currentColor`,d:`M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896`})]))}}),f=(0,t.defineComponent)({name:`Delete`,__name:`delete`,setup(e){return(e,n)=>((0,t.openBlock)(),(0,t.createElementBlock)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 1024 1024`},[(0,t.createElementVNode)(`path`,{fill:`currentColor`,d:`M160 256H96a32 32 0 0 1 0-64h256V95.936a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32V192h256a32 32 0 1 1 0 64h-64v672a32 32 0 0 1-32 32H192a32 32 0 0 1-32-32zm448-64v-64H416v64zM224 896h576V256H224zm192-128a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32m192 0a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32`})]))}}),p=(0,t.defineComponent)({name:`DocumentAdd`,__name:`document-add`,setup(e){return(e,n)=>((0,t.openBlock)(),(0,t.createElementBlock)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 1024 1024`},[(0,t.createElementVNode)(`path`,{fill:`currentColor`,d:`M832 384H576V128H192v768h640zm-26.496-64L640 154.496V320zM160 64h480l256 256v608a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32m320 512V448h64v128h128v64H544v128h-64V640H352v-64z`})]))}}),m=(0,t.defineComponent)({name:`Edit`,__name:`edit`,setup(e){return(e,n)=>((0,t.openBlock)(),(0,t.createElementBlock)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 1024 1024`},[(0,t.createElementVNode)(`path`,{fill:`currentColor`,d:`M832 512a32 32 0 1 1 64 0v352a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h352a32 32 0 0 1 0 64H192v640h640z`}),(0,t.createElementVNode)(`path`,{fill:`currentColor`,d:`m469.952 554.24 52.8-7.552L847.104 222.4a32 32 0 1 0-45.248-45.248L477.44 501.44l-7.552 52.8zm422.4-422.4a96 96 0 0 1 0 135.808l-331.84 331.84a32 32 0 0 1-18.112 9.088L436.8 623.68a32 32 0 0 1-36.224-36.224l15.104-105.6a32 32 0 0 1 9.024-18.112l331.904-331.84a96 96 0 0 1 135.744 0z`})]))}}),h=(0,t.defineComponent)({name:`Folder`,__name:`folder`,setup(e){return(e,n)=>((0,t.openBlock)(),(0,t.createElementBlock)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 1024 1024`},[(0,t.createElementVNode)(`path`,{fill:`currentColor`,d:`M128 192v640h768V320H485.76L357.504 192zm-32-64h287.872l128.384 128H928a32 32 0 0 1 32 32v576a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32`})]))}}),g=(0,t.defineComponent)({name:`MoreFilled`,__name:`more-filled`,setup(e){return(e,n)=>((0,t.openBlock)(),(0,t.createElementBlock)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 1024 1024`},[(0,t.createElementVNode)(`path`,{fill:`currentColor`,d:`M176 416a112 112 0 1 1 0 224 112 112 0 0 1 0-224m336 0a112 112 0 1 1 0 224 112 112 0 0 1 0-224m336 0a112 112 0 1 1 0 224 112 112 0 0 1 0-224`})]))}}),_=(0,t.defineComponent)({name:`Promotion`,__name:`promotion`,setup(e){return(e,n)=>((0,t.openBlock)(),(0,t.createElementBlock)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 1024 1024`},[(0,t.createElementVNode)(`path`,{fill:`currentColor`,d:`m64 448 832-320-128 704-446.08-243.328L832 192 242.816 545.472zm256 512V657.024L512 768z`})]))}}),v=(0,t.defineComponent)({name:`Refresh`,__name:`refresh`,setup(e){return(e,n)=>((0,t.openBlock)(),(0,t.createElementBlock)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 1024 1024`},[(0,t.createElementVNode)(`path`,{fill:`currentColor`,d:`M771.776 794.88A384 384 0 0 1 128 512h64a320 320 0 0 0 555.712 216.448H654.72a32 32 0 1 1 0-64h149.056a32 32 0 0 1 32 32v148.928a32 32 0 1 1-64 0v-50.56zM276.288 295.616h92.992a32 32 0 0 1 0 64H220.16a32 32 0 0 1-32-32V178.56a32 32 0 0 1 64 0v50.56A384 384 0 0 1 896.128 512h-64a320 320 0 0 0-555.776-216.384z`})]))}}),y=(0,t.defineComponent)({name:`Search`,__name:`search`,setup(e){return(e,n)=>((0,t.openBlock)(),(0,t.createElementBlock)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 1024 1024`},[(0,t.createElementVNode)(`path`,{fill:`currentColor`,d:`m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704`})]))}});function b(e){return typeof e==`number`?e+`px`:e||`100px`}function x(e){return typeof e==`number`?e+`px`:e||`180px`}function S(e,t){let n={};return Object.keys(Y).forEach(r=>{let i=r;n[i]=(n={})=>({props:{prop:e.prop,...n,"onUpdate:modelValue":n=>t[e.prop]=n,onChange:r=>n.onChange?.(r)||(t[e.prop]=r)},type:i,component:Y[i]})}),(n=>typeof e.render==`function`?e.render({h:n,data:t}):n.input(n.props||{}))(n)}function C(e,t){let n=S(e,t);return typeof n==`object`&&(n.component||=n),n}var w={class:`flex flex-row justify-end items-center w-full`},T=s((0,t.defineComponent)({name:`UiDefaultFilter`,__name:`index`,props:{type:{},size:{default:`default`},fields:{},expandNum:{},valueWidth:{default:`100%`},labelWidth:{default:`100px`},omitFields:{default:()=>[]},rules:{},required:{type:Boolean},column:{default:4},filterFixedValues:{default:()=>({page:1})}},emits:[`submit`,`reset`,`search`],setup(e,{emit:n}){let r=n,i=(0,t.createPropsRestProxy)(e,[`fields`,`labelWidth`,`valueWidth`,`omitFields`,`column`,`size`,`filterFixedValues`]),a=(0,t.reactive)({expandNum:0,expand:!1}),o=(0,t.reactive)({}),s=(0,t.computed)(()=>e.fields.slice(0,a.expand?e.fields.length:a.expandNum)),c=(0,t.computed)(()=>24-s.value?.reduce((t,n)=>t+(n.span||24/e.column),0)%24-24/e.column);(0,t.onMounted)(()=>{a.expandNum=i?.expandNum??2*e.column-1,e.fields.forEach(e=>{let t=S(e,o)?.props?.defaultValue;t!==void 0&&(o[e.prop]=t)})});function d(){let n={};Object.keys(o).forEach(e=>{if(o[e]!==void 0){let r=(0,t.toValue)(o[e]);n[e]=typeof r==`string`?r.trim():r}}),r(`submit`,{...n,...e.filterFixedValues}),r(`search`,{...n,...e.filterFixedValues})}function f(){Object.keys(o).forEach(t=>{e.omitFields.includes(t)||(o[t]=void 0)}),r(`reset`,o)}return(n,r)=>{let i=(0,t.resolveComponent)(`el-input`),p=(0,t.resolveComponent)(`el-form-item`),m=(0,t.resolveComponent)(`el-col`),h=(0,t.resolveComponent)(`el-button`),g=(0,t.resolveComponent)(`el-row`),_=(0,t.resolveComponent)(`el-form`);return(0,t.openBlock)(),(0,t.createBlock)(_,(0,t.mergeProps)({model:o,class:`w-full ui-filter`,size:e.size},n.$attrs),{default:(0,t.withCtx)(()=>[(0,t.createVNode)(g,{gutter:20,class:`mb-[-15px]`},{default:(0,t.withCtx)(()=>[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(s.value,n=>((0,t.openBlock)(),(0,t.createBlock)(m,{span:n.span||24/e.column},{default:(0,t.withCtx)(()=>[((0,t.openBlock)(),(0,t.createBlock)(p,{key:n.prop,label:n.label,"label-width":(0,t.unref)(b)(n?.labelWidth||e.labelWidth),"value-width":(0,t.unref)(x)(n?.valueWidth||e.valueWidth)},{default:(0,t.withCtx)(()=>[n.render?((0,t.openBlock)(),(0,t.createBlock)((0,t.resolveDynamicComponent)((0,t.unref)(S)(n,o).component),(0,t.mergeProps)({key:0,modelValue:o[n.prop],"onUpdate:modelValue":e=>o[n.prop]=e},{ref_for:!0},(0,t.unref)(S)(n,o).props,{clearable:!0,style:{width:(0,t.unref)(x)(n?.valueWidth||e.valueWidth)}}),null,16,[`modelValue`,`onUpdate:modelValue`,`style`])):((0,t.openBlock)(),(0,t.createBlock)(i,{key:1,modelValue:o[n.prop],"onUpdate:modelValue":e=>o[n.prop]=e,placeholder:`请输入`,clearable:!0,style:(0,t.normalizeStyle)({width:(0,t.unref)(x)(n?.valueWidth||e.valueWidth)})},null,8,[`modelValue`,`onUpdate:modelValue`,`style`]))]),_:2},1032,[`label`,`label-width`,`value-width`]))]),_:2},1032,[`span`]))),256)),(0,t.createVNode)(m,{span:24/e.column,offset:c.value},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(p,{label:``,"label-width":`30px`},{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)(`div`,w,[(0,t.renderSlot)(n.$slots,`left`,{form:o},void 0,!0),e.fields.length>=2*e.column?((0,t.openBlock)(),(0,t.createBlock)(h,{key:0,text:``,icon:a.expand?(0,t.unref)(u):(0,t.unref)(l),onClick:r[0]||=e=>a.expand=!a.expand},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(a.expand?`收起`:`展开`),1)]),_:1},8,[`icon`])):(0,t.createCommentVNode)(``,!0),(0,t.createVNode)(h,{icon:(0,t.unref)(y),type:`primary`,onClick:d},{default:(0,t.withCtx)(()=>[...r[1]||=[(0,t.createTextVNode)(`查询`,-1)]]),_:1},8,[`icon`]),(0,t.createVNode)(h,{icon:(0,t.unref)(v),onClick:f},{default:(0,t.withCtx)(()=>[...r[2]||=[(0,t.createTextVNode)(`重置`,-1)]]),_:1},8,[`icon`]),(0,t.renderSlot)(n.$slots,`handle`,{form:o},void 0,!0),(0,t.renderSlot)(n.$slots,`right`,{form:o},void 0,!0)])]),_:3})]),_:3},8,[`span`,`offset`])]),_:3})]),_:3},16,[`model`,`size`])}}}),[[`__scopeId`,`data-v-592774c8`]]),E={key:0,style:{display:`inline-block`}},D={key:0,style:{display:`inline-block`}},ee={key:0,class:`ui-form-buttons`},O=s((0,t.defineComponent)({__name:`index`,props:{fields:{},expandNum:{},valueWidth:{default:`auto`},labelWidth:{default:`100px`},labelPosition:{default:`top`},omitFields:{default:()=>[]},rules:{default:()=>(0,t.reactive)({})},required:{type:Boolean},column:{default:24},defaultValues:{},form:{},valueModel:{default:`default`},size:{}},emits:[`submit`,`reset`],setup(e,{expose:n,emit:r}){(0,t.useCssVars)(e=>({ec46e5ec:e.column/2}));let i=r,a=(0,t.createPropsRestProxy)(e,[`fields`,`labelWidth`,`valueWidth`,`omitFields`,`rules`,`labelPosition`,`valueModel`,`column`]),o=(0,t.ref)(0),s=(0,t.ref)(),c=(0,t.reactive)({}),l=(0,t.computed)(()=>{let n=(0,t.toValue)(c);return e.fields.forEach(e=>{let t=e.prop?n?.[e.prop]:void 0,r=C(e,c)?.props?.defaultValue;c[e.prop]=t??r??void 0,e?.slots&&e?.slots?.length>0&&e.slots.forEach(e=>{let t=e.prop?n?.[e.prop]:void 0,r=C(e,c)?.props?.defaultValue;c[e.prop]=t??r??void 0})}),e.fields.filter(e=>typeof e.prop==`string`)}),u=(0,t.computed)(()=>{if(e.rules&&Object.keys(e.rules).length)return e.rules;let t={};return l.value.forEach(e=>{e.rules&&Object.keys(e.rules).length?t[e.prop]=e.rules:e.required&&(t[e.prop]=[{required:!0,message:`请输入`+e.label,trigger:`change`}])}),t});(0,t.watchEffect)(()=>{Object.assign(c,a?.form)});async function d(e){let n=!0;if(await e.validate(e=>{n=e}),!n)return;let r={};Object.keys(c).forEach(e=>{c[e]!==void 0&&(r[e]=(0,t.toValue)(c[e]))}),i(`submit`,r)}function f(){s&&s.value?.clearValidate()}function p(){Object.keys(c).forEach(t=>{e.omitFields.includes(t)||(c[t]=void 0)}),o.value+=1,i(`reset`,c)}function m(){return c}function h(e){Object.keys(e).forEach(t=>{c[t]=e[t]})}async function g(){return new Promise(e=>{s.value?.validate((t,n)=>e(n))})}return n({getValues:m,setValues:h,clearValidate:f,onSubmit:d,validate:g}),(n,r)=>{let i=(0,t.resolveComponent)(`el-input`),a=(0,t.resolveComponent)(`el-form-item`),f=(0,t.resolveComponent)(`el-form`),m=(0,t.resolveComponent)(`el-button`);return(0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,null,[(0,t.createVNode)(f,(0,t.mergeProps)({ref_key:`uiFormRef`,ref:s,model:c},n.$attrs,{rules:u.value,inline:e.labelPosition!==`top`,"label-position":e.labelPosition,class:{"ui-form":!0,horizontal:e.labelPosition!==`top`},"validate-on-rule-change":!1}),{default:(0,t.withCtx)(()=>[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(l.value,r=>((0,t.openBlock)(),(0,t.createBlock)(a,{key:r.prop,label:r.label,"label-width":e.labelWidth,"value-width":e.valueWidth,prop:r.prop,style:(0,t.normalizeStyle)({width:`${r?.width?r?.width+`px`:`100%`}`,gridColumn:`span ${(r?.span||e.column)/2||1}`})},{default:(0,t.withCtx)(()=>[r.render?((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:0},[(0,t.unref)(C)(r,c).component?((0,t.openBlock)(),(0,t.createBlock)((0,t.resolveDynamicComponent)((0,t.unref)(C)(r,c).component),(0,t.mergeProps)({key:1,modelValue:c[r.prop],"onUpdate:modelValue":e=>c[r.prop]=e},{ref_for:!0},(0,t.unref)(C)(r,c).props,{clearable:!0,key:`${r.prop}-${o.value}`,style:{display:`inline-block`},class:{underline:e.valueModel===`underline`}}),null,16,[`modelValue`,`onUpdate:modelValue`,`class`])):((0,t.openBlock)(),(0,t.createElementBlock)(`span`,E,(0,t.toDisplayString)((0,t.unref)(C)(r,c)||`-`),1)),((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(r.slots,r=>(0,t.renderSlot)(n.$slots,`default`,{form:c},()=>[(0,t.unref)(C)(r,c).component?((0,t.openBlock)(),(0,t.createBlock)((0,t.resolveDynamicComponent)((0,t.unref)(C)(r,c).component),(0,t.mergeProps)({key:1,modelValue:c[r.prop],"onUpdate:modelValue":e=>c[r.prop]=e,"default-value":r.defaultValue,placeholder:r.placeholder},{ref_for:!0},(0,t.unref)(C)(r,c).props,{style:{display:`inline-block`,marginLeft:`10px`,width:`${r.width?r.width+`px`:`100%`}`},class:{underline:e.valueModel===`underline`},clearable:!0,key:`${r.prop}-${o.value}`}),null,16,[`modelValue`,`onUpdate:modelValue`,`default-value`,`placeholder`,`style`,`class`])):((0,t.openBlock)(),(0,t.createElementBlock)(`span`,D,(0,t.toDisplayString)((0,t.unref)(C)(r,c)||`-`),1))],!0)),256))],64)):((0,t.openBlock)(),(0,t.createBlock)(i,{key:1,modelValue:c[r.prop],"onUpdate:modelValue":e=>c[r.prop]=e,placeholder:`请输入`,clearable:!0,class:(0,t.normalizeClass)({underline:e.valueModel===`underline`})},null,8,[`modelValue`,`onUpdate:modelValue`,`class`]))]),_:2},1032,[`label`,`label-width`,`value-width`,`prop`,`style`]))),128))]),_:3},16,[`model`,`rules`,`inline`,`label-position`,`class`]),n.$attrs?.hideHandle?(0,t.createCommentVNode)(``,!0):((0,t.openBlock)(),(0,t.createElementBlock)(`div`,ee,[(0,t.renderSlot)(n.$slots,`handle`,{form:c},void 0,!0),(0,t.createVNode)(m,{icon:(0,t.unref)(v),onClick:r[0]||=e=>s.value&&p(),size:n.$props.size},{default:(0,t.withCtx)(()=>[...r[2]||=[(0,t.createTextVNode)(`重置`,-1)]]),_:1},8,[`icon`,`size`]),(0,t.createVNode)(m,{icon:(0,t.unref)(_),type:`primary`,onClick:r[1]||=e=>s.value&&d(s.value),size:n.$props.size},{default:(0,t.withCtx)(()=>[...r[3]||=[(0,t.createTextVNode)(`提交`,-1)]]),_:1},8,[`icon`,`size`])]))],64)}}}),[[`__scopeId`,`data-v-f8f2a1f5`]]),k=[`disabled`],A=(0,t.defineComponent)({__name:`index`,props:(0,t.mergeModels)({defaultValue:{default:``},disabled:{type:Boolean,default:!1}},{modelValue:{type:String,default:``},modelModifiers:{}}),emits:(0,t.mergeModels)([`change`],[`update:modelValue`]),setup(e,{emit:n}){let i=(0,t.ref)(),a=(0,t.useModel)(e,`modelValue`),o=(0,t.ref)(a.value||e.defaultValue||``),s=null,c=n;return(0,t.onMounted)(()=>{s=new r.AiEditor({element:i.value,placeholder:`点击输入内容...`,content:a.value||e.defaultValue||``,toolbarExcludeKeys:[`ai`],onChange:e=>{let t=e.getHtml();a.value=t,o.value=t,c(`change`,t)}}),s.setEditable(!e.disabled)}),(0,t.watch)(a,e=>{s&&e!==s.getHtml()&&s.setContent(e)}),(0,t.onUnmounted)(()=>{s&&s.destroy()}),(n,r)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{ref_key:`editorRef`,ref:i,style:{height:`500px`},disabled:e.disabled},null,8,k))}}),te={class:`ui-tree-wrapper`},ne={key:0,style:{display:`flex`,"flex-direction":`row`,"justify-content":`space-between`,"align-items":`center`,gap:`10px`}},re={class:`custom-tree-node`},ie={class:`node-label flex items-center gap-1`},ae={class:`text-red-500 flex items-center`},j=s((0,t.defineComponent)({__name:`index`,props:{id:{},data:{default:()=>[]},filterable:{type:Boolean},placeholder:{},hidePlusHandle:{type:Boolean},hideNodeAdd:{type:Boolean},hideNodeEdit:{type:Boolean},hideNodeDel:{type:Boolean},hideNodeHandle:{type:Boolean},nodeKey:{},props:{default:()=>({label:`label`})}},emits:[`change`],setup(e,{emit:r}){let i=(0,t.createPropsRestProxy)(e,[`filterable`,`placeholder`,`data`,`props`]),a=(0,t.ref)(``),o=(0,t.ref)(),s=(0,t.ref)(null);(0,t.watch)(a,t=>{e.filterable&&s.value.filter(t)});function c(t,n){return t?n?.[e.props?.label||`label`]?.includes(t)??!1:!0}function l(e,t){e?.stopPropagation(),o.value=t.id}function u(){n.ElMessageBox.prompt(`请输入新的名称`,`添加节点`,{confirmButtonText:`确定`,cancelButtonText:`取消`,callback:async e=>{if(e.action===`confirm`){if(!i?.id)return;console.log(`添加 =》》`,e?.value)}}})}function _(e){n.ElMessageBox.prompt(`请输入新的名称`,`重命名`,{confirmButtonText:`确定`,cancelButtonText:`取消`,inputValue:e.label}).then(async({value:e})=>{console.log(`修改节点 =》》`,e)})}async function v(e){e.id&&console.log(`删除节点 =》》`,e.id)}return(n,r)=>{let o=(0,t.resolveComponent)(`el-input`),y=(0,t.resolveComponent)(`el-icon`),b=(0,t.resolveComponent)(`el-button`),x=(0,t.resolveComponent)(`el-dropdown-item`),S=(0,t.resolveComponent)(`el-dropdown-menu`),C=(0,t.resolveComponent)(`el-dropdown`),w=(0,t.resolveComponent)(`el-tree-v2`);return(0,t.openBlock)(),(0,t.createElementBlock)(`div`,te,[e.filterable?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,ne,[(0,t.createVNode)(o,{modelValue:a.value,"onUpdate:modelValue":r[0]||=e=>a.value=e,placeholder:e.placeholder??`请输入`,clearable:``},null,8,[`modelValue`,`placeholder`]),i?.hidePlusHandle?(0,t.createCommentVNode)(``,!0):((0,t.openBlock)(),(0,t.createBlock)(b,{key:0,style:{margin:`0px`,padding:`0px`},link:``},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(y,{size:22},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(d),{onClick:r[1]||=e=>u()})]),_:1})]),_:1}))])):(0,t.createCommentVNode)(``,!0),(0,t.renderSlot)(n.$slots,`handle`,{style:`margin-top: 8px`},void 0,!0),(0,t.createVNode)(w,(0,t.mergeProps)({ref_key:`treeRef`,ref:s,style:{"margin-top":`8px`}},{...n.$props,...n.$attrs},{"node-key":i?.nodeKey||`id`,"highlight-current":!0,"filter-method":c}),{default:(0,t.withCtx)(({data:a})=>[(0,t.createElementVNode)(`div`,re,[(0,t.createElementVNode)(`div`,ie,[a?.children?.length?((0,t.openBlock)(),(0,t.createBlock)(y,{key:0},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(h))]),_:1})):(0,t.createCommentVNode)(``,!0),(0,t.createTextVNode)(` `+(0,t.toDisplayString)(a?.[e.props?.label||`label`])+` `+(0,t.toDisplayString)(a?.children?.length?`(${a.children.length})`:``),1)]),i.hideNodeHandle?(0,t.createCommentVNode)(``,!0):((0,t.openBlock)(),(0,t.createBlock)(C,{key:0,trigger:`click`},{dropdown:(0,t.withCtx)(()=>[(0,t.createVNode)(S,null,{default:(0,t.withCtx)(()=>[i?.hideNodeAdd?(0,t.createCommentVNode)(``,!0):((0,t.openBlock)(),(0,t.createBlock)(x,{key:0,onClick:r[2]||=e=>u()},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(y,null,{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(p))]),_:1}),r[3]||=(0,t.createTextVNode)(`添加 `,-1)]),_:1})),i?.hideNodeEdit?(0,t.createCommentVNode)(``,!0):((0,t.openBlock)(),(0,t.createBlock)(x,{key:1,onClick:e=>_(a)},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(y,null,{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(m))]),_:1}),r[4]||=(0,t.createTextVNode)(`编辑 `,-1)]),_:1},8,[`onClick`])),i?.hideNodeDel?(0,t.createCommentVNode)(``,!0):((0,t.openBlock)(),(0,t.createBlock)(x,{key:2,onClick:e=>v(a)},{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)(`span`,ae,[(0,t.createVNode)(y,null,{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(f))]),_:1}),r[5]||=(0,t.createTextVNode)(`删除 `,-1)])]),_:1},8,[`onClick`])),(0,t.renderSlot)(n.$slots,`node-handle`,{data:a},void 0,!0)]),_:2},1024)]),default:(0,t.withCtx)(()=>[(0,t.createVNode)(y,{onClick:e=>l(e,a)},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(g))]),_:1},8,[`onClick`])]),_:2},1024))])]),_:3},16,[`node-key`])])}}}),[[`__scopeId`,`data-v-a155afd8`]]),M={style:{height:`100%`}},N={style:{display:`flex`,"flex-direction":`row`,"justify-content":`space-between`,"align-items":`center`,gap:`10px`}},P={style:{margin:`10px 0px`}},F=[`onClick`],I={key:0},L=s((0,t.defineComponent)({__name:`index`,props:{loading:{default:()=>(0,t.ref)(!1)},data:{},placeholder:{},props:{},vInfiniteScroll:{type:Function},filterable:{type:Boolean}},emits:[`node-click`],setup(e,{emit:n}){let r=n,i=(0,t.ref)(``),a=(0,t.ref)(),o=(0,t.computed)(()=>i.value?e.data.filter(t=>t[e.props?.label||`label`]?.includes(i.value)):e.data);(0,t.watch)(()=>[a.value,e.data?.[0]],t=>{!t[0]&&t[1]&&(a.value=e.data?.[0])},{immediate:!0});function s(e){a.value=e,r(`node-click`,e)}return(n,r)=>{let c=(0,t.resolveComponent)(`el-input`);return(0,t.openBlock)(),(0,t.createElementBlock)(`div`,M,[(0,t.createElementVNode)(`div`,N,[e.filterable?((0,t.openBlock)(),(0,t.createBlock)(c,{key:0,modelValue:i.value,"onUpdate:modelValue":r[0]||=e=>i.value=e,placeholder:e.placeholder??`请输入`},null,8,[`modelValue`,`placeholder`])):(0,t.createCommentVNode)(``,!0),(0,t.renderSlot)(n.$slots,`plus`,{},void 0,!0)]),(0,t.createElementVNode)(`div`,P,[(0,t.renderSlot)(n.$slots,`handle`,{},void 0,!0)]),(0,t.withDirectives)(((0,t.openBlock)(),(0,t.createElementBlock)(`ul`,(0,t.mergeProps)({class:`infinite-list`,"infinite-scroll-immediate":!1},n.$attrs),[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(o.value,(r,i)=>((0,t.openBlock)(),(0,t.createElementBlock)(`li`,{key:`infinite-list-`+i,class:(0,t.normalizeClass)({"infinite-list-item":!0,active:r===a.value}),onClick:e=>s(r)},[(0,t.createElementVNode)(`span`,null,(0,t.toDisplayString)(r[e.props?.label||`label`]),1),(0,t.renderSlot)(n.$slots,`itemHandle`,{data:r},void 0,!0)],10,F))),128))],16)),[[(0,t.unref)(e.vInfiniteScroll),e.vInfiniteScroll]]),e.loading.value?((0,t.openBlock)(),(0,t.createElementBlock)(`p`,I,`loading...`)):(0,t.createCommentVNode)(``,!0)])}}}),[[`__scopeId`,`data-v-2180fa82`]]),R={key:0,style:{padding:`10px 0px`,"margin-bottom":`10px`,"border-bottom":`1px solid #e5e5e5`}},z={key:1},B=s((0,t.defineComponent)({__name:`index`,props:{data:{},fields:{default:()=>[]},column:{default:4},title:{default:``},border:{type:Boolean},direction:{},size:{},extra:{},labelWidth:{}},setup(e){let n=(0,t.createPropsRestProxy)(e,[`title`,`column`,`fields`,`data`]);return(r,i)=>{let a=(0,t.resolveComponent)(`el-descriptions-item`),o=(0,t.resolveComponent)(`el-descriptions`);return(0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,null,[e.title?((0,t.openBlock)(),(0,t.createElementBlock)(`h4`,R,(0,t.toDisplayString)(e.title),1)):(0,t.createCommentVNode)(``,!0),(0,t.renderSlot)(r.$slots,`title`,{},void 0,!0),(0,t.createVNode)(o,(0,t.mergeProps)({column:e.column},n,{class:`ui-descriptions`}),{default:(0,t.withCtx)(()=>[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.fields,n=>((0,t.openBlock)(),(0,t.createBlock)(a,{key:n.prop,label:n.label,span:n.span||2},{default:(0,t.withCtx)(()=>[n.render?((0,t.openBlock)(),(0,t.createBlock)((0,t.resolveDynamicComponent)((0,t.unref)(S)(n,e.data).component),(0,t.mergeProps)({key:0,modelValue:e.data[n.prop],"onUpdate:modelValue":t=>e.data[n.prop]=t},{ref_for:!0},(0,t.unref)(S)(n,e.data).props,{clearable:!0,key:n.prop,style:{display:`inline-block`}}),null,16,[`modelValue`,`onUpdate:modelValue`])):((0,t.openBlock)(),(0,t.createElementBlock)(`span`,z,(0,t.toDisplayString)(e.data[n.prop]||`-`),1))]),_:2},1032,[`label`,`span`]))),128))]),_:1},16,[`column`])],64)}}}),[[`__scopeId`,`data-v-f02c30f9`]]),V={key:0,class:`flex mt-3 justify-end`},H=(0,t.defineComponent)({__name:`index`,props:{visible:{type:Boolean},width:{},disabled:{type:Boolean},component:{},componentProps:{}},emits:[`update:visible`,`close`,`submit`],setup(e,{emit:n}){let r=n,i=e,a=(0,t.ref)();function o(){r(`close`),r(`update:visible`,!1)}function s(){r(`submit`,(0,t.toValue)(a?.value||{})),r(`update:visible`,!1)}return(e,n)=>{let r=(0,t.resolveComponent)(`el-button`),c=(0,t.resolveComponent)(`el-dialog`);return(0,t.openBlock)(),(0,t.createBlock)(c,(0,t.mergeProps)(e.$attrs,{"model-value":i.visible,"show-close":i.disabled,fullscreen:!i.width,"destroy-on-close":``,"lock-scroll":!1,"close-on-click-modal":!1,"onUpdate:modelValue":n[0]||=e=>!e&&o(),onClose:o}),{default:(0,t.withCtx)(()=>[((0,t.openBlock)(),(0,t.createBlock)((0,t.resolveDynamicComponent)(i.component),(0,t.mergeProps)({ref_key:`slotRef`,ref:a},i.componentProps),null,16)),i.disabled?(0,t.createCommentVNode)(``,!0):((0,t.openBlock)(),(0,t.createElementBlock)(`div`,V,[(0,t.createVNode)(r,{onClick:o},{default:(0,t.withCtx)(()=>[...n[1]||=[(0,t.createTextVNode)(`取消`,-1)]]),_:1}),(0,t.createVNode)(r,{type:`primary`,onClick:s},{default:(0,t.withCtx)(()=>[...n[2]||=[(0,t.createTextVNode)(`确定`,-1)]]),_:1})]))]),_:1},16,[`model-value`,`show-close`,`fullscreen`])}}});function U(e){return(0,t.h)(`template`,{style:{display:`flex`,flexDirection:`row`,flexWrap:`wrap`}},(Array.isArray(e)?e:[e]).map(e=>{let{text:r,...i}=e;return(0,t.h)(n.ElButton,{...i,link:!0,size:`small`,type:e.type||`default`},()=>r)}))}function W(e){return Array.isArray(e)?(0,t.h)(`div`,{style:{display:`flex`,gap:`8px`,flexDirection:`row`,flexWrap:`wrap`}},e.map(e=>(0,t.h)(n.ElLink,{...e,type:e.type||`primary`},(0,t.h)(n.ElText,{lineClamp:e?.lineClamp,type:e.type||`primary`},()=>e.prop)))):(0,t.h)(n.ElLink,{...e,type:e.type||`primary`},(0,t.h)(n.ElText,{lineClamp:e?.lineClamp,type:e.type||`primary`},()=>e.prop))}function G(e){return(0,t.h)(`div`,{style:{display:`flex`,gap:`4px`,flexDirection:`row`,flexWrap:`wrap`}},(Array.isArray(e.prop)?e.prop:[e.prop]).map(r=>(0,t.h)(n.ElTag,e,()=>r)))}function K(e){return(0,t.h)(n.ElTag,{...e})}function q(e){return(0,t.h)(n.ElSelect,{style:{minWidth:`160px`},...e,placeholder:`请选择`,filterable:!0})}function oe(e){let r=e?.type===`datetime`?`YYYY-MM-DD HH:mm:ss`:`YYYY-MM-DD`;return(0,t.h)(n.ElDatePicker,{format:r,valueFormat:r,startPlaceholder:`开始时间`,endPlaceholder:`结束时间`,...e,placeholder:`请选择`,"onUpdate:modelValue":t=>e?.onChange?.(t)})}function se(e){let{start:r=`00:00`,end:i=`23:30`,...a}=e;return(0,t.h)(n.ElTimeSelect,{start:r,end:i,...a,placeholder:`请选择`,filterable:!0})}function ce(e){return(0,t.h)(n.ElInput,{...e,placeholder:`请输入`})}function le(e){let{align:r=`left`,controlsPosition:i=`right`,...a}=e;return(0,t.h)(n.ElInputNumber,{align:r,style:{...e?.style||{},width:`100%`},controlsPosition:i,placeholder:`请输入`,...a})}function ue(e){let{rows:r=1,...i}=e;return(0,t.h)(n.ElInput,{placeholder:`请输入`,rows:r,...i,type:`textarea`})}function de(e){return(0,t.h)(n.ElInputTag,{placeholder:`请输入`,...e,clearable:!1})}function J(e){return(0,t.h)(A,e)}function fe(e){return(0,t.h)(n.ElRadioGroup,e)}function pe(e){return(0,t.h)(n.ElText,e,()=>e.prop)}var Y={button:U,link:W,tag:G,switch:K,select:q,datePicker:oe,timeSelect:se,input:ce,inputNumber:le,textarea:ue,inputTag:de,editor:J,radio:fe,text:pe},me=(0,t.defineComponent)({name:`UiColumn`,__name:`UiColumn`,props:{key:{},data:{},column:{},align:{},size:{}},emits:[`update:data`],setup(e,{emit:n}){let r=n,i=e;function a(e,n,i){let a={};Object.keys(Y).forEach(t=>{let o=t;a[o]=t=>{let a=Array.isArray(t)?t:{placeholder:`请输入`,filterable:!0,...t,prop:t?.prop||e[i.prop],modelValue:t?.prop||e[i.prop],onChange:t?.onChange||(e=>r(`update:data`,n,i.prop,e)),onInput:t?.onInput||(e=>r(`update:data`,n,i.prop,e))};return Y[o](a)}});let o=i.render?i.render({data:e,index:n,h:a,column:i}):null;return o?typeof o==`object`?o:(0,t.h)(`div`,{innerHTML:String(o)}):null}return(n,r)=>{let o=(0,t.resolveComponent)(`UiColumn`,!0),s=(0,t.resolveComponent)(`el-table-column`),c=(0,t.resolveComponent)(`el-text`);return e.column?.children&&e.column?.children?.length>0?((0,t.openBlock)(),(0,t.createBlock)(s,{key:0,label:e.column.label,align:i.align},{default:(0,t.withCtx)(()=>[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.column.children,e=>((0,t.openBlock)(),(0,t.createBlock)(o,(0,t.mergeProps)({column:e,data:i.data},{ref_for:!0},n.$attrs,{align:i.align}),null,16,[`column`,`data`,`align`]))),256))]),_:1},8,[`label`,`align`])):((0,t.openBlock)(),(0,t.createBlock)(s,{key:1,prop:String(e.column.prop),label:e.column.label,"column-key":String(e.column.prop),align:i.align,width:e.column.width,"show-overflow-tooltip":e.column.showOverflowTooltip},{default:(0,t.withCtx)(({row:n,$index:r})=>[e.column.render?((0,t.openBlock)(),(0,t.createBlock)((0,t.resolveDynamicComponent)(a(n,r,e.column)),{key:0,align:i.align,size:i.size},null,8,[`align`,`size`])):((0,t.openBlock)(),(0,t.createBlock)(c,{key:1,"line-clamp":e.column?.lineClamp||2},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(n[e.column.prop]),1)]),_:2},1032,[`line-clamp`]))]),_:1},8,[`prop`,`label`,`column-key`,`align`,`width`,`show-overflow-tooltip`]))}}}),X=s((0,t.defineComponent)({__name:`index`,props:{loading:{type:[Boolean,Object],default:!1},border:{type:Boolean,default:!1},size:{default:`default`},data:{default:()=>(0,t.reactive)([])},columns:{},align:{default:`left`},hidePagination:{type:Boolean,default:!1},pagination:{default:()=>(0,t.reactive)({page:1,pageSize:10,total:0,pageSizes:[10,20,50]})},currentChange:{type:Function},selectionChange:{type:Function},selectable:{type:Function},defaultCheckedKeys:{},rowKey:{}},emits:[`pagination`],setup(e,{emit:n}){let r=n,i=(0,t.createPropsRestProxy)(e,[`loading`,`border`,`align`,`hidePagination`,`pagination`,`data`,`size`]),a=(0,t.ref)(),o=(0,t.computed)(()=>(0,t.toValue)(i.columns)?.some(e=>e.type===`index`)),s=(0,t.computed)(()=>(0,t.toValue)(i.columns)?.some(e=>e.type===`selection`)),c=(0,t.computed)(()=>!i.columns||!i.columns.length?[]:i.columns.filter(e=>e.type!==`index`&&e.type!==`selection`));(0,t.watch)(()=>[i.defaultCheckedKeys,e.data],([e,n])=>{!e?.length||!n?.length||(0,t.nextTick)(()=>{if(!a.value)return;let t=n.filter(t=>e.includes(t.id));a.value.clearSelection(),t.forEach(e=>a.value?.toggleRowSelection(e,!0))})},{immediate:!0});function l(n,i){e.pagination.page=n||e.pagination.page,e.pagination.pageSize=i||e.pagination.pageSize,r(`pagination`,(0,t.toValue)(e.pagination))}function u(t,n,r){e.data[t]&&(e.data[t]={...e.data[t],[n]:r})}return(n,r)=>{let d=(0,t.resolveComponent)(`el-table-column`),f=(0,t.resolveComponent)(`el-table`),p=(0,t.resolveComponent)(`el-pagination`),m=(0,t.resolveDirective)(`loading`);return(0,t.openBlock)(),(0,t.createElementBlock)(`div`,null,[(0,t.withDirectives)(((0,t.openBlock)(),(0,t.createBlock)(f,(0,t.mergeProps)({border:e.border},n.$attrs,{data:e.data,lazy:!0,class:`ui-table`,fit:``,ref_key:`tableRef`,ref:a}),{default:(0,t.withCtx)(()=>[s.value?((0,t.openBlock)(),(0,t.createBlock)(d,{key:0,type:`selection`,selectable:i.selectable,"column-key":`selection_0`,align:e.align,fixed:`left`},null,8,[`selectable`,`align`])):(0,t.createCommentVNode)(``,!0),o.value?((0,t.openBlock)(),(0,t.createBlock)(d,{key:1,fixed:`left`,type:`index`,label:`序号`,width:`60`,"column-key":`index_1`,align:e.align},null,8,[`align`])):(0,t.createCommentVNode)(``,!0),((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(c.value,(n,r)=>((0,t.openBlock)(),(0,t.createBlock)(me,{key:r+`column_`+n?.prop?.toString(),column:n,data:e.data,align:e.align,"onUpdate:data":u,size:e.size},null,8,[`column`,`data`,`align`,`size`]))),128))]),_:1},16,[`border`,`data`])),[[m,e.loading]]),e.hidePagination?(0,t.createCommentVNode)(``,!0):((0,t.openBlock)(),(0,t.createBlock)(p,{key:0,class:`ui-pagination`,size:`small`,background:``,layout:`total, sizes, prev, pager, next, jumper`,"page-sizes":e.pagination?.pageSizes||[10,20,50],"page-size":e.pagination.pageSize,"onUpdate:pageSize":r[0]||=t=>e.pagination.pageSize=t,"current-page":e.pagination.page,"onUpdate:currentPage":r[1]||=t=>e.pagination.page=t,total:e.pagination.total,"onUpdate:total":r[2]||=t=>e.pagination.total=t,onChange:l},null,8,[`page-sizes`,`page-size`,`current-page`,`total`])),(0,t.renderSlot)(n.$slots,`default`,{},void 0,!0)])}}}),[[`__scopeId`,`data-v-3402edfe`]]),Z=(0,t.defineComponent)({__name:`Series`,props:{option:{},height:{}},setup(e){let n=e,r=(0,t.ref)(null),a=(0,t.ref)(null);(0,t.onMounted)(()=>{r.value&&(a.value=(0,i.init)(r.value),o())}),(0,t.onBeforeUnmount)(()=>{a.value&&a.value.dispose()}),(0,t.watch)(()=>n.option,e=>{e&&o()},{deep:!0});function o(){a.value&&(!Array.isArray(n?.option.series)||!n?.option?.series?.length||a.value.setOption(n.option))}return(e,i)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,(0,t.mergeProps)(e.$attrs,{style:{width:`100%`,height:n.height||`100%`,minHeight:n.height||`260px`},ref_key:`chartRef`,ref:r}),null,16))}}),Q=(0,t.defineComponent)({__name:`Pie`,props:{data:{},option:{},title:{},horizontal:{type:Boolean},height:{}},setup(e){let n=e,r=(0,t.computed)(()=>{let e=n?.option||{},t=Array.isArray(n?.option?.series)?n.option.series.filter(e=>e&&typeof e==`object`&&`type`in e&&e.type===`pie`):[],r=t[0]||{},i=e?.legend?.orient;return{title:{text:n?.title||``,left:`left`},tooltip:{trigger:`item`},legend:e?.legend??(n?.horizontal?{orient:`vertical`,top:`center`,right:`10%`,data:n?.data?.map(e=>e.name),formatter:e=>{let t=n?.data?.find(t=>t.name===e);return`${e} ${t?t.value:0}`}}:{top:`5%`,left:`center`}),series:t.length>0?t:[{name:r?.name||`xx饼图`,type:`pie`,radius:[`40%`,`70%`],center:n?.horizontal||i===`vertical`?[`30%`,`50%`]:[`50%`,`50%`],avoidLabelOverlap:!1,itemStyle:{borderRadius:10},label:{show:!1,position:`center`},emphasis:{label:{show:!0,fontSize:40,fontWeight:`bold`}},labelLine:{show:!1},data:n.data||[]}]}});return(n,i)=>((0,t.openBlock)(),(0,t.createBlock)(Z,(0,t.mergeProps)({option:r.value,height:e.height},n.$attrs),null,16,[`option`,`height`]))}}),$=(0,t.defineComponent)({__name:`Bar`,props:{data:{},option:{},title:{}},setup(e){let n=e,r=(0,t.computed)(()=>{let e=n?.option||{};return{title:{text:n?.title||``,left:`left`},tooltip:{trigger:`axis`},legend:{top:`5%`,left:`center`,...e?.legend||{}},xAxis:{type:`category`,data:n.data.map(e=>e.name)},yAxis:{type:`value`},series:n?.option?.series||n.data?.map(e=>({name:e?.name||`xx柱状图`,type:`bar`,data:e.value,barWidth:`20%`}))}});return(e,n)=>((0,t.openBlock)(),(0,t.createBlock)(Z,{option:r.value},null,8,[`option`]))}}),he={UiCard:c,UiTable:X,UiFilter:T,UiForm:O,UiEditor:A,UiTree:j,UiInfiniteScroll:L,UiDescriptions:B,UiDialog:H,UiPie:Q,UiSeries:Z,UiBar:$};e.UiBar=$,e.UiCard=c,e.UiDescriptions=B,e.UiDialog=H,e.UiEditor=A,e.UiFilter=T,e.UiForm=O,e.UiInfiniteScroll=L,e.UiPie=Q,e.UiSeries=Z,e.UiTable=X,e.UiTree=j,e.default={install(e){for(let[t,n]of Object.entries(he))e.component(t,n)}}});
|
package/dist/yc-vep-ui.css
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
.ui-card[data-v-ae248017] .el-card__header{border:0;padding:20px 0 0 20px}.hideBorder[data-v-ae248017]{box-shadow:none;border:0}.hideBorder[data-v-ae248017] .el-card__header{height:35px;padding:0;line-height:35px}.hideBorder[data-v-ae248017] .el-card__body{padding:15px 0}.ui-filter[data-v-592774c8] .el-form-item{margin-bottom:15px}.ui-filter[data-v-592774c8] .el-form-item__label{align-items:center;line-height:20px}.ui-form-buttons[data-v-f8f2a1f5]{justify-content:flex-start;align-items:center;display:flex}.ui-form[data-v-f8f2a1f5]{grid-template-columns:repeat(var(--ec46e5ec), minmax(0, 1fr));gap:0 40px;display:grid}.ui-form[data-v-f8f2a1f5] .el-form-item__label{color:#6b7280;margin-bottom:0;font-size:.8em;font-weight:700}.ui-form[data-v-f8f2a1f5] .el-form-item__content{flex-wrap:inherit;width:100%;display:flex}:is(.ui-form[data-v-f8f2a1f5] .el-form-item__content .el-input-number,.ui-form[data-v-f8f2a1f5] .el-form-item__content .el-input),:is(.ui-form[data-v-f8f2a1f5] .el-form-item__content .el-input-number,.ui-form[data-v-f8f2a1f5] .el-form-item__content .el-input) .el-input__wrapper{width:100%}.underline[data-v-f8f2a1f5] .el-input__wrapper,.underline[data-v-f8f2a1f5] .el-textarea__inner{box-shadow:0px 1px 0px var(--el-input-border-color,var(--el-border-color))}.horizontal[data-v-f8f2a1f5] .el-form-item{margin-bottom:10px}:root,:root .aie-theme-light{--aie-bg-color:#fff;--aie-border-color:#eee;--aie-text-color:#333;--aie-text-placeholder-color:#adb5bd;--aie-button-bg-color:#fafafa;--aie-button-border-color:#eee;--aie-button-hover-bg-color:#eee;--aie-button-hover-border-color:#ccc;--aie-input-bg-color:#fff;--aie-input-border-color:#e9e9e9;--aie-input-focus-bg-color:#fff;--aie-input-focus-border-color:#e9e9e9;--aie-popover-bg-color:#fff;--aie-popover-border-color:#e9e9e9;--aie-popover-title-color:#666;--aie-popover-selected-color:#eee;--aie-menus-text-color:var(--aie-text-color);--aie-menus-bg-color:#fff;--aie-menus-svg-color:#333;--aie-menus-item-hover-color:#eee;--aie-menus-divider-color:#eaeaea;--aie-menus-ai-bg-color:var(--aie-menus-svg-color);--aie-menus-ai-color:#fff;--aie-menus-tip-bg-color:#333;--aie-menus-tip-text-color:#eee;--aie-menus-table-cell-border-color:#ccc;--aie-menus-table-cell-border-active-color:#000;--aie-content-pre-bg-color:#f6f6f7;--aie-content-blockquote-bg-color:#f6f6f7;--aie-content-blockquote-border-color:#e3e3e3;--aie-content-blockquote-text-color:#888;--aie-content-container-info-color:#eff1f3;--aie-content-container-warning-color:#fcf5e4;--aie-content-container-danger-color:#ffe7ea;--aie-content-table-th-bg-color:#efefef;--aie-content-table-selected-bg-color:#c8c8ff4d;--aie-content-table-border-color:#ced4da;--aie-content-table-handler-color:#adf;--aie-content-scrollbar-track-piece:#f1f1f1;--aie-content-scrollbar-thumb:#c1c1c1;--aie-content-scrollbar-thumb-hover:#a9a9a9;--aie-content-scrollbar-thumb-active:#787878;--aie-content-link-a-color:blue;--aie-content-link-a-hover-color:red;--aie-content-link-a-visited-color:purple;--aie-content-link-a-active-color:green}:root .aie-theme-dark{--aie-text-color:#ccc;--aie-border-color:#333;--aie-text-placeholder-color:#777;--aie-bg-color:#1e2022;--aie-button-bg-color:#333;--aie-button-border-color:#606060;--aie-button-hover-bg-color:#606060;--aie-button-hover-border-color:#606060;--aie-input-bg-color:#505050;--aie-input-border-color:#666;--aie-input-focus-bg-color:#505050;--aie-input-focus-border-color:#999;--aie-popover-bg-color:#2a2a2b;--aie-popover-border-color:#505050;--aie-popover-title-color:#ccc;--aie-popover-selected-color:#505050;--aie-menus-text-color:var(--aie-text-color);--aie-menus-bg-color:#1a1b1e;--aie-menus-svg-color:#ccc;--aie-menus-item-hover-color:#505050;--aie-menus-divider-color:#2c2c2c;--aie-menus-ai-bg-color:var(--aie-menus-svg-color);--aie-menus-ai-color:#000;--aie-menus-tip-bg-color:#eee;--aie-menus-tip-text-color:#333;--aie-menus-table-cell-border-color:#888;--aie-menus-table-cell-border-active-color:#ccc;--aie-content-pre-bg-color:#282c34;--aie-content-blockquote-bg-color:#282c34;--aie-content-blockquote-border-color:#505050;--aie-content-blockquote-text-color:#888;--aie-content-container-info-color:#2a2c30;--aie-content-container-warning-color:#40361d;--aie-content-container-danger-color:#46222a;--aie-content-table-th-bg-color:#2c2c2c;--aie-content-table-selected-bg-color:#c8c8ff33;--aie-content-table-border-color:#353535;--aie-content-table-handler-color:#566a77;--aie-content-scrollbar-track-piece:#404040;--aie-content-scrollbar-thumb:#dddddd50;--aie-content-scrollbar-thumb-hover:#dddddd70;--aie-content-scrollbar-thumb-active:#dddddda0;--aie-content-link-a-color:#4ca3f5;--aie-content-link-a-hover-color:#ff4f4f;--aie-content-link-a-visited-color:#f0f;--aie-content-link-a-active-color:#0f0}.table-bubble-menu.colors-menu{padding-right:0;display:flex}.table-bubble-menu.colors-menu .currentColor{width:16px;height:16px}.table-bubble-menu.colors-menu .currentColor .colors-menu-icon{width:100%;height:calc(100% - 3px);display:flex}.table-bubble-menu.colors-menu .currentColor .colors-menu-icon svg{width:100%;height:100%}.table-bubble-menu.colors-menu .currentColor .colors-menu-status{background:#333;width:100%;height:3px}.table-bubble-menu.colors-menu .colors-menu #dropdown{display:flex}.table-bubble-menu.colors-menu .colors-menu-status{background:#333;width:100%;height:3px}.aie-container{border:1px solid;border-color:var(--aie-border-color);background:var(--aie-bg-color);flex-direction:column;height:100%;display:flex}.aie-container *,.aie-container :before,.aie-container :after{box-sizing:content-box}.aie-container .aie-translate-panel{margin-top:-5px}.aie-container .aie-translate-panel-body{border:1px solid;border-color:var(--aie-popover-border-color);background:var(--aie-popover-bg-color);border-radius:5px;flex-direction:column;width:fit-content;display:flex;overflow:hidden;box-shadow:0 0 7px #00000026}.aie-container .aie-translate-panel-body p{cursor:pointer;box-sizing:border-box;width:100%;height:40px;color:var(--aie-text-color);align-items:center;margin:0;padding:0 20px;font-family:Arial,Helvetica Neue,Helvetica,PingFang SC,Hiragino Sans GB,Microsoft YaHei,sans-serif;font-size:14px;font-weight:600;line-height:40px;text-decoration:none;display:flex}.aie-container .aie-translate-panel-body p:hover{background:var(--aie-menus-item-hover-color)}.aie-container .aie-translate-result-panel{border:1px solid;border-color:var(--aie-popover-border-color);background:var(--aie-popover-bg-color);border-radius:5px;width:fit-content;height:fit-content;overflow:hidden;box-shadow:0 0 7px #00000040}.aie-container .aie-translate-result-panel textarea{box-sizing:border-box;background:var(--aie-popover-bg-color);width:calc(100vw - 120px);max-width:500px;color:var(--aie-text-color);resize:none;border:none;max-height:300px;margin:10px 10px 0;padding:5px;font-family:Arial,Helvetica Neue,Helvetica,PingFang SC,Hiragino Sans GB,Microsoft YaHei,sans-serif;font-size:14px}.aie-container .aie-translate-result-panel textarea:focus-visible{outline:0}.aie-container .aie-translate-result-panel div{border-top:solid 1px var(--aie-popover-border-color);background-color:var(--aie-popover-bg-color);justify-content:end;padding:10px;display:flex}.aie-container .aie-translate-result-panel div button{background:var(--aie-button-bg-color);color:var(--aie-text-color);border:1px solid;border-color:var(--aie-button-border-color);border-radius:3px;align-items:center;margin-left:10px;padding:5px 15px;font-size:14px;display:flex}.aie-container .aie-translate-result-panel div button svg{width:16px;height:16px;margin-right:3px}.aie-container .aie-translate-result-panel div button:hover{background-color:var(--aie-button-hover-bg-color);cursor:pointer}.aie-container .aie-ai-panel-body{border:1px solid;border-color:var(--aie-popover-border-color);background:var(--aie-popover-bg-color);border-radius:5px;flex-direction:column;width:500px;display:flex;overflow:hidden;box-shadow:0 0 7px #00000026}.aie-container .aie-ai-panel-body-tips{width:100%;color:var(--aie-text-color);background-color:var(--aie-popover-bg-color);box-sizing:border-box;align-items:center;padding:10px;display:flex}.aie-container .aie-ai-panel-body-tips svg{width:16px;height:16px;margin-right:5px}.aie-container .aie-ai-panel-body-content{width:100%;position:relative}.aie-container .aie-ai-panel-body-content .loader{display:none;position:absolute;top:10px;right:10px}.aie-container .aie-ai-panel-body-content .loader svg{color:#999;width:16px;animation:2s linear infinite rotate}.aie-container .aie-ai-panel-body-content textarea{box-sizing:border-box;resize:none;width:100%;height:100%;max-height:300px;color:var(--aie-text-color);background-color:var(--aie-popover-bg-color);border:none;padding:15px;font-family:Arial,Helvetica Neue,Helvetica,PingFang SC,Hiragino Sans GB,Microsoft YaHei,sans-serif;font-size:14px;line-height:1.6em}.aie-container .aie-ai-panel-body-content textarea:focus-visible{outline:none}.aie-container .aie-ai-panel-body-input{box-sizing:border-box;border-bottom:1px solid;border-bottom-color:var(--aie-input-border-color);justify-content:space-between;align-items:center;padding:10px 20px 10px 10px;display:flex}.aie-container .aie-ai-panel-body-input input{background:var(--aie-input-bg-color);box-sizing:border-box;width:92%;height:100%;color:var(--aie-text-color);border:none;border-radius:4px;margin:0;padding:10px;font-family:Arial,Helvetica Neue,Helvetica,PingFang SC,Hiragino Sans GB,Microsoft YaHei,sans-serif;font-size:14px}.aie-container .aie-ai-panel-body-input input::-webkit-input-placeholder{color:var(--aie-text-placeholder-color);font-size:14px}.aie-container .aie-ai-panel-body-input input:focus-visible{outline:none}.aie-container .aie-ai-panel-body-input button{background:#609eec;border:none;border-radius:50%;padding:0}.aie-container .aie-ai-panel-body-input button svg{fill:#fff;width:18px;margin-top:2px;margin-left:2px}.aie-container .aie-ai-panel-body-input button:hover{background:var(--aie-menus-item-hover-color);cursor:pointer}.aie-container .aie-ai-panel-footer{border:1px solid;border-color:var(--aie-popover-border-color);background:var(--aie-popover-bg-color);border-radius:5px;flex-direction:column;width:fit-content;margin-top:5px;padding:10px 0;display:flex;box-shadow:0 0 7px #00000026}.aie-container .aie-ai-panel-footer-tips{color:var(--aie-text-color);margin-bottom:5px;padding:5px 10px}.aie-container .aie-ai-panel-footer hr{background-color:var(--aie-popover-border-color);border:none;width:100%;height:1px;margin:5px 0}.aie-container .aie-ai-panel-footer p{cursor:pointer;box-sizing:border-box;width:100%;height:40px;color:var(--aie-text-color);align-items:center;margin:0;padding:0 20px;font-family:Arial,Helvetica Neue,Helvetica,PingFang SC,Hiragino Sans GB,Microsoft YaHei,sans-serif;font-size:14px;font-weight:600;line-height:40px;text-decoration:none;display:flex}.aie-container .aie-ai-panel-footer p:hover{background:var(--aie-popover-selected-color)}.aie-container .aie-ai-panel-footer svg{width:20px;height:20px;margin-right:10px}.aie-container aie-header{color:var(--aie-menus-text-color);background:var(--aie-menus-bg-color);z-index:1}.aie-container aie-header>div{border-bottom:1px solid var(--aie-border-color)}.aie-container aie-header .aie-menu-divider{background:var(--aie-menus-divider-color);width:1px;height:16px;margin:auto}.aie-container aie-header .aie-menu-item{align-items:center;height:fit-content;padding:5px 1px;display:flex}.aie-container aie-header .aie-menu-item #text{font-size:14px}.aie-container aie-header .aie-menu-item svg{fill:var(--aie-menus-svg-color);width:16px;height:16px}.aie-container aie-header .aie-menu-item .menu-ai{text-align:center;background:var(--aie-menus-ai-bg-color);color:var(--aie-menus-ai-color);white-space:nowrap;border-radius:3px;align-items:center;width:30px;padding:0 1px 0 5px;font-size:14px;display:flex}.aie-container aie-header .aie-menu-item .menu-ai svg{fill:var(--aie-menus-ai-color)}.aie-container aie-header .aie-menu-item .colors-menu{padding-right:0;display:flex}.aie-container aie-header .aie-menu-item .colors-menu .currentColor{width:16px;height:16px}.aie-container aie-header .aie-menu-item .colors-menu .currentColor .colors-menu-icon{width:100%;height:calc(100% - 3px);display:flex}.aie-container aie-header .aie-menu-item .colors-menu .currentColor .colors-menu-icon svg{width:100%;height:100%}.aie-container aie-header .aie-menu-item .colors-menu .currentColor .colors-menu-status{background:#333;width:100%;height:3px}.aie-container aie-header .aie-menu-item .colors-menu #dropdown{display:flex}.aie-container aie-header .aie-menu-item .active{background:var(--aie-menus-item-hover-color)}.aie-container aie-header .aie-menu-item[data-size=medium] #text{font-size:16px}.aie-container aie-header .aie-menu-item[data-size=medium] svg{width:20px;height:20px}.aie-container aie-header .aie-menu-item[data-size=medium] .menu-ai svg{width:16px;height:16px}.aie-container aie-header .aie-menu-item[data-size=medium] .colors-menu .currentColor{width:18px;height:18px}.aie-container aie-header .aie-menu-item[data-size=large] #text{font-size:17px}.aie-container aie-header .aie-menu-item[data-size=large] #text svg{width:20px;height:20px}.aie-container aie-header .aie-menu-item[data-size=large] svg{width:24px;height:24px}.aie-container aie-header .aie-menu-item[data-size=large] .menu-ai svg{width:18px;height:18px}.aie-container aie-header .aie-menu-item[data-size=large] .colors-menu .currentColor{width:20px;height:20px}.aie-container aie-header .aie-menu-item>div{cursor:pointer;border-radius:3px;justify-content:center;align-items:center;height:18px;padding:5px;display:flex}.aie-container aie-header .aie-menu-item>div:hover:not([no-hover]){background:var(--aie-menus-item-hover-color)}.aie-container .aie-content:focus-visible{outline:none}.aie-container .aie-content ::selection{background:#88c6ff66}.aie-container .aie-content [contenteditable=true]::selection{background:#88c6ff66}.aie-container .aie-content [contenteditable=true]:focus-visible{outline:none}.aie-container .aie-content .selection-marker{background:#88c6ff66;padding:0}.aie-container .suggestion{background:var(--aie-menus-bg-color);border-radius:5px}.aie-container .suggestion .items{border:1px solid;border-color:var(--aie-popover-border-color);background:var(--aie-popover-bg-color);border-radius:5px;overflow:hidden;box-shadow:0 0 7px #0000001a}.aie-container .suggestion .items .item{width:150px;height:20px;color:var(--aie-text-color);background:var(--aie-menus-bg-color);text-align:left;cursor:pointer;border:none;align-items:center;gap:5px;margin:0;padding:10px 20px;display:flex}.aie-container .suggestion .items .item img{border-radius:50%;width:20px;height:20px}.aie-container .suggestion .items .item-selected{background:var(--aie-popover-selected-color)}.aie-container .aie-bubble-menu{background:var(--aie-popover-bg-color);border:solid 1px var(--aie-popover-border-color);height:30px;color:var(--aie-text-color);border-radius:3px;align-items:center;padding:5px;display:flex;box-shadow:0 2px 5px 2px #0000001a}.aie-container .aie-bubble-menu .active{background:var(--aie-menus-item-hover-color)}.aie-container .aie-bubble-menu-item{cursor:pointer;border-radius:3px;height:20px;margin:3px;padding:5px}.aie-container .aie-bubble-menu-item svg{width:20px;height:20px;fill:var(--aie-text-color)}.aie-container .aie-bubble-menu-item:hover{background:var(--aie-menus-item-hover-color)}.aie-container .aie-dropdown-container{background:var(--aie-popover-bg-color);border:solid 1px var(--aie-popover-border-color);color:var(--aie-menus-text-color);border-radius:3px;padding:5px 0;overflow:auto;box-shadow:0 2px 5px 2px #0000001a}.aie-container .aie-dropdown-container svg{fill:var(--aie-menus-text-color);width:16px;height:16px}.aie-container .aie-dropdown-container .aie-dropdown-item{padding:3px 0;display:flex}.aie-container .aie-dropdown-container .aie-dropdown-item .text{padding:2px 15px 0 0;font-size:14px;display:flex;overflow:hidden}.aie-container .aie-dropdown-container .aie-dropdown-item .text svg{width:18px;height:18px}.aie-container .aie-dropdown-container .aie-dropdown-item .text h1,.aie-container .aie-dropdown-container .aie-dropdown-item .text h2,.aie-container .aie-dropdown-container .aie-dropdown-item .text h3,.aie-container .aie-dropdown-container .aie-dropdown-item .text h4,.aie-container .aie-dropdown-container .aie-dropdown-item .text h5,.aie-container .aie-dropdown-container .aie-dropdown-item .text h6{border:none;margin:0;padding:0}.aie-container .aie-dropdown-container .aie-dropdown-item .text h1{font-size:1.7em}.aie-container .aie-dropdown-container .aie-dropdown-item .text h2{font-size:1.6em}.aie-container .aie-dropdown-container .aie-dropdown-item .text h3{font-size:1.5em}.aie-container .aie-dropdown-container .aie-dropdown-item .text h4{font-size:1.4em}.aie-container .aie-dropdown-container .aie-dropdown-item .text h5{font-size:1.3em}.aie-container .aie-dropdown-container .aie-dropdown-item .text h6{font-size:1.2em}.aie-container .aie-dropdown-container .aie-dropdown-item .red-dot-container{width:30px;padding-bottom:5px;display:flex;overflow:hidden}.aie-container .aie-dropdown-container .aie-dropdown-item .red-dot-container .red-dot{border-left:2px solid var(--aie-text-color);border-bottom:2px solid var(--aie-text-color);width:10px;height:6px;margin:auto;rotate:-45deg}.aie-container .aie-dropdown-container .aie-dropdown-item:hover{background:var(--aie-popover-selected-color);cursor:pointer}.aie-container .aie-dropdown-container .emoji-cells{flex-wrap:wrap;align-items:center;margin:0 3px;display:flex}.aie-container .aie-dropdown-container .emoji-cells .emoji-cell{cursor:pointer;border-radius:3px;justify-content:center;align-items:center;margin:2px;padding:2px 1px;display:flex}.aie-container .aie-dropdown-container .emoji-cells .emoji-cell span{margin-top:2px}.aie-container .aie-dropdown-container .emoji-cells .emoji-cell:hover{background:var(--aie-popover-selected-color)}.aie-container .aie-dropdown-container #table-cells .table-cell{border:solid 1px var(--aie-menus-table-cell-border-color)}.aie-container .aie-dropdown-container #table-cells .active{background:var(--aie-popover-selected-color)}.aie-container .aie-dropdown-container .color-panel{margin:0 5px}.aie-container .aie-dropdown-container .color-panel-title{color:var(--aie-popover-title-color);padding-top:5px;font-size:14px}.aie-container .aie-dropdown-container .color-panel-default-button{text-align:center;border:1px solid var(--aie-button-border-color);color:var(--aie-popover-title-color);border-radius:3px;font-size:14px;line-height:24px}.aie-container .aie-dropdown-container .color-panel-default-button,.aie-container .aie-dropdown-container .color-item,.aie-container .aie-dropdown-container .history-color-item{cursor:pointer}.aie-container .aie-resize-wrapper{display:inline-flex;position:relative}.aie-container .aie-resize-wrapper img{position:relative}.aie-container .aie-resize-wrapper:hover .aie-resize{display:inline-block}.aie-container .aie-resize-wrapper .aie-resize{border:2px solid #609eec;width:100%;height:100%;display:none;position:absolute;top:-2px;left:-2px}.aie-container .aie-resize-wrapper .aie-resize div{z-index:1;width:20px;height:20px;display:flex;position:absolute}.aie-container .aie-resize-wrapper .aie-resize div:after{content:"";background:#609eec;border-radius:50%;width:8px;height:8px;margin:auto;display:block}.aie-container .aie-resize-wrapper .aie-resize .aie-resize-btn-top-left{cursor:nwse-resize;top:-10px;left:-10px}.aie-container .aie-resize-wrapper .aie-resize .aie-resize-btn-top-right{cursor:nesw-resize;top:-10px;right:-10px}.aie-container .aie-resize-wrapper .aie-resize .aie-resize-btn-bottom-left{cursor:nesw-resize;bottom:-10px;left:-10px}.aie-container .aie-resize-wrapper .aie-resize .aie-resize-btn-bottom-right{cursor:nwse-resize;bottom:-10px;right:-10px}.aie-container .aie-loader-placeholder{background:#efefef;width:200px;height:200px;display:flex}.aie-container .aie-loader-placeholder svg{fill:#ccc;width:80px;margin:auto;animation:2s linear infinite rotate}@keyframes rotate{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.aie-container .aie-codeblock-wrapper{background:var(--aie-content-pre-bg-color);word-wrap:normal;white-space:normal;border-radius:5px;padding-top:5px}.aie-container .aie-codeblock-wrapper:hover .aie-codeblock-tools{display:flex}.aie-container .aie-codeblock-wrapper .aie-codeblock-tools{justify-content:flex-end;display:flex}.aie-container .aie-codeblock-wrapper .aie-codeblock-tools div{color:var(--aie-text-color);cursor:pointer;align-items:center;margin:0 3px;font-size:14px;display:flex}.aie-container .aie-codeblock-wrapper .aie-codeblock-tools-lang svg{fill:var(--aie-text-color);width:16px;height:16px;margin:2px}.aie-container .aie-codeblock-wrapper .aie-codeblock-tools-autowrap{margin:0 10px}.aie-container .aie-codeblock-wrapper .aie-codeblock-tools-autowrap svg{fill:var(--aie-text-color);width:14px;height:14px;margin:2px}.aie-container .aie-codeblock-langs{background:var(--aie-popover-bg-color);border:solid 1px var(--aie-popover-border-color);width:150px;max-height:300px;color:var(--aie-menus-text-color);overflow:auto}.aie-container .aie-codeblock-langs-item{cursor:pointer;height:20px;padding:5px;font-size:14px;line-height:20px}.aie-container .aie-codeblock-langs-item:hover{background:var(--aie-popover-selected-color)}.aie-container .container-wrapper:hover .aie-container-tools{display:flex}.aie-container div.info{background:var(--aie-content-container-info-color)}.aie-container div.warning{background:var(--aie-content-container-warning-color)}.aie-container div.danger{background:var(--aie-content-container-danger-color)}.aie-container .aie-container-tools{background:var(--aie-button-bg-color);border:solid 1px var(--aie-button-border-color);cursor:pointer;border-radius:3px;justify-content:center;align-items:center;width:40px;height:20px;padding:3px 5px;display:none;position:absolute;top:5px;right:5px}.aie-container .aie-container-tools:hover{background:var(--aie-button-hover-bg-color);border-color:var(--aie-button-hover-border-color)}.aie-container .aie-container-tools-body{background:var(--aie-popover-bg-color);border:solid 1px var(--aie-button-border-color);width:fit-content;height:fit-content;color:var(--aie-text-color);border-radius:3px;flex-direction:column;gap:5px;padding:10px;display:flex}.aie-container .aie-container-tools-body-color-items{gap:5px;display:flex}.aie-container .aie-container-tools-body-color-box{border:1px solid var(--aie-popover-border-color);cursor:pointer;width:20px;height:20px}.aie-container aie-footer>div{border-top:solid 1px var(--aie-border-color);text-align:right;color:#666;height:20px;font-size:14px;line-height:20px}.aie-container aie-footer>div span{margin-left:auto}.aie-container aie-footer>div svg{fill:#666;cursor:nwse-resize;transform:translateY(5px)}.aie-container .tippy-box{max-width:1000px!important}.aie-container .tippy-box[data-animation=fade][data-state=hidden]{opacity:0}.aie-container [data-tippy-root]{max-width:calc(100vw - 10px)}.aie-container .tippy-box{white-space:normal;border-radius:4px;outline:0;font-size:14px;line-height:1.4;transition-property:transform,visibility,opacity;position:relative}.aie-container .tippy-box[data-placement^=top]>.tippy-arrow{bottom:0}.aie-container .tippy-box[data-placement^=top]>.tippy-arrow:before{border-width:8px 8px 0;border-top-color:initial;transform-origin:top;bottom:-7px;left:0}.aie-container .tippy-box[data-placement^=bottom]>.tippy-arrow{top:0}.aie-container .tippy-box[data-placement^=bottom]>.tippy-arrow:before{border-width:0 8px 8px;border-bottom-color:initial;transform-origin:bottom;top:-7px;left:0}.aie-container .tippy-box[data-placement^=left]>.tippy-arrow{right:0}.aie-container .tippy-box[data-placement^=left]>.tippy-arrow:before{border-width:8px 0 8px 8px;border-left-color:initial;transform-origin:0;right:-7px}.aie-container .tippy-box[data-placement^=right]>.tippy-arrow{left:0}.aie-container .tippy-box[data-placement^=right]>.tippy-arrow:before{border-width:8px 8px 8px 0;border-right-color:initial;transform-origin:100%;left:-7px}.aie-container .tippy-box[data-inertia][data-state=visible]{transition-timing-function:cubic-bezier(.54,1.5,.38,1.11)}.aie-container .tippy-arrow{width:16px;height:16px}.aie-container .tippy-arrow:before{content:"";border-style:solid;border-color:#0000;position:absolute}.aie-container .tippy-content{z-index:1;padding:5px 9px;position:relative}.aie-container .tippy-box[data-theme~=aietip]{background-color:var(--aie-menus-tip-bg-color);color:var(--aie-menus-tip-text-color)}.aie-container .tippy-box[data-theme~=aietip][data-placement^=top]>.tippy-arrow:before{border-top-color:var(--aie-menus-tip-bg-color)}.aie-container .tippy-box[data-theme~=aietip][data-placement^=bottom]>.tippy-arrow:before{border-bottom-color:var(--aie-menus-tip-bg-color)}.aie-container .tippy-box[data-theme~=aietip][data-placement^=left]>.tippy-arrow:before{border-left-color:var(--aie-menus-tip-bg-color)}.aie-container .tippy-box[data-theme~=aietip][data-placement^=right]>.tippy-arrow:before{border-right-color:var(--aie-menus-tip-bg-color)}.aie-theme-light pre code.hljs{padding:1em;display:block;overflow-x:auto}.aie-theme-light code.hljs{padding:3px 5px}.aie-theme-light .hljs{color:#383a42;background:#fafafa}.aie-theme-light .hljs-comment,.aie-theme-light .hljs-quote{color:#a0a1a7;font-style:italic}.aie-theme-light .hljs-doctag,.aie-theme-light .hljs-keyword,.aie-theme-light .hljs-formula{color:#a626a4}.aie-theme-light .hljs-section,.aie-theme-light .hljs-name,.aie-theme-light .hljs-selector-tag,.aie-theme-light .hljs-deletion,.aie-theme-light .hljs-subst{color:#e45649}.aie-theme-light .hljs-literal{color:#0184bb}.aie-theme-light .hljs-string,.aie-theme-light .hljs-regexp,.aie-theme-light .hljs-addition,.aie-theme-light .hljs-attribute,.aie-theme-light .hljs-meta .hljs-string{color:#50a14f}.aie-theme-light .hljs-attr,.aie-theme-light .hljs-variable,.aie-theme-light .hljs-template-variable,.aie-theme-light .hljs-type,.aie-theme-light .hljs-selector-class,.aie-theme-light .hljs-selector-attr,.aie-theme-light .hljs-selector-pseudo,.aie-theme-light .hljs-number{color:#986801}.aie-theme-light .hljs-symbol,.aie-theme-light .hljs-bullet,.aie-theme-light .hljs-link,.aie-theme-light .hljs-meta,.aie-theme-light .hljs-selector-id,.aie-theme-light .hljs-title{color:#4078f2}.aie-theme-light .hljs-built_in,.aie-theme-light .hljs-title.class_,.aie-theme-light .hljs-class .hljs-title{color:#c18401}.aie-theme-light .hljs-emphasis{font-style:italic}.aie-theme-light .hljs-strong{font-weight:700}.aie-theme-light .hljs-link{text-decoration:underline}.aie-theme-dark pre code.hljs{padding:1em;display:block;overflow-x:auto}.aie-theme-dark code.hljs{padding:3px 5px}.aie-theme-dark .hljs{color:#abb2bf;background:#282c34}.aie-theme-dark .hljs-comment,.aie-theme-dark .hljs-quote{color:#5c6370;font-style:italic}.aie-theme-dark .hljs-doctag,.aie-theme-dark .hljs-keyword,.aie-theme-dark .hljs-formula{color:#c678dd}.aie-theme-dark .hljs-section,.aie-theme-dark .hljs-name,.aie-theme-dark .hljs-selector-tag,.aie-theme-dark .hljs-deletion,.aie-theme-dark .hljs-subst{color:#e06c75}.aie-theme-dark .hljs-literal{color:#56b6c2}.aie-theme-dark .hljs-string,.aie-theme-dark .hljs-regexp,.aie-theme-dark .hljs-addition,.aie-theme-dark .hljs-attribute,.aie-theme-dark .hljs-meta .hljs-string{color:#98c379}.aie-theme-dark .hljs-attr,.aie-theme-dark .hljs-variable,.aie-theme-dark .hljs-template-variable,.aie-theme-dark .hljs-type,.aie-theme-dark .hljs-selector-class,.aie-theme-dark .hljs-selector-attr,.aie-theme-dark .hljs-selector-pseudo,.aie-theme-dark .hljs-number{color:#d19a66}.aie-theme-dark .hljs-symbol,.aie-theme-dark .hljs-bullet,.aie-theme-dark .hljs-link,.aie-theme-dark .hljs-meta,.aie-theme-dark .hljs-selector-id,.aie-theme-dark .hljs-title{color:#61aeee}.aie-theme-dark .hljs-built_in,.aie-theme-dark .hljs-title.class_,.aie-theme-dark .hljs-class .hljs-title{color:#e6c07b}.aie-theme-dark .hljs-emphasis{font-style:italic}.aie-theme-dark .hljs-strong{font-weight:700}.aie-theme-dark .hljs-link{text-decoration:underline}.aie-popover{background:#fff;background:var(--aie-popover-bg-color);border:1px solid var(--aie-popover-border-color);border-radius:3px;flex-direction:column;min-width:100px;min-height:100px;display:flex;overflow:hidden;box-shadow:0 2px 5px 2px #0000001a}.aie-popover-header{height:20px;padding:5px 5px 0;display:flex}.aie-popover-header-close{cursor:pointer;width:20px;height:20px;margin-left:auto}.aie-popover-header svg{fill:var(--aie-text-color)}.aie-popover-content{flex-grow:1;padding:0 10px}.aie-popover-content>div{color:var(--aie-text-color);font-size:14px}.aie-popover-content input,.aie-popover-content select,.aie-popover-content textarea{border:solid 1px var(--aie-input-border-color);background:var(--aie-input-bg-color);height:25px;color:var(--aie-text-color);border-radius:3px;padding-inline:5px}.aie-popover-content input:focus-visible,.aie-popover-content select:focus-visible,.aie-popover-content textarea:focus-visible{border:solid 1px var(--aie-input-focus-border-color);background-color:var(--aie-input-focus-bg-color);outline:0}.aie-popover-content select{height:30px}.aie-popover-footer{justify-content:flex-end;align-items:center;gap:10px;padding:10px;display:flex}.aie-popover-footer button{color:var(--aie-text-color);cursor:pointer;border-radius:3px;justify-content:center;align-items:center;gap:2px;width:fit-content;padding:5px 10px;font-size:14px;display:flex}.aie-popover-footer button svg{width:14px;height:14px;fill:var(--aie-text-color)}.aie-popover-footer-confirm{background:var(--aie-button-bg-color);border:solid 1px var(--aie-button-border-color)}.aie-popover-footer-confirm:hover{background:var(--aie-button-hover-bg-color);border-color:var(--aie-button-hover-border-color)}.aie-popover-footer-cancel{background:0 0;border:none}.aie-popover-footer-cancel:hover{background:var(--aie-button-hover-bg-color);border-color:var(--aie-button-hover-border-color)}.ai-command-container{border:1px solid;border-color:var(--aie-popover-border-color);background:var(--aie-popover-bg-color);width:200px;color:var(--aie-text-color);border-radius:5px;flex-direction:column;padding:10px 0;display:flex;box-shadow:0 0 7px #0000001a}.ai-command-container .active{background:var(--aie-popover-selected-color)}.ai-command-container-title{background-color:#eaeaea;border:none;width:100%;height:1px;margin:5px 0}.ai-command-container hr{background-color:var(--aie-popover-border-color);border:none;width:100%;height:1px;margin:5px 0}.ai-command-container-header{flex-wrap:wrap;align-items:center;padding:0 10px;display:flex}.ai-command-container-header-item{cursor:pointer;justify-content:center;align-items:center;width:30px;height:30px;display:flex}.ai-command-container-header-item:hover{background-color:var(--aie-popover-selected-color)}.ai-command-container-header svg{fill:var(--aie-text-color);width:18px;height:18px}.ai-command-container-item{color:var(--aie-text-color);cursor:pointer;align-items:center;padding:10px 20px;font-family:Arial,Helvetica Neue,Helvetica,PingFang SC,Hiragino Sans GB,Microsoft YaHei,sans-serif;font-size:14px;display:flex}.ai-command-container-item svg{width:16px;height:16px;margin-right:10px}.ai-command-container-item:hover{background-color:var(--aie-popover-selected-color)}.aie-content{color:var(--aie-text-color);margin:0;padding:10px;overflow:auto}.aie-content>:first-child{margin-top:0}.aie-content::-webkit-scrollbar{width:4px}.aie-content::-webkit-scrollbar-track-piece{background-color:var(--aie-content-scrollbar-track-piece)}.aie-content::-webkit-scrollbar-thumb{background-color:var(--aie-content-scrollbar-thumb)}.aie-content::-webkit-scrollbar-thumb:hover{background-color:var(--aie-content-scrollbar-thumb-hover)}.aie-content::-webkit-scrollbar-thumb:active{background-color:var(--aie-content-scrollbar-thumb-active)}.aie-content a{color:var(--aie-content-link-a-color)}.aie-content a :visited{color:var(--aie-content-link-a-visited-color)}.aie-content a :active{color:var(--aie-content-link-a-active-color)}.aie-content p{min-height:26px;margin:16px 0;line-height:26px}.aie-content ul,.aie-content ol{margin-block:1em;margin-inline:0;padding-inline-start:20px;display:block}.aie-content li p{margin:5px 0;padding:0}.aie-content ul[data-type=taskList]{margin-block:1em;margin-inline:0;padding-inline-start:0;display:block}.aie-content ul[data-type=taskList] li{align-items:baseline;display:flex}.aie-content ul[data-type=taskList] li p{padding-left:2px}.aie-content blockquote{border-left:2px solid var(--aie-content-blockquote-border-color);background:var(--aie-content-blockquote-bg-color);margin:16px 0;padding:5px 10px}.aie-content blockquote p{color:var(--aie-content-blockquote-text-color);margin:5px 0}.aie-content img{border:1px solid #efefef}.aie-content code{background:var(--aie-content-pre-bg-color);border-radius:3px;padding:3px 6px}.aie-content pre{background:var(--aie-content-pre-bg-color);border-radius:5px;margin:0;padding:0 10px 10px;overflow:auto}.aie-content pre code{background:var(--aie-content-pre-bg-color);padding:0}.aie-content h1{letter-spacing:-.02em;padding-top:24px;font-size:32px;line-height:40px}.aie-content h2{letter-spacing:-.02em;padding-top:24px;font-size:24px;line-height:32px}.aie-content h3{letter-spacing:-.01em;margin:32px 0 0;font-size:20px;line-height:28px}.aie-content strong{font-weight:600}.aie-content table{border-collapse:collapse;table-layout:fixed;width:100%;margin:0;overflow:hidden}.aie-content table img{z-index:1}.aie-content table td,.aie-content table th{border:2px solid var(--aie-content-table-border-color);box-sizing:border-box;vertical-align:top;min-width:1em;padding:3px 5px;position:relative}.aie-content table td>*,.aie-content table th>*{margin-bottom:0}.aie-content table th{background-color:var(--aie-content-table-th-bg-color);text-align:left;font-weight:700}.aie-content table .selectedCell:after{background:var(--aie-content-table-selected-bg-color);content:"";pointer-events:none;z-index:2;position:absolute;inset:0}.aie-content table .column-resize-handle{background-color:var(--aie-content-table-handler-color);pointer-events:none;width:3px;position:absolute;top:0;bottom:-2px;right:-2px}.aie-content table p{margin:0}.aie-content .align-left{text-align:left}.aie-content .align-right{text-align:right}.aie-content .align-center{text-align:center}.aie-content span[data-type=mention]{border:1px solid #ccc;border-radius:5px;padding:0 3px}.aie-content p.is-editor-empty:first-child:before{color:var(--aie-text-placeholder-color);content:attr(data-placeholder);float:left;pointer-events:none;height:0}.aie-content div.container-wrapper{border:1px solid var(--aie-border-color);border-radius:3px;margin:1rem 0;padding:0 1rem}.aie-content div.info{background:var(--aie-content-container-info-color)}.aie-content div.warning{background:var(--aie-content-container-warning-color)}.aie-content div.danger{background:var(--aie-content-container-danger-color)}.tableWrapper{padding:1rem 0}.resize-cursor{cursor:ew-resize;cursor:col-resize}[data-v-a155afd8] .node-handle{opacity:0;padding-right:5px;transition:opacity .3s}.custom-tree-node[data-v-a155afd8]{flex-direction:row;justify-content:space-between;align-items:center;width:100%;padding-right:5px;display:flex}.custom-tree-node .node-label[data-v-a155afd8]{max-width:50%}[data-v-a155afd8] .custom-tree-node:hover .node-handle,[data-v-a155afd8] .custom-tree-node:active .node-handle{opacity:1}.infinite-list-item[data-v-2180fa82]{cursor:pointer;color:#606266;border-bottom:1px solid #eee;justify-content:space-between;align-items:center;padding:0 5px;font-size:.9em;line-height:34px;display:flex;overflow-y:auto}.infinite-list-item.active[data-v-2180fa82]{background-color:#fafafa;font-weight:700}.infinite-list-item[data-v-2180fa82]:hover{background-color:#fafafa}.ui-descriptions[data-v-f02c30f9] .el-descriptions__cell .el-descriptions__label{color:#6b7280;font-size:.9em;font-weight:700}.ui-descriptions[data-v-f02c30f9] .el-descriptions__cell .el-descriptions__content{color:#1f2937}.ui-table[data-v-f401a9a8] th.el-table__cell{color:#606266;background-color:#fafafa}.ui-pagination[data-v-f401a9a8]{background-color:#fff;justify-content:flex-end;height:20px;margin-top:10px;padding:20px;display:flex}
|
|
1
|
+
.ui-card[data-v-ae248017] .el-card__header{border:0;padding:20px 0 0 20px}.hideBorder[data-v-ae248017]{box-shadow:none;border:0}.hideBorder[data-v-ae248017] .el-card__header{height:35px;padding:0;line-height:35px}.hideBorder[data-v-ae248017] .el-card__body{padding:15px 0}.ui-filter[data-v-592774c8] .el-form-item{margin-bottom:15px}.ui-filter[data-v-592774c8] .el-form-item__label{align-items:center;line-height:20px}.ui-form-buttons[data-v-f8f2a1f5]{justify-content:flex-start;align-items:center;display:flex}.ui-form[data-v-f8f2a1f5]{grid-template-columns:repeat(var(--ec46e5ec), minmax(0, 1fr));gap:0 40px;display:grid}.ui-form[data-v-f8f2a1f5] .el-form-item__label{color:#6b7280;margin-bottom:0;font-size:.8em;font-weight:700}.ui-form[data-v-f8f2a1f5] .el-form-item__content{flex-wrap:inherit;width:100%;display:flex}:is(.ui-form[data-v-f8f2a1f5] .el-form-item__content .el-input-number,.ui-form[data-v-f8f2a1f5] .el-form-item__content .el-input),:is(.ui-form[data-v-f8f2a1f5] .el-form-item__content .el-input-number,.ui-form[data-v-f8f2a1f5] .el-form-item__content .el-input) .el-input__wrapper{width:100%}.underline[data-v-f8f2a1f5] .el-input__wrapper,.underline[data-v-f8f2a1f5] .el-textarea__inner{box-shadow:0px 1px 0px var(--el-input-border-color,var(--el-border-color))}.horizontal[data-v-f8f2a1f5] .el-form-item{margin-bottom:10px}:root,:root .aie-theme-light{--aie-bg-color:#fff;--aie-border-color:#eee;--aie-text-color:#333;--aie-text-placeholder-color:#adb5bd;--aie-button-bg-color:#fafafa;--aie-button-border-color:#eee;--aie-button-hover-bg-color:#eee;--aie-button-hover-border-color:#ccc;--aie-input-bg-color:#fff;--aie-input-border-color:#e9e9e9;--aie-input-focus-bg-color:#fff;--aie-input-focus-border-color:#e9e9e9;--aie-popover-bg-color:#fff;--aie-popover-border-color:#e9e9e9;--aie-popover-title-color:#666;--aie-popover-selected-color:#eee;--aie-menus-text-color:var(--aie-text-color);--aie-menus-bg-color:#fff;--aie-menus-svg-color:#333;--aie-menus-item-hover-color:#eee;--aie-menus-divider-color:#eaeaea;--aie-menus-ai-bg-color:var(--aie-menus-svg-color);--aie-menus-ai-color:#fff;--aie-menus-tip-bg-color:#333;--aie-menus-tip-text-color:#eee;--aie-menus-table-cell-border-color:#ccc;--aie-menus-table-cell-border-active-color:#000;--aie-content-pre-bg-color:#f6f6f7;--aie-content-blockquote-bg-color:#f6f6f7;--aie-content-blockquote-border-color:#e3e3e3;--aie-content-blockquote-text-color:#888;--aie-content-container-info-color:#eff1f3;--aie-content-container-warning-color:#fcf5e4;--aie-content-container-danger-color:#ffe7ea;--aie-content-table-th-bg-color:#efefef;--aie-content-table-selected-bg-color:#c8c8ff4d;--aie-content-table-border-color:#ced4da;--aie-content-table-handler-color:#adf;--aie-content-scrollbar-track-piece:#f1f1f1;--aie-content-scrollbar-thumb:#c1c1c1;--aie-content-scrollbar-thumb-hover:#a9a9a9;--aie-content-scrollbar-thumb-active:#787878;--aie-content-link-a-color:blue;--aie-content-link-a-hover-color:red;--aie-content-link-a-visited-color:purple;--aie-content-link-a-active-color:green}:root .aie-theme-dark{--aie-text-color:#ccc;--aie-border-color:#333;--aie-text-placeholder-color:#777;--aie-bg-color:#1e2022;--aie-button-bg-color:#333;--aie-button-border-color:#606060;--aie-button-hover-bg-color:#606060;--aie-button-hover-border-color:#606060;--aie-input-bg-color:#505050;--aie-input-border-color:#666;--aie-input-focus-bg-color:#505050;--aie-input-focus-border-color:#999;--aie-popover-bg-color:#2a2a2b;--aie-popover-border-color:#505050;--aie-popover-title-color:#ccc;--aie-popover-selected-color:#505050;--aie-menus-text-color:var(--aie-text-color);--aie-menus-bg-color:#1a1b1e;--aie-menus-svg-color:#ccc;--aie-menus-item-hover-color:#505050;--aie-menus-divider-color:#2c2c2c;--aie-menus-ai-bg-color:var(--aie-menus-svg-color);--aie-menus-ai-color:#000;--aie-menus-tip-bg-color:#eee;--aie-menus-tip-text-color:#333;--aie-menus-table-cell-border-color:#888;--aie-menus-table-cell-border-active-color:#ccc;--aie-content-pre-bg-color:#282c34;--aie-content-blockquote-bg-color:#282c34;--aie-content-blockquote-border-color:#505050;--aie-content-blockquote-text-color:#888;--aie-content-container-info-color:#2a2c30;--aie-content-container-warning-color:#40361d;--aie-content-container-danger-color:#46222a;--aie-content-table-th-bg-color:#2c2c2c;--aie-content-table-selected-bg-color:#c8c8ff33;--aie-content-table-border-color:#353535;--aie-content-table-handler-color:#566a77;--aie-content-scrollbar-track-piece:#404040;--aie-content-scrollbar-thumb:#dddddd50;--aie-content-scrollbar-thumb-hover:#dddddd70;--aie-content-scrollbar-thumb-active:#dddddda0;--aie-content-link-a-color:#4ca3f5;--aie-content-link-a-hover-color:#ff4f4f;--aie-content-link-a-visited-color:#f0f;--aie-content-link-a-active-color:#0f0}.table-bubble-menu.colors-menu{padding-right:0;display:flex}.table-bubble-menu.colors-menu .currentColor{width:16px;height:16px}.table-bubble-menu.colors-menu .currentColor .colors-menu-icon{width:100%;height:calc(100% - 3px);display:flex}.table-bubble-menu.colors-menu .currentColor .colors-menu-icon svg{width:100%;height:100%}.table-bubble-menu.colors-menu .currentColor .colors-menu-status{background:#333;width:100%;height:3px}.table-bubble-menu.colors-menu .colors-menu #dropdown{display:flex}.table-bubble-menu.colors-menu .colors-menu-status{background:#333;width:100%;height:3px}.aie-container{border:1px solid;border-color:var(--aie-border-color);background:var(--aie-bg-color);flex-direction:column;height:100%;display:flex}.aie-container *,.aie-container :before,.aie-container :after{box-sizing:content-box}.aie-container .aie-translate-panel{margin-top:-5px}.aie-container .aie-translate-panel-body{border:1px solid;border-color:var(--aie-popover-border-color);background:var(--aie-popover-bg-color);border-radius:5px;flex-direction:column;width:fit-content;display:flex;overflow:hidden;box-shadow:0 0 7px #00000026}.aie-container .aie-translate-panel-body p{cursor:pointer;box-sizing:border-box;width:100%;height:40px;color:var(--aie-text-color);align-items:center;margin:0;padding:0 20px;font-family:Arial,Helvetica Neue,Helvetica,PingFang SC,Hiragino Sans GB,Microsoft YaHei,sans-serif;font-size:14px;font-weight:600;line-height:40px;text-decoration:none;display:flex}.aie-container .aie-translate-panel-body p:hover{background:var(--aie-menus-item-hover-color)}.aie-container .aie-translate-result-panel{border:1px solid;border-color:var(--aie-popover-border-color);background:var(--aie-popover-bg-color);border-radius:5px;width:fit-content;height:fit-content;overflow:hidden;box-shadow:0 0 7px #00000040}.aie-container .aie-translate-result-panel textarea{box-sizing:border-box;background:var(--aie-popover-bg-color);width:calc(100vw - 120px);max-width:500px;color:var(--aie-text-color);resize:none;border:none;max-height:300px;margin:10px 10px 0;padding:5px;font-family:Arial,Helvetica Neue,Helvetica,PingFang SC,Hiragino Sans GB,Microsoft YaHei,sans-serif;font-size:14px}.aie-container .aie-translate-result-panel textarea:focus-visible{outline:0}.aie-container .aie-translate-result-panel div{border-top:solid 1px var(--aie-popover-border-color);background-color:var(--aie-popover-bg-color);justify-content:end;padding:10px;display:flex}.aie-container .aie-translate-result-panel div button{background:var(--aie-button-bg-color);color:var(--aie-text-color);border:1px solid;border-color:var(--aie-button-border-color);border-radius:3px;align-items:center;margin-left:10px;padding:5px 15px;font-size:14px;display:flex}.aie-container .aie-translate-result-panel div button svg{width:16px;height:16px;margin-right:3px}.aie-container .aie-translate-result-panel div button:hover{background-color:var(--aie-button-hover-bg-color);cursor:pointer}.aie-container .aie-ai-panel-body{border:1px solid;border-color:var(--aie-popover-border-color);background:var(--aie-popover-bg-color);border-radius:5px;flex-direction:column;width:500px;display:flex;overflow:hidden;box-shadow:0 0 7px #00000026}.aie-container .aie-ai-panel-body-tips{width:100%;color:var(--aie-text-color);background-color:var(--aie-popover-bg-color);box-sizing:border-box;align-items:center;padding:10px;display:flex}.aie-container .aie-ai-panel-body-tips svg{width:16px;height:16px;margin-right:5px}.aie-container .aie-ai-panel-body-content{width:100%;position:relative}.aie-container .aie-ai-panel-body-content .loader{display:none;position:absolute;top:10px;right:10px}.aie-container .aie-ai-panel-body-content .loader svg{color:#999;width:16px;animation:2s linear infinite rotate}.aie-container .aie-ai-panel-body-content textarea{box-sizing:border-box;resize:none;width:100%;height:100%;max-height:300px;color:var(--aie-text-color);background-color:var(--aie-popover-bg-color);border:none;padding:15px;font-family:Arial,Helvetica Neue,Helvetica,PingFang SC,Hiragino Sans GB,Microsoft YaHei,sans-serif;font-size:14px;line-height:1.6em}.aie-container .aie-ai-panel-body-content textarea:focus-visible{outline:none}.aie-container .aie-ai-panel-body-input{box-sizing:border-box;border-bottom:1px solid;border-bottom-color:var(--aie-input-border-color);justify-content:space-between;align-items:center;padding:10px 20px 10px 10px;display:flex}.aie-container .aie-ai-panel-body-input input{background:var(--aie-input-bg-color);box-sizing:border-box;width:92%;height:100%;color:var(--aie-text-color);border:none;border-radius:4px;margin:0;padding:10px;font-family:Arial,Helvetica Neue,Helvetica,PingFang SC,Hiragino Sans GB,Microsoft YaHei,sans-serif;font-size:14px}.aie-container .aie-ai-panel-body-input input::-webkit-input-placeholder{color:var(--aie-text-placeholder-color);font-size:14px}.aie-container .aie-ai-panel-body-input input:focus-visible{outline:none}.aie-container .aie-ai-panel-body-input button{background:#609eec;border:none;border-radius:50%;padding:0}.aie-container .aie-ai-panel-body-input button svg{fill:#fff;width:18px;margin-top:2px;margin-left:2px}.aie-container .aie-ai-panel-body-input button:hover{background:var(--aie-menus-item-hover-color);cursor:pointer}.aie-container .aie-ai-panel-footer{border:1px solid;border-color:var(--aie-popover-border-color);background:var(--aie-popover-bg-color);border-radius:5px;flex-direction:column;width:fit-content;margin-top:5px;padding:10px 0;display:flex;box-shadow:0 0 7px #00000026}.aie-container .aie-ai-panel-footer-tips{color:var(--aie-text-color);margin-bottom:5px;padding:5px 10px}.aie-container .aie-ai-panel-footer hr{background-color:var(--aie-popover-border-color);border:none;width:100%;height:1px;margin:5px 0}.aie-container .aie-ai-panel-footer p{cursor:pointer;box-sizing:border-box;width:100%;height:40px;color:var(--aie-text-color);align-items:center;margin:0;padding:0 20px;font-family:Arial,Helvetica Neue,Helvetica,PingFang SC,Hiragino Sans GB,Microsoft YaHei,sans-serif;font-size:14px;font-weight:600;line-height:40px;text-decoration:none;display:flex}.aie-container .aie-ai-panel-footer p:hover{background:var(--aie-popover-selected-color)}.aie-container .aie-ai-panel-footer svg{width:20px;height:20px;margin-right:10px}.aie-container aie-header{color:var(--aie-menus-text-color);background:var(--aie-menus-bg-color);z-index:1}.aie-container aie-header>div{border-bottom:1px solid var(--aie-border-color)}.aie-container aie-header .aie-menu-divider{background:var(--aie-menus-divider-color);width:1px;height:16px;margin:auto}.aie-container aie-header .aie-menu-item{align-items:center;height:fit-content;padding:5px 1px;display:flex}.aie-container aie-header .aie-menu-item #text{font-size:14px}.aie-container aie-header .aie-menu-item svg{fill:var(--aie-menus-svg-color);width:16px;height:16px}.aie-container aie-header .aie-menu-item .menu-ai{text-align:center;background:var(--aie-menus-ai-bg-color);color:var(--aie-menus-ai-color);white-space:nowrap;border-radius:3px;align-items:center;width:30px;padding:0 1px 0 5px;font-size:14px;display:flex}.aie-container aie-header .aie-menu-item .menu-ai svg{fill:var(--aie-menus-ai-color)}.aie-container aie-header .aie-menu-item .colors-menu{padding-right:0;display:flex}.aie-container aie-header .aie-menu-item .colors-menu .currentColor{width:16px;height:16px}.aie-container aie-header .aie-menu-item .colors-menu .currentColor .colors-menu-icon{width:100%;height:calc(100% - 3px);display:flex}.aie-container aie-header .aie-menu-item .colors-menu .currentColor .colors-menu-icon svg{width:100%;height:100%}.aie-container aie-header .aie-menu-item .colors-menu .currentColor .colors-menu-status{background:#333;width:100%;height:3px}.aie-container aie-header .aie-menu-item .colors-menu #dropdown{display:flex}.aie-container aie-header .aie-menu-item .active{background:var(--aie-menus-item-hover-color)}.aie-container aie-header .aie-menu-item[data-size=medium] #text{font-size:16px}.aie-container aie-header .aie-menu-item[data-size=medium] svg{width:20px;height:20px}.aie-container aie-header .aie-menu-item[data-size=medium] .menu-ai svg{width:16px;height:16px}.aie-container aie-header .aie-menu-item[data-size=medium] .colors-menu .currentColor{width:18px;height:18px}.aie-container aie-header .aie-menu-item[data-size=large] #text{font-size:17px}.aie-container aie-header .aie-menu-item[data-size=large] #text svg{width:20px;height:20px}.aie-container aie-header .aie-menu-item[data-size=large] svg{width:24px;height:24px}.aie-container aie-header .aie-menu-item[data-size=large] .menu-ai svg{width:18px;height:18px}.aie-container aie-header .aie-menu-item[data-size=large] .colors-menu .currentColor{width:20px;height:20px}.aie-container aie-header .aie-menu-item>div{cursor:pointer;border-radius:3px;justify-content:center;align-items:center;height:18px;padding:5px;display:flex}.aie-container aie-header .aie-menu-item>div:hover:not([no-hover]){background:var(--aie-menus-item-hover-color)}.aie-container .aie-content:focus-visible{outline:none}.aie-container .aie-content ::selection{background:#88c6ff66}.aie-container .aie-content [contenteditable=true]::selection{background:#88c6ff66}.aie-container .aie-content [contenteditable=true]:focus-visible{outline:none}.aie-container .aie-content .selection-marker{background:#88c6ff66;padding:0}.aie-container .suggestion{background:var(--aie-menus-bg-color);border-radius:5px}.aie-container .suggestion .items{border:1px solid;border-color:var(--aie-popover-border-color);background:var(--aie-popover-bg-color);border-radius:5px;overflow:hidden;box-shadow:0 0 7px #0000001a}.aie-container .suggestion .items .item{width:150px;height:20px;color:var(--aie-text-color);background:var(--aie-menus-bg-color);text-align:left;cursor:pointer;border:none;align-items:center;gap:5px;margin:0;padding:10px 20px;display:flex}.aie-container .suggestion .items .item img{border-radius:50%;width:20px;height:20px}.aie-container .suggestion .items .item-selected{background:var(--aie-popover-selected-color)}.aie-container .aie-bubble-menu{background:var(--aie-popover-bg-color);border:solid 1px var(--aie-popover-border-color);height:30px;color:var(--aie-text-color);border-radius:3px;align-items:center;padding:5px;display:flex;box-shadow:0 2px 5px 2px #0000001a}.aie-container .aie-bubble-menu .active{background:var(--aie-menus-item-hover-color)}.aie-container .aie-bubble-menu-item{cursor:pointer;border-radius:3px;height:20px;margin:3px;padding:5px}.aie-container .aie-bubble-menu-item svg{width:20px;height:20px;fill:var(--aie-text-color)}.aie-container .aie-bubble-menu-item:hover{background:var(--aie-menus-item-hover-color)}.aie-container .aie-dropdown-container{background:var(--aie-popover-bg-color);border:solid 1px var(--aie-popover-border-color);color:var(--aie-menus-text-color);border-radius:3px;padding:5px 0;overflow:auto;box-shadow:0 2px 5px 2px #0000001a}.aie-container .aie-dropdown-container svg{fill:var(--aie-menus-text-color);width:16px;height:16px}.aie-container .aie-dropdown-container .aie-dropdown-item{padding:3px 0;display:flex}.aie-container .aie-dropdown-container .aie-dropdown-item .text{padding:2px 15px 0 0;font-size:14px;display:flex;overflow:hidden}.aie-container .aie-dropdown-container .aie-dropdown-item .text svg{width:18px;height:18px}.aie-container .aie-dropdown-container .aie-dropdown-item .text h1,.aie-container .aie-dropdown-container .aie-dropdown-item .text h2,.aie-container .aie-dropdown-container .aie-dropdown-item .text h3,.aie-container .aie-dropdown-container .aie-dropdown-item .text h4,.aie-container .aie-dropdown-container .aie-dropdown-item .text h5,.aie-container .aie-dropdown-container .aie-dropdown-item .text h6{border:none;margin:0;padding:0}.aie-container .aie-dropdown-container .aie-dropdown-item .text h1{font-size:1.7em}.aie-container .aie-dropdown-container .aie-dropdown-item .text h2{font-size:1.6em}.aie-container .aie-dropdown-container .aie-dropdown-item .text h3{font-size:1.5em}.aie-container .aie-dropdown-container .aie-dropdown-item .text h4{font-size:1.4em}.aie-container .aie-dropdown-container .aie-dropdown-item .text h5{font-size:1.3em}.aie-container .aie-dropdown-container .aie-dropdown-item .text h6{font-size:1.2em}.aie-container .aie-dropdown-container .aie-dropdown-item .red-dot-container{width:30px;padding-bottom:5px;display:flex;overflow:hidden}.aie-container .aie-dropdown-container .aie-dropdown-item .red-dot-container .red-dot{border-left:2px solid var(--aie-text-color);border-bottom:2px solid var(--aie-text-color);width:10px;height:6px;margin:auto;rotate:-45deg}.aie-container .aie-dropdown-container .aie-dropdown-item:hover{background:var(--aie-popover-selected-color);cursor:pointer}.aie-container .aie-dropdown-container .emoji-cells{flex-wrap:wrap;align-items:center;margin:0 3px;display:flex}.aie-container .aie-dropdown-container .emoji-cells .emoji-cell{cursor:pointer;border-radius:3px;justify-content:center;align-items:center;margin:2px;padding:2px 1px;display:flex}.aie-container .aie-dropdown-container .emoji-cells .emoji-cell span{margin-top:2px}.aie-container .aie-dropdown-container .emoji-cells .emoji-cell:hover{background:var(--aie-popover-selected-color)}.aie-container .aie-dropdown-container #table-cells .table-cell{border:solid 1px var(--aie-menus-table-cell-border-color)}.aie-container .aie-dropdown-container #table-cells .active{background:var(--aie-popover-selected-color)}.aie-container .aie-dropdown-container .color-panel{margin:0 5px}.aie-container .aie-dropdown-container .color-panel-title{color:var(--aie-popover-title-color);padding-top:5px;font-size:14px}.aie-container .aie-dropdown-container .color-panel-default-button{text-align:center;border:1px solid var(--aie-button-border-color);color:var(--aie-popover-title-color);border-radius:3px;font-size:14px;line-height:24px}.aie-container .aie-dropdown-container .color-panel-default-button,.aie-container .aie-dropdown-container .color-item,.aie-container .aie-dropdown-container .history-color-item{cursor:pointer}.aie-container .aie-resize-wrapper{display:inline-flex;position:relative}.aie-container .aie-resize-wrapper img{position:relative}.aie-container .aie-resize-wrapper:hover .aie-resize{display:inline-block}.aie-container .aie-resize-wrapper .aie-resize{border:2px solid #609eec;width:100%;height:100%;display:none;position:absolute;top:-2px;left:-2px}.aie-container .aie-resize-wrapper .aie-resize div{z-index:1;width:20px;height:20px;display:flex;position:absolute}.aie-container .aie-resize-wrapper .aie-resize div:after{content:"";background:#609eec;border-radius:50%;width:8px;height:8px;margin:auto;display:block}.aie-container .aie-resize-wrapper .aie-resize .aie-resize-btn-top-left{cursor:nwse-resize;top:-10px;left:-10px}.aie-container .aie-resize-wrapper .aie-resize .aie-resize-btn-top-right{cursor:nesw-resize;top:-10px;right:-10px}.aie-container .aie-resize-wrapper .aie-resize .aie-resize-btn-bottom-left{cursor:nesw-resize;bottom:-10px;left:-10px}.aie-container .aie-resize-wrapper .aie-resize .aie-resize-btn-bottom-right{cursor:nwse-resize;bottom:-10px;right:-10px}.aie-container .aie-loader-placeholder{background:#efefef;width:200px;height:200px;display:flex}.aie-container .aie-loader-placeholder svg{fill:#ccc;width:80px;margin:auto;animation:2s linear infinite rotate}@keyframes rotate{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.aie-container .aie-codeblock-wrapper{background:var(--aie-content-pre-bg-color);word-wrap:normal;white-space:normal;border-radius:5px;padding-top:5px}.aie-container .aie-codeblock-wrapper:hover .aie-codeblock-tools{display:flex}.aie-container .aie-codeblock-wrapper .aie-codeblock-tools{justify-content:flex-end;display:flex}.aie-container .aie-codeblock-wrapper .aie-codeblock-tools div{color:var(--aie-text-color);cursor:pointer;align-items:center;margin:0 3px;font-size:14px;display:flex}.aie-container .aie-codeblock-wrapper .aie-codeblock-tools-lang svg{fill:var(--aie-text-color);width:16px;height:16px;margin:2px}.aie-container .aie-codeblock-wrapper .aie-codeblock-tools-autowrap{margin:0 10px}.aie-container .aie-codeblock-wrapper .aie-codeblock-tools-autowrap svg{fill:var(--aie-text-color);width:14px;height:14px;margin:2px}.aie-container .aie-codeblock-langs{background:var(--aie-popover-bg-color);border:solid 1px var(--aie-popover-border-color);width:150px;max-height:300px;color:var(--aie-menus-text-color);overflow:auto}.aie-container .aie-codeblock-langs-item{cursor:pointer;height:20px;padding:5px;font-size:14px;line-height:20px}.aie-container .aie-codeblock-langs-item:hover{background:var(--aie-popover-selected-color)}.aie-container .container-wrapper:hover .aie-container-tools{display:flex}.aie-container div.info{background:var(--aie-content-container-info-color)}.aie-container div.warning{background:var(--aie-content-container-warning-color)}.aie-container div.danger{background:var(--aie-content-container-danger-color)}.aie-container .aie-container-tools{background:var(--aie-button-bg-color);border:solid 1px var(--aie-button-border-color);cursor:pointer;border-radius:3px;justify-content:center;align-items:center;width:40px;height:20px;padding:3px 5px;display:none;position:absolute;top:5px;right:5px}.aie-container .aie-container-tools:hover{background:var(--aie-button-hover-bg-color);border-color:var(--aie-button-hover-border-color)}.aie-container .aie-container-tools-body{background:var(--aie-popover-bg-color);border:solid 1px var(--aie-button-border-color);width:fit-content;height:fit-content;color:var(--aie-text-color);border-radius:3px;flex-direction:column;gap:5px;padding:10px;display:flex}.aie-container .aie-container-tools-body-color-items{gap:5px;display:flex}.aie-container .aie-container-tools-body-color-box{border:1px solid var(--aie-popover-border-color);cursor:pointer;width:20px;height:20px}.aie-container aie-footer>div{border-top:solid 1px var(--aie-border-color);text-align:right;color:#666;height:20px;font-size:14px;line-height:20px}.aie-container aie-footer>div span{margin-left:auto}.aie-container aie-footer>div svg{fill:#666;cursor:nwse-resize;transform:translateY(5px)}.aie-container .tippy-box{max-width:1000px!important}.aie-container .tippy-box[data-animation=fade][data-state=hidden]{opacity:0}.aie-container [data-tippy-root]{max-width:calc(100vw - 10px)}.aie-container .tippy-box{white-space:normal;border-radius:4px;outline:0;font-size:14px;line-height:1.4;transition-property:transform,visibility,opacity;position:relative}.aie-container .tippy-box[data-placement^=top]>.tippy-arrow{bottom:0}.aie-container .tippy-box[data-placement^=top]>.tippy-arrow:before{border-width:8px 8px 0;border-top-color:initial;transform-origin:top;bottom:-7px;left:0}.aie-container .tippy-box[data-placement^=bottom]>.tippy-arrow{top:0}.aie-container .tippy-box[data-placement^=bottom]>.tippy-arrow:before{border-width:0 8px 8px;border-bottom-color:initial;transform-origin:bottom;top:-7px;left:0}.aie-container .tippy-box[data-placement^=left]>.tippy-arrow{right:0}.aie-container .tippy-box[data-placement^=left]>.tippy-arrow:before{border-width:8px 0 8px 8px;border-left-color:initial;transform-origin:0;right:-7px}.aie-container .tippy-box[data-placement^=right]>.tippy-arrow{left:0}.aie-container .tippy-box[data-placement^=right]>.tippy-arrow:before{border-width:8px 8px 8px 0;border-right-color:initial;transform-origin:100%;left:-7px}.aie-container .tippy-box[data-inertia][data-state=visible]{transition-timing-function:cubic-bezier(.54,1.5,.38,1.11)}.aie-container .tippy-arrow{width:16px;height:16px}.aie-container .tippy-arrow:before{content:"";border-style:solid;border-color:#0000;position:absolute}.aie-container .tippy-content{z-index:1;padding:5px 9px;position:relative}.aie-container .tippy-box[data-theme~=aietip]{background-color:var(--aie-menus-tip-bg-color);color:var(--aie-menus-tip-text-color)}.aie-container .tippy-box[data-theme~=aietip][data-placement^=top]>.tippy-arrow:before{border-top-color:var(--aie-menus-tip-bg-color)}.aie-container .tippy-box[data-theme~=aietip][data-placement^=bottom]>.tippy-arrow:before{border-bottom-color:var(--aie-menus-tip-bg-color)}.aie-container .tippy-box[data-theme~=aietip][data-placement^=left]>.tippy-arrow:before{border-left-color:var(--aie-menus-tip-bg-color)}.aie-container .tippy-box[data-theme~=aietip][data-placement^=right]>.tippy-arrow:before{border-right-color:var(--aie-menus-tip-bg-color)}.aie-theme-light pre code.hljs{padding:1em;display:block;overflow-x:auto}.aie-theme-light code.hljs{padding:3px 5px}.aie-theme-light .hljs{color:#383a42;background:#fafafa}.aie-theme-light .hljs-comment,.aie-theme-light .hljs-quote{color:#a0a1a7;font-style:italic}.aie-theme-light .hljs-doctag,.aie-theme-light .hljs-keyword,.aie-theme-light .hljs-formula{color:#a626a4}.aie-theme-light .hljs-section,.aie-theme-light .hljs-name,.aie-theme-light .hljs-selector-tag,.aie-theme-light .hljs-deletion,.aie-theme-light .hljs-subst{color:#e45649}.aie-theme-light .hljs-literal{color:#0184bb}.aie-theme-light .hljs-string,.aie-theme-light .hljs-regexp,.aie-theme-light .hljs-addition,.aie-theme-light .hljs-attribute,.aie-theme-light .hljs-meta .hljs-string{color:#50a14f}.aie-theme-light .hljs-attr,.aie-theme-light .hljs-variable,.aie-theme-light .hljs-template-variable,.aie-theme-light .hljs-type,.aie-theme-light .hljs-selector-class,.aie-theme-light .hljs-selector-attr,.aie-theme-light .hljs-selector-pseudo,.aie-theme-light .hljs-number{color:#986801}.aie-theme-light .hljs-symbol,.aie-theme-light .hljs-bullet,.aie-theme-light .hljs-link,.aie-theme-light .hljs-meta,.aie-theme-light .hljs-selector-id,.aie-theme-light .hljs-title{color:#4078f2}.aie-theme-light .hljs-built_in,.aie-theme-light .hljs-title.class_,.aie-theme-light .hljs-class .hljs-title{color:#c18401}.aie-theme-light .hljs-emphasis{font-style:italic}.aie-theme-light .hljs-strong{font-weight:700}.aie-theme-light .hljs-link{text-decoration:underline}.aie-theme-dark pre code.hljs{padding:1em;display:block;overflow-x:auto}.aie-theme-dark code.hljs{padding:3px 5px}.aie-theme-dark .hljs{color:#abb2bf;background:#282c34}.aie-theme-dark .hljs-comment,.aie-theme-dark .hljs-quote{color:#5c6370;font-style:italic}.aie-theme-dark .hljs-doctag,.aie-theme-dark .hljs-keyword,.aie-theme-dark .hljs-formula{color:#c678dd}.aie-theme-dark .hljs-section,.aie-theme-dark .hljs-name,.aie-theme-dark .hljs-selector-tag,.aie-theme-dark .hljs-deletion,.aie-theme-dark .hljs-subst{color:#e06c75}.aie-theme-dark .hljs-literal{color:#56b6c2}.aie-theme-dark .hljs-string,.aie-theme-dark .hljs-regexp,.aie-theme-dark .hljs-addition,.aie-theme-dark .hljs-attribute,.aie-theme-dark .hljs-meta .hljs-string{color:#98c379}.aie-theme-dark .hljs-attr,.aie-theme-dark .hljs-variable,.aie-theme-dark .hljs-template-variable,.aie-theme-dark .hljs-type,.aie-theme-dark .hljs-selector-class,.aie-theme-dark .hljs-selector-attr,.aie-theme-dark .hljs-selector-pseudo,.aie-theme-dark .hljs-number{color:#d19a66}.aie-theme-dark .hljs-symbol,.aie-theme-dark .hljs-bullet,.aie-theme-dark .hljs-link,.aie-theme-dark .hljs-meta,.aie-theme-dark .hljs-selector-id,.aie-theme-dark .hljs-title{color:#61aeee}.aie-theme-dark .hljs-built_in,.aie-theme-dark .hljs-title.class_,.aie-theme-dark .hljs-class .hljs-title{color:#e6c07b}.aie-theme-dark .hljs-emphasis{font-style:italic}.aie-theme-dark .hljs-strong{font-weight:700}.aie-theme-dark .hljs-link{text-decoration:underline}.aie-popover{background:#fff;background:var(--aie-popover-bg-color);border:1px solid var(--aie-popover-border-color);border-radius:3px;flex-direction:column;min-width:100px;min-height:100px;display:flex;overflow:hidden;box-shadow:0 2px 5px 2px #0000001a}.aie-popover-header{height:20px;padding:5px 5px 0;display:flex}.aie-popover-header-close{cursor:pointer;width:20px;height:20px;margin-left:auto}.aie-popover-header svg{fill:var(--aie-text-color)}.aie-popover-content{flex-grow:1;padding:0 10px}.aie-popover-content>div{color:var(--aie-text-color);font-size:14px}.aie-popover-content input,.aie-popover-content select,.aie-popover-content textarea{border:solid 1px var(--aie-input-border-color);background:var(--aie-input-bg-color);height:25px;color:var(--aie-text-color);border-radius:3px;padding-inline:5px}.aie-popover-content input:focus-visible,.aie-popover-content select:focus-visible,.aie-popover-content textarea:focus-visible{border:solid 1px var(--aie-input-focus-border-color);background-color:var(--aie-input-focus-bg-color);outline:0}.aie-popover-content select{height:30px}.aie-popover-footer{justify-content:flex-end;align-items:center;gap:10px;padding:10px;display:flex}.aie-popover-footer button{color:var(--aie-text-color);cursor:pointer;border-radius:3px;justify-content:center;align-items:center;gap:2px;width:fit-content;padding:5px 10px;font-size:14px;display:flex}.aie-popover-footer button svg{width:14px;height:14px;fill:var(--aie-text-color)}.aie-popover-footer-confirm{background:var(--aie-button-bg-color);border:solid 1px var(--aie-button-border-color)}.aie-popover-footer-confirm:hover{background:var(--aie-button-hover-bg-color);border-color:var(--aie-button-hover-border-color)}.aie-popover-footer-cancel{background:0 0;border:none}.aie-popover-footer-cancel:hover{background:var(--aie-button-hover-bg-color);border-color:var(--aie-button-hover-border-color)}.ai-command-container{border:1px solid;border-color:var(--aie-popover-border-color);background:var(--aie-popover-bg-color);width:200px;color:var(--aie-text-color);border-radius:5px;flex-direction:column;padding:10px 0;display:flex;box-shadow:0 0 7px #0000001a}.ai-command-container .active{background:var(--aie-popover-selected-color)}.ai-command-container-title{background-color:#eaeaea;border:none;width:100%;height:1px;margin:5px 0}.ai-command-container hr{background-color:var(--aie-popover-border-color);border:none;width:100%;height:1px;margin:5px 0}.ai-command-container-header{flex-wrap:wrap;align-items:center;padding:0 10px;display:flex}.ai-command-container-header-item{cursor:pointer;justify-content:center;align-items:center;width:30px;height:30px;display:flex}.ai-command-container-header-item:hover{background-color:var(--aie-popover-selected-color)}.ai-command-container-header svg{fill:var(--aie-text-color);width:18px;height:18px}.ai-command-container-item{color:var(--aie-text-color);cursor:pointer;align-items:center;padding:10px 20px;font-family:Arial,Helvetica Neue,Helvetica,PingFang SC,Hiragino Sans GB,Microsoft YaHei,sans-serif;font-size:14px;display:flex}.ai-command-container-item svg{width:16px;height:16px;margin-right:10px}.ai-command-container-item:hover{background-color:var(--aie-popover-selected-color)}.aie-content{color:var(--aie-text-color);margin:0;padding:10px;overflow:auto}.aie-content>:first-child{margin-top:0}.aie-content::-webkit-scrollbar{width:4px}.aie-content::-webkit-scrollbar-track-piece{background-color:var(--aie-content-scrollbar-track-piece)}.aie-content::-webkit-scrollbar-thumb{background-color:var(--aie-content-scrollbar-thumb)}.aie-content::-webkit-scrollbar-thumb:hover{background-color:var(--aie-content-scrollbar-thumb-hover)}.aie-content::-webkit-scrollbar-thumb:active{background-color:var(--aie-content-scrollbar-thumb-active)}.aie-content a{color:var(--aie-content-link-a-color)}.aie-content a :visited{color:var(--aie-content-link-a-visited-color)}.aie-content a :active{color:var(--aie-content-link-a-active-color)}.aie-content p{min-height:26px;margin:16px 0;line-height:26px}.aie-content ul,.aie-content ol{margin-block:1em;margin-inline:0;padding-inline-start:20px;display:block}.aie-content li p{margin:5px 0;padding:0}.aie-content ul[data-type=taskList]{margin-block:1em;margin-inline:0;padding-inline-start:0;display:block}.aie-content ul[data-type=taskList] li{align-items:baseline;display:flex}.aie-content ul[data-type=taskList] li p{padding-left:2px}.aie-content blockquote{border-left:2px solid var(--aie-content-blockquote-border-color);background:var(--aie-content-blockquote-bg-color);margin:16px 0;padding:5px 10px}.aie-content blockquote p{color:var(--aie-content-blockquote-text-color);margin:5px 0}.aie-content img{border:1px solid #efefef}.aie-content code{background:var(--aie-content-pre-bg-color);border-radius:3px;padding:3px 6px}.aie-content pre{background:var(--aie-content-pre-bg-color);border-radius:5px;margin:0;padding:0 10px 10px;overflow:auto}.aie-content pre code{background:var(--aie-content-pre-bg-color);padding:0}.aie-content h1{letter-spacing:-.02em;padding-top:24px;font-size:32px;line-height:40px}.aie-content h2{letter-spacing:-.02em;padding-top:24px;font-size:24px;line-height:32px}.aie-content h3{letter-spacing:-.01em;margin:32px 0 0;font-size:20px;line-height:28px}.aie-content strong{font-weight:600}.aie-content table{border-collapse:collapse;table-layout:fixed;width:100%;margin:0;overflow:hidden}.aie-content table img{z-index:1}.aie-content table td,.aie-content table th{border:2px solid var(--aie-content-table-border-color);box-sizing:border-box;vertical-align:top;min-width:1em;padding:3px 5px;position:relative}.aie-content table td>*,.aie-content table th>*{margin-bottom:0}.aie-content table th{background-color:var(--aie-content-table-th-bg-color);text-align:left;font-weight:700}.aie-content table .selectedCell:after{background:var(--aie-content-table-selected-bg-color);content:"";pointer-events:none;z-index:2;position:absolute;inset:0}.aie-content table .column-resize-handle{background-color:var(--aie-content-table-handler-color);pointer-events:none;width:3px;position:absolute;top:0;bottom:-2px;right:-2px}.aie-content table p{margin:0}.aie-content .align-left{text-align:left}.aie-content .align-right{text-align:right}.aie-content .align-center{text-align:center}.aie-content span[data-type=mention]{border:1px solid #ccc;border-radius:5px;padding:0 3px}.aie-content p.is-editor-empty:first-child:before{color:var(--aie-text-placeholder-color);content:attr(data-placeholder);float:left;pointer-events:none;height:0}.aie-content div.container-wrapper{border:1px solid var(--aie-border-color);border-radius:3px;margin:1rem 0;padding:0 1rem}.aie-content div.info{background:var(--aie-content-container-info-color)}.aie-content div.warning{background:var(--aie-content-container-warning-color)}.aie-content div.danger{background:var(--aie-content-container-danger-color)}.tableWrapper{padding:1rem 0}.resize-cursor{cursor:ew-resize;cursor:col-resize}[data-v-a155afd8] .node-handle{opacity:0;padding-right:5px;transition:opacity .3s}.custom-tree-node[data-v-a155afd8]{flex-direction:row;justify-content:space-between;align-items:center;width:100%;padding-right:5px;display:flex}.custom-tree-node .node-label[data-v-a155afd8]{max-width:50%}[data-v-a155afd8] .custom-tree-node:hover .node-handle,[data-v-a155afd8] .custom-tree-node:active .node-handle{opacity:1}.infinite-list-item[data-v-2180fa82]{cursor:pointer;color:#606266;border-bottom:1px solid #eee;justify-content:space-between;align-items:center;padding:0 5px;font-size:.9em;line-height:34px;display:flex;overflow-y:auto}.infinite-list-item.active[data-v-2180fa82]{background-color:#fafafa;font-weight:700}.infinite-list-item[data-v-2180fa82]:hover{background-color:#fafafa}.ui-descriptions[data-v-f02c30f9] .el-descriptions__cell .el-descriptions__label{color:#6b7280;font-size:.9em;font-weight:700}.ui-descriptions[data-v-f02c30f9] .el-descriptions__cell .el-descriptions__content{color:#1f2937}.ui-table[data-v-3402edfe] th.el-table__cell{color:#606266;background-color:#fafafa}.ui-pagination[data-v-3402edfe]{background-color:#fff;justify-content:flex-end;height:20px;margin-top:10px;padding:20px;display:flex}
|
|
2
2
|
/*$vite$:1*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "yc-vep-ui",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.3",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "基于 Vue 3 + Element Plus 的企业级 UI 组件库",
|
|
6
6
|
"keywords": [
|
|
@@ -18,10 +18,10 @@
|
|
|
18
18
|
},
|
|
19
19
|
"main": "./dist/vep-ui.umd.js",
|
|
20
20
|
"module": "./dist/vep-ui.es.js",
|
|
21
|
-
"types": "./dist/
|
|
21
|
+
"types": "./dist/entry.d.ts",
|
|
22
22
|
"exports": {
|
|
23
23
|
".": {
|
|
24
|
-
"types": "./dist/
|
|
24
|
+
"types": "./dist/entry.d.ts",
|
|
25
25
|
"import": "./dist/vep-ui.es.js",
|
|
26
26
|
"require": "./dist/vep-ui.umd.js"
|
|
27
27
|
},
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"scripts": {
|
|
35
35
|
"dev": "vite",
|
|
36
36
|
"build": "vue-tsc -b && vite build",
|
|
37
|
-
"build:lib": "
|
|
37
|
+
"build:lib": "vite build",
|
|
38
38
|
"preview": "vite preview",
|
|
39
39
|
"prepublishOnly": "npm run build:lib"
|
|
40
40
|
},
|
|
@@ -50,6 +50,7 @@
|
|
|
50
50
|
"@vue/tsconfig": "^0.9.1",
|
|
51
51
|
"typescript": "~6.0.2",
|
|
52
52
|
"vite": "^8.0.12",
|
|
53
|
+
"vite-plugin-dts": "^4.5.0",
|
|
53
54
|
"vue-tsc": "^3.2.8"
|
|
54
55
|
},
|
|
55
56
|
"peerDependencies": {
|