ll-plus 2.3.11 → 2.3.13
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/es/components/drawer/index.d.ts +2 -1
- package/es/components/drawer/src/components/second-confirmation/index.d.ts +5 -0
- package/es/components/drawer/src/components/second-confirmation/src/second-confirmation.vue.d.ts +5 -0
- package/es/components/drawer/src/drawer.vue.d.ts +2 -1
- package/es/components/drawer/src/drawer.vue2.mjs +31 -18
- package/es/components/drawer/src/drawer.vue2.mjs.map +1 -1
- package/es/components/modal/index.d.ts +5 -0
- package/es/components/modal/src/modal.d.ts +1 -0
- package/es/components/modal/src/modal.mjs +4 -0
- package/es/components/modal/src/modal.mjs.map +1 -1
- package/es/components/modal/src/modal.vue.d.ts +5 -0
- package/es/components/modal/src/modal.vue2.mjs +24 -6
- package/es/components/modal/src/modal.vue2.mjs.map +1 -1
- package/es/components/table/index.d.ts +8 -0
- package/es/components/table/src/components/main-table.vue.d.ts +4 -0
- package/es/components/table/src/config/main-table.d.ts +1 -0
- package/es/components/table/src/config/main-table.mjs +7 -0
- package/es/components/table/src/config/main-table.mjs.map +1 -1
- package/es/components/table/src/config/table.d.ts +2 -0
- package/es/components/table/src/table.vue.d.ts +8 -0
- package/es/components/tree-search/index.d.ts +3 -0
- package/es/components/tree-search/src/config/tree-search.d.ts +1 -0
- package/es/components/tree-search/src/tree-search.vue.d.ts +3 -0
- package/es/utils/props/runtime.d.ts +2 -2
- package/index.full.js +69 -170
- package/index.full.min.js +22 -22
- package/index.full.min.js.map +1 -1
- package/index.full.min.mjs +19 -19
- package/index.full.min.mjs.map +1 -1
- package/index.full.mjs +69 -170
- package/lib/components/drawer/index.d.ts +2 -1
- package/lib/components/drawer/src/components/second-confirmation/index.d.ts +5 -0
- package/lib/components/drawer/src/components/second-confirmation/src/second-confirmation.vue.d.ts +5 -0
- package/lib/components/drawer/src/drawer.vue.d.ts +2 -1
- package/lib/components/drawer/src/drawer.vue2.js +29 -16
- package/lib/components/drawer/src/drawer.vue2.js.map +1 -1
- package/lib/components/modal/index.d.ts +5 -0
- package/lib/components/modal/src/modal.d.ts +1 -0
- package/lib/components/modal/src/modal.js +4 -0
- package/lib/components/modal/src/modal.js.map +1 -1
- package/lib/components/modal/src/modal.vue.d.ts +5 -0
- package/lib/components/modal/src/modal.vue2.js +24 -6
- package/lib/components/modal/src/modal.vue2.js.map +1 -1
- package/lib/components/table/index.d.ts +8 -0
- package/lib/components/table/src/components/main-table.vue.d.ts +4 -0
- package/lib/components/table/src/config/main-table.d.ts +1 -0
- package/lib/components/table/src/config/main-table.js +7 -0
- package/lib/components/table/src/config/main-table.js.map +1 -1
- package/lib/components/table/src/config/table.d.ts +2 -0
- package/lib/components/table/src/table.vue.d.ts +8 -0
- package/lib/components/tree-search/index.d.ts +3 -0
- package/lib/components/tree-search/src/config/tree-search.d.ts +1 -0
- package/lib/components/tree-search/src/tree-search.vue.d.ts +3 -0
- package/lib/utils/props/runtime.d.ts +2 -2
- package/package.json +1 -1
- package/theme-chalk/css/drawer.css +1 -1
- package/theme-chalk/css/index.css +1 -1
- package/theme-chalk/css/key-value.css +1 -1
- package/theme-chalk/css/modal.css +1 -1
- package/types/packages/components/drawer/index.d.ts +2 -1
- package/types/packages/components/drawer/src/components/second-confirmation/index.d.ts +5 -0
- package/types/packages/components/drawer/src/components/second-confirmation/src/second-confirmation.vue.d.ts +5 -0
- package/types/packages/components/drawer/src/drawer.vue.d.ts +2 -1
- package/types/packages/components/modal/index.d.ts +5 -0
- package/types/packages/components/modal/src/modal.d.ts +1 -0
- package/types/packages/components/modal/src/modal.vue.d.ts +5 -0
- package/types/packages/components/table/index.d.ts +8 -0
- package/types/packages/components/table/src/components/main-table.vue.d.ts +4 -0
- package/types/packages/components/table/src/config/main-table.d.ts +1 -0
- package/types/packages/components/table/src/config/table.d.ts +2 -0
- package/types/packages/components/table/src/table.vue.d.ts +8 -0
- package/types/packages/components/tree-search/index.d.ts +3 -0
- package/types/packages/components/tree-search/src/config/tree-search.d.ts +1 -0
- package/types/packages/components/tree-search/src/tree-search.vue.d.ts +3 -0
- package/types/packages/utils/props/runtime.d.ts +2 -2
|
@@ -10,6 +10,7 @@ export declare const modalProps: {
|
|
|
10
10
|
readonly title: import("ll-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "提示", boolean>;
|
|
11
11
|
readonly loading: import("ll-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
12
12
|
readonly type: import("ll-plus/es/utils").EpPropFinalized<(new (...args: any[]) => "confirm" | "operate" | "upload") | (() => IType) | ((new (...args: any[]) => "confirm" | "operate" | "upload") | (() => IType))[], unknown, unknown, "operate", boolean>;
|
|
13
|
+
readonly isConfirmModel: import("ll-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
13
14
|
readonly class: import("ll-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
14
15
|
readonly wrapClassName: import("ll-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
15
16
|
readonly confirmText: import("ll-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"modal.js","sources":["../../../../../packages/components/modal/src/modal.ts"],"sourcesContent":["import { buildProps, definePropType } from '@ll-plus/utils'\n\nimport type { ExtractPropTypes } from 'vue'\nimport type Modal from './modal.vue'\n\ntype IType = 'confirm' | 'operate' | 'upload'\n\nexport interface IResultType {\n [key: string]: unknown\n showFooter?: null\n}\nexport const modalProps = buildProps({\n /**\n * @description 开启弹窗\n */\n open: {\n type: Boolean,\n default: false\n },\n /**\n * @description 标题\n */\n title: {\n type: String,\n default: '提示'\n },\n /**\n * @description 加载状态\n */\n loading: {\n type: Boolean,\n default: false\n },\n /**\n * @description 弹窗类型\n */\n type: {\n type: definePropType<IType>(String),\n default: 'operate'\n },\n /**\n * @description 弹窗class\n */\n class: {\n type: String,\n default: ''\n },\n /**\n * @description 弹窗外层容器的类名\n */\n wrapClassName: {\n type: String,\n default: ''\n },\n /**\n * @description 确认按钮文字\n */\n confirmText: {\n type: String,\n default: ''\n },\n /**\n * @description 取消按钮文字\n */\n cancelText: {\n type: String,\n default: ''\n },\n /**\n * @description 显示取消按钮\n */\n showCancel: {\n type: Boolean,\n default: true\n },\n /**\n * @description 显示底部\n */\n showFooter: {\n type: Boolean,\n default: true\n }\n} as const)\n\nexport const modalEmits = {\n /**\n * @description 点击取消时触发\n */\n cancel: () => true,\n /**\n * @description 点击确认时触发\n */\n ok: () => true,\n 'update:open': () => true\n} as const\n\n// props\nexport type ModalProps = ExtractPropTypes<typeof modalProps>\n\n// emits\nexport type ModalEmits = typeof modalEmits\n\n// instance\nexport type ModalInstance = InstanceType<typeof Modal>\n"],"names":["buildProps","definePropType"],"mappings":";;;;;;AAWO,MAAM,aAAaA,kBAAW,CAAA;AAAA;AAAA;AAAA;AAAA,EAInC,IAAM,EAAA;AAAA,IACJ,IAAM,EAAA,OAAA;AAAA,IACN,OAAS,EAAA,KAAA;AAAA,GACX;AAAA;AAAA;AAAA;AAAA,EAIA,KAAO,EAAA;AAAA,IACL,IAAM,EAAA,MAAA;AAAA,IACN,OAAS,EAAA,cAAA;AAAA,GACX;AAAA;AAAA;AAAA;AAAA,EAIA,OAAS,EAAA;AAAA,IACP,IAAM,EAAA,OAAA;AAAA,IACN,OAAS,EAAA,KAAA;AAAA,GACX;AAAA;AAAA;AAAA;AAAA,EAIA,IAAM,EAAA;AAAA,IACJ,IAAA,EAAMC,uBAAsB,MAAM,CAAA;AAAA,IAClC,OAAS,EAAA,SAAA;AAAA,GACX;AAAA;AAAA;AAAA;AAAA,EAIA,KAAO,EAAA;AAAA,IACL,IAAM,EAAA,MAAA;AAAA,IACN,OAAS,EAAA,EAAA;AAAA,GACX;AAAA;AAAA;AAAA;AAAA,EAIA,aAAe,EAAA;AAAA,IACb,IAAM,EAAA,MAAA;AAAA,IACN,OAAS,EAAA,EAAA;AAAA,GACX;AAAA;AAAA;AAAA;AAAA,EAIA,WAAa,EAAA;AAAA,IACX,IAAM,EAAA,MAAA;AAAA,IACN,OAAS,EAAA,EAAA;AAAA,GACX;AAAA;AAAA;AAAA;AAAA,EAIA,UAAY,EAAA;AAAA,IACV,IAAM,EAAA,MAAA;AAAA,IACN,OAAS,EAAA,EAAA;AAAA,GACX;AAAA;AAAA;AAAA;AAAA,EAIA,UAAY,EAAA;AAAA,IACV,IAAM,EAAA,OAAA;AAAA,IACN,OAAS,EAAA,IAAA;AAAA,GACX;AAAA;AAAA;AAAA;AAAA,EAIA,UAAY,EAAA;AAAA,IACV,IAAM,EAAA,OAAA;AAAA,IACN,OAAS,EAAA,IAAA;AAAA,GACX;AACF,CAAU,EAAA;AAEH,MAAM,UAAa,GAAA;AAAA;AAAA;AAAA;AAAA,EAIxB,QAAQ,MAAM,IAAA;AAAA;AAAA;AAAA;AAAA,EAId,IAAI,MAAM,IAAA;AAAA,EACV,eAAe,MAAM,IAAA;AACvB;;;;;"}
|
|
1
|
+
{"version":3,"file":"modal.js","sources":["../../../../../packages/components/modal/src/modal.ts"],"sourcesContent":["import { buildProps, definePropType } from '@ll-plus/utils'\n\nimport type { ExtractPropTypes } from 'vue'\nimport type Modal from './modal.vue'\n\ntype IType = 'confirm' | 'operate' | 'upload'\n\nexport interface IResultType {\n [key: string]: unknown\n showFooter?: null\n}\nexport const modalProps = buildProps({\n /**\n * @description 开启弹窗\n */\n open: {\n type: Boolean,\n default: false\n },\n /**\n * @description 标题\n */\n title: {\n type: String,\n default: '提示'\n },\n /**\n * @description 加载状态\n */\n loading: {\n type: Boolean,\n default: false\n },\n /**\n * @description 弹窗类型\n */\n type: {\n type: definePropType<IType>(String),\n default: 'operate'\n },\n isConfirmModel: {\n type: Boolean,\n default: false\n },\n /**\n * @description 弹窗class\n */\n class: {\n type: String,\n default: ''\n },\n /**\n * @description 弹窗外层容器的类名\n */\n wrapClassName: {\n type: String,\n default: ''\n },\n /**\n * @description 确认按钮文字\n */\n confirmText: {\n type: String,\n default: ''\n },\n /**\n * @description 取消按钮文字\n */\n cancelText: {\n type: String,\n default: ''\n },\n /**\n * @description 显示取消按钮\n */\n showCancel: {\n type: Boolean,\n default: true\n },\n /**\n * @description 显示底部\n */\n showFooter: {\n type: Boolean,\n default: true\n }\n} as const)\n\nexport const modalEmits = {\n /**\n * @description 点击取消时触发\n */\n cancel: () => true,\n /**\n * @description 点击确认时触发\n */\n ok: () => true,\n 'update:open': () => true\n} as const\n\n// props\nexport type ModalProps = ExtractPropTypes<typeof modalProps>\n\n// emits\nexport type ModalEmits = typeof modalEmits\n\n// instance\nexport type ModalInstance = InstanceType<typeof Modal>\n"],"names":["buildProps","definePropType"],"mappings":";;;;;;AAWO,MAAM,aAAaA,kBAAW,CAAA;AAAA;AAAA;AAAA;AAAA,EAInC,IAAM,EAAA;AAAA,IACJ,IAAM,EAAA,OAAA;AAAA,IACN,OAAS,EAAA,KAAA;AAAA,GACX;AAAA;AAAA;AAAA;AAAA,EAIA,KAAO,EAAA;AAAA,IACL,IAAM,EAAA,MAAA;AAAA,IACN,OAAS,EAAA,cAAA;AAAA,GACX;AAAA;AAAA;AAAA;AAAA,EAIA,OAAS,EAAA;AAAA,IACP,IAAM,EAAA,OAAA;AAAA,IACN,OAAS,EAAA,KAAA;AAAA,GACX;AAAA;AAAA;AAAA;AAAA,EAIA,IAAM,EAAA;AAAA,IACJ,IAAA,EAAMC,uBAAsB,MAAM,CAAA;AAAA,IAClC,OAAS,EAAA,SAAA;AAAA,GACX;AAAA,EACA,cAAgB,EAAA;AAAA,IACd,IAAM,EAAA,OAAA;AAAA,IACN,OAAS,EAAA,KAAA;AAAA,GACX;AAAA;AAAA;AAAA;AAAA,EAIA,KAAO,EAAA;AAAA,IACL,IAAM,EAAA,MAAA;AAAA,IACN,OAAS,EAAA,EAAA;AAAA,GACX;AAAA;AAAA;AAAA;AAAA,EAIA,aAAe,EAAA;AAAA,IACb,IAAM,EAAA,MAAA;AAAA,IACN,OAAS,EAAA,EAAA;AAAA,GACX;AAAA;AAAA;AAAA;AAAA,EAIA,WAAa,EAAA;AAAA,IACX,IAAM,EAAA,MAAA;AAAA,IACN,OAAS,EAAA,EAAA;AAAA,GACX;AAAA;AAAA;AAAA;AAAA,EAIA,UAAY,EAAA;AAAA,IACV,IAAM,EAAA,MAAA;AAAA,IACN,OAAS,EAAA,EAAA;AAAA,GACX;AAAA;AAAA;AAAA;AAAA,EAIA,UAAY,EAAA;AAAA,IACV,IAAM,EAAA,OAAA;AAAA,IACN,OAAS,EAAA,IAAA;AAAA,GACX;AAAA;AAAA;AAAA;AAAA,EAIA,UAAY,EAAA;AAAA,IACV,IAAM,EAAA,OAAA;AAAA,IACN,OAAS,EAAA,IAAA;AAAA,GACX;AACF,CAAU,EAAA;AAEH,MAAM,UAAa,GAAA;AAAA;AAAA;AAAA;AAAA,EAIxB,QAAQ,MAAM,IAAA;AAAA;AAAA;AAAA;AAAA,EAId,IAAI,MAAM,IAAA;AAAA,EACV,eAAe,MAAM,IAAA;AACvB;;;;;"}
|
|
@@ -4,6 +4,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
4
4
|
readonly title: import("ll-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "提示", boolean>;
|
|
5
5
|
readonly loading: import("ll-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
6
6
|
readonly type: import("ll-plus/es/utils").EpPropFinalized<(new (...args: any[]) => "confirm" | "operate" | "upload") | (() => "confirm" | "operate" | "upload") | ((new (...args: any[]) => "confirm" | "operate" | "upload") | (() => "confirm" | "operate" | "upload"))[], unknown, unknown, "operate", boolean>;
|
|
7
|
+
readonly isConfirmModel: import("ll-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
7
8
|
readonly class: import("ll-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
8
9
|
readonly wrapClassName: import("ll-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
9
10
|
readonly confirmText: import("ll-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
@@ -22,6 +23,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
22
23
|
readonly cancelText: string;
|
|
23
24
|
readonly showCancel: import("ll-plus/es/components").AvatarType<BooleanConstructor, unknown, unknown>;
|
|
24
25
|
readonly confirmText: string;
|
|
26
|
+
readonly isConfirmModel: import("ll-plus/es/components").AvatarType<BooleanConstructor, unknown, unknown>;
|
|
25
27
|
readonly "onUpdate:open"?: (() => any) | undefined;
|
|
26
28
|
readonly onOk?: (() => any) | undefined;
|
|
27
29
|
readonly onCancel?: (() => any) | undefined;
|
|
@@ -43,6 +45,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
43
45
|
modal: import("vue").Ref<HTMLElement | undefined>;
|
|
44
46
|
hasScroll: import("vue").Ref<boolean>;
|
|
45
47
|
symbolClass: import("vue").Ref<string>;
|
|
48
|
+
symbolComparedClass: import("vue").Ref<string>;
|
|
46
49
|
getBindValue: import("vue").ComputedRef<IResultType>;
|
|
47
50
|
handleCancel: () => void;
|
|
48
51
|
handleOk: () => void;
|
|
@@ -1947,6 +1950,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1947
1950
|
readonly title: import("ll-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "提示", boolean>;
|
|
1948
1951
|
readonly loading: import("ll-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
1949
1952
|
readonly type: import("ll-plus/es/utils").EpPropFinalized<(new (...args: any[]) => "confirm" | "operate" | "upload") | (() => "confirm" | "operate" | "upload") | ((new (...args: any[]) => "confirm" | "operate" | "upload") | (() => "confirm" | "operate" | "upload"))[], unknown, unknown, "operate", boolean>;
|
|
1953
|
+
readonly isConfirmModel: import("ll-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
1950
1954
|
readonly class: import("ll-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
1951
1955
|
readonly wrapClassName: import("ll-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
1952
1956
|
readonly confirmText: import("ll-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
@@ -1968,5 +1972,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1968
1972
|
readonly cancelText: string;
|
|
1969
1973
|
readonly showCancel: import("ll-plus/es/components").AvatarType<BooleanConstructor, unknown, unknown>;
|
|
1970
1974
|
readonly confirmText: string;
|
|
1975
|
+
readonly isConfirmModel: import("ll-plus/es/components").AvatarType<BooleanConstructor, unknown, unknown>;
|
|
1971
1976
|
}, {}>;
|
|
1972
1977
|
export default _default;
|
|
@@ -25,6 +25,7 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
25
25
|
const modal$1 = vue.ref();
|
|
26
26
|
const hasScroll = vue.ref(false);
|
|
27
27
|
const symbolClass = vue.ref(`ll-modal-${(/* @__PURE__ */ new Date()).getTime()}`);
|
|
28
|
+
const symbolComparedClass = vue.ref(`model-content-${(/* @__PURE__ */ new Date()).getTime()}`);
|
|
28
29
|
const getBindValue = vue.computed(() => {
|
|
29
30
|
const result = {
|
|
30
31
|
...lodashEs.omit({ ...attrs }, [...Object.keys(modal.modalProps), "wrapClassName"])
|
|
@@ -44,10 +45,11 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
44
45
|
const handleResize = async (value) => {
|
|
45
46
|
await vue.nextTick();
|
|
46
47
|
const ele = document.getElementsByClassName(symbolClass.value)[0];
|
|
47
|
-
const modalBody = ele.getElementsByClassName(
|
|
48
|
+
const modalBody = ele.getElementsByClassName(symbolComparedClass.value)[0];
|
|
48
49
|
const resizeObserver = new ResizeObserver((entries) => {
|
|
49
|
-
const {
|
|
50
|
-
|
|
50
|
+
const { clientHeight } = entries[0].target;
|
|
51
|
+
const scrollHeight = ele.clientHeight;
|
|
52
|
+
hasScroll.value = clientHeight > scrollHeight;
|
|
51
53
|
});
|
|
52
54
|
if (value) {
|
|
53
55
|
resizeObserver.observe(modalBody);
|
|
@@ -68,7 +70,11 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
68
70
|
open: props.open,
|
|
69
71
|
title: props.title,
|
|
70
72
|
"wrap-class-name": `${vue.unref(bem).b()} ${props.wrapClassName}`,
|
|
71
|
-
class: [
|
|
73
|
+
class: [
|
|
74
|
+
props.class,
|
|
75
|
+
hasScroll.value ? vue.unref(bem).is("has-scroll") : "",
|
|
76
|
+
vue.unref(bem).is(props.isConfirmModel ? "confirm-model" : "")
|
|
77
|
+
],
|
|
72
78
|
onCancel: handleCancel,
|
|
73
79
|
onOk: handleOk
|
|
74
80
|
}), vue.createSlots({
|
|
@@ -76,10 +82,20 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
76
82
|
vue.createElementVNode(
|
|
77
83
|
"div",
|
|
78
84
|
{
|
|
79
|
-
class: vue.normalizeClass([vue.unref(bem).e("container"), vue.unref(bem).is(props.type)])
|
|
85
|
+
class: vue.normalizeClass([vue.unref(bem).e("container"), symbolClass.value, vue.unref(bem).is(props.type)])
|
|
80
86
|
},
|
|
81
87
|
[
|
|
82
|
-
vue.
|
|
88
|
+
vue.createElementVNode(
|
|
89
|
+
"div",
|
|
90
|
+
{
|
|
91
|
+
class: vue.normalizeClass([symbolComparedClass.value])
|
|
92
|
+
},
|
|
93
|
+
[
|
|
94
|
+
vue.renderSlot(_ctx.$slots, "default")
|
|
95
|
+
],
|
|
96
|
+
2
|
|
97
|
+
/* CLASS */
|
|
98
|
+
)
|
|
83
99
|
],
|
|
84
100
|
2
|
|
85
101
|
/* CLASS */
|
|
@@ -96,11 +112,13 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
96
112
|
props.showCancel && props.type !== "confirm" ? (vue.openBlock(), vue.createBlock(vue.unref(index.LlButton), {
|
|
97
113
|
key: 0,
|
|
98
114
|
label: props.cancelText ? props.cancelText : "\u53D6\u6D88",
|
|
115
|
+
size: "middle",
|
|
99
116
|
onClick: handleCancel
|
|
100
117
|
}, null, 8, ["label"])) : vue.createCommentVNode("v-if", true),
|
|
101
118
|
vue.createVNode(vue.unref(index.LlButton), {
|
|
102
119
|
type: "primary",
|
|
103
120
|
loading: props.loading,
|
|
121
|
+
size: "middle",
|
|
104
122
|
label: props.confirmText ? props.confirmText : props.type === "confirm" ? "\u77E5\u9053\u4E86" : "\u786E\u8BA4",
|
|
105
123
|
onClick: handleOk
|
|
106
124
|
}, null, 8, ["loading", "label"])
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"modal.vue2.js","sources":["../../../../../packages/components/modal/src/modal.vue"],"sourcesContent":["<template>\n <Modal\n v-bind=\"getBindValue\"\n ref=\"modal\"\n :open=\"props.open\"\n :title=\"props.title\"\n :wrap-class-name=\"`${bem.b()} ${props.wrapClassName}`\"\n :class=\"[props.class
|
|
1
|
+
{"version":3,"file":"modal.vue2.js","sources":["../../../../../packages/components/modal/src/modal.vue"],"sourcesContent":["<template>\n <Modal\n v-bind=\"getBindValue\"\n ref=\"modal\"\n :open=\"props.open\"\n :title=\"props.title\"\n :wrap-class-name=\"`${bem.b()} ${props.wrapClassName}`\"\n :class=\"[\n props.class,\n hasScroll ? bem.is('has-scroll') : '',\n bem.is(props.isConfirmModel ? 'confirm-model' : '')\n ]\"\n @cancel=\"handleCancel\"\n @ok=\"handleOk\"\n >\n <div :class=\"[bem.e('container'), symbolClass, bem.is(props.type)]\">\n <div :class=\"[symbolComparedClass]\">\n <slot />\n </div>\n </div>\n <template v-if=\"props.showFooter\" #footer>\n <slot name=\"footer\">\n <!-- 确认框 -->\n\n <ll-button\n v-if=\"props.showCancel && props.type !== 'confirm'\"\n :label=\"props.cancelText ? props.cancelText : '取消'\"\n size=\"middle\"\n @click=\"handleCancel\"\n >\n </ll-button>\n <ll-button\n type=\"primary\"\n :loading=\"props.loading\"\n size=\"middle\"\n :label=\"\n props.confirmText\n ? props.confirmText\n : props.type === 'confirm'\n ? '知道了'\n : '确认'\n \"\n @click=\"handleOk\"\n />\n </slot>\n </template>\n </Modal>\n</template>\n\n<script lang=\"ts\" setup>\nimport { useAttrs, ref, watch, nextTick, computed } from 'vue'\nimport { Modal } from 'ant-design-vue'\nimport { LlButton } from '@ll-plus/components'\nimport { createNamespace } from '@ll-plus/utils'\nimport { omit } from 'lodash-es'\nimport { modalProps, modalEmits } from './modal'\nimport type { IResultType } from './modal'\ndefineOptions({ name: 'LlModal' })\n// 1.props/ref\nconst props = defineProps(modalProps)\n// 2.emits\nconst emits = defineEmits(modalEmits)\n\nconst attrs = useAttrs()\n\nconst bem = createNamespace('modal')\n\nconst modal = ref<HTMLElement>()\n\nconst hasScroll = ref(false)\n\nconst symbolClass = ref(`ll-modal-${new Date().getTime()}`)\n\nconst symbolComparedClass = ref(`model-content-${new Date().getTime()}`)\n\nconst getBindValue = computed(() => {\n const result: IResultType = {\n ...omit({ ...attrs }, [...Object.keys(modalProps), 'wrapClassName'])\n }\n if (props.showFooter === false) {\n result.footer = null\n }\n return result\n})\n\n// 3.methods\nconst handleCancel = () => {\n emits('cancel')\n emits('update:open')\n}\nconst handleOk = () => {\n emits('ok')\n}\n\nconst handleResize = async (value: boolean) => {\n await nextTick()\n const ele = document.getElementsByClassName(symbolClass.value)[0]\n const modalBody = ele.getElementsByClassName(symbolComparedClass.value)[0]\n const resizeObserver = new ResizeObserver(entries => {\n // 处理大小变化的回调函数\n const { clientHeight } = entries[0].target\n const scrollHeight = ele.clientHeight\n hasScroll.value = clientHeight > scrollHeight\n })\n if (value) {\n resizeObserver.observe(modalBody)\n } else {\n resizeObserver.unobserve(modalBody)\n }\n}\n\n// 4.watch/computed\nwatch(\n () => props.open,\n val => {\n handleResize(val)\n }\n)\n</script>\n"],"names":["useAttrs","createNamespace","modal","ref","computed","omit","modalProps","nextTick","watch"],"mappings":";;;;;;;;;;;;;;;;;;;;AA2DA,IAAA,MAAM,KAAQ,GAAA,OAAA,CAAA;AAEd,IAAA,MAAM,KAAQ,GAAA,MAAA,CAAA;AAEd,IAAA,MAAM,QAAQA,YAAS,EAAA,CAAA;AAEvB,IAAM,MAAA,GAAA,GAAMC,gCAAgB,OAAO,CAAA,CAAA;AAEnC,IAAA,MAAMC,UAAQC,OAAiB,EAAA,CAAA;AAE/B,IAAM,MAAA,SAAA,GAAYA,QAAI,KAAK,CAAA,CAAA;AAE3B,IAAM,MAAA,WAAA,GAAcA,QAAI,CAAY,SAAA,EAAA,iBAAA,IAAI,MAAO,EAAA,OAAA,EAAS,CAAE,CAAA,CAAA,CAAA;AAE1D,IAAM,MAAA,mBAAA,GAAsBA,QAAI,CAAiB,cAAA,EAAA,iBAAA,IAAI,MAAO,EAAA,OAAA,EAAS,CAAE,CAAA,CAAA,CAAA;AAEvE,IAAM,MAAA,YAAA,GAAeC,aAAS,MAAM;AAClC,MAAA,MAAM,MAAsB,GAAA;AAAA,QAC1B,GAAGC,aAAA,CAAK,EAAE,GAAG,KAAM,EAAA,EAAG,CAAC,GAAG,MAAO,CAAA,IAAA,CAAKC,gBAAU,CAAA,EAAG,eAAe,CAAC,CAAA;AAAA,OACrE,CAAA;AACA,MAAI,IAAA,KAAA,CAAM,eAAe,KAAO,EAAA;AAC9B,QAAA,MAAA,CAAO,MAAS,GAAA,IAAA,CAAA;AAAA,OAClB;AACA,MAAO,OAAA,MAAA,CAAA;AAAA,KACR,CAAA,CAAA;AAGD,IAAA,MAAM,eAAe,MAAM;AACzB,MAAA,KAAA,CAAM,QAAQ,CAAA,CAAA;AACd,MAAA,KAAA,CAAM,aAAa,CAAA,CAAA;AAAA,KACrB,CAAA;AACA,IAAA,MAAM,WAAW,MAAM;AACrB,MAAA,KAAA,CAAM,IAAI,CAAA,CAAA;AAAA,KACZ,CAAA;AAEA,IAAM,MAAA,YAAA,GAAe,OAAO,KAAmB,KAAA;AAC7C,MAAA,MAAMC,YAAS,EAAA,CAAA;AACf,MAAA,MAAM,MAAM,QAAS,CAAA,sBAAA,CAAuB,WAAY,CAAA,KAAK,EAAE,CAAC,CAAA,CAAA;AAChE,MAAA,MAAM,YAAY,GAAI,CAAA,sBAAA,CAAuB,mBAAoB,CAAA,KAAK,EAAE,CAAC,CAAA,CAAA;AACzE,MAAM,MAAA,cAAA,GAAiB,IAAI,cAAA,CAAe,CAAW,OAAA,KAAA;AAEnD,QAAA,MAAM,EAAE,YAAA,EAAiB,GAAA,OAAA,CAAQ,CAAC,CAAE,CAAA,MAAA,CAAA;AACpC,QAAA,MAAM,eAAe,GAAI,CAAA,YAAA,CAAA;AACzB,QAAA,SAAA,CAAU,QAAQ,YAAe,GAAA,YAAA,CAAA;AAAA,OAClC,CAAA,CAAA;AACD,MAAA,IAAI,KAAO,EAAA;AACT,QAAA,cAAA,CAAe,QAAQ,SAAS,CAAA,CAAA;AAAA,OAC3B,MAAA;AACL,QAAA,cAAA,CAAe,UAAU,SAAS,CAAA,CAAA;AAAA,OACpC;AAAA,KACF,CAAA;AAGA,IAAAC,SAAA;AAAA,MACE,MAAM,KAAM,CAAA,IAAA;AAAA,MACZ,CAAO,GAAA,KAAA;AACL,QAAA,YAAA,CAAa,GAAG,CAAA,CAAA;AAAA,OAClB;AAAA,KACF,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -9,6 +9,7 @@ export declare const LlTable: import("ll-plus/es/utils").SFCWithInstall<import("
|
|
|
9
9
|
readonly tableProps: import("ll-plus/es/utils").EpPropFinalized<(new (...args: any[]) => {
|
|
10
10
|
readonly columns: import("ant-design-vue").TableColumnProps[];
|
|
11
11
|
readonly dataSource: any[];
|
|
12
|
+
readonly contentType: string;
|
|
12
13
|
readonly settingKey: string;
|
|
13
14
|
readonly showIndexColumn: import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
14
15
|
readonly showOperate: import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
@@ -27,6 +28,7 @@ export declare const LlTable: import("ll-plus/es/utils").SFCWithInstall<import("
|
|
|
27
28
|
}) | (() => import("./src/config").MainTableProps) | ((new (...args: any[]) => {
|
|
28
29
|
readonly columns: import("ant-design-vue").TableColumnProps[];
|
|
29
30
|
readonly dataSource: any[];
|
|
31
|
+
readonly contentType: string;
|
|
30
32
|
readonly settingKey: string;
|
|
31
33
|
readonly showIndexColumn: import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
32
34
|
readonly showOperate: import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
@@ -177,6 +179,7 @@ export declare const LlTable: import("ll-plus/es/utils").SFCWithInstall<import("
|
|
|
177
179
|
readonly menuSwitchOptions: import("./src/config").IMenuSwitchOptions;
|
|
178
180
|
}, {}>;
|
|
179
181
|
MainTable: import("vue").DefineComponent<{
|
|
182
|
+
readonly contentType: import("ll-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
180
183
|
readonly settingKey: import("ll-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
181
184
|
readonly columns: import("ll-plus/es/utils").EpPropFinalized<(new (...args: any[]) => import("ant-design-vue").TableColumnProps[]) | (() => import("ant-design-vue").TableColumnProps[]) | ((new (...args: any[]) => import("ant-design-vue").TableColumnProps[]) | (() => import("ant-design-vue").TableColumnProps[]))[], unknown, unknown, () => never[], boolean>;
|
|
182
185
|
readonly dataSource: import("ll-plus/es/utils").EpPropFinalized<(new (...args: any[]) => any[]) | (() => any[]) | ((new (...args: any[]) => any[]) | (() => any[]))[], unknown, unknown, () => never[], boolean>;
|
|
@@ -247,6 +250,7 @@ export declare const LlTable: import("ll-plus/es/utils").SFCWithInstall<import("
|
|
|
247
250
|
props: import("@vue/shared").LooseRequired<{
|
|
248
251
|
readonly columns: import("ant-design-vue").TableColumnProps[];
|
|
249
252
|
readonly dataSource: any[];
|
|
253
|
+
readonly contentType: string;
|
|
250
254
|
readonly settingKey: string;
|
|
251
255
|
readonly showIndexColumn: import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
252
256
|
readonly showOperate: import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
@@ -374,6 +378,7 @@ export declare const LlTable: import("ll-plus/es/utils").SFCWithInstall<import("
|
|
|
374
378
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
375
379
|
handleChangeDataSource: (dataSource: any[]) => boolean;
|
|
376
380
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
381
|
+
readonly contentType: import("ll-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
377
382
|
readonly settingKey: import("ll-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
378
383
|
readonly columns: import("ll-plus/es/utils").EpPropFinalized<(new (...args: any[]) => import("ant-design-vue").TableColumnProps[]) | (() => import("ant-design-vue").TableColumnProps[]) | ((new (...args: any[]) => import("ant-design-vue").TableColumnProps[]) | (() => import("ant-design-vue").TableColumnProps[]))[], unknown, unknown, () => never[], boolean>;
|
|
379
384
|
readonly dataSource: import("ll-plus/es/utils").EpPropFinalized<(new (...args: any[]) => any[]) | (() => any[]) | ((new (...args: any[]) => any[]) | (() => any[]))[], unknown, unknown, () => never[], boolean>;
|
|
@@ -445,6 +450,7 @@ export declare const LlTable: import("ll-plus/es/utils").SFCWithInstall<import("
|
|
|
445
450
|
}, {
|
|
446
451
|
readonly columns: import("ant-design-vue").TableColumnProps[];
|
|
447
452
|
readonly dataSource: any[];
|
|
453
|
+
readonly contentType: string;
|
|
448
454
|
readonly settingKey: string;
|
|
449
455
|
readonly showIndexColumn: import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
450
456
|
readonly showOperate: import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
@@ -532,6 +538,7 @@ export declare const LlTable: import("ll-plus/es/utils").SFCWithInstall<import("
|
|
|
532
538
|
readonly tableProps: import("ll-plus/es/utils").EpPropFinalized<(new (...args: any[]) => {
|
|
533
539
|
readonly columns: import("ant-design-vue").TableColumnProps[];
|
|
534
540
|
readonly dataSource: any[];
|
|
541
|
+
readonly contentType: string;
|
|
535
542
|
readonly settingKey: string;
|
|
536
543
|
readonly showIndexColumn: import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
537
544
|
readonly showOperate: import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
@@ -550,6 +557,7 @@ export declare const LlTable: import("ll-plus/es/utils").SFCWithInstall<import("
|
|
|
550
557
|
}) | (() => import("./src/config").MainTableProps) | ((new (...args: any[]) => {
|
|
551
558
|
readonly columns: import("ant-design-vue").TableColumnProps[];
|
|
552
559
|
readonly dataSource: any[];
|
|
560
|
+
readonly contentType: string;
|
|
553
561
|
readonly settingKey: string;
|
|
554
562
|
readonly showIndexColumn: import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
555
563
|
readonly showOperate: import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
declare const _default: import("vue").DefineComponent<{
|
|
2
|
+
readonly contentType: import("ll-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
2
3
|
readonly settingKey: import("ll-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
3
4
|
readonly columns: import("ll-plus/es/utils").EpPropFinalized<(new (...args: any[]) => import("ant-design-vue").TableColumnProps[]) | (() => import("ant-design-vue").TableColumnProps[]) | ((new (...args: any[]) => import("ant-design-vue").TableColumnProps[]) | (() => import("ant-design-vue").TableColumnProps[]))[], unknown, unknown, () => never[], boolean>;
|
|
4
5
|
readonly dataSource: import("ll-plus/es/utils").EpPropFinalized<(new (...args: any[]) => any[]) | (() => any[]) | ((new (...args: any[]) => any[]) | (() => any[]))[], unknown, unknown, () => never[], boolean>;
|
|
@@ -69,6 +70,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
69
70
|
props: import("@vue/shared").LooseRequired<{
|
|
70
71
|
readonly columns: import("ant-design-vue").TableColumnProps[];
|
|
71
72
|
readonly dataSource: any[];
|
|
73
|
+
readonly contentType: string;
|
|
72
74
|
readonly settingKey: string;
|
|
73
75
|
readonly showIndexColumn: import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
74
76
|
readonly showOperate: import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
@@ -196,6 +198,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
196
198
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
197
199
|
handleChangeDataSource: (dataSource: any[]) => boolean;
|
|
198
200
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
201
|
+
readonly contentType: import("ll-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
199
202
|
readonly settingKey: import("ll-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
200
203
|
readonly columns: import("ll-plus/es/utils").EpPropFinalized<(new (...args: any[]) => import("ant-design-vue").TableColumnProps[]) | (() => import("ant-design-vue").TableColumnProps[]) | ((new (...args: any[]) => import("ant-design-vue").TableColumnProps[]) | (() => import("ant-design-vue").TableColumnProps[]))[], unknown, unknown, () => never[], boolean>;
|
|
201
204
|
readonly dataSource: import("ll-plus/es/utils").EpPropFinalized<(new (...args: any[]) => any[]) | (() => any[]) | ((new (...args: any[]) => any[]) | (() => any[]))[], unknown, unknown, () => never[], boolean>;
|
|
@@ -267,6 +270,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
267
270
|
}, {
|
|
268
271
|
readonly columns: import("ant-design-vue").TableColumnProps[];
|
|
269
272
|
readonly dataSource: any[];
|
|
273
|
+
readonly contentType: string;
|
|
270
274
|
readonly settingKey: string;
|
|
271
275
|
readonly showIndexColumn: import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
272
276
|
readonly showOperate: import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
@@ -6,6 +6,7 @@ export interface ITableScroll {
|
|
|
6
6
|
y: number | string;
|
|
7
7
|
}
|
|
8
8
|
export declare const mainTableProps: {
|
|
9
|
+
readonly contentType: import("ll-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
9
10
|
readonly settingKey: import("ll-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
10
11
|
readonly columns: import("ll-plus/es/utils").EpPropFinalized<(new (...args: any[]) => TableColumnProps[]) | (() => TableColumnProps[]) | ((new (...args: any[]) => TableColumnProps[]) | (() => TableColumnProps[]))[], unknown, unknown, () => never[], boolean>;
|
|
11
12
|
readonly dataSource: import("ll-plus/es/utils").EpPropFinalized<(new (...args: any[]) => any[]) | (() => any[]) | ((new (...args: any[]) => any[]) | (() => any[]))[], unknown, unknown, () => never[], boolean>;
|
|
@@ -5,6 +5,13 @@ var runtime = require('../../../../utils/props/runtime.js');
|
|
|
5
5
|
|
|
6
6
|
"use strict";
|
|
7
7
|
const mainTableProps = runtime.buildProps({
|
|
8
|
+
/**
|
|
9
|
+
* @description 动态插槽显示card和table
|
|
10
|
+
*/
|
|
11
|
+
contentType: {
|
|
12
|
+
type: String,
|
|
13
|
+
default: ""
|
|
14
|
+
},
|
|
8
15
|
/**
|
|
9
16
|
* @description 操作栏编辑操作列的key,用于下次记录用户行为
|
|
10
17
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"main-table.js","sources":["../../../../../../packages/components/table/src/config/main-table.ts"],"sourcesContent":["import { buildProps, definePropType } from '@ll-plus/utils'\n\nimport MainTable from '../components/main-table.vue'\n\nimport type { ExtractPropTypes } from 'vue'\nimport type { TableColumnProps } from 'ant-design-vue'\n\n// ITableScroll\nexport interface ITableScroll {\n x: number | string | boolean\n y: number | string\n}\nexport const mainTableProps = buildProps({\n /**\n * @description 操作栏编辑操作列的key,用于下次记录用户行为\n */\n settingKey: {\n type: String,\n default: ''\n },\n /**\n * @description 列设置\n */\n columns: {\n type: definePropType<TableColumnProps[]>(Array),\n default: () => []\n },\n /**\n * @description 数据源\n */\n dataSource: {\n type: definePropType<any[]>(Array),\n default: () => []\n },\n /**\n * @description 是否数据拖拽\n */\n showDrag: {\n type: Boolean\n },\n /**\n * @description 是否显示#序列\n */\n showIndexColumn: {\n type: Boolean,\n default: true\n },\n /**\n * @description 展示操作列的\n */\n showOperate: {\n type: Boolean,\n default: true\n },\n /**\n * @description 是否显示操作栏上的设置\n */\n showSetting: {\n type: Boolean,\n default: true\n },\n /**\n * @description table的scroll\n */\n scroll: {\n type: definePropType<ITableScroll>(Object)\n },\n /**\n * @description 展开的key\n */\n expandedRowKeys: {\n type: definePropType<string[]>(Array)\n },\n /**\n * @description 是否隐藏分页\n */\n hiddenPagination: {\n type: Boolean\n },\n /**\n * @description 设置行属性同表格的customRow属性\n */\n customRowProps: {\n type: Function\n },\n /**\n * @description 点击展开图标时触发\n */\n expand: {\n type: Function\n },\n /**\n * @description 分页、排序、筛选变化时触发\n */\n change: {\n type: Function\n },\n /**\n * @description 展开的行变化时触发\n */\n expandedRowsChange: {\n type: Function\n },\n /**\n * @description 拖动列改变列的宽度时触发\n */\n resizeColumn: {\n type: Function\n },\n /**\n * @description 拖拽后的change\n */\n dragChange: {\n type: Function\n }\n} as const)\n\nexport const mainTableEmits = {\n handleChangeDataSource: (dataSource: any[]) => !!dataSource\n}\n\n// props\nexport type MainTableProps = ExtractPropTypes<typeof mainTableProps>\n\n// emits\nexport type MainTableEmits = typeof mainTableEmits\n\n// instance\nexport type MainTableInstance = InstanceType<typeof MainTable>\n"],"names":["buildProps","definePropType"],"mappings":";;;;;;AAYO,MAAM,iBAAiBA,kBAAW,CAAA;AAAA;AAAA;AAAA;AAAA,EAIvC,UAAY,EAAA;AAAA,IACV,IAAM,EAAA,MAAA;AAAA,IACN,OAAS,EAAA,EAAA;AAAA,GACX;AAAA;AAAA;AAAA;AAAA,EAIA,OAAS,EAAA;AAAA,IACP,IAAA,EAAMC,uBAAmC,KAAK,CAAA;AAAA,IAC9C,OAAA,EAAS,MAAM,EAAC;AAAA,GAClB;AAAA;AAAA;AAAA;AAAA,EAIA,UAAY,EAAA;AAAA,IACV,IAAA,EAAMA,uBAAsB,KAAK,CAAA;AAAA,IACjC,OAAA,EAAS,MAAM,EAAC;AAAA,GAClB;AAAA;AAAA;AAAA;AAAA,EAIA,QAAU,EAAA;AAAA,IACR,IAAM,EAAA,OAAA;AAAA,GACR;AAAA;AAAA;AAAA;AAAA,EAIA,eAAiB,EAAA;AAAA,IACf,IAAM,EAAA,OAAA;AAAA,IACN,OAAS,EAAA,IAAA;AAAA,GACX;AAAA;AAAA;AAAA;AAAA,EAIA,WAAa,EAAA;AAAA,IACX,IAAM,EAAA,OAAA;AAAA,IACN,OAAS,EAAA,IAAA;AAAA,GACX;AAAA;AAAA;AAAA;AAAA,EAIA,WAAa,EAAA;AAAA,IACX,IAAM,EAAA,OAAA;AAAA,IACN,OAAS,EAAA,IAAA;AAAA,GACX;AAAA;AAAA;AAAA;AAAA,EAIA,MAAQ,EAAA;AAAA,IACN,IAAA,EAAMA,uBAA6B,MAAM,CAAA;AAAA,GAC3C;AAAA;AAAA;AAAA;AAAA,EAIA,eAAiB,EAAA;AAAA,IACf,IAAA,EAAMA,uBAAyB,KAAK,CAAA;AAAA,GACtC;AAAA;AAAA;AAAA;AAAA,EAIA,gBAAkB,EAAA;AAAA,IAChB,IAAM,EAAA,OAAA;AAAA,GACR;AAAA;AAAA;AAAA;AAAA,EAIA,cAAgB,EAAA;AAAA,IACd,IAAM,EAAA,QAAA;AAAA,GACR;AAAA;AAAA;AAAA;AAAA,EAIA,MAAQ,EAAA;AAAA,IACN,IAAM,EAAA,QAAA;AAAA,GACR;AAAA;AAAA;AAAA;AAAA,EAIA,MAAQ,EAAA;AAAA,IACN,IAAM,EAAA,QAAA;AAAA,GACR;AAAA;AAAA;AAAA;AAAA,EAIA,kBAAoB,EAAA;AAAA,IAClB,IAAM,EAAA,QAAA;AAAA,GACR;AAAA;AAAA;AAAA;AAAA,EAIA,YAAc,EAAA;AAAA,IACZ,IAAM,EAAA,QAAA;AAAA,GACR;AAAA;AAAA;AAAA;AAAA,EAIA,UAAY,EAAA;AAAA,IACV,IAAM,EAAA,QAAA;AAAA,GACR;AACF,CAAU,EAAA;AAEH,MAAM,cAAiB,GAAA;AAAA,EAC5B,sBAAwB,EAAA,CAAC,UAAsB,KAAA,CAAC,CAAC,UAAA;AACnD;;;;;"}
|
|
1
|
+
{"version":3,"file":"main-table.js","sources":["../../../../../../packages/components/table/src/config/main-table.ts"],"sourcesContent":["import { buildProps, definePropType } from '@ll-plus/utils'\n\nimport MainTable from '../components/main-table.vue'\n\nimport type { ExtractPropTypes } from 'vue'\nimport type { TableColumnProps } from 'ant-design-vue'\n\n// ITableScroll\nexport interface ITableScroll {\n x: number | string | boolean\n y: number | string\n}\nexport const mainTableProps = buildProps({\n /**\n * @description 动态插槽显示card和table\n */\n contentType: {\n type: String,\n default: ''\n },\n /**\n * @description 操作栏编辑操作列的key,用于下次记录用户行为\n */\n settingKey: {\n type: String,\n default: ''\n },\n /**\n * @description 列设置\n */\n columns: {\n type: definePropType<TableColumnProps[]>(Array),\n default: () => []\n },\n /**\n * @description 数据源\n */\n dataSource: {\n type: definePropType<any[]>(Array),\n default: () => []\n },\n /**\n * @description 是否数据拖拽\n */\n showDrag: {\n type: Boolean\n },\n /**\n * @description 是否显示#序列\n */\n showIndexColumn: {\n type: Boolean,\n default: true\n },\n /**\n * @description 展示操作列的\n */\n showOperate: {\n type: Boolean,\n default: true\n },\n /**\n * @description 是否显示操作栏上的设置\n */\n showSetting: {\n type: Boolean,\n default: true\n },\n /**\n * @description table的scroll\n */\n scroll: {\n type: definePropType<ITableScroll>(Object)\n },\n /**\n * @description 展开的key\n */\n expandedRowKeys: {\n type: definePropType<string[]>(Array)\n },\n /**\n * @description 是否隐藏分页\n */\n hiddenPagination: {\n type: Boolean\n },\n /**\n * @description 设置行属性同表格的customRow属性\n */\n customRowProps: {\n type: Function\n },\n /**\n * @description 点击展开图标时触发\n */\n expand: {\n type: Function\n },\n /**\n * @description 分页、排序、筛选变化时触发\n */\n change: {\n type: Function\n },\n /**\n * @description 展开的行变化时触发\n */\n expandedRowsChange: {\n type: Function\n },\n /**\n * @description 拖动列改变列的宽度时触发\n */\n resizeColumn: {\n type: Function\n },\n /**\n * @description 拖拽后的change\n */\n dragChange: {\n type: Function\n }\n} as const)\n\nexport const mainTableEmits = {\n handleChangeDataSource: (dataSource: any[]) => !!dataSource\n}\n\n// props\nexport type MainTableProps = ExtractPropTypes<typeof mainTableProps>\n\n// emits\nexport type MainTableEmits = typeof mainTableEmits\n\n// instance\nexport type MainTableInstance = InstanceType<typeof MainTable>\n"],"names":["buildProps","definePropType"],"mappings":";;;;;;AAYO,MAAM,iBAAiBA,kBAAW,CAAA;AAAA;AAAA;AAAA;AAAA,EAIvC,WAAa,EAAA;AAAA,IACX,IAAM,EAAA,MAAA;AAAA,IACN,OAAS,EAAA,EAAA;AAAA,GACX;AAAA;AAAA;AAAA;AAAA,EAIA,UAAY,EAAA;AAAA,IACV,IAAM,EAAA,MAAA;AAAA,IACN,OAAS,EAAA,EAAA;AAAA,GACX;AAAA;AAAA;AAAA;AAAA,EAIA,OAAS,EAAA;AAAA,IACP,IAAA,EAAMC,uBAAmC,KAAK,CAAA;AAAA,IAC9C,OAAA,EAAS,MAAM,EAAC;AAAA,GAClB;AAAA;AAAA;AAAA;AAAA,EAIA,UAAY,EAAA;AAAA,IACV,IAAA,EAAMA,uBAAsB,KAAK,CAAA;AAAA,IACjC,OAAA,EAAS,MAAM,EAAC;AAAA,GAClB;AAAA;AAAA;AAAA;AAAA,EAIA,QAAU,EAAA;AAAA,IACR,IAAM,EAAA,OAAA;AAAA,GACR;AAAA;AAAA;AAAA;AAAA,EAIA,eAAiB,EAAA;AAAA,IACf,IAAM,EAAA,OAAA;AAAA,IACN,OAAS,EAAA,IAAA;AAAA,GACX;AAAA;AAAA;AAAA;AAAA,EAIA,WAAa,EAAA;AAAA,IACX,IAAM,EAAA,OAAA;AAAA,IACN,OAAS,EAAA,IAAA;AAAA,GACX;AAAA;AAAA;AAAA;AAAA,EAIA,WAAa,EAAA;AAAA,IACX,IAAM,EAAA,OAAA;AAAA,IACN,OAAS,EAAA,IAAA;AAAA,GACX;AAAA;AAAA;AAAA;AAAA,EAIA,MAAQ,EAAA;AAAA,IACN,IAAA,EAAMA,uBAA6B,MAAM,CAAA;AAAA,GAC3C;AAAA;AAAA;AAAA;AAAA,EAIA,eAAiB,EAAA;AAAA,IACf,IAAA,EAAMA,uBAAyB,KAAK,CAAA;AAAA,GACtC;AAAA;AAAA;AAAA;AAAA,EAIA,gBAAkB,EAAA;AAAA,IAChB,IAAM,EAAA,OAAA;AAAA,GACR;AAAA;AAAA;AAAA;AAAA,EAIA,cAAgB,EAAA;AAAA,IACd,IAAM,EAAA,QAAA;AAAA,GACR;AAAA;AAAA;AAAA;AAAA,EAIA,MAAQ,EAAA;AAAA,IACN,IAAM,EAAA,QAAA;AAAA,GACR;AAAA;AAAA;AAAA;AAAA,EAIA,MAAQ,EAAA;AAAA,IACN,IAAM,EAAA,QAAA;AAAA,GACR;AAAA;AAAA;AAAA;AAAA,EAIA,kBAAoB,EAAA;AAAA,IAClB,IAAM,EAAA,QAAA;AAAA,GACR;AAAA;AAAA;AAAA;AAAA,EAIA,YAAc,EAAA;AAAA,IACZ,IAAM,EAAA,QAAA;AAAA,GACR;AAAA;AAAA;AAAA;AAAA,EAIA,UAAY,EAAA;AAAA,IACV,IAAM,EAAA,QAAA;AAAA,GACR;AACF,CAAU,EAAA;AAEH,MAAM,cAAiB,GAAA;AAAA,EAC5B,sBAAwB,EAAA,CAAC,UAAsB,KAAA,CAAC,CAAC,UAAA;AACnD;;;;;"}
|
|
@@ -11,6 +11,7 @@ export declare const tableProps: {
|
|
|
11
11
|
readonly tableProps: import("ll-plus/es/utils").EpPropFinalized<(new (...args: any[]) => {
|
|
12
12
|
readonly columns: import("ant-design-vue").TableColumnProps[];
|
|
13
13
|
readonly dataSource: any[];
|
|
14
|
+
readonly contentType: string;
|
|
14
15
|
readonly settingKey: string;
|
|
15
16
|
readonly showIndexColumn: import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
16
17
|
readonly showOperate: import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
@@ -29,6 +30,7 @@ export declare const tableProps: {
|
|
|
29
30
|
}) | (() => MainTableProps) | ((new (...args: any[]) => {
|
|
30
31
|
readonly columns: import("ant-design-vue").TableColumnProps[];
|
|
31
32
|
readonly dataSource: any[];
|
|
33
|
+
readonly contentType: string;
|
|
32
34
|
readonly settingKey: string;
|
|
33
35
|
readonly showIndexColumn: import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
34
36
|
readonly showOperate: import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
@@ -9,6 +9,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
9
9
|
readonly tableProps: import("ll-plus/es/utils").EpPropFinalized<(new (...args: any[]) => {
|
|
10
10
|
readonly columns: import("ant-design-vue").TableColumnProps[];
|
|
11
11
|
readonly dataSource: any[];
|
|
12
|
+
readonly contentType: string;
|
|
12
13
|
readonly settingKey: string;
|
|
13
14
|
readonly showIndexColumn: import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
14
15
|
readonly showOperate: import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
@@ -27,6 +28,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
27
28
|
}) | (() => import("./config").MainTableProps) | ((new (...args: any[]) => {
|
|
28
29
|
readonly columns: import("ant-design-vue").TableColumnProps[];
|
|
29
30
|
readonly dataSource: any[];
|
|
31
|
+
readonly contentType: string;
|
|
30
32
|
readonly settingKey: string;
|
|
31
33
|
readonly showIndexColumn: import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
32
34
|
readonly showOperate: import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
@@ -177,6 +179,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
177
179
|
readonly menuSwitchOptions: import("./config").IMenuSwitchOptions;
|
|
178
180
|
}, {}>;
|
|
179
181
|
MainTable: import("vue").DefineComponent<{
|
|
182
|
+
readonly contentType: import("ll-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
180
183
|
readonly settingKey: import("ll-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
181
184
|
readonly columns: import("ll-plus/es/utils").EpPropFinalized<(new (...args: any[]) => import("ant-design-vue").TableColumnProps[]) | (() => import("ant-design-vue").TableColumnProps[]) | ((new (...args: any[]) => import("ant-design-vue").TableColumnProps[]) | (() => import("ant-design-vue").TableColumnProps[]))[], unknown, unknown, () => never[], boolean>;
|
|
182
185
|
readonly dataSource: import("ll-plus/es/utils").EpPropFinalized<(new (...args: any[]) => any[]) | (() => any[]) | ((new (...args: any[]) => any[]) | (() => any[]))[], unknown, unknown, () => never[], boolean>;
|
|
@@ -247,6 +250,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
247
250
|
props: import("@vue/shared").LooseRequired<{
|
|
248
251
|
readonly columns: import("ant-design-vue").TableColumnProps[];
|
|
249
252
|
readonly dataSource: any[];
|
|
253
|
+
readonly contentType: string;
|
|
250
254
|
readonly settingKey: string;
|
|
251
255
|
readonly showIndexColumn: import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
252
256
|
readonly showOperate: import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
@@ -374,6 +378,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
374
378
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
375
379
|
handleChangeDataSource: (dataSource: any[]) => boolean;
|
|
376
380
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
381
|
+
readonly contentType: import("ll-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
377
382
|
readonly settingKey: import("ll-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
378
383
|
readonly columns: import("ll-plus/es/utils").EpPropFinalized<(new (...args: any[]) => import("ant-design-vue").TableColumnProps[]) | (() => import("ant-design-vue").TableColumnProps[]) | ((new (...args: any[]) => import("ant-design-vue").TableColumnProps[]) | (() => import("ant-design-vue").TableColumnProps[]))[], unknown, unknown, () => never[], boolean>;
|
|
379
384
|
readonly dataSource: import("ll-plus/es/utils").EpPropFinalized<(new (...args: any[]) => any[]) | (() => any[]) | ((new (...args: any[]) => any[]) | (() => any[]))[], unknown, unknown, () => never[], boolean>;
|
|
@@ -445,6 +450,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
445
450
|
}, {
|
|
446
451
|
readonly columns: import("ant-design-vue").TableColumnProps[];
|
|
447
452
|
readonly dataSource: any[];
|
|
453
|
+
readonly contentType: string;
|
|
448
454
|
readonly settingKey: string;
|
|
449
455
|
readonly showIndexColumn: import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
450
456
|
readonly showOperate: import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
@@ -532,6 +538,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
532
538
|
readonly tableProps: import("ll-plus/es/utils").EpPropFinalized<(new (...args: any[]) => {
|
|
533
539
|
readonly columns: import("ant-design-vue").TableColumnProps[];
|
|
534
540
|
readonly dataSource: any[];
|
|
541
|
+
readonly contentType: string;
|
|
535
542
|
readonly settingKey: string;
|
|
536
543
|
readonly showIndexColumn: import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
537
544
|
readonly showOperate: import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
@@ -550,6 +557,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
550
557
|
}) | (() => import("./config").MainTableProps) | ((new (...args: any[]) => {
|
|
551
558
|
readonly columns: import("ant-design-vue").TableColumnProps[];
|
|
552
559
|
readonly dataSource: any[];
|
|
560
|
+
readonly contentType: string;
|
|
553
561
|
readonly settingKey: string;
|
|
554
562
|
readonly showIndexColumn: import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
555
563
|
readonly showOperate: import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
@@ -29,6 +29,7 @@ export declare const LlTreeSearch: import("ll-plus/es/utils").SFCWithInstall<imp
|
|
|
29
29
|
readonly cancelText: string;
|
|
30
30
|
readonly showCancel: import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
31
31
|
readonly confirmText: string;
|
|
32
|
+
readonly isConfirmModel: import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
32
33
|
}>;
|
|
33
34
|
readonly required: false;
|
|
34
35
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
@@ -81,6 +82,7 @@ export declare const LlTreeSearch: import("ll-plus/es/utils").SFCWithInstall<imp
|
|
|
81
82
|
readonly cancelText: string;
|
|
82
83
|
readonly showCancel: import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
83
84
|
readonly confirmText: string;
|
|
85
|
+
readonly isConfirmModel: import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
84
86
|
} | undefined;
|
|
85
87
|
readonly drawerConfigProps?: {
|
|
86
88
|
readonly title: string;
|
|
@@ -342,6 +344,7 @@ export declare const LlTreeSearch: import("ll-plus/es/utils").SFCWithInstall<imp
|
|
|
342
344
|
readonly cancelText: string;
|
|
343
345
|
readonly showCancel: import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
344
346
|
readonly confirmText: string;
|
|
347
|
+
readonly isConfirmModel: import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
345
348
|
}>;
|
|
346
349
|
readonly required: false;
|
|
347
350
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
@@ -32,6 +32,7 @@ export declare const treeSearchProps: {
|
|
|
32
32
|
readonly cancelText: string;
|
|
33
33
|
readonly showCancel: import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
34
34
|
readonly confirmText: string;
|
|
35
|
+
readonly isConfirmModel: import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
35
36
|
}>;
|
|
36
37
|
readonly required: false;
|
|
37
38
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
@@ -28,6 +28,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
28
28
|
readonly cancelText: string;
|
|
29
29
|
readonly showCancel: import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
30
30
|
readonly confirmText: string;
|
|
31
|
+
readonly isConfirmModel: import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
31
32
|
}>;
|
|
32
33
|
readonly required: false;
|
|
33
34
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
@@ -80,6 +81,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
80
81
|
readonly cancelText: string;
|
|
81
82
|
readonly showCancel: import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
82
83
|
readonly confirmText: string;
|
|
84
|
+
readonly isConfirmModel: import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
83
85
|
} | undefined;
|
|
84
86
|
readonly drawerConfigProps?: {
|
|
85
87
|
readonly title: string;
|
|
@@ -341,6 +343,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
341
343
|
readonly cancelText: string;
|
|
342
344
|
readonly showCancel: import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
343
345
|
readonly confirmText: string;
|
|
346
|
+
readonly isConfirmModel: import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
344
347
|
}>;
|
|
345
348
|
readonly required: false;
|
|
346
349
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
@@ -27,6 +27,6 @@ export declare const buildProp: <Type = never, Value = never, Validator = never,
|
|
|
27
27
|
export type TestProps = Record<string, {
|
|
28
28
|
[epPropKey]: true;
|
|
29
29
|
} | NativePropType | EpPropInput<any, any, any, any, any>>;
|
|
30
|
-
export declare const buildProps: <Props extends Record<string, {
|
|
30
|
+
export declare const buildProps: <Props extends Record<string, NativePropType | EpPropInput<any, any, any, any, any> | {
|
|
31
31
|
__epPropKey: true;
|
|
32
|
-
}
|
|
32
|
+
}>>(props: Props) => { [K in keyof Props]: IfEpProp<Props[K], Props[K], IfNativePropType<Props[K], Props[K], EpPropConvert<Props[K]>>>; };
|
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
@charset "UTF-8";:root{--color-success:#52c41a;--color-warning:#faad14;--color-error:#ff4d4f;--color-info:#1187ff;--color-text-base:#000;--color-text:rgba(0, 0, 0, 0.88);--color-text-secondary:rgba(0, 0, 0, 0.65);--color-text-tertiary:rgba(0, 0, 0, 0.45);--color-text-quaternary:rgba(0, 0, 0, 0.25);--color-border:#d9d9d9;--color-border-secondary:#f0f0f0;--color-split:rgba(0, 0, 0, 0.06);--color-fill:rgba(0, 0, 0, 0.15);--color-fill-secondary:rgba(0, 0, 0, 0.06);--color-fill-tertiary:rgba(0, 0, 0, 0.04);--color-fill-quaternary:rgba(0, 0, 0, 0.02);--color-bg-base:#fff;--color-bg-container:#fff;--color-bg-elevated:#fff;--color-bg-layout:#f5f5f5;--color-bg-spotlight:rgba(0, 0, 0, 0.85);--color-bg-mask:rgba(0, 0, 0, 0.45);--control-item-bg-hover:#f4f4f4;--control-outline:rgba(238, 38, 5, 0.06);--main-bg-color:#f4f7fd;--submenu-bg-color:#fff;--menu-search-bg-color:#f6f6f6;--menu-border-color:#f0f0f0;--menu-button-icon-hover:var(--color-primary-hover);--menu-button-icon-hover-bg:rgba(0, 0, 0, 0.06);--collect-icon-color:#faad14;--header-icon-color:rgba(0, 0, 0, 0.65);--setting-bg-color:#f4f5f7;--setting-modal-bg-color:#fff;--default-icon:rgba(0, 0, 0, 0.45);--default-icon-hover:var(--color-primary-hover);--default-icon-hover-bg:rgba(0, 0, 0, 0.06);--default-icon-active:var(--color-primary-active);--default-icon-disable:rgba(0, 0, 0, 0.25);--primary-icon:var(--color-primary);--primary-icon-hover:var(--color-primary-hover);--primary-icon-active:var(--color-primary-active);--primary-icon-disabled:rgba(0, 0, 0, 0.25);--scroll-color:rgba(0, 0, 0, 0.25);--detail-descriptions-label-bg-color:#fafafa;--card-ribbon-bg-color:#e1f0ff;--card-ribbon-corner-bg-color:#5597dd;--help-des-bg-color:#fff4de;--blue-tag-bg-color:rgba(17, 135, 255, 0.1);--orange-tag-bg-color:rgba(250, 173, 20, 0.1);--green-tag-bg-color:rgba(82, 196, 26, 0.1);--success-status-bg-color:rgba(82, 196, 26, 0.08);--failure-status-bg-color:rgba(255, 77, 79, 0.08)}.technology-blue{--color-primary-bg:#f0f9ff;--color-primary-bg-hover:#b5e4ff;--color-primary-border:#8cd1ff;--color-primary-border-hover:#63bcff;--color-primary-hover:#3ba3ff;--color-primary:#1187ff;--color-primary-active:#0467d9;--color-primary-text-hover:#3ba3ff;--color-primary-text:#1187ff;--color-primary-text-active:#0467d9;--color-info:#1187ff}.cyan-blue{--color-primary-bg:#f0f9ff;--color-primary-bg-hover:#ebfaf8;--color-primary-border:#dfedec;--color-primary-border-hover:#afe0de;--color-primary-hover:#83d4d2;--color-primary:#5bc5c7;--color-primary-active:#429ca1;--color-primary-text-hover:#83d4d2;--color-primary-text:#5bc5c7;--color-primary-text-active:#429ca1;--color-info:#5bc5c7;--main-bg-color:#f4f7fd}.dark{--color-primary-bg:#111d2c;--color-primary-bg-hover:#102945;--color-primary-border:#13375b;--color-primary-border-hover:#13487e;--color-primary-hover:#3795e8;--color-primary:#1176dc;--color-primary-active:#125fad;--color-primary-text-hover:#3795e8;--color-primary-text:#1176dc;--color-primary-text-active:#125fad;--dark-color-primary:#1187ff;--color-success:#49aa19;--color-warning:#d89614;--color-error:#dc4446;--color-info:#1176dc;--color-text-base:#fff;--color-text:rgba(255, 255, 255);--color-text-secondary:rgba(255, 255, 255, 0.75);--color-text-tertiary:rgba(255, 255, 255, 0.45);--color-text-quaternary:rgba(255, 255, 255, 0.25);--color-border:#424242;--color-border-secondary:#303030;--color-split:rgba(255, 255, 255, 0.12);--color-fill:rgba(255, 255, 255, 0.18);--color-fill-secondary:rgba(255, 255, 255, 0.12);--color-fill-tertiary:rgba(255, 255, 255, 0.08);--color-fill-quaternary:rgba(255, 255, 255, 0.04);--color-bg-base:#000;--color-bg-container:#141414;--color-bg-elevated:#1f1f1f;--color-bg-layout:#000;--color-bg-spotlight:#424242;--color-bg-mask:rgba(0, 0, 0, 0.45);--control-item-bg-hover:rgba(255, 255, 255, 0.15);--control-outline:rgba(238, 38, 56, 0.11);--main-bg-color:transparent;--submenu-bg-color:#141414;--menu-search-bg-color:#000;--menu-border-color:#303030;--menu-button-icon-hover:var(--color-primary-hover);--menu-button-icon-hover-bg:rgba(255, 255, 255, 0.15);--collect-icon-color:var(--default-icon);--header-icon-color:rgba(255, 255, 255, 0.75);--setting-bg-color:#1f1f1f;--setting-modal-bg-color:#1f1f1f;--default-icon:rgba(255, 255, 255, 0.75);--default-icon-disable:rgba(255, 255, 255, 0.25);--scroll-color:rgba(255, 255, 255, 0.25);--detail-descriptions-label-bg-color:rgba(255, 255, 255, 0.04)//type=detail下的LlDescriptions的label背景颜色}.ant-menu-submenu.ant-menu-submenu-popup .ant-menu-submenu.ant-menu-submenu-vertical.ll-menu-sub .ant-menu-submenu-title{display:flex;align-items:center;justify-content:space-between;width:100%}.ant-menu-submenu.ant-menu-submenu-popup .ant-menu-submenu.ant-menu-submenu-vertical.ll-menu-sub .ant-menu-submenu-title .ll-icon{margin-left:20px}.ant-dropdown .ant-dropdown-menu .ant-dropdown-menu-item{margin-bottom:4px}.ant-dropdown .ant-dropdown-menu :last-child{margin-bottom:0!important}.ant-select:hover .ant-select-selector{border-color:var(--color-primary-hover)!important}.ant-select-dropdown .ant-cascader-menu-item-active,.ant-select-dropdown .ant-select-item-option-selected{color:var(--color-primary)!important}.ant-select-dropdown .ant-cascader-menu .ant-cascader-menu-item{margin-bottom:4px}.ant-select-dropdown .ant-cascader-menu :last-child{margin-bottom:0!important}.rc-virtual-list-holder-inner .ant-select-item{margin-bottom:4px}.rc-virtual-list-holder-inner :last-child{margin-bottom:0!important}.ant-picker-dropdown .ant-picker-cell-selected .ant-picker-cell-inner{background-color:var(--color-primary)!important}.ll-drawer .ant-drawer-body{padding:0!important}.ll-drawer .ant-drawer-header{height:56px;padding:0;padding-left:18px}.ll-drawer .ant-drawer-header .ant-drawer-header-title{height:56px}.ll-drawer .ant-drawer-header .ant-drawer-header-title .ant-drawer-close{padding:0;margin-right:10px}.ll-drawer__container{display:flex;flex-direction:column;
|
|
1
|
+
@charset "UTF-8";:root{--color-success:#52c41a;--color-warning:#faad14;--color-error:#ff4d4f;--color-info:#1187ff;--color-text-base:#000;--color-text:rgba(0, 0, 0, 0.88);--color-text-secondary:rgba(0, 0, 0, 0.65);--color-text-tertiary:rgba(0, 0, 0, 0.45);--color-text-quaternary:rgba(0, 0, 0, 0.25);--color-border:#d9d9d9;--color-border-secondary:#f0f0f0;--color-split:rgba(0, 0, 0, 0.06);--color-fill:rgba(0, 0, 0, 0.15);--color-fill-secondary:rgba(0, 0, 0, 0.06);--color-fill-tertiary:rgba(0, 0, 0, 0.04);--color-fill-quaternary:rgba(0, 0, 0, 0.02);--color-bg-base:#fff;--color-bg-container:#fff;--color-bg-elevated:#fff;--color-bg-layout:#f5f5f5;--color-bg-spotlight:rgba(0, 0, 0, 0.85);--color-bg-mask:rgba(0, 0, 0, 0.45);--control-item-bg-hover:#f4f4f4;--control-outline:rgba(238, 38, 5, 0.06);--main-bg-color:#f4f7fd;--submenu-bg-color:#fff;--menu-search-bg-color:#f6f6f6;--menu-border-color:#f0f0f0;--menu-button-icon-hover:var(--color-primary-hover);--menu-button-icon-hover-bg:rgba(0, 0, 0, 0.06);--collect-icon-color:#faad14;--header-icon-color:rgba(0, 0, 0, 0.65);--setting-bg-color:#f4f5f7;--setting-modal-bg-color:#fff;--default-icon:rgba(0, 0, 0, 0.45);--default-icon-hover:var(--color-primary-hover);--default-icon-hover-bg:rgba(0, 0, 0, 0.06);--default-icon-active:var(--color-primary-active);--default-icon-disable:rgba(0, 0, 0, 0.25);--primary-icon:var(--color-primary);--primary-icon-hover:var(--color-primary-hover);--primary-icon-active:var(--color-primary-active);--primary-icon-disabled:rgba(0, 0, 0, 0.25);--scroll-color:rgba(0, 0, 0, 0.25);--detail-descriptions-label-bg-color:#fafafa;--card-ribbon-bg-color:#e1f0ff;--card-ribbon-corner-bg-color:#5597dd;--help-des-bg-color:#fff4de;--blue-tag-bg-color:rgba(17, 135, 255, 0.1);--orange-tag-bg-color:rgba(250, 173, 20, 0.1);--green-tag-bg-color:rgba(82, 196, 26, 0.1);--success-status-bg-color:rgba(82, 196, 26, 0.08);--failure-status-bg-color:rgba(255, 77, 79, 0.08)}.technology-blue{--color-primary-bg:#f0f9ff;--color-primary-bg-hover:#b5e4ff;--color-primary-border:#8cd1ff;--color-primary-border-hover:#63bcff;--color-primary-hover:#3ba3ff;--color-primary:#1187ff;--color-primary-active:#0467d9;--color-primary-text-hover:#3ba3ff;--color-primary-text:#1187ff;--color-primary-text-active:#0467d9;--color-info:#1187ff}.cyan-blue{--color-primary-bg:#f0f9ff;--color-primary-bg-hover:#ebfaf8;--color-primary-border:#dfedec;--color-primary-border-hover:#afe0de;--color-primary-hover:#83d4d2;--color-primary:#5bc5c7;--color-primary-active:#429ca1;--color-primary-text-hover:#83d4d2;--color-primary-text:#5bc5c7;--color-primary-text-active:#429ca1;--color-info:#5bc5c7;--main-bg-color:#f4f7fd}.dark{--color-primary-bg:#111d2c;--color-primary-bg-hover:#102945;--color-primary-border:#13375b;--color-primary-border-hover:#13487e;--color-primary-hover:#3795e8;--color-primary:#1176dc;--color-primary-active:#125fad;--color-primary-text-hover:#3795e8;--color-primary-text:#1176dc;--color-primary-text-active:#125fad;--dark-color-primary:#1187ff;--color-success:#49aa19;--color-warning:#d89614;--color-error:#dc4446;--color-info:#1176dc;--color-text-base:#fff;--color-text:rgba(255, 255, 255);--color-text-secondary:rgba(255, 255, 255, 0.75);--color-text-tertiary:rgba(255, 255, 255, 0.45);--color-text-quaternary:rgba(255, 255, 255, 0.25);--color-border:#424242;--color-border-secondary:#303030;--color-split:rgba(255, 255, 255, 0.12);--color-fill:rgba(255, 255, 255, 0.18);--color-fill-secondary:rgba(255, 255, 255, 0.12);--color-fill-tertiary:rgba(255, 255, 255, 0.08);--color-fill-quaternary:rgba(255, 255, 255, 0.04);--color-bg-base:#000;--color-bg-container:#141414;--color-bg-elevated:#1f1f1f;--color-bg-layout:#000;--color-bg-spotlight:#424242;--color-bg-mask:rgba(0, 0, 0, 0.45);--control-item-bg-hover:rgba(255, 255, 255, 0.15);--control-outline:rgba(238, 38, 56, 0.11);--main-bg-color:transparent;--submenu-bg-color:#141414;--menu-search-bg-color:#000;--menu-border-color:#303030;--menu-button-icon-hover:var(--color-primary-hover);--menu-button-icon-hover-bg:rgba(255, 255, 255, 0.15);--collect-icon-color:var(--default-icon);--header-icon-color:rgba(255, 255, 255, 0.75);--setting-bg-color:#1f1f1f;--setting-modal-bg-color:#1f1f1f;--default-icon:rgba(255, 255, 255, 0.75);--default-icon-disable:rgba(255, 255, 255, 0.25);--scroll-color:rgba(255, 255, 255, 0.25);--detail-descriptions-label-bg-color:rgba(255, 255, 255, 0.04)//type=detail下的LlDescriptions的label背景颜色}.ant-menu-submenu.ant-menu-submenu-popup .ant-menu-submenu.ant-menu-submenu-vertical.ll-menu-sub .ant-menu-submenu-title{display:flex;align-items:center;justify-content:space-between;width:100%}.ant-menu-submenu.ant-menu-submenu-popup .ant-menu-submenu.ant-menu-submenu-vertical.ll-menu-sub .ant-menu-submenu-title .ll-icon{margin-left:20px}.ant-dropdown .ant-dropdown-menu .ant-dropdown-menu-item{margin-bottom:4px}.ant-dropdown .ant-dropdown-menu :last-child{margin-bottom:0!important}.ant-select:hover .ant-select-selector{border-color:var(--color-primary-hover)!important}.ant-select-dropdown .ant-cascader-menu-item-active,.ant-select-dropdown .ant-select-item-option-selected{color:var(--color-primary)!important}.ant-select-dropdown .ant-cascader-menu .ant-cascader-menu-item{margin-bottom:4px}.ant-select-dropdown .ant-cascader-menu :last-child{margin-bottom:0!important}.rc-virtual-list-holder-inner .ant-select-item{margin-bottom:4px}.rc-virtual-list-holder-inner :last-child{margin-bottom:0!important}.ant-picker-dropdown .ant-picker-cell-selected .ant-picker-cell-inner{background-color:var(--color-primary)!important}.ll-drawer .ant-drawer-body{padding:0!important;display:flex;height:100%;overflow:hidden}.ll-drawer .ant-drawer-header{height:56px;padding:0;padding-left:18px}.ll-drawer .ant-drawer-header .ant-drawer-header-title{height:56px}.ll-drawer .ant-drawer-header .ant-drawer-header-title .ant-drawer-close{padding:0;margin-right:10px}.ll-drawer__container{display:flex;flex-direction:column;flex:1;overflow:hidden;position:relative}.ll-drawer__container.is-has-scroll::after{content:"";position:absolute;top:24px;left:20px;width:calc(100% - 70px);height:1px;z-index:99;box-shadow:0 1px 2px 0 var(--color-fill-secondary)}.ll-drawer__container.is-has-scroll .ll-drawer__content{padding-right:50px!important}.ll-drawer__content{display:flex;flex:1;flex-direction:column;box-sizing:border-box;margin-top:24px;margin-right:10px;padding:0 56px 10px 44px;overflow-x:hidden;overflow-y:auto}.ll-drawer__shandow{position:absolute;top:24px;left:0;width:100%;height:1px;z-index:99;box-shadow:0 1px 2px 0 var(--color-fill-secondary)}.ll-drawer__footer{display:flex;width:100%;padding:14px 40px 24px;background-color:inherit}.ll-drawer__footer.is-has-scroll{box-shadow:0 -1px 2px 0 var(--color-fill-secondary)}.ll-drawer__footer-left{flex:1}.ll-drawer--cancel{margin-right:16px}
|