@zl-ui-kit/components 0.8.1 → 0.8.2
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/README.md +357 -359
- package/dist/components/ZlAction/List.vue.d.ts +5 -0
- package/dist/components/ZlAddSub/index.css +1 -1
- package/dist/components/ZlAddSub/index.vue.d.ts +1 -0
- package/dist/components/ZlAddSub/index.vue.mjs +2 -2
- package/dist/components/ZlAppLayout/index.vue.d.ts +2 -0
- package/dist/components/ZlAppLayout/index.vue.mjs +1 -0
- package/dist/components/ZlAppMenu/AppMenu.vue.d.ts +2 -0
- package/dist/components/ZlAppSlogan/index.vue.d.ts +3 -0
- package/dist/components/ZlAutoTooltip/index.css +1 -1
- package/dist/components/ZlAutoTooltip/index.vue.mjs +2 -2
- package/dist/components/ZlAvatar/Group.css +1 -1
- package/dist/components/ZlAvatar/Group.vue.d.ts +2 -0
- package/dist/components/ZlAvatar/Group.vue.mjs +2 -2
- package/dist/components/ZlAvatar/index.css +1 -1
- package/dist/components/ZlAvatar/index.vue.d.ts +2 -0
- package/dist/components/ZlAvatar/index.vue.mjs +2 -2
- package/dist/components/ZlCard/index.vue.d.ts +1 -0
- package/dist/components/ZlCardPage/index.vue.d.ts +5 -0
- package/dist/components/ZlCheckAll/index.css +1 -1
- package/dist/components/ZlCheckAll/index.vue.d.ts +2 -0
- package/dist/components/ZlCheckAll/index.vue.mjs +2 -2
- package/dist/components/ZlCheckboxTag/index.vue.d.ts +5 -0
- package/dist/components/ZlCopy/index.css +1 -1
- package/dist/components/ZlCopy/index.vue.d.ts +2 -0
- package/dist/components/ZlCopy/index.vue.mjs +2 -2
- package/dist/components/ZlDescription/index.vue.d.ts +4 -0
- package/dist/components/ZlDictTag/index.vue.d.ts +7 -1
- package/dist/components/ZlDrawer/index.vue.d.ts +5 -0
- package/dist/components/ZlDynamicComponent/index.vue.d.ts +6 -0
- package/dist/components/ZlDynamicComponent/index.vue.mjs +3 -0
- package/dist/components/ZlEditor/ZlSqlEditor.vue.d.ts +2 -0
- package/dist/components/ZlEditor/index.vue.d.ts +2 -0
- package/dist/components/ZlFilePreview/index.vue.d.ts +1 -0
- package/dist/components/ZlFileViewer/index.css +1 -1
- package/dist/components/ZlFileViewer/index.vue.d.ts +1 -0
- package/dist/components/ZlFileViewer/index.vue.mjs +2 -2
- package/dist/components/ZlForm/ZlFormChild.vue.d.ts +2 -0
- package/dist/components/ZlForm/ZlFormChild.vue.mjs +4 -1
- package/dist/components/ZlForm/index.vue.d.ts +2 -0
- package/dist/components/ZlGrid/ZlGridItem.vue.d.ts +1 -0
- package/dist/components/ZlGrid/index.vue.d.ts +8 -0
- package/dist/components/ZlHorizontalTable/index.css +1 -1
- package/dist/components/ZlHorizontalTable/index.vue.d.ts +4 -0
- package/dist/components/ZlHorizontalTable/index.vue.mjs +2 -2
- package/dist/components/ZlIcon/index.css +1 -1
- package/dist/components/ZlIcon/index.vue.mjs +2 -2
- package/dist/components/ZlLayoutSwitch/index.css +1 -1
- package/dist/components/ZlLayoutSwitch/index.vue.d.ts +1 -0
- package/dist/components/ZlLayoutSwitch/index.vue.mjs +2 -2
- package/dist/components/ZlLogin/components/LoginForm.css +1 -1
- package/dist/components/ZlLogin/components/LoginForm.vue.d.ts +1 -0
- package/dist/components/ZlLogin/components/LoginForm.vue.mjs +1 -1
- package/dist/components/ZlLogin/index.vue.d.ts +2 -0
- package/dist/components/ZlPdfViewer/index.vue.d.ts +2 -0
- package/dist/components/ZlPopconfirm/index.vue.d.ts +4 -0
- package/dist/components/ZlRadioTag/index.vue.d.ts +2 -0
- package/dist/components/ZlSearch/index.vue.d.ts +5 -1
- package/dist/components/ZlSearchTable/index.vue.d.ts +4 -0
- package/dist/components/ZlSection/index.vue.d.ts +1 -0
- package/dist/components/ZlSorter/ZlSorterList.css +1 -1
- package/dist/components/ZlSorter/ZlSorterList.vue.d.ts +2 -0
- package/dist/components/ZlSorter/ZlSorterList.vue.mjs +2 -2
- package/dist/components/ZlSorter/index.css +1 -1
- package/dist/components/ZlSorter/index.vue.d.ts +1 -0
- package/dist/components/ZlSorter/index.vue.mjs +1 -1
- package/dist/components/ZlSwitch/index.vue.d.ts +6 -0
- package/dist/components/ZlTable/index.vue.d.ts +6 -0
- package/dist/components/ZlTabs/index.vue.d.ts +8 -0
- package/dist/components/ZlTabs/index.vue.mjs +6 -0
- package/dist/components/ZlTag/ZlCornerTag.vue.d.ts +3 -0
- package/dist/components/ZlTag/index.vue.d.ts +30 -0
- package/dist/components/ZlTag/index.vue.mjs +15 -0
- package/dist/components/ZlText/index.css +1 -1
- package/dist/components/ZlText/index.vue.d.ts +1 -0
- package/dist/components/ZlText/index.vue.mjs +2 -2
- package/dist/components/ZlTitle/index.css +1 -1
- package/dist/components/ZlTitle/index.vue.d.ts +5 -0
- package/dist/components/ZlTitle/index.vue.mjs +2 -2
- package/dist/components/ZlTree/index.vue.d.ts +1 -0
- package/dist/components/ZlTreeSelect/index.css +1 -1
- package/dist/components/ZlTreeSelect/index.vue.d.ts +1 -0
- package/dist/components/ZlTreeSelect/index.vue.mjs +3 -3
- package/dist/components/ZlUpload/index.css +1 -1
- package/dist/components/ZlUpload/index.vue.d.ts +5 -2
- package/dist/components/ZlUpload/index.vue.mjs +2 -2
- package/package.json +6 -6
|
@@ -1,11 +1,16 @@
|
|
|
1
1
|
import { ActionItem } from './types';
|
|
2
2
|
type __VLS_Props = {
|
|
3
|
+
/** 操作项配置,按顺序渲染为文字或图标按钮 */
|
|
3
4
|
actions?: ActionItem[];
|
|
5
|
+
/** 点击时透传给 `action` 事件与 handler 的参数 */
|
|
4
6
|
actionArgs?: any[];
|
|
7
|
+
/** 传给每项 `visible` 判定函数的参数 */
|
|
5
8
|
visibleArgs?: any[];
|
|
6
9
|
/** 直接展示的操作数,超出收入"更多"下拉 */
|
|
7
10
|
listCount?: number;
|
|
11
|
+
/** 为 true 时把"更多"换成图标,对象则作为图标 props */
|
|
8
12
|
iconMore?: boolean | Record<string, any>;
|
|
13
|
+
/** 各操作之间是否插入竖线分隔符 */
|
|
9
14
|
separator?: boolean;
|
|
10
15
|
};
|
|
11
16
|
declare function __VLS_template(): {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.zl-add[data-v-
|
|
1
|
+
.zl-add[data-v-305c0700]{display:flex;flex-direction:column;gap:8px}.zl-add__box[data-v-305c0700]{display:flex;flex-direction:row;align-items:center}.zl-add__box .zl-icon[data-v-305c0700]{cursor:pointer;margin-left:8px}.zl-add__content[data-v-305c0700]{flex:1}.zl-add__dot[data-v-305c0700]{display:inline-flex;width:14px;height:14px;margin-left:8px}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import o from "./index2.vue.mjs";
|
|
2
2
|
import './index.css';/* empty css */
|
|
3
3
|
import t from "../../_virtual/_plugin-vue_export-helper.mjs";
|
|
4
|
-
const
|
|
4
|
+
const _ = /* @__PURE__ */ t(o, [["__scopeId", "data-v-305c0700"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
_ as default
|
|
7
7
|
};
|
|
8
8
|
//# sourceMappingURL=index.vue.mjs.map
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
* 插槽:logo/menu/breadcrumb/header/footer/default
|
|
4
4
|
*/
|
|
5
5
|
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
6
|
+
/** 布局方向:横向用顶部菜单,纵向用侧边菜单 */
|
|
6
7
|
layout: {
|
|
7
8
|
type: () => "horizontal" | "vertical";
|
|
8
9
|
default: string;
|
|
@@ -10,6 +11,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
10
11
|
}>, () => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
|
|
11
12
|
[key: string]: any;
|
|
12
13
|
}>, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
14
|
+
/** 布局方向:横向用顶部菜单,纵向用侧边菜单 */
|
|
13
15
|
layout: {
|
|
14
16
|
type: () => "horizontal" | "vertical";
|
|
15
17
|
default: string;
|
|
@@ -7,9 +7,11 @@ export interface MenuItem {
|
|
|
7
7
|
[key: string]: any;
|
|
8
8
|
}
|
|
9
9
|
type __VLS_Props = {
|
|
10
|
+
/** 菜单是否收起为图标,侧栏折叠时用 */
|
|
10
11
|
collapsed?: boolean;
|
|
11
12
|
/** el-menu 模式:vertical / horizontal */
|
|
12
13
|
layout?: 'vertical' | 'horizontal';
|
|
14
|
+
/** 菜单树数据,递归渲染为多级菜单项 */
|
|
13
15
|
menus?: MenuItem[];
|
|
14
16
|
};
|
|
15
17
|
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
type __VLS_Props = {
|
|
2
|
+
/** 为 true 时只显示 Logo,隐藏标题 */
|
|
2
3
|
collapsed?: boolean;
|
|
4
|
+
/** 品牌 Logo 的图片地址 */
|
|
3
5
|
logo?: string;
|
|
6
|
+
/** 应用标题文案,折叠时隐藏 */
|
|
4
7
|
title?: string;
|
|
5
8
|
};
|
|
6
9
|
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.zl-auto-tooltip[data-v-
|
|
1
|
+
.zl-auto-tooltip[data-v-6249e6d9]{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import o from "./index2.vue.mjs";
|
|
2
2
|
import './index.css';/* empty css */
|
|
3
3
|
import t from "../../_virtual/_plugin-vue_export-helper.mjs";
|
|
4
|
-
const
|
|
4
|
+
const _ = /* @__PURE__ */ t(o, [["__scopeId", "data-v-6249e6d9"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
_ as default
|
|
7
7
|
};
|
|
8
8
|
//# sourceMappingURL=index.vue.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.zl-avatar-group[data-v-
|
|
1
|
+
.zl-avatar-group[data-v-47b151a2]{position:relative;display:inline-flex;align-items:center}.zl-avatar-group__divider[data-v-47b151a2]{margin:auto 11px auto 6px;height:16px;border-left:1px solid var(--zl-border-2, rgb(201, 205, 212))}.zl-avatar-group__divider~.zl-avatar[data-v-47b151a2]{border:1px solid var(--zl-bg-1, #fff);margin-left:-5px}
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
type __VLS_Props = {
|
|
2
|
+
/** 头像数据列表,首项单独展示,其余层叠 */
|
|
2
3
|
list: Array<Record<string, any>>;
|
|
3
4
|
/** 字段映射(imageUrl/label 的取值键) */
|
|
4
5
|
props?: {
|
|
5
6
|
imageUrl?: string;
|
|
6
7
|
label?: string;
|
|
7
8
|
};
|
|
9
|
+
/** 每个头像的尺寸(CSS 长度) */
|
|
8
10
|
size?: string;
|
|
9
11
|
};
|
|
10
12
|
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import o from "./Group2.vue.mjs";
|
|
2
2
|
import './Group.css';/* empty css */
|
|
3
3
|
import r from "../../_virtual/_plugin-vue_export-helper.mjs";
|
|
4
|
-
const
|
|
4
|
+
const m = /* @__PURE__ */ r(o, [["__scopeId", "data-v-47b151a2"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
m as default
|
|
7
7
|
};
|
|
8
8
|
//# sourceMappingURL=Group.vue.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.zl-avatar[data-v-
|
|
1
|
+
.zl-avatar[data-v-7b18fac6]{position:relative;display:flex;align-items:center;border-radius:50%;overflow:hidden;color:#fff;box-sizing:content-box;width:var(--zl-avatar-size);height:var(--zl-avatar-size);font-size:var(--zl-avatar-size)}.zl-avatar__text[data-v-7b18fac6]{display:flex;align-items:center;justify-content:center;width:100%;height:100%;text-transform:uppercase;background-color:var(--zl-gold-6, #f7ba1e);font-size:40%}.zl-avatar__image[data-v-7b18fac6]{width:100%;overflow:hidden}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import o from "./index2.vue.mjs";
|
|
2
2
|
import './index.css';/* empty css */
|
|
3
3
|
import t from "../../_virtual/_plugin-vue_export-helper.mjs";
|
|
4
|
-
const
|
|
4
|
+
const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-7b18fac6"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
m as default
|
|
7
7
|
};
|
|
8
8
|
//# sourceMappingURL=index.vue.mjs.map
|
|
@@ -16,6 +16,7 @@ interface UseRequestInstance {
|
|
|
16
16
|
[key: string]: any;
|
|
17
17
|
}
|
|
18
18
|
type __VLS_Props = {
|
|
19
|
+
/** 无查询条件时是否立即发起首次请求 */
|
|
19
20
|
immediate?: boolean;
|
|
20
21
|
/**
|
|
21
22
|
* 请求来源,三种形态任一:
|
|
@@ -27,9 +28,13 @@ type __VLS_Props = {
|
|
|
27
28
|
service: (...args: any[]) => Promise<any>;
|
|
28
29
|
options?: Record<string, any>;
|
|
29
30
|
} | UseRequestInstance;
|
|
31
|
+
/** 搜索表单项配置,为空则不渲染搜索栏 */
|
|
30
32
|
queryItems?: SearchItem[];
|
|
33
|
+
/** 分页配置,false 关闭分页,对象则透传 */
|
|
31
34
|
pagination?: Record<string, any> | boolean;
|
|
35
|
+
/** 卡片数据的唯一键字段名,默认 id */
|
|
32
36
|
itemKey?: string;
|
|
37
|
+
/** 卡片最小宽度,决定单行能放几列 */
|
|
33
38
|
cardMinWidth?: string;
|
|
34
39
|
};
|
|
35
40
|
declare function search(form?: Record<string, any>, pagination?: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.zl-check[data-v-
|
|
1
|
+
.zl-check[data-v-9682d1a0]{display:flex;flex-direction:column;align-items:flex-start;gap:4px}.zl-check__all[data-v-9682d1a0]{margin-bottom:4px}.zl-check[data-v-9682d1a0] .el-checkbox:not(.zl-check__all){padding:5px;background:var(--zl-primary-1, var(--el-color-primary-light-9, #e8f3ff))}.zl-check[data-v-9682d1a0] .el-checkbox:not(.zl-check__all):hover{background:var(--zl-fill-3, #e3e9ef)}
|
|
@@ -5,7 +5,9 @@ export interface CheckAllOption {
|
|
|
5
5
|
[key: string]: any;
|
|
6
6
|
}
|
|
7
7
|
type __VLS_Props = {
|
|
8
|
+
/** 全选管理的可选项,每项渲染成一个复选框 */
|
|
8
9
|
options?: CheckAllOption[];
|
|
10
|
+
/** 已勾选的 value 集合,用 v-model 双向绑定 */
|
|
9
11
|
model?: Array<string | number>;
|
|
10
12
|
};
|
|
11
13
|
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import o from "./index2.vue.mjs";
|
|
2
2
|
import './index.css';/* empty css */
|
|
3
3
|
import t from "../../_virtual/_plugin-vue_export-helper.mjs";
|
|
4
|
-
const
|
|
4
|
+
const p = /* @__PURE__ */ t(o, [["__scopeId", "data-v-9682d1a0"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
p as default
|
|
7
7
|
};
|
|
8
8
|
//# sourceMappingURL=index.vue.mjs.map
|
|
@@ -8,12 +8,17 @@ export interface CheckboxTagOption {
|
|
|
8
8
|
[key: string]: any;
|
|
9
9
|
}
|
|
10
10
|
type __VLS_Props = {
|
|
11
|
+
/** 标签候选列表,每项可配图标与互斥组 */
|
|
11
12
|
options?: CheckboxTagOption[];
|
|
12
13
|
/** 单选模式(值为单值) */
|
|
13
14
|
single?: boolean;
|
|
15
|
+
/** 是否圆角显示,默认开启 */
|
|
14
16
|
rounded?: boolean;
|
|
17
|
+
/** 选中时是否显示边框,默认开启 */
|
|
15
18
|
bordered?: boolean;
|
|
19
|
+
/** 是否填充背景色,默认开启 */
|
|
16
20
|
fill?: boolean;
|
|
21
|
+
/** 标签尺寸档位,默认 small */
|
|
17
22
|
size?: 'mini' | 'small' | 'medium';
|
|
18
23
|
};
|
|
19
24
|
type __VLS_PublicProps = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.zl-copy[data-v-
|
|
1
|
+
.zl-copy[data-v-9ed5846a]{max-width:100%;display:inline-flex;align-items:center;gap:12px}.zl-copy__text[data-v-9ed5846a]{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import o from "./index2.vue.mjs";
|
|
2
2
|
import './index.css';/* empty css */
|
|
3
3
|
import t from "../../_virtual/_plugin-vue_export-helper.mjs";
|
|
4
|
-
const
|
|
4
|
+
const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-9ed5846a"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
m as default
|
|
7
7
|
};
|
|
8
8
|
//# sourceMappingURL=index.vue.mjs.map
|
|
@@ -13,11 +13,15 @@ export interface DescriptionItem {
|
|
|
13
13
|
[key: string]: any;
|
|
14
14
|
}
|
|
15
15
|
type __VLS_Props = {
|
|
16
|
+
/** 展示项列表,决定字段顺序、取值与显隐 */
|
|
16
17
|
items: DescriptionItem[];
|
|
18
|
+
/** 取值来源对象,缺省按各项 key 取字段 */
|
|
17
19
|
data?: Record<string, any>;
|
|
20
|
+
/** 判断值是否为空,为空时改显示占位文案 */
|
|
18
21
|
emptyChecker?: (value: any, key: string, data: Record<string, any>) => boolean;
|
|
19
22
|
/** 空值占位文案(缺省走 i18n zl.description.empty,未接入时兜底"暂无") */
|
|
20
23
|
emptyText?: string;
|
|
24
|
+
/** 次要形态:灰底并显示字段间分隔线 */
|
|
21
25
|
secondary?: boolean;
|
|
22
26
|
};
|
|
23
27
|
declare function __VLS_template(): {
|
|
@@ -4,12 +4,18 @@ type __VLS_Props = {
|
|
|
4
4
|
dictKey: string;
|
|
5
5
|
/** 外部直传字典数据:无需依赖全局数据源即可翻译。格式同 DictItem[]({ label, value, icon?, type? }) */
|
|
6
6
|
dict?: DictItem[];
|
|
7
|
+
/** 是否渲染成角标并指定方位,true 时为右上角 */
|
|
7
8
|
corner?: boolean | 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right';
|
|
9
|
+
/** 待翻译的字典值,匹配不到时原样展示 */
|
|
8
10
|
value?: string;
|
|
11
|
+
/** 忽略字典项自带的颜色,改用标签默认配色 */
|
|
9
12
|
simple?: boolean;
|
|
10
13
|
/** 是否展示字典项图标(默认 true) */
|
|
11
14
|
iconVisible?: boolean;
|
|
12
|
-
/**
|
|
15
|
+
/**
|
|
16
|
+
* 已废弃,请用 `iconVisible` 控制图标显隐
|
|
17
|
+
* @deprecated 用 `iconVisible`:全库显隐统一用 visible 语义,且不要用反向命名
|
|
18
|
+
*/
|
|
13
19
|
hideIcon?: boolean;
|
|
14
20
|
};
|
|
15
21
|
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
@@ -1,8 +1,13 @@
|
|
|
1
1
|
type __VLS_Props = {
|
|
2
|
+
/** 关闭前触发,返回 true 才会真正关闭 */
|
|
2
3
|
onCancel?: () => boolean | void | Promise<boolean | void>;
|
|
4
|
+
/** 点击确定的回调,异步期间按钮保持 loading */
|
|
3
5
|
onOk?: () => void | Promise<void>;
|
|
6
|
+
/** 确定回调结束后是否自动关闭抽屉,默认 true */
|
|
4
7
|
autoCloseAfterConfirm?: boolean;
|
|
8
|
+
/** 只读模式:隐藏取消按钮,只留「关闭」 */
|
|
5
9
|
readonly?: boolean;
|
|
10
|
+
/** 内容区加载态,为 true 时显示遮罩 loading */
|
|
6
11
|
loading?: boolean;
|
|
7
12
|
};
|
|
8
13
|
type __VLS_PublicProps = {
|
|
@@ -3,14 +3,17 @@
|
|
|
3
3
|
* schema 见 types.ts;组件名支持全局注册名或组件对象;默认 el-input
|
|
4
4
|
*/
|
|
5
5
|
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
6
|
+
/** 共享的数据对象,子组件按 model 字段读写值 */
|
|
6
7
|
model: {
|
|
7
8
|
type: ObjectConstructor;
|
|
8
9
|
default: () => {};
|
|
9
10
|
};
|
|
11
|
+
/** type 为 vModel 时透传给子组件的值 */
|
|
10
12
|
value: {
|
|
11
13
|
type: (BooleanConstructor | ArrayConstructor | StringConstructor | NumberConstructor)[];
|
|
12
14
|
default: null;
|
|
13
15
|
};
|
|
16
|
+
/** 待渲染组件的 schema 描述,缺省渲染 el-input */
|
|
14
17
|
component: {
|
|
15
18
|
type: ObjectConstructor;
|
|
16
19
|
default: () => {
|
|
@@ -20,14 +23,17 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
20
23
|
}>, () => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
|
|
21
24
|
[key: string]: any;
|
|
22
25
|
}> | null, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, ("input" | "update:modelValue")[], "input" | "update:modelValue", import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
26
|
+
/** 共享的数据对象,子组件按 model 字段读写值 */
|
|
23
27
|
model: {
|
|
24
28
|
type: ObjectConstructor;
|
|
25
29
|
default: () => {};
|
|
26
30
|
};
|
|
31
|
+
/** type 为 vModel 时透传给子组件的值 */
|
|
27
32
|
value: {
|
|
28
33
|
type: (BooleanConstructor | ArrayConstructor | StringConstructor | NumberConstructor)[];
|
|
29
34
|
default: null;
|
|
30
35
|
};
|
|
36
|
+
/** 待渲染组件的 schema 描述,缺省渲染 el-input */
|
|
31
37
|
component: {
|
|
32
38
|
type: ObjectConstructor;
|
|
33
39
|
default: () => {
|
|
@@ -2,14 +2,17 @@ import { defineComponent as O, h as c, resolveComponent as a } from "vue";
|
|
|
2
2
|
const j = O({
|
|
3
3
|
name: "ZlDynamicComponent",
|
|
4
4
|
props: {
|
|
5
|
+
/** 共享的数据对象,子组件按 model 字段读写值 */
|
|
5
6
|
model: {
|
|
6
7
|
type: Object,
|
|
7
8
|
default: () => ({})
|
|
8
9
|
},
|
|
10
|
+
/** type 为 vModel 时透传给子组件的值 */
|
|
9
11
|
value: {
|
|
10
12
|
type: [String, Number, Array, Boolean],
|
|
11
13
|
default: null
|
|
12
14
|
},
|
|
15
|
+
/** 待渲染组件的 schema 描述,缺省渲染 el-input */
|
|
13
16
|
component: {
|
|
14
17
|
type: Object,
|
|
15
18
|
default: () => ({ component: "el-input" })
|
|
@@ -2,7 +2,9 @@ import { SqlTableSchema } from './useSqlCompletion';
|
|
|
2
2
|
type __VLS_Props = {
|
|
3
3
|
/** 表结构(补全提示) */
|
|
4
4
|
tableSchemas?: SqlTableSchema[];
|
|
5
|
+
/** 追加到内置保留字表的自定义关键字 */
|
|
5
6
|
customKeywords?: string[];
|
|
7
|
+
/** 参与补全提示的自定义函数名 */
|
|
6
8
|
customFunctions?: string[];
|
|
7
9
|
};
|
|
8
10
|
declare function validate(): void;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
type __VLS_Props = {
|
|
2
|
+
/** 文件地址,变更后自动重新拉取并识别类型 */
|
|
2
3
|
url?: string;
|
|
3
4
|
};
|
|
4
5
|
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.zl-file-viewer[data-v-
|
|
1
|
+
.zl-file-viewer[data-v-b9b0e027]{height:100%;overflow:auto}.zl-file-viewer[data-v-b9b0e027] .docx-wrapper{background:var(--zl-bg-1, #fff);padding:0}.zl-file-viewer[data-v-b9b0e027] .docx-wrapper>section.docx{box-shadow:none;padding:0!important}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
type __VLS_Props = {
|
|
2
|
+
/** 指定渲染器类型,默认 word */
|
|
2
3
|
fileType?: 'word' | 'pdf' | 'excel' | 'ppt' | 'image';
|
|
3
4
|
};
|
|
4
5
|
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import o from "./index2.vue.mjs";
|
|
2
2
|
import './index.css';/* empty css */
|
|
3
3
|
import t from "../../_virtual/_plugin-vue_export-helper.mjs";
|
|
4
|
-
const
|
|
4
|
+
const p = /* @__PURE__ */ t(o, [["__scopeId", "data-v-b9b0e027"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
p as default
|
|
7
7
|
};
|
|
8
8
|
//# sourceMappingURL=index.vue.mjs.map
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
/** 按 item.component 动态渲染表单控件(透传 props/slots) */
|
|
2
2
|
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
3
|
+
/** 由 ZlForm 传入:描述要渲染的控件及其入参 */
|
|
3
4
|
item: {
|
|
4
5
|
type: ObjectConstructor;
|
|
5
6
|
required: true;
|
|
@@ -7,6 +8,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
7
8
|
}>, () => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
|
|
8
9
|
[key: string]: any;
|
|
9
10
|
}>, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
11
|
+
/** 由 ZlForm 传入:描述要渲染的控件及其入参 */
|
|
10
12
|
item: {
|
|
11
13
|
type: ObjectConstructor;
|
|
12
14
|
required: true;
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
import { defineComponent as t, h as m, resolveDynamicComponent as o } from "vue";
|
|
2
2
|
const i = t({
|
|
3
3
|
name: "ZlFormChild",
|
|
4
|
-
props: {
|
|
4
|
+
props: {
|
|
5
|
+
/** 由 ZlForm 传入:描述要渲染的控件及其入参 */
|
|
6
|
+
item: { type: Object, required: !0 }
|
|
7
|
+
},
|
|
5
8
|
setup(e) {
|
|
6
9
|
return () => m(o(e.item.component), e.item.props, e.item.slots);
|
|
7
10
|
}
|
|
@@ -1,12 +1,20 @@
|
|
|
1
1
|
import { IGridItem } from './types';
|
|
2
2
|
type __VLS_Props = {
|
|
3
|
+
/** 数据源对象,每项按 key 或 getValue 取值 */
|
|
3
4
|
data?: Record<string, any>;
|
|
5
|
+
/** 描述项 schema:决定展示哪些字段与顺序 */
|
|
4
6
|
grid?: IGridItem[];
|
|
7
|
+
/** 每行显示的描述项列数,默认 3 */
|
|
5
8
|
cols?: number;
|
|
9
|
+
/** 是否显示边框,呈表格式的网格线 */
|
|
6
10
|
border?: boolean;
|
|
11
|
+
/** 自定义空值判定;默认 0 以外的假值都算空 */
|
|
7
12
|
emptyChecker?: (value: any, key: string, data: Record<string, any>) => boolean;
|
|
13
|
+
/** 标签列宽度;auto 时按实测最宽标签对齐 */
|
|
8
14
|
labelWidth?: string | number;
|
|
15
|
+
/** 标签后缀,如冒号或空格 */
|
|
9
16
|
labelSuffix?: string;
|
|
17
|
+
/** 标签位置;top 时标签与值上下堆叠 */
|
|
10
18
|
labelPosition?: 'left' | 'top' | 'right';
|
|
11
19
|
/** 空值占位文案(缺省走 i18n zl.grid.empty,未接入时兜底"暂无") */
|
|
12
20
|
emptyText?: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.zl-horizontal-table[data-v-
|
|
1
|
+
.zl-horizontal-table[data-v-a17b4261]{border:1px solid var(--zl-border-2, #e3e9ef);border-bottom:none}.zl-horizontal-table__row[data-v-a17b4261]{display:flex;flex-direction:row;border-bottom:1px solid var(--zl-border-2, #e3e9ef);align-items:stretch}.zl-horizontal-table__label[data-v-a17b4261]{border-right:1px solid var(--zl-border-2, #e3e9ef);background:var(--zl-fill-2, #eff4f9);font-weight:400;font-size:12px;line-height:20px;color:var(--zl-text-2, #4d5e7d);padding:10px;display:flex;align-items:center}.zl-horizontal-table__value[data-v-a17b4261]{flex:1;font-weight:400;font-size:12px;line-height:20px;color:var(--zl-text-1, #242e43);padding:10px}.zl-horizontal-table__value.ellipsis[data-v-a17b4261]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
|
|
@@ -12,9 +12,13 @@ export interface HorizontalTableItem {
|
|
|
12
12
|
[key: string]: any;
|
|
13
13
|
}
|
|
14
14
|
type __VLS_Props = {
|
|
15
|
+
/** 单元格配置列表:标签、取值与跨列 */
|
|
15
16
|
items?: HorizontalTableItem[];
|
|
17
|
+
/** 统一的栅格跨度,默认 24(可被单项 span 覆盖) */
|
|
16
18
|
span?: number | string;
|
|
19
|
+
/** 标签单元格宽度,默认 88px */
|
|
17
20
|
labelWidth?: string;
|
|
21
|
+
/** 标签文案的水平对齐方式,默认居中 */
|
|
18
22
|
labelAlign?: string;
|
|
19
23
|
};
|
|
20
24
|
declare function __VLS_template(): {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import o from "./index2.vue.mjs";
|
|
2
2
|
import './index.css';/* empty css */
|
|
3
3
|
import t from "../../_virtual/_plugin-vue_export-helper.mjs";
|
|
4
|
-
const
|
|
4
|
+
const p = /* @__PURE__ */ t(o, [["__scopeId", "data-v-a17b4261"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
p as default
|
|
7
7
|
};
|
|
8
8
|
//# sourceMappingURL=index.vue.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.zl-icon[data-v-
|
|
1
|
+
.zl-icon[data-v-c7f05c04]{display:inline-flex;align-items:center;justify-content:center;font-size:14px;line-height:1}.zl-icon--external[data-v-c7f05c04]{width:1em;height:1em;background-color:currentColor;mask-size:100% 100%}.zl-icon--local[data-v-c7f05c04]{width:1em;height:1em;fill:currentColor}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import o from "./index2.vue.mjs";
|
|
2
2
|
import './index.css';/* empty css */
|
|
3
3
|
import t from "../../_virtual/_plugin-vue_export-helper.mjs";
|
|
4
|
-
const
|
|
4
|
+
const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-c7f05c04"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
m as default
|
|
7
7
|
};
|
|
8
8
|
//# sourceMappingURL=index.vue.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.zl-layout-switch .el-radio-button[data-v-
|
|
1
|
+
.zl-layout-switch .el-radio-button[data-v-13a0ea85]{line-height:1;font-size:14px;padding:9px}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import o from "./index2.vue.mjs";
|
|
2
2
|
import './index.css';/* empty css */
|
|
3
3
|
import t from "../../_virtual/_plugin-vue_export-helper.mjs";
|
|
4
|
-
const
|
|
4
|
+
const p = /* @__PURE__ */ t(o, [["__scopeId", "data-v-13a0ea85"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
p as default
|
|
7
7
|
};
|
|
8
8
|
//# sourceMappingURL=index.vue.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.zl-login__action[data-v-
|
|
1
|
+
.zl-login__action[data-v-a1724530]{margin-top:15px}[data-v-a1724530] .el-form-item{margin-bottom:20px}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./LoginForm2.vue.mjs";
|
|
2
2
|
import './LoginForm.css';/* empty css */
|
|
3
3
|
import r from "../../../_virtual/_plugin-vue_export-helper.mjs";
|
|
4
|
-
const p = /* @__PURE__ */ r(o, [["__scopeId", "data-v-
|
|
4
|
+
const p = /* @__PURE__ */ r(o, [["__scopeId", "data-v-a1724530"]]);
|
|
5
5
|
export {
|
|
6
6
|
p as default
|
|
7
7
|
};
|
|
@@ -7,7 +7,9 @@ export interface ZlLoginConfig {
|
|
|
7
7
|
type?: 'center';
|
|
8
8
|
}
|
|
9
9
|
type __VLS_Props = {
|
|
10
|
+
/** 表单提交回调,接收用户填写的登录信息 */
|
|
10
11
|
onSubmit?: (form: Record<string, any>) => Promise<void> | void;
|
|
12
|
+
/** 标题、背景(图片或视频)与整体布局形态 */
|
|
11
13
|
config?: ZlLoginConfig;
|
|
12
14
|
};
|
|
13
15
|
declare function __VLS_template(): {
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
type __VLS_Props = {
|
|
2
|
+
/** PDF 文件地址,渲染时自动隐藏内置工具栏 */
|
|
2
3
|
url?: string;
|
|
4
|
+
/** 预览区宽度,直接透传给 object 元素 */
|
|
3
5
|
width?: number | string;
|
|
4
6
|
};
|
|
5
7
|
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|