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
|
@@ -44,6 +44,7 @@ export declare const LlDrawer: import("ll-plus/es/utils").SFCWithInstall<import(
|
|
|
44
44
|
content: import("vue").Ref<HTMLElement | undefined>;
|
|
45
45
|
hasScroll: import("vue").Ref<boolean>;
|
|
46
46
|
symbolClass: import("vue").Ref<string>;
|
|
47
|
+
symbolComparedClass: import("vue").Ref<string>;
|
|
47
48
|
getBindValue: import("vue").ComputedRef<{
|
|
48
49
|
destroyOnClose: boolean;
|
|
49
50
|
width: string;
|
|
@@ -54,7 +55,7 @@ export declare const LlDrawer: import("ll-plus/es/utils").SFCWithInstall<import(
|
|
|
54
55
|
handleClose: () => void;
|
|
55
56
|
handleCancel: () => void;
|
|
56
57
|
handleConfirm: () => void;
|
|
57
|
-
handleResize: () => Promise<void>;
|
|
58
|
+
handleResize: (value: boolean) => Promise<void>;
|
|
58
59
|
readonly Drawer: {
|
|
59
60
|
new (...args: any[]): import("@vue/runtime-core").CreateComponentPublicInstance<Readonly<import("vue").ExtractPropTypes<{
|
|
60
61
|
autofocus: {
|
|
@@ -49,6 +49,7 @@ export declare const LlSecondConfirmation: import("ll-plus/es/utils").SFCWithIns
|
|
|
49
49
|
readonly title: import("ll-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "提示", boolean>;
|
|
50
50
|
readonly loading: import("ll-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
51
51
|
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>;
|
|
52
|
+
readonly isConfirmModel: import("ll-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
52
53
|
readonly class: import("ll-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
53
54
|
readonly wrapClassName: import("ll-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
54
55
|
readonly confirmText: import("ll-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
@@ -67,6 +68,7 @@ export declare const LlSecondConfirmation: import("ll-plus/es/utils").SFCWithIns
|
|
|
67
68
|
readonly cancelText: string;
|
|
68
69
|
readonly showCancel: import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
69
70
|
readonly confirmText: string;
|
|
71
|
+
readonly isConfirmModel: import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
70
72
|
readonly "onUpdate:open"?: (() => any) | undefined;
|
|
71
73
|
readonly onOk?: (() => any) | undefined;
|
|
72
74
|
readonly onCancel?: (() => any) | undefined;
|
|
@@ -88,6 +90,7 @@ export declare const LlSecondConfirmation: import("ll-plus/es/utils").SFCWithIns
|
|
|
88
90
|
modal: import("vue").Ref<HTMLElement | undefined>;
|
|
89
91
|
hasScroll: import("vue").Ref<boolean>;
|
|
90
92
|
symbolClass: import("vue").Ref<string>;
|
|
93
|
+
symbolComparedClass: import("vue").Ref<string>;
|
|
91
94
|
getBindValue: import("vue").ComputedRef<import("ll-plus/es/index").IResultType>;
|
|
92
95
|
handleCancel: () => void;
|
|
93
96
|
handleOk: () => void;
|
|
@@ -1992,6 +1995,7 @@ export declare const LlSecondConfirmation: import("ll-plus/es/utils").SFCWithIns
|
|
|
1992
1995
|
readonly title: import("ll-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "提示", boolean>;
|
|
1993
1996
|
readonly loading: import("ll-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
1994
1997
|
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>;
|
|
1998
|
+
readonly isConfirmModel: import("ll-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
1995
1999
|
readonly class: import("ll-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
1996
2000
|
readonly wrapClassName: import("ll-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
1997
2001
|
readonly confirmText: import("ll-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
@@ -2013,6 +2017,7 @@ export declare const LlSecondConfirmation: import("ll-plus/es/utils").SFCWithIns
|
|
|
2013
2017
|
readonly cancelText: string;
|
|
2014
2018
|
readonly showCancel: import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
2015
2019
|
readonly confirmText: string;
|
|
2020
|
+
readonly isConfirmModel: import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
2016
2021
|
}, {}>>;
|
|
2017
2022
|
readonly LlIcon: import("ll-plus/es/utils").SFCWithInstall<import("vue").DefineComponent<{
|
|
2018
2023
|
readonly iconName: {
|
package/es/components/drawer/src/components/second-confirmation/src/second-confirmation.vue.d.ts
CHANGED
|
@@ -48,6 +48,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
48
48
|
readonly title: import("ll-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "提示", boolean>;
|
|
49
49
|
readonly loading: import("ll-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
50
50
|
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>;
|
|
51
|
+
readonly isConfirmModel: import("ll-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
51
52
|
readonly class: import("ll-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
52
53
|
readonly wrapClassName: import("ll-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
53
54
|
readonly confirmText: import("ll-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
@@ -66,6 +67,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
66
67
|
readonly cancelText: string;
|
|
67
68
|
readonly showCancel: import("ll-plus/es/components").AvatarType<BooleanConstructor, unknown, unknown>;
|
|
68
69
|
readonly confirmText: string;
|
|
70
|
+
readonly isConfirmModel: import("ll-plus/es/components").AvatarType<BooleanConstructor, unknown, unknown>;
|
|
69
71
|
readonly "onUpdate:open"?: (() => any) | undefined;
|
|
70
72
|
readonly onOk?: (() => any) | undefined;
|
|
71
73
|
readonly onCancel?: (() => any) | undefined;
|
|
@@ -87,6 +89,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
87
89
|
modal: import("vue").Ref<HTMLElement | undefined>;
|
|
88
90
|
hasScroll: import("vue").Ref<boolean>;
|
|
89
91
|
symbolClass: import("vue").Ref<string>;
|
|
92
|
+
symbolComparedClass: import("vue").Ref<string>;
|
|
90
93
|
getBindValue: import("vue").ComputedRef<import("ll-plus/es/components").IResultType>;
|
|
91
94
|
handleCancel: () => void;
|
|
92
95
|
handleOk: () => void;
|
|
@@ -1991,6 +1994,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1991
1994
|
readonly title: import("ll-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "提示", boolean>;
|
|
1992
1995
|
readonly loading: import("ll-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
1993
1996
|
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>;
|
|
1997
|
+
readonly isConfirmModel: import("ll-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
1994
1998
|
readonly class: import("ll-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
1995
1999
|
readonly wrapClassName: import("ll-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
1996
2000
|
readonly confirmText: import("ll-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
@@ -2012,6 +2016,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2012
2016
|
readonly cancelText: string;
|
|
2013
2017
|
readonly showCancel: import("ll-plus/es/components").AvatarType<BooleanConstructor, unknown, unknown>;
|
|
2014
2018
|
readonly confirmText: string;
|
|
2019
|
+
readonly isConfirmModel: import("ll-plus/es/components").AvatarType<BooleanConstructor, unknown, unknown>;
|
|
2015
2020
|
}, {}>>;
|
|
2016
2021
|
readonly LlIcon: import("ll-plus/es/utils").SFCWithInstall<import("vue").DefineComponent<{
|
|
2017
2022
|
readonly iconName: {
|
|
@@ -43,6 +43,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
43
43
|
content: import("vue").Ref<HTMLElement | undefined>;
|
|
44
44
|
hasScroll: import("vue").Ref<boolean>;
|
|
45
45
|
symbolClass: import("vue").Ref<string>;
|
|
46
|
+
symbolComparedClass: import("vue").Ref<string>;
|
|
46
47
|
getBindValue: import("vue").ComputedRef<{
|
|
47
48
|
destroyOnClose: boolean;
|
|
48
49
|
width: string;
|
|
@@ -53,7 +54,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
53
54
|
handleClose: () => void;
|
|
54
55
|
handleCancel: () => void;
|
|
55
56
|
handleConfirm: () => void;
|
|
56
|
-
handleResize: () => Promise<void>;
|
|
57
|
+
handleResize: (value: boolean) => Promise<void>;
|
|
57
58
|
readonly Drawer: {
|
|
58
59
|
new (...args: any[]): import("vue").CreateComponentPublicInstance<Readonly<import("vue").ExtractPropTypes<{
|
|
59
60
|
autofocus: {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { defineComponent, useAttrs, ref, computed, nextTick, watch, resolveComponent, openBlock, createBlock, unref, mergeProps, withCtx, renderSlot, createElementVNode, normalizeClass,
|
|
1
|
+
import { defineComponent, useAttrs, ref, computed, nextTick, watch, resolveComponent, openBlock, createBlock, unref, mergeProps, withCtx, renderSlot, createElementVNode, normalizeClass, createCommentVNode, createElementBlock, createVNode } from 'vue';
|
|
2
2
|
import { Drawer } from 'ant-design-vue';
|
|
3
3
|
import '../../../utils/index.mjs';
|
|
4
|
-
import { omit
|
|
4
|
+
import { omit } from 'lodash-es';
|
|
5
5
|
import { drawerProps, drawerEmits, drawerOptions } from './drawer.mjs';
|
|
6
6
|
import './components/second-confirmation/index.mjs';
|
|
7
7
|
import { createNamespace } from '../../../utils/create-namespace.mjs';
|
|
@@ -21,6 +21,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
21
21
|
const content = ref();
|
|
22
22
|
const hasScroll = ref(false);
|
|
23
23
|
const symbolClass = ref(`ll-darwer-${(/* @__PURE__ */ new Date()).getTime()}`);
|
|
24
|
+
const symbolComparedClass = ref(`model-content-${(/* @__PURE__ */ new Date()).getTime()}`);
|
|
24
25
|
const getBindValue = computed(() => ({
|
|
25
26
|
...drawerOptions,
|
|
26
27
|
...omit({ ...attrs }, [...Object.keys(drawerProps), "rootClassName"])
|
|
@@ -51,24 +52,26 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
51
52
|
const handleConfirm = () => {
|
|
52
53
|
emits("confirm");
|
|
53
54
|
};
|
|
54
|
-
const handleResize = async () => {
|
|
55
|
+
const handleResize = async (value) => {
|
|
55
56
|
await nextTick();
|
|
56
57
|
const ele = document.getElementsByClassName(symbolClass.value)[0];
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
58
|
+
const modalBody = ele.getElementsByClassName(symbolComparedClass.value)[0];
|
|
59
|
+
const resizeObserver = new ResizeObserver((entries) => {
|
|
60
|
+
const { clientHeight } = entries[0].target;
|
|
61
|
+
const scrollHeight = ele.clientHeight;
|
|
62
|
+
hasScroll.value = clientHeight > scrollHeight;
|
|
63
|
+
console.log(clientHeight, scrollHeight, hasScroll.value);
|
|
64
|
+
});
|
|
65
|
+
if (value) {
|
|
66
|
+
resizeObserver.observe(modalBody);
|
|
67
|
+
} else {
|
|
68
|
+
resizeObserver.unobserve(modalBody);
|
|
61
69
|
}
|
|
62
70
|
};
|
|
63
71
|
watch(
|
|
64
72
|
() => props.open,
|
|
65
73
|
(val) => {
|
|
66
|
-
|
|
67
|
-
handleResize();
|
|
68
|
-
window.addEventListener("resize", throttle(handleResize, 500));
|
|
69
|
-
} else {
|
|
70
|
-
window.removeEventListener("resize", handleResize);
|
|
71
|
-
}
|
|
74
|
+
handleResize(val);
|
|
72
75
|
}
|
|
73
76
|
);
|
|
74
77
|
return (_ctx, _cache) => {
|
|
@@ -89,7 +92,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
89
92
|
createElementVNode(
|
|
90
93
|
"div",
|
|
91
94
|
{
|
|
92
|
-
class: normalizeClass(unref(bem).e("container"))
|
|
95
|
+
class: normalizeClass([unref(bem).e("container"), hasScroll.value ? unref(bem).is("has-scroll") : ""])
|
|
93
96
|
},
|
|
94
97
|
[
|
|
95
98
|
createElementVNode(
|
|
@@ -97,14 +100,24 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
97
100
|
{
|
|
98
101
|
ref_key: "content",
|
|
99
102
|
ref: content,
|
|
100
|
-
style: normalizeStyle({ marginBottom: props.showFooter ? "72px" : 0 }),
|
|
101
103
|
class: normalizeClass([unref(bem).e("content"), symbolClass.value])
|
|
102
104
|
},
|
|
103
105
|
[
|
|
104
|
-
|
|
106
|
+
createCommentVNode(` <div v-if="hasScroll" :class="bem.e('shandow')" /> `),
|
|
107
|
+
createElementVNode(
|
|
108
|
+
"div",
|
|
109
|
+
{
|
|
110
|
+
class: normalizeClass([symbolComparedClass.value])
|
|
111
|
+
},
|
|
112
|
+
[
|
|
113
|
+
renderSlot(_ctx.$slots, "default")
|
|
114
|
+
],
|
|
115
|
+
2
|
|
116
|
+
/* CLASS */
|
|
117
|
+
)
|
|
105
118
|
],
|
|
106
|
-
|
|
107
|
-
/* CLASS
|
|
119
|
+
2
|
|
120
|
+
/* CLASS */
|
|
108
121
|
),
|
|
109
122
|
props.showFooter ? (openBlock(), createElementBlock(
|
|
110
123
|
"div",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"drawer.vue2.mjs","sources":["../../../../../packages/components/drawer/src/drawer.vue"],"sourcesContent":["<template>\n <Drawer\n v-bind=\"getBindValue\"\n :title=\"props.title\"\n :open=\"props.open\"\n :root-class-name=\"bem.b()\"\n @close=\"handleClose\"\n >\n <template #title>\n <slot name=\"title\" />\n </template>\n <template #extra>\n <slot name=\"extra\" />\n </template>\n <div :class=\"bem.e('container')\">\n <div
|
|
1
|
+
{"version":3,"file":"drawer.vue2.mjs","sources":["../../../../../packages/components/drawer/src/drawer.vue"],"sourcesContent":["<template>\n <Drawer\n v-bind=\"getBindValue\"\n :title=\"props.title\"\n :open=\"props.open\"\n :root-class-name=\"bem.b()\"\n @close=\"handleClose\"\n >\n <template #title>\n <slot name=\"title\" />\n </template>\n <template #extra>\n <slot name=\"extra\" />\n </template>\n <div :class=\"[bem.e('container'), hasScroll ? bem.is('has-scroll') : '']\">\n <div ref=\"content\" :class=\"[bem.e('content'), symbolClass]\">\n <!-- <div v-if=\"hasScroll\" :class=\"bem.e('shandow')\" /> -->\n <div :class=\"[symbolComparedClass]\">\n <slot />\n </div>\n </div>\n <div\n v-if=\"props.showFooter\"\n :class=\"[bem.e('footer'), hasScroll ? bem.is('has-scroll') : '']\"\n >\n <slot name=\"footer\">\n <div :class=\"bem.e('footer-left')\">\n <slot name=\"footer-left\" />\n </div>\n <div :class=\"bem.e('footer-right')\">\n <slot name=\"footer-right\">\n <ll-button\n v-if=\"showCancel\"\n :class=\"bem.m('cancel')\"\n :label=\"props.cancelText\"\n @click=\"handleCancel\"\n >\n </ll-button>\n <ll-button\n type=\"primary\"\n :loading=\"props.loading\"\n :label=\"props.confirmText\"\n @click=\"handleConfirm\"\n >\n </ll-button>\n </slot>\n </div>\n </slot>\n </div>\n </div>\n </Drawer>\n</template>\n\n<script setup lang=\"ts\">\nimport { ref, computed, watch, nextTick, useAttrs } from 'vue'\nimport { Drawer } from 'ant-design-vue'\nimport { createNamespace } from '@ll-plus/utils'\nimport { omit } from 'lodash-es'\nimport { drawerProps, drawerEmits, drawerOptions } from './drawer'\nimport { useSecondConfirmation } from './components/second-confirmation'\n\ndefineOptions({ name: 'LlDrawer' })\n\nconst props = defineProps(drawerProps)\n\nconst emits = defineEmits(drawerEmits)\n\nconst attrs = useAttrs()\n\nconst bem = createNamespace('drawer')\n\nconst content = ref<HTMLElement>()\n\nconst hasScroll = ref(false)\n\nconst symbolClass = ref(`ll-darwer-${new Date().getTime()}`)\n\nconst symbolComparedClass = ref(`model-content-${new Date().getTime()}`)\n\nconst getBindValue = computed(() => ({\n ...drawerOptions,\n ...omit({ ...attrs }, [...Object.keys(drawerProps), 'rootClassName'])\n}))\n\nconst handleClose = (): void => {\n if (props.useClose) {\n emits('close')\n } else {\n handleCancel()\n return\n }\n emits('update:open')\n}\nconst handleCancel = (): void => {\n if (props.cancelConfirm) {\n useSecondConfirmation(\n props.cancelConfirmOptions || {\n title: '温馨提示',\n message: '你有未保存的更改,确定关闭?'\n }\n ).then(async () => {\n // 点击保存按钮则关闭弹窗和抽屉\n emits('cancel')\n })\n return\n }\n emits('cancel')\n}\nconst handleConfirm = (): void => {\n emits('confirm')\n}\n// const handleResize = async () => {\n// await nextTick()\n// const ele = document.getElementsByClassName(symbolClass.value)[0]\n// if (ele) {\n// setTimeout(() => {\n// hasScroll.value = ele.scrollHeight > ele.clientHeight\n// }, 0)\n// }\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 console.log(clientHeight, scrollHeight, hasScroll.value)\n })\n if (value) {\n resizeObserver.observe(modalBody)\n } else {\n resizeObserver.unobserve(modalBody)\n }\n}\n\nwatch(\n () => props.open,\n val => {\n handleResize(val)\n }\n)\n</script>\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;AA+DA,IAAA,MAAM,KAAQ,GAAA,OAAA,CAAA;AAEd,IAAA,MAAM,KAAQ,GAAA,MAAA,CAAA;AAEd,IAAA,MAAM,QAAQ,QAAS,EAAA,CAAA;AAEvB,IAAM,MAAA,GAAA,GAAM,gBAAgB,QAAQ,CAAA,CAAA;AAEpC,IAAA,MAAM,UAAU,GAAiB,EAAA,CAAA;AAEjC,IAAM,MAAA,SAAA,GAAY,IAAI,KAAK,CAAA,CAAA;AAE3B,IAAM,MAAA,WAAA,GAAc,IAAI,CAAa,UAAA,EAAA,iBAAA,IAAI,MAAO,EAAA,OAAA,EAAS,CAAE,CAAA,CAAA,CAAA;AAE3D,IAAM,MAAA,mBAAA,GAAsB,IAAI,CAAiB,cAAA,EAAA,iBAAA,IAAI,MAAO,EAAA,OAAA,EAAS,CAAE,CAAA,CAAA,CAAA;AAEvE,IAAM,MAAA,YAAA,GAAe,SAAS,OAAO;AAAA,MACnC,GAAG,aAAA;AAAA,MACH,GAAG,IAAA,CAAK,EAAE,GAAG,KAAM,EAAA,EAAG,CAAC,GAAG,MAAO,CAAA,IAAA,C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AAI,CAAA,YAAA,CAAA;AACzB,QAAA,SAAA,CAAU,QAAQ,YAAe,GAAA,YAAA,CAAA;AACjC,QAAA,OAAA,CAAQ,GAAI,CAAA,YAAA,EAAc,YAAc,EAAA,SAAA,CAAU,KAAK,CAAA,CAAA;AAAA,OACxD,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;AAEA,IAAA,KAAA;AAAA,MACE,MAAM,KAAM,CAAA,IAAA;AAAA,MACZ,CAAO,GAAA,KAAA;AACL,QAAA,YAAA,CAAa,GAAG,CAAA,CAAA;AAAA,OAClB;AAAA,KACF,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -4,6 +4,7 @@ export declare const LlModal: import("ll-plus/es/utils").SFCWithInstall<import("
|
|
|
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 @@ export declare const LlModal: import("ll-plus/es/utils").SFCWithInstall<import("
|
|
|
22
23
|
readonly cancelText: string;
|
|
23
24
|
readonly showCancel: import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
24
25
|
readonly confirmText: string;
|
|
26
|
+
readonly isConfirmModel: import("ll-plus/es/utils").EpPropMergeType<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 @@ export declare const LlModal: import("ll-plus/es/utils").SFCWithInstall<import("
|
|
|
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<import("./src/modal").IResultType>;
|
|
47
50
|
handleCancel: () => void;
|
|
48
51
|
handleOk: () => void;
|
|
@@ -1947,6 +1950,7 @@ export declare const LlModal: import("ll-plus/es/utils").SFCWithInstall<import("
|
|
|
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,6 +1972,7 @@ export declare const LlModal: import("ll-plus/es/utils").SFCWithInstall<import("
|
|
|
1968
1972
|
readonly cancelText: string;
|
|
1969
1973
|
readonly showCancel: import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
1970
1974
|
readonly confirmText: string;
|
|
1975
|
+
readonly isConfirmModel: import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
1971
1976
|
}, {}>>;
|
|
1972
1977
|
export default LlModal;
|
|
1973
1978
|
export * from './src/modal';
|
|
@@ -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.mjs","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":[],"mappings":";;;;AAWO,MAAM,aAAa,UAAW,CAAA;AAAA;AAAA;AAAA;AAAA,EAInC,IAAM,EAAA;AAAA,IACJ,IAAM,EAAA,OAAA;AAAA,IACN,OAAS,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3,"file":"modal.mjs","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":[],"mappings":";;;;AAWO,MAAM,aAAa,UAAW,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,EAA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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;
|
|
@@ -21,6 +21,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
21
21
|
const modal = ref();
|
|
22
22
|
const hasScroll = ref(false);
|
|
23
23
|
const symbolClass = ref(`ll-modal-${(/* @__PURE__ */ new Date()).getTime()}`);
|
|
24
|
+
const symbolComparedClass = ref(`model-content-${(/* @__PURE__ */ new Date()).getTime()}`);
|
|
24
25
|
const getBindValue = computed(() => {
|
|
25
26
|
const result = {
|
|
26
27
|
...omit({ ...attrs }, [...Object.keys(modalProps), "wrapClassName"])
|
|
@@ -40,10 +41,11 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
40
41
|
const handleResize = async (value) => {
|
|
41
42
|
await nextTick();
|
|
42
43
|
const ele = document.getElementsByClassName(symbolClass.value)[0];
|
|
43
|
-
const modalBody = ele.getElementsByClassName(
|
|
44
|
+
const modalBody = ele.getElementsByClassName(symbolComparedClass.value)[0];
|
|
44
45
|
const resizeObserver = new ResizeObserver((entries) => {
|
|
45
|
-
const {
|
|
46
|
-
|
|
46
|
+
const { clientHeight } = entries[0].target;
|
|
47
|
+
const scrollHeight = ele.clientHeight;
|
|
48
|
+
hasScroll.value = clientHeight > scrollHeight;
|
|
47
49
|
});
|
|
48
50
|
if (value) {
|
|
49
51
|
resizeObserver.observe(modalBody);
|
|
@@ -64,7 +66,11 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
64
66
|
open: props.open,
|
|
65
67
|
title: props.title,
|
|
66
68
|
"wrap-class-name": `${unref(bem).b()} ${props.wrapClassName}`,
|
|
67
|
-
class: [
|
|
69
|
+
class: [
|
|
70
|
+
props.class,
|
|
71
|
+
hasScroll.value ? unref(bem).is("has-scroll") : "",
|
|
72
|
+
unref(bem).is(props.isConfirmModel ? "confirm-model" : "")
|
|
73
|
+
],
|
|
68
74
|
onCancel: handleCancel,
|
|
69
75
|
onOk: handleOk
|
|
70
76
|
}), createSlots({
|
|
@@ -72,10 +78,20 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
72
78
|
createElementVNode(
|
|
73
79
|
"div",
|
|
74
80
|
{
|
|
75
|
-
class: normalizeClass([unref(bem).e("container"), unref(bem).is(props.type)])
|
|
81
|
+
class: normalizeClass([unref(bem).e("container"), symbolClass.value, unref(bem).is(props.type)])
|
|
76
82
|
},
|
|
77
83
|
[
|
|
78
|
-
|
|
84
|
+
createElementVNode(
|
|
85
|
+
"div",
|
|
86
|
+
{
|
|
87
|
+
class: normalizeClass([symbolComparedClass.value])
|
|
88
|
+
},
|
|
89
|
+
[
|
|
90
|
+
renderSlot(_ctx.$slots, "default")
|
|
91
|
+
],
|
|
92
|
+
2
|
|
93
|
+
/* CLASS */
|
|
94
|
+
)
|
|
79
95
|
],
|
|
80
96
|
2
|
|
81
97
|
/* CLASS */
|
|
@@ -92,11 +108,13 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
92
108
|
props.showCancel && props.type !== "confirm" ? (openBlock(), createBlock(unref(LlButton), {
|
|
93
109
|
key: 0,
|
|
94
110
|
label: props.cancelText ? props.cancelText : "\u53D6\u6D88",
|
|
111
|
+
size: "middle",
|
|
95
112
|
onClick: handleCancel
|
|
96
113
|
}, null, 8, ["label"])) : createCommentVNode("v-if", true),
|
|
97
114
|
createVNode(unref(LlButton), {
|
|
98
115
|
type: "primary",
|
|
99
116
|
loading: props.loading,
|
|
117
|
+
size: "middle",
|
|
100
118
|
label: props.confirmText ? props.confirmText : props.type === "confirm" ? "\u77E5\u9053\u4E86" : "\u786E\u8BA4",
|
|
101
119
|
onClick: handleOk
|
|
102
120
|
}, null, 8, ["loading", "label"])
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"modal.vue2.mjs","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.mjs","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":[],"mappings":";;;;;;;;;;;;;;;;AA2DA,IAAA,MAAM,KAAQ,GAAA,OAAA,CAAA;AAEd,IAAA,MAAM,KAAQ,GAAA,MAAA,CAAA;AAEd,IAAA,MAAM,QAAQ,QAAS,EAAA,CAAA;AAEvB,IAAM,MAAA,GAAA,GAAM,gBAAgB,OAAO,CAAA,CAAA;AAEnC,IAAA,MAAM,QAAQ,GAAiB,EAAA,CAAA;AAE/B,IAAM,MAAA,SAAA,GAAY,IAAI,KAAK,CAAA,CAAA;AAE3B,IAAM,MAAA,WAAA,GAAc,IAAI,CAAY,SAAA,EAAA,iBAAA,IAAI,MAAO,EAAA,OAAA,EAAS,CAAE,CAAA,CAAA,CAAA;AAE1D,IAAM,MAAA,mBAAA,GAAsB,IAAI,CAAiB,cAAA,EAAA,iBAAA,IAAI,MAAO,EAAA,OAAA,EAAS,CAAE,CAAA,CAAA,CAAA;AAEvE,IAAM,MAAA,YAAA,GAAe,SAAS,MAAM;AAClC,MAAA,MAAM,MAAsB,GAAA;AAAA,QAC1B,GAAG,IAAA,CAAK,EAAE,GAAG,KAAM,EAAA,EAAG,CAAC,GAAG,MAAO,CAAA,IAAA,CAAK,UAAU,CAAA,EAAG,eAAe,CAAC,CAAA;AAAA,OACrE,CAAA;AACA,MAAI,IAAA,KAAA,CAAM,eAAe,KAAO,EA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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -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>;
|
|
@@ -3,6 +3,13 @@ import { buildProps, definePropType } from '../../../../utils/props/runtime.mjs'
|
|
|
3
3
|
|
|
4
4
|
"use strict";
|
|
5
5
|
const mainTableProps = buildProps({
|
|
6
|
+
/**
|
|
7
|
+
* @description 动态插槽显示card和table
|
|
8
|
+
*/
|
|
9
|
+
contentType: {
|
|
10
|
+
type: String,
|
|
11
|
+
default: ""
|
|
12
|
+
},
|
|
6
13
|
/**
|
|
7
14
|
* @description 操作栏编辑操作列的key,用于下次记录用户行为
|
|
8
15
|
*/
|