ll-plus 2.4.18 → 2.4.19
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/component.mjs +4 -0
- package/es/component.mjs.map +1 -1
- package/es/components/breadcrumb-card/index.d.ts +12 -21
- package/es/components/breadcrumb-card/src/breadcrumb-card.d.ts +2 -7
- package/es/components/breadcrumb-card/src/breadcrumb-card.vue.d.ts +12 -21
- package/es/components/drawer/src/components/second-confirmation/index.d.ts +2 -2
- package/es/components/drawer/src/components/second-confirmation/src/second-confirmation.vue.d.ts +2 -2
- package/es/components/index.d.ts +2 -0
- package/es/components/new-drawer/index.d.ts +732 -0
- package/es/components/new-drawer/src/drawer.d.ts +60 -0
- package/es/components/new-drawer/src/drawer.vue.d.ts +725 -0
- package/es/components/new-modal/index.d.ts +2340 -0
- package/es/components/new-modal/src/modal.d.ts +58 -0
- package/es/components/new-modal/src/modal.vue.d.ts +2333 -0
- package/es/components/table/index.d.ts +1 -0
- package/es/components/table/src/components/header-search.vue.d.ts +1 -0
- package/es/components/table/src/table.vue.d.ts +1 -0
- package/es/index.mjs +4 -0
- package/es/index.mjs.map +1 -1
- package/es/packages/components/breadcrumb-card/src/breadcrumb-card.mjs +6 -5
- package/es/packages/components/breadcrumb-card/src/breadcrumb-card.mjs.map +1 -1
- package/es/packages/components/breadcrumb-card/src/breadcrumb-card.vue2.mjs +30 -38
- package/es/packages/components/breadcrumb-card/src/breadcrumb-card.vue2.mjs.map +1 -1
- package/es/packages/components/index.mjs +4 -0
- package/es/packages/components/index.mjs.map +1 -1
- package/es/packages/components/new-drawer/index.mjs +10 -0
- package/es/packages/components/new-drawer/index.mjs.map +1 -0
- package/es/packages/components/new-drawer/src/drawer.mjs +106 -0
- package/es/packages/components/new-drawer/src/drawer.mjs.map +1 -0
- package/es/packages/components/new-drawer/src/drawer.vue.mjs +8 -0
- package/es/packages/components/new-drawer/src/drawer.vue.mjs.map +1 -0
- package/es/packages/components/new-drawer/src/drawer.vue2.mjs +162 -0
- package/es/packages/components/new-drawer/src/drawer.vue2.mjs.map +1 -0
- package/es/packages/components/new-modal/index.mjs +10 -0
- package/es/packages/components/new-modal/index.mjs.map +1 -0
- package/es/packages/components/new-modal/src/modal.mjs +104 -0
- package/es/packages/components/new-modal/src/modal.mjs.map +1 -0
- package/es/packages/components/new-modal/src/modal.vue.mjs +8 -0
- package/es/packages/components/new-modal/src/modal.vue.mjs.map +1 -0
- package/es/packages/components/new-modal/src/modal.vue2.mjs +126 -0
- package/es/packages/components/new-modal/src/modal.vue2.mjs.map +1 -0
- package/es/packages/components/table/src/components/header-search.vue2.mjs +21 -13
- package/es/packages/components/table/src/components/header-search.vue2.mjs.map +1 -1
- package/es/packages/hooks/use-scroll/index.mjs +72 -3
- package/es/packages/hooks/use-scroll/index.mjs.map +1 -1
- package/index.full.js +720 -173
- package/index.full.min.js +22 -22
- package/index.full.min.js.map +1 -1
- package/index.full.min.mjs +23 -23
- package/index.full.min.mjs.map +1 -1
- package/index.full.mjs +717 -177
- package/lib/component.js +86 -82
- package/lib/component.js.map +1 -1
- package/lib/components/breadcrumb-card/index.d.ts +12 -21
- package/lib/components/breadcrumb-card/src/breadcrumb-card.d.ts +2 -7
- package/lib/components/breadcrumb-card/src/breadcrumb-card.vue.d.ts +12 -21
- package/lib/components/drawer/src/components/second-confirmation/index.d.ts +2 -2
- package/lib/components/drawer/src/components/second-confirmation/src/second-confirmation.vue.d.ts +2 -2
- package/lib/components/index.d.ts +2 -0
- package/lib/components/new-drawer/index.d.ts +732 -0
- package/lib/components/new-drawer/src/drawer.d.ts +60 -0
- package/lib/components/new-drawer/src/drawer.vue.d.ts +725 -0
- package/lib/components/new-modal/index.d.ts +2340 -0
- package/lib/components/new-modal/src/modal.d.ts +58 -0
- package/lib/components/new-modal/src/modal.vue.d.ts +2333 -0
- package/lib/components/table/index.d.ts +1 -0
- package/lib/components/table/src/components/header-search.vue.d.ts +1 -0
- package/lib/components/table/src/table.vue.d.ts +1 -0
- package/lib/index.js +97 -86
- package/lib/index.js.map +1 -1
- package/lib/packages/components/breadcrumb-card/src/breadcrumb-card.js +6 -5
- package/lib/packages/components/breadcrumb-card/src/breadcrumb-card.js.map +1 -1
- package/lib/packages/components/breadcrumb-card/src/breadcrumb-card.vue2.js +29 -37
- package/lib/packages/components/breadcrumb-card/src/breadcrumb-card.vue2.js.map +1 -1
- package/lib/packages/components/index.js +93 -82
- package/lib/packages/components/index.js.map +1 -1
- package/lib/packages/components/new-drawer/index.js +17 -0
- package/lib/packages/components/new-drawer/index.js.map +1 -0
- package/lib/packages/components/new-drawer/src/drawer.js +109 -0
- package/lib/packages/components/new-drawer/src/drawer.js.map +1 -0
- package/lib/packages/components/new-drawer/src/drawer.vue.js +12 -0
- package/lib/packages/components/new-drawer/src/drawer.vue.js.map +1 -0
- package/lib/packages/components/new-drawer/src/drawer.vue2.js +166 -0
- package/lib/packages/components/new-drawer/src/drawer.vue2.js.map +1 -0
- package/lib/packages/components/new-modal/index.js +18 -0
- package/lib/packages/components/new-modal/index.js.map +1 -0
- package/lib/packages/components/new-modal/src/modal.js +108 -0
- package/lib/packages/components/new-modal/src/modal.js.map +1 -0
- package/lib/packages/components/new-modal/src/modal.vue.js +12 -0
- package/lib/packages/components/new-modal/src/modal.vue.js.map +1 -0
- package/lib/packages/components/new-modal/src/modal.vue2.js +130 -0
- package/lib/packages/components/new-modal/src/modal.vue2.js.map +1 -0
- package/lib/packages/components/table/src/components/header-search.vue2.js +20 -12
- package/lib/packages/components/table/src/components/header-search.vue2.js.map +1 -1
- package/lib/packages/hooks/use-scroll/index.js +72 -3
- package/lib/packages/hooks/use-scroll/index.js.map +1 -1
- package/package.json +1 -1
- package/theme-chalk/css/breadcrumb-card.css +1 -1
- package/theme-chalk/css/index.css +2 -2
- package/theme-chalk/css/new-drawer.css +5 -0
- package/theme-chalk/css/new-modal.css +5 -0
- package/types/packages/components/breadcrumb-card/index.d.ts +12 -21
- package/types/packages/components/breadcrumb-card/src/breadcrumb-card.d.ts +2 -7
- package/types/packages/components/breadcrumb-card/src/breadcrumb-card.vue.d.ts +12 -21
- package/types/packages/components/drawer/src/components/second-confirmation/index.d.ts +2 -2
- package/types/packages/components/drawer/src/components/second-confirmation/src/second-confirmation.vue.d.ts +2 -2
- package/types/packages/components/index.d.ts +2 -0
- package/types/packages/components/new-drawer/index.d.ts +732 -0
- package/types/packages/components/new-drawer/src/drawer.d.ts +60 -0
- package/types/packages/components/new-drawer/src/drawer.vue.d.ts +725 -0
- package/types/packages/components/new-modal/index.d.ts +2340 -0
- package/types/packages/components/new-modal/src/modal.d.ts +58 -0
- package/types/packages/components/new-modal/src/modal.vue.d.ts +2333 -0
- package/types/packages/components/table/index.d.ts +1 -0
- package/types/packages/components/table/src/components/header-search.vue.d.ts +1 -0
- package/types/packages/components/table/src/table.vue.d.ts +1 -0
|
@@ -105,6 +105,7 @@ export declare const LlTable: import("ll-plus/es/utils").SFCWithInstall<import("
|
|
|
105
105
|
} & {}>;
|
|
106
106
|
headerSearchRef: import("vue").Ref<any>;
|
|
107
107
|
contentType: unknown;
|
|
108
|
+
observer: MutationObserver;
|
|
108
109
|
emits: ((event: "change", v: import("./src/config").ImenuSwitchType) => void) & ((event: "changeHeaderSearch", height: number) => void);
|
|
109
110
|
bem: {
|
|
110
111
|
b: (blockSuffix?: string) => string;
|
|
@@ -12,6 +12,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
12
12
|
} & {}>;
|
|
13
13
|
headerSearchRef: import("vue").Ref<any>;
|
|
14
14
|
contentType: unknown;
|
|
15
|
+
observer: MutationObserver;
|
|
15
16
|
emits: ((event: "change", v: ImenuSwitchType) => void) & ((event: "changeHeaderSearch", height: number) => void);
|
|
16
17
|
bem: {
|
|
17
18
|
b: (blockSuffix?: string) => string;
|
|
@@ -105,6 +105,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
105
105
|
} & {}>;
|
|
106
106
|
headerSearchRef: import("vue").Ref<any>;
|
|
107
107
|
contentType: unknown;
|
|
108
|
+
observer: MutationObserver;
|
|
108
109
|
emits: ((event: "change", v: ImenuSwitchType) => void) & ((event: "changeHeaderSearch", height: number) => void);
|
|
109
110
|
bem: {
|
|
110
111
|
b: (blockSuffix?: string) => string;
|
package/es/index.mjs
CHANGED
|
@@ -40,6 +40,8 @@ export { useSecondConfirmation } from './packages/components/drawer/src/componen
|
|
|
40
40
|
export { secondConfirmationProps } from './packages/components/drawer/src/components/second-confirmation/src/second-confirmation.mjs';
|
|
41
41
|
export { LlSecondConfirmation } from './packages/components/drawer/src/components/second-confirmation/index.mjs';
|
|
42
42
|
export { LlDrawer } from './packages/components/drawer/index.mjs';
|
|
43
|
+
export { newDrawerEmits, newDrawerProps } from './packages/components/new-drawer/src/drawer.mjs';
|
|
44
|
+
export { LlNewDrawer } from './packages/components/new-drawer/index.mjs';
|
|
43
45
|
export { easyCronEmits, easyCronProps } from './packages/components/easy-cron/src/config/easy-cron.mjs';
|
|
44
46
|
export { dateUtil, formatToDate, formatToDateTime } from './packages/components/easy-cron/src/config/date-utils.mjs';
|
|
45
47
|
export { TypeEnum, useTabEmits, useTabProps, useTabSetup } from './packages/components/easy-cron/src/config/use-tab-mixin.mjs';
|
|
@@ -73,6 +75,8 @@ export { llMarkdownViewerProps } from './packages/components/markdown-editor/src
|
|
|
73
75
|
export { LlMarkdownEditor, LlMarkdownViewer } from './packages/components/markdown-editor/index.mjs';
|
|
74
76
|
export { modalEmits, modalProps } from './packages/components/modal/src/modal.mjs';
|
|
75
77
|
export { LlModal } from './packages/components/modal/index.mjs';
|
|
78
|
+
export { modalType, newModalEmits, newModalProps } from './packages/components/new-modal/src/modal.mjs';
|
|
79
|
+
export { LlNewModal } from './packages/components/new-modal/index.mjs';
|
|
76
80
|
export { numberRangeEmits, numberRangeProps } from './packages/components/number-range/src/number-range.mjs';
|
|
77
81
|
export { LlNumberRange } from './packages/components/number-range/index.mjs';
|
|
78
82
|
export { operateIconEmits, operateIconProps } from './packages/components/operate-icon/src/operate-icon.mjs';
|
package/es/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sources":["../../packages/ll-plus/index.ts"],"sourcesContent":["import installer from './defaults'\n\nexport * from '@ll-plus/components'\nexport * from '@ll-plus/constant'\nexport * from '@ll-plus/hooks'\n\nexport const install = installer.install\nexport default installer\n"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.mjs","sources":["../../packages/ll-plus/index.ts"],"sourcesContent":["import installer from './defaults'\n\nexport * from '@ll-plus/components'\nexport * from '@ll-plus/constant'\nexport * from '@ll-plus/hooks'\n\nexport const install = installer.install\nexport default installer\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAMO,MAAM,UAAU,SAAU,CAAA;;;;"}
|
|
@@ -5,17 +5,18 @@ import { buildProps, definePropType } from '../../../utils/props/runtime.mjs';
|
|
|
5
5
|
const breadcrumbCardProps = buildProps({
|
|
6
6
|
// buildProps和defineprops一样
|
|
7
7
|
/**
|
|
8
|
-
* @description
|
|
8
|
+
* @description 容器内容的顶部的阴影 设置为false标记可能是外部其他元素滚动
|
|
9
9
|
*/
|
|
10
|
-
|
|
10
|
+
isShowTopShadow: {
|
|
11
11
|
type: Boolean,
|
|
12
12
|
default: true
|
|
13
13
|
},
|
|
14
14
|
/**
|
|
15
|
-
* @description
|
|
15
|
+
* @description 容器内容底部的阴影
|
|
16
16
|
*/
|
|
17
|
-
|
|
18
|
-
type:
|
|
17
|
+
isShowFooterShadow: {
|
|
18
|
+
type: Boolean,
|
|
19
|
+
default: true
|
|
19
20
|
},
|
|
20
21
|
/**
|
|
21
22
|
* @description 最外层的class
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"breadcrumb-card.mjs","sources":["../../../../../../packages/components/breadcrumb-card/src/breadcrumb-card.ts"],"sourcesContent":["import { buildProps, definePropType } from '@ll-plus/utils'\n\nimport type { ExtractPropTypes } from 'vue'\nimport type BreadcrumbCard from './breadcrumb-card.vue'\n\nexport const breadcrumbCardProps = buildProps({\n // buildProps和defineprops一样\n /**\n * @description
|
|
1
|
+
{"version":3,"file":"breadcrumb-card.mjs","sources":["../../../../../../packages/components/breadcrumb-card/src/breadcrumb-card.ts"],"sourcesContent":["import { buildProps, definePropType } from '@ll-plus/utils'\n\nimport type { ExtractPropTypes } from 'vue'\nimport type BreadcrumbCard from './breadcrumb-card.vue'\n\nexport const breadcrumbCardProps = buildProps({\n // buildProps和defineprops一样\n /**\n * @description 容器内容的顶部的阴影 设置为false标记可能是外部其他元素滚动\n */\n isShowTopShadow: {\n type: Boolean,\n default: true\n },\n /**\n * @description 容器内容底部的阴影\n */\n isShowFooterShadow: {\n type: Boolean,\n default: true\n },\n /**\n * @description 最外层的class\n */\n rootClass: {\n type: String\n },\n /**\n * @description 设置BreadcrumbCard的z-index\n */\n zIndex: {\n type: Number,\n default: 1000\n },\n /**\n * @description 指定BreadcrumbCard挂载的节点,并在容器内展现,false为挂载在当前位置\n */\n getContainer: {\n type: definePropType<() => HTMLElement | HTMLElement | false>(Object)\n },\n /**\n * @description 是否支持键盘esc关闭\n */\n keyboard: {\n type: Boolean,\n default: true\n },\n /**\n * @description 是否可见\n */\n visible: {\n type: Boolean,\n default: false\n },\n /**\n * @description 标题\n */\n title: {\n type: String,\n default: '标题'\n }\n} as const)\n\nexport const breadcrumbCardEmits = {\n close: (bool: boolean) => bool, // 点击左侧返回关闭事件\n 'update:visible': (bool: boolean) => bool // 关闭打开弹窗\n}\n\n// props\nexport type BreadcrumbCardProps = ExtractPropTypes<typeof breadcrumbCardProps> // ExtractPropTypes和defineCpmponent类似\n\n// instance\nexport type BreadcrumbCardInstance = InstanceType<typeof BreadcrumbCard>\n"],"names":[],"mappings":";;;;AAKO,MAAM,sBAAsB,UAAW,CAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAK5C,eAAiB,EAAA;AAAA,IACf,IAAM,EAAA,OAAA;AAAA,IACN,OAAS,EAAA,IAAA;AAAA,GACX;AAAA;AAAA;AAAA;AAAA,EAIA,kBAAoB,EAAA;AAAA,IAClB,IAAM,EAAA,OAAA;AAAA,IACN,OAAS,EAAA,IAAA;AAAA,GACX;AAAA;AAAA;AAAA;AAAA,EAIA,SAAW,EAAA;AAAA,IACT,IAAM,EAAA,MAAA;AAAA,GACR;AAAA;AAAA;AAAA;AAAA,EAIA,MAAQ,EAAA;AAAA,IACN,IAAM,EAAA,MAAA;AAAA,IACN,OAAS,EAAA,GAAA;AAAA,GACX;AAAA;AAAA;AAAA;AAAA,EAIA,YAAc,EAAA;AAAA,IACZ,IAAA,EAAM,eAAwD,MAAM,CAAA;AAAA,GACtE;AAAA;AAAA;AAAA;AAAA,EAIA,QAAU,EAAA;AAAA,IACR,IAAM,EAAA,OAAA;AAAA,IACN,OAAS,EAAA,IAAA;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,KAAO,EAAA;AAAA,IACL,IAAM,EAAA,MAAA;AAAA,IACN,OAAS,EAAA,cAAA;AAAA,GACX;AACF,CAAU,EAAA;AAEH,MAAM,mBAAsB,GAAA;AAAA,EACjC,KAAA,EAAO,CAAC,IAAkB,KAAA,IAAA;AAAA;AAAA,EAC1B,gBAAA,EAAkB,CAAC,IAAkB,KAAA,IAAA;AAAA;AACvC;;;;"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { defineComponent, ref, computed, watchEffect, resolveComponent, openBlock, createElementBlock, normalizeClass, unref, normalizeStyle, createElementVNode, createCommentVNode, createVNode, withCtx, createTextVNode, toDisplayString, renderSlot, withDirectives, vShow } from 'vue';
|
|
1
|
+
import { defineComponent, ref, computed, watchEffect, resolveComponent, openBlock, createElementBlock, normalizeClass, unref, normalizeStyle, createElementVNode, createCommentVNode, createVNode, withCtx, createTextVNode, toDisplayString, renderSlot, mergeProps, withDirectives, vShow } from 'vue';
|
|
2
2
|
import '../../../utils/index.mjs';
|
|
3
3
|
import '../../../hooks/index.mjs';
|
|
4
4
|
import { breadcrumbCardProps, breadcrumbCardEmits } from './breadcrumb-card.mjs';
|
|
5
|
-
import { createNamespace } from '../../../utils/create-namespace.mjs';
|
|
6
5
|
import { useScroll } from '../../../hooks/use-scroll/index.mjs';
|
|
6
|
+
import { createNamespace } from '../../../utils/create-namespace.mjs';
|
|
7
7
|
|
|
8
8
|
"use strict";
|
|
9
9
|
var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
@@ -16,18 +16,22 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
16
16
|
setup(__props, { emit: __emit }) {
|
|
17
17
|
const props = __props;
|
|
18
18
|
const emits = __emit;
|
|
19
|
+
const { scrollPosition, isHasScrollBar, scrollRef } = useScroll();
|
|
19
20
|
const breadcrumbCardRef = ref();
|
|
20
21
|
const rootStyle = computed(() => {
|
|
21
22
|
return { zIndex: props.zIndex };
|
|
22
23
|
});
|
|
23
24
|
const isShowContentTopBox = computed(() => {
|
|
24
|
-
return scrollPosition.value && isHasScrollBar && scrollPosition.value !== "top";
|
|
25
|
+
return props.isShowTopShadow && scrollPosition.value && isHasScrollBar.value && scrollPosition.value !== "top";
|
|
25
26
|
});
|
|
26
27
|
const isShowContentBottomBox = computed(() => {
|
|
27
|
-
|
|
28
|
+
if (props.isShowTopShadow) {
|
|
29
|
+
return isHasScrollBar.value && scrollPosition.value !== "bottom";
|
|
30
|
+
} else {
|
|
31
|
+
return props.isShowFooterShadow;
|
|
32
|
+
}
|
|
28
33
|
});
|
|
29
34
|
const bem = createNamespace("breadcrumb-card");
|
|
30
|
-
const { scrollPosition, isHasScrollBar, scrollRef } = useScroll();
|
|
31
35
|
const handleClose = async () => {
|
|
32
36
|
emits("update:visible", false);
|
|
33
37
|
emits("close", props.visible);
|
|
@@ -92,7 +96,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
92
96
|
}, {
|
|
93
97
|
default: withCtx(() => [
|
|
94
98
|
createTextVNode(
|
|
95
|
-
toDisplayString(_ctx.title
|
|
99
|
+
toDisplayString(_ctx.title),
|
|
96
100
|
1
|
|
97
101
|
/* TEXT */
|
|
98
102
|
)
|
|
@@ -105,7 +109,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
105
109
|
/* STABLE */
|
|
106
110
|
}, 8, ["class"]),
|
|
107
111
|
createCommentVNode(" \u5934\u90E8\u53F3\u8FB9\u63D2\u69FD "),
|
|
108
|
-
renderSlot(_ctx.$slots, "
|
|
112
|
+
renderSlot(_ctx.$slots, "extra")
|
|
109
113
|
],
|
|
110
114
|
2
|
|
111
115
|
/* CLASS */
|
|
@@ -113,9 +117,9 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
113
117
|
createCommentVNode(" \u5185\u5BB9\u533A\u57DF "),
|
|
114
118
|
createElementVNode(
|
|
115
119
|
"div",
|
|
116
|
-
{
|
|
117
|
-
class:
|
|
118
|
-
},
|
|
120
|
+
mergeProps({
|
|
121
|
+
class: `${unref(bem).e("content")}`
|
|
122
|
+
}, _ctx.$attrs),
|
|
119
123
|
[
|
|
120
124
|
createCommentVNode(" \u5185\u5BB9\u533A\u57DF\u9876\u90E8\u7684\u76D2\u5B50\u7528\u4E8E\u6EDA\u52A8\u906E\u76D6/\u9634\u5F71 \u53EA\u6709\u6EDA\u52A8\u72B6\u6001\u4E0B\u624D\u6709\uFF0C\u6EDA\u52A8\u5230\u9876\u90E8\u9700\u8981 "),
|
|
121
125
|
withDirectives(createElementVNode(
|
|
@@ -127,7 +131,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
127
131
|
2
|
|
128
132
|
/* CLASS */
|
|
129
133
|
), [
|
|
130
|
-
[vShow,
|
|
134
|
+
[vShow, isShowContentTopBox.value]
|
|
131
135
|
]),
|
|
132
136
|
createCommentVNode(" \u5185\u5BB9\u6EDA\u52A8\u533A\u57DF "),
|
|
133
137
|
createElementVNode(
|
|
@@ -142,36 +146,24 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
142
146
|
],
|
|
143
147
|
2
|
|
144
148
|
/* CLASS */
|
|
145
|
-
)
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
)
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
_ctx.$slots.footer ? (openBlock(), createElementBlock(
|
|
160
|
-
"div",
|
|
161
|
-
{
|
|
162
|
-
key: 0,
|
|
163
|
-
class: normalizeClass(`${unref(bem).e("footer")}`)
|
|
164
|
-
},
|
|
165
|
-
[
|
|
166
|
-
renderSlot(_ctx.$slots, "footer")
|
|
167
|
-
],
|
|
168
|
-
2
|
|
169
|
-
/* CLASS */
|
|
170
|
-
)) : createCommentVNode("v-if", true)
|
|
149
|
+
)
|
|
150
|
+
],
|
|
151
|
+
16
|
|
152
|
+
/* FULL_PROPS */
|
|
153
|
+
),
|
|
154
|
+
createCommentVNode(" \u5E95\u90E8footer "),
|
|
155
|
+
_ctx.$slots.footer ? (openBlock(), createElementBlock(
|
|
156
|
+
"div",
|
|
157
|
+
{
|
|
158
|
+
key: 0,
|
|
159
|
+
class: normalizeClass(`${unref(bem).e("footer")} ${isShowContentBottomBox.value ? unref(bem).e("footer-shadow") : ""}`)
|
|
160
|
+
},
|
|
161
|
+
[
|
|
162
|
+
renderSlot(_ctx.$slots, "footer")
|
|
171
163
|
],
|
|
172
164
|
2
|
|
173
165
|
/* CLASS */
|
|
174
|
-
)
|
|
166
|
+
)) : createCommentVNode("v-if", true)
|
|
175
167
|
],
|
|
176
168
|
2
|
|
177
169
|
/* CLASS */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"breadcrumb-card.vue2.mjs","sources":["../../../../../../packages/components/breadcrumb-card/src/breadcrumb-card.vue"],"sourcesContent":["<template>\n <div\n v-if=\"visible\"\n ref=\"breadcrumbCardRef\"\n :class=\"`${bem.b()} ${rootClass}`\"\n :style=\"rootStyle\"\n >\n <div :class=\"bem.e('container')\">\n <!-- 头部导航栏 -->\n <div :class=\"bem.e('header')\">\n <!-- 左边返回 -->\n <a-breadcrumb :class=\"bem.e('back')\">\n <a-breadcrumb-item class=\"icon\" @click=\"handleClose\">\n <ll-icon\n icon-name=\"icon-return-arrow\"\n class=\"back-icon\"\n :class=\"bem.e('back-icon')\"\n />\n </a-breadcrumb-item>\n <a-breadcrumb-item :class=\"bem.e('title')\">\n {{ title
|
|
1
|
+
{"version":3,"file":"breadcrumb-card.vue2.mjs","sources":["../../../../../../packages/components/breadcrumb-card/src/breadcrumb-card.vue"],"sourcesContent":["<template>\n <div\n v-if=\"visible\"\n ref=\"breadcrumbCardRef\"\n :class=\"`${bem.b()} ${rootClass}`\"\n :style=\"rootStyle\"\n >\n <div :class=\"bem.e('container')\">\n <!-- 头部导航栏 -->\n <div :class=\"bem.e('header')\">\n <!-- 左边返回 -->\n <a-breadcrumb :class=\"bem.e('back')\">\n <a-breadcrumb-item class=\"icon\" @click=\"handleClose\">\n <ll-icon\n icon-name=\"icon-return-arrow\"\n class=\"back-icon\"\n :class=\"bem.e('back-icon')\"\n />\n </a-breadcrumb-item>\n <a-breadcrumb-item :class=\"bem.e('title')\">\n {{ title }}\n </a-breadcrumb-item>\n </a-breadcrumb>\n <!-- 头部右边插槽 -->\n <slot name=\"extra\" />\n </div>\n <!-- 内容区域 -->\n <div :class=\"`${bem.e('content')}`\" v-bind=\"$attrs\">\n <!-- 内容区域顶部的盒子用于滚动遮盖/阴影 只有滚动状态下才有,滚动到顶部需要 -->\n <div\n v-show=\"isShowContentTopBox\"\n :class=\"bem.e('content-top-shadow')\"\n ></div>\n <!-- 内容滚动区域 -->\n <div ref=\"scrollRef\" :class=\"`${bem.e('content-container')}`\">\n <slot />\n </div>\n </div>\n <!-- 底部footer -->\n <div\n v-if=\"$slots.footer\"\n :class=\"`${bem.e('footer')} ${\n isShowContentBottomBox ? bem.e('footer-shadow') : ''\n }`\"\n >\n <slot name=\"footer\" />\n </div>\n </div>\n </div>\n</template>\n\n<script lang=\"ts\" setup>\nimport { ref, computed, watchEffect } from 'vue'\nimport { createNamespace } from '@ll-plus/utils'\nimport { useScroll } from '@ll-plus/hooks'\n\nimport { breadcrumbCardProps, breadcrumbCardEmits } from './breadcrumb-card'\n\n// 1.defineOptions\ndefineOptions({\n name: 'LlBreadcrumbCard'\n})\n\n// 2.props/emits\nconst props = defineProps(breadcrumbCardProps)\nconst emits = defineEmits(breadcrumbCardEmits)\n\n// 3.hooks\nconst { scrollPosition, isHasScrollBar, scrollRef } = useScroll()\n\n// 4.ref/computed/const\nconst breadcrumbCardRef = ref<HTMLElement>()\n// 设置rootStyle获取z-index\nconst rootStyle = computed(() => {\n return { zIndex: props.zIndex }\n})\n// 是否现实内容区域顶部的阴影div\nconst isShowContentTopBox = computed(() => {\n return (\n props.isShowTopShadow &&\n scrollPosition.value &&\n isHasScrollBar.value &&\n scrollPosition.value !== 'top'\n )\n})\n// 是否现实内容区域底部的阴影div\nconst isShowContentBottomBox = computed(() => {\n // 如果顶部的阴影为true则说明是内部的容器在滚动产品的阴影 则由容器的滚动情况来决定阴影\n if (props.isShowTopShadow) {\n return isHasScrollBar.value && scrollPosition.value !== 'bottom'\n } else {\n // 如果顶部的阴影为false,则说明不是内部容器滚动,则底部的阴影由 外部的isShowFooterShadow来决定\n return props.isShowFooterShadow\n }\n})\nconst bem = createNamespace('breadcrumb-card')\n\n// 5.methods\n// 点击头部返回图标\nconst handleClose = async () => {\n emits('update:visible', false)\n emits('close', props.visible)\n}\n// 6.watchEffect\n// 监听添加弹窗的位置\nwatchEffect(() => {\n if (props.visible && breadcrumbCardRef.value) {\n // 添加到指定的位置下\n if (props.getContainer) {\n const parentNode: any =\n typeof props.getContainer === 'function'\n ? props.getContainer()\n : props.getContainer\n parentNode.appendChild(breadcrumbCardRef.value!)\n } else {\n // 添加到body下\n document.body.appendChild(breadcrumbCardRef.value!)\n }\n }\n})\n</script>\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAgEA,IAAA,MAAM,KAAQ,GAAA,OAAA,CAAA;AACd,IAAA,MAAM,KAAQ,GAAA,MAAA,CAAA;AAGd,IAAA,MAAM,EAAE,cAAA,EAAgB,cAAgB,EAAA,SAAA,KAAc,SAAU,EAAA,CAAA;AAGhE,IAAA,MAAM,oBAAoB,GAAiB,EAAA,CAAA;AAE3C,IAAM,MAAA,SAAA,GAAY,SAAS,MAAM;AAC/B,MAAO,OAAA,EAAE,MAAQ,EAAA,KAAA,CAAM,MAAO,EAAA,CAAA;AAAA,KAC/B,CAAA,CAAA;AAED,IAAM,MAAA,mBAAA,GAAsB,SAAS,MAAM;AACzC,MAAA,OACE,MAAM,eACN,IAAA,cAAA,CAAe,SACf,cAAe,CAAA,KAAA,IACf,eAAe,KAAU,KAAA,KAAA,CAAA;AAAA,KAE5B,CAAA,CAAA;AAED,IAAM,MAAA,sBAAA,GAAyB,SAAS,MAAM;AAE5C,MAAA,IAAI,MAAM,eAAiB,EAAA;AACzB,QAAO,OAAA,cAAA,CAAe,KAAS,IAAA,cAAA,CAAe,KAAU,KAAA,QAAA,CAAA;AAAA,OACnD,MAAA;AAEL,QAAA,OAAO,KAAM,CAAA,kBAAA,CAAA;AAAA,OACf;AAAA,KACD,CAAA,CAAA;AACD,IAAM,MAAA,GAAA,GAAM,gBAAgB,iBAAiB,CAAA,CAAA;AAI7C,IAAA,MAAM,cAAc,YAAY;AAC9B,MAAA,KAAA,CAAM,kBAAkB,KAAK,CAAA,CAAA;AAC7B,MAAM,KAAA,CAAA,OAAA,EAAS,MAAM,OAAO,CAAA,CAAA;AAAA,KAC9B,CAAA;AAGA,IAAA,WAAA,CAAY,MAAM;AAChB,MAAI,IAAA,KAAA,CAAM,OAAW,IAAA,iBAAA,CAAkB,KAAO,EAAA;AAE5C,QAAA,IAAI,MAAM,YAAc,EAAA;AACtB,UAAM,MAAA,UAAA,GACJ,OAAO,KAAM,CAAA,YAAA,KAAiB,aAC1B,KAAM,CAAA,YAAA,KACN,KAAM,CAAA,YAAA,CAAA;AACZ,UAAW,UAAA,CAAA,WAAA,CAAY,kBAAkB,KAAM,CAAA,CAAA;AAAA,SAC1C,MAAA;AAEL,UAAS,QAAA,CAAA,IAAA,CAAK,WAAY,CAAA,iBAAA,CAAkB,KAAM,CAAA,CAAA;AAAA,SACpD;AAAA,OACF;AAAA,KACD,CAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -13,6 +13,7 @@ export { LlDateRange } from './date-range/index.mjs';
|
|
|
13
13
|
export { LlDescriptions } from './descriptions/index.mjs';
|
|
14
14
|
export { LlDescriptionsItem } from './descriptions-item/index.mjs';
|
|
15
15
|
export { LlDrawer } from './drawer/index.mjs';
|
|
16
|
+
export { LlNewDrawer } from './new-drawer/index.mjs';
|
|
16
17
|
export { LlEasyCron } from './easy-cron/index.mjs';
|
|
17
18
|
export { LlEmpty } from './empty/index.mjs';
|
|
18
19
|
export { LlForm, LlFormComponent } from './form/index.mjs';
|
|
@@ -26,6 +27,7 @@ export { LlInputNumber } from './input-number/index.mjs';
|
|
|
26
27
|
export { LlKeyValue } from './key-value/index.mjs';
|
|
27
28
|
export { LlMarkdownEditor, LlMarkdownViewer } from './markdown-editor/index.mjs';
|
|
28
29
|
export { LlModal } from './modal/index.mjs';
|
|
30
|
+
export { LlNewModal } from './new-modal/index.mjs';
|
|
29
31
|
export { LlNumberRange } from './number-range/index.mjs';
|
|
30
32
|
export { LlOperateIcon } from './operate-icon/index.mjs';
|
|
31
33
|
export { LlOperateTree } from './operate-tree/index.mjs';
|
|
@@ -73,6 +75,7 @@ export { drawerEmits, drawerOptions, drawerProps } from './drawer/src/drawer.mjs
|
|
|
73
75
|
export { useSecondConfirmation } from './drawer/src/components/second-confirmation/src/use-second-confirmation.mjs';
|
|
74
76
|
export { secondConfirmationProps } from './drawer/src/components/second-confirmation/src/second-confirmation.mjs';
|
|
75
77
|
export { LlSecondConfirmation } from './drawer/src/components/second-confirmation/index.mjs';
|
|
78
|
+
export { newDrawerEmits, newDrawerProps } from './new-drawer/src/drawer.mjs';
|
|
76
79
|
export { easyCronEmits, easyCronProps } from './easy-cron/src/config/easy-cron.mjs';
|
|
77
80
|
export { dateUtil, formatToDate, formatToDateTime } from './easy-cron/src/config/date-utils.mjs';
|
|
78
81
|
export { TypeEnum, useTabEmits, useTabProps, useTabSetup } from './easy-cron/src/config/use-tab-mixin.mjs';
|
|
@@ -93,6 +96,7 @@ export { formColumns, formOptions, keyValueItemEmits, keyValueItemProps, typeRul
|
|
|
93
96
|
export { llMarkdownEditorEmits, llMarkdownEditorProps } from './markdown-editor/src/config/markdown-editor.mjs';
|
|
94
97
|
export { llMarkdownViewerProps } from './markdown-editor/src/config/markdown-viewer.mjs';
|
|
95
98
|
export { modalEmits, modalProps } from './modal/src/modal.mjs';
|
|
99
|
+
export { modalType, newModalEmits, newModalProps } from './new-modal/src/modal.mjs';
|
|
96
100
|
export { numberRangeEmits, numberRangeProps } from './number-range/src/number-range.mjs';
|
|
97
101
|
export { operateIconEmits, operateIconProps } from './operate-icon/src/operate-icon.mjs';
|
|
98
102
|
export { OperateTreeEmits, operateTreeEmits, operateTreeProps } from './operate-tree/src/operate-tree.mjs';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import '../../utils/index.mjs';
|
|
2
|
+
import Drawer from './src/drawer.vue.mjs';
|
|
3
|
+
export { newDrawerEmits, newDrawerProps } from './src/drawer.mjs';
|
|
4
|
+
import { withInstall } from '../../utils/with-install.mjs';
|
|
5
|
+
|
|
6
|
+
"use strict";
|
|
7
|
+
const LlNewDrawer = withInstall(Drawer);
|
|
8
|
+
|
|
9
|
+
export { LlNewDrawer, LlNewDrawer as default };
|
|
10
|
+
//# sourceMappingURL=index.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.mjs","sources":["../../../../../packages/components/new-drawer/index.ts"],"sourcesContent":["import { withInstall } from '@ll-plus/utils'\n\nimport Drawer from './src/drawer.vue'\n\nexport const LlNewDrawer = withInstall(Drawer)\n\nexport default LlNewDrawer\n\nexport * from './src/drawer'\n\ndeclare module 'vue' {\n export interface GlobalComponents {\n LlNewDrawer: typeof Drawer\n }\n}\n"],"names":[],"mappings":";;;;;;AAIa,MAAA,WAAA,GAAc,YAAY,MAAM;;;;"}
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
import '../../../utils/index.mjs';
|
|
2
|
+
import { buildProps, definePropType } from '../../../utils/props/runtime.mjs';
|
|
3
|
+
|
|
4
|
+
"use strict";
|
|
5
|
+
const newDrawerProps = buildProps({
|
|
6
|
+
/**
|
|
7
|
+
* @description 对话框外层容器的类名
|
|
8
|
+
*/
|
|
9
|
+
rootClassName: {
|
|
10
|
+
type: String,
|
|
11
|
+
default: ""
|
|
12
|
+
},
|
|
13
|
+
/**
|
|
14
|
+
* @description 宽度
|
|
15
|
+
*/
|
|
16
|
+
width: {
|
|
17
|
+
type: definePropType([Number, String]),
|
|
18
|
+
default: "560px"
|
|
19
|
+
},
|
|
20
|
+
/**
|
|
21
|
+
* @description 抽屉是否可见
|
|
22
|
+
*/
|
|
23
|
+
open: {
|
|
24
|
+
type: Boolean,
|
|
25
|
+
default: false
|
|
26
|
+
},
|
|
27
|
+
/**
|
|
28
|
+
* @description 标题
|
|
29
|
+
*/
|
|
30
|
+
title: {
|
|
31
|
+
type: String,
|
|
32
|
+
default: "\u65B0\u589E"
|
|
33
|
+
},
|
|
34
|
+
/**
|
|
35
|
+
* @description 确认/知道了按钮loading
|
|
36
|
+
*/
|
|
37
|
+
confirmLoading: {
|
|
38
|
+
type: Boolean,
|
|
39
|
+
default: false
|
|
40
|
+
},
|
|
41
|
+
/**
|
|
42
|
+
* @description 取消按钮的配置信息
|
|
43
|
+
*/
|
|
44
|
+
cancelButtonProps: {
|
|
45
|
+
type: definePropType(Object)
|
|
46
|
+
},
|
|
47
|
+
/**
|
|
48
|
+
* @description 确认按钮的配置信息
|
|
49
|
+
*/
|
|
50
|
+
okButtonProps: {
|
|
51
|
+
type: definePropType(Object)
|
|
52
|
+
},
|
|
53
|
+
/**
|
|
54
|
+
* @description 确认按钮文字
|
|
55
|
+
*/
|
|
56
|
+
confirmText: {
|
|
57
|
+
type: String,
|
|
58
|
+
default: "\u786E\u8BA4"
|
|
59
|
+
},
|
|
60
|
+
/**
|
|
61
|
+
* @description 取消按钮文字
|
|
62
|
+
*/
|
|
63
|
+
cancelText: {
|
|
64
|
+
type: String,
|
|
65
|
+
default: "\u53D6\u6D88"
|
|
66
|
+
},
|
|
67
|
+
/**
|
|
68
|
+
* @description 显示底部
|
|
69
|
+
*/
|
|
70
|
+
showFooter: {
|
|
71
|
+
type: Boolean,
|
|
72
|
+
default: true
|
|
73
|
+
},
|
|
74
|
+
/**
|
|
75
|
+
* @description 容器内容的顶部的阴影 设置为false标记可能是外部其他元素滚动
|
|
76
|
+
*/
|
|
77
|
+
isShowTopShadow: {
|
|
78
|
+
type: Boolean,
|
|
79
|
+
default: true
|
|
80
|
+
},
|
|
81
|
+
/**
|
|
82
|
+
* @description 容器内容底部的阴影
|
|
83
|
+
*/
|
|
84
|
+
isShowFooterShadow: {
|
|
85
|
+
type: Boolean,
|
|
86
|
+
default: true
|
|
87
|
+
}
|
|
88
|
+
});
|
|
89
|
+
const newDrawerEmits = {
|
|
90
|
+
/**
|
|
91
|
+
* @description 点击取消时触发
|
|
92
|
+
*/
|
|
93
|
+
cancel: () => true,
|
|
94
|
+
/**
|
|
95
|
+
* @description 点击确认时触发
|
|
96
|
+
*/
|
|
97
|
+
confirm: () => true,
|
|
98
|
+
/**
|
|
99
|
+
* @description 抽屉关闭时触发
|
|
100
|
+
*/
|
|
101
|
+
close: () => true,
|
|
102
|
+
"update:open": () => true
|
|
103
|
+
};
|
|
104
|
+
|
|
105
|
+
export { newDrawerEmits, newDrawerProps };
|
|
106
|
+
//# sourceMappingURL=drawer.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"drawer.mjs","sources":["../../../../../../packages/components/new-drawer/src/drawer.ts"],"sourcesContent":["import { buildProps, definePropType } from '@ll-plus/utils'\n\nimport type { ExtractPropTypes } from 'vue'\nimport type Drawer from './drawer.vue'\nimport type { ButtonProps } from '@ll-plus/components'\n\nexport const newDrawerProps = buildProps({\n /**\n * @description 对话框外层容器的类名\n */\n rootClassName: {\n type: String,\n default: ''\n },\n /**\n * @description 宽度\n */\n width: {\n type: definePropType<number | string>([Number, String]),\n default: '560px'\n },\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 确认/知道了按钮loading\n */\n confirmLoading: {\n type: Boolean,\n default: false\n },\n /**\n * @description 取消按钮的配置信息\n */\n cancelButtonProps: {\n type: definePropType<ButtonProps>(Object)\n },\n /**\n * @description 确认按钮的配置信息\n */\n okButtonProps: {\n type: definePropType<ButtonProps>(Object)\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 showFooter: {\n type: Boolean,\n default: true\n },\n /**\n * @description 容器内容的顶部的阴影 设置为false标记可能是外部其他元素滚动\n */\n isShowTopShadow: {\n type: Boolean,\n default: true\n },\n /**\n * @description 容器内容底部的阴影\n */\n isShowFooterShadow: {\n type: Boolean,\n default: true\n }\n} as const)\n\nexport const newDrawerEmits = {\n /**\n * @description 点击取消时触发\n */\n cancel: () => true,\n /**\n * @description 点击确认时触发\n */\n confirm: () => true,\n /**\n * @description 抽屉关闭时触发\n */\n close: () => true,\n 'update:open': () => true\n} as const\n\n// props\nexport type NewDrawerProps = ExtractPropTypes<typeof newDrawerProps>\n\n// emits\nexport type NewDrawerEmits = typeof newDrawerEmits\n\n// instance\nexport type NewDrawerInstance = InstanceType<typeof Drawer>\n"],"names":[],"mappings":";;;;AAMO,MAAM,iBAAiB,UAAW,CAAA;AAAA;AAAA;AAAA;AAAA,EAIvC,aAAe,EAAA;AAAA,IACb,IAAM,EAAA,MAAA;AAAA,IACN,OAAS,EAAA,EAAA;AAAA,GACX;AAAA;AAAA;AAAA;AAAA,EAIA,KAAO,EAAA;AAAA,IACL,IAAM,EAAA,cAAA,CAAgC,CAAC,MAAA,EAAQ,MAAM,CAAC,CAAA;AAAA,IACtD,OAAS,EAAA,OAAA;AAAA,GACX;AAAA;AAAA;AAAA;AAAA,EAIA,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,cAAgB,EAAA;AAAA,IACd,IAAM,EAAA,OAAA;AAAA,IACN,OAAS,EAAA,KAAA;AAAA,GACX;AAAA;AAAA;AAAA;AAAA,EAIA,iBAAmB,EAAA;AAAA,IACjB,IAAA,EAAM,eAA4B,MAAM,CAAA;AAAA,GAC1C;AAAA;AAAA;AAAA;AAAA,EAIA,aAAe,EAAA;AAAA,IACb,IAAA,EAAM,eAA4B,MAAM,CAAA;AAAA,GAC1C;AAAA;AAAA;AAAA;AAAA,EAIA,WAAa,EAAA;AAAA,IACX,IAAM,EAAA,MAAA;AAAA,IACN,OAAS,EAAA,cAAA;AAAA,GACX;AAAA;AAAA;AAAA;AAAA,EAIA,UAAY,EAAA;AAAA,IACV,IAAM,EAAA,MAAA;AAAA,IACN,OAAS,EAAA,cAAA;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,eAAiB,EAAA;AAAA,IACf,IAAM,EAAA,OAAA;AAAA,IACN,OAAS,EAAA,IAAA;AAAA,GACX;AAAA;AAAA;AAAA;AAAA,EAIA,kBAAoB,EAAA;AAAA,IAClB,IAAM,EAAA,OAAA;AAAA,IACN,OAAS,EAAA,IAAA;AAAA,GACX;AACF,CAAU,EAAA;AAEH,MAAM,cAAiB,GAAA;AAAA;AAAA;AAAA;AAAA,EAI5B,QAAQ,MAAM,IAAA;AAAA;AAAA;AAAA;AAAA,EAId,SAAS,MAAM,IAAA;AAAA;AAAA;AAAA;AAAA,EAIf,OAAO,MAAM,IAAA;AAAA,EACb,eAAe,MAAM,IAAA;AACvB;;;;"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import _sfc_main from './drawer.vue2.mjs';
|
|
2
|
+
import _export_sfc from '../../../../_virtual/_plugin-vue_export-helper.mjs';
|
|
3
|
+
|
|
4
|
+
"use strict";
|
|
5
|
+
var Drawer = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "drawer.vue"]]);
|
|
6
|
+
|
|
7
|
+
export { Drawer as default };
|
|
8
|
+
//# sourceMappingURL=drawer.vue.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"drawer.vue.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;"}
|
|
@@ -0,0 +1,162 @@
|
|
|
1
|
+
import { defineComponent, useAttrs, computed, resolveComponent, openBlock, createBlock, unref, mergeProps, createSlots, withCtx, renderSlot, createElementVNode, normalizeClass, createCommentVNode, withDirectives, vShow, createVNode } from 'vue';
|
|
2
|
+
import { Drawer } from 'ant-design-vue';
|
|
3
|
+
import '../../../utils/index.mjs';
|
|
4
|
+
import '../../../hooks/index.mjs';
|
|
5
|
+
import { omit } from 'lodash-es';
|
|
6
|
+
import { newDrawerProps, newDrawerEmits } from './drawer.mjs';
|
|
7
|
+
import { useScroll } from '../../../hooks/use-scroll/index.mjs';
|
|
8
|
+
import { createNamespace } from '../../../utils/create-namespace.mjs';
|
|
9
|
+
|
|
10
|
+
"use strict";
|
|
11
|
+
var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
12
|
+
...{ name: "LlNewDrawer" },
|
|
13
|
+
__name: "drawer",
|
|
14
|
+
props: newDrawerProps,
|
|
15
|
+
emits: newDrawerEmits,
|
|
16
|
+
setup(__props, { emit: __emit }) {
|
|
17
|
+
const props = __props;
|
|
18
|
+
const emits = __emit;
|
|
19
|
+
const attrs = useAttrs();
|
|
20
|
+
const { scrollPosition, isHasScrollBar, scrollRef } = useScroll();
|
|
21
|
+
const getBindValue = computed(() => {
|
|
22
|
+
const result = {
|
|
23
|
+
...omit({ ...attrs }, [...Object.keys(newDrawerProps), "rootClassName"])
|
|
24
|
+
};
|
|
25
|
+
if (!props.showFooter)
|
|
26
|
+
result.footer = null;
|
|
27
|
+
return result;
|
|
28
|
+
});
|
|
29
|
+
const isShowContentTopBox = computed(() => {
|
|
30
|
+
return props.isShowTopShadow && scrollPosition.value && isHasScrollBar.value && scrollPosition.value !== "top";
|
|
31
|
+
});
|
|
32
|
+
const isShowContentBottomBox = computed(() => {
|
|
33
|
+
if (props.isShowTopShadow) {
|
|
34
|
+
return isHasScrollBar.value && scrollPosition.value !== "bottom";
|
|
35
|
+
} else {
|
|
36
|
+
return props.isShowFooterShadow;
|
|
37
|
+
}
|
|
38
|
+
});
|
|
39
|
+
const bem = createNamespace("new-drawer");
|
|
40
|
+
const handleClose = () => {
|
|
41
|
+
emits("close");
|
|
42
|
+
emits("update:open");
|
|
43
|
+
};
|
|
44
|
+
const handleCancel = () => {
|
|
45
|
+
emits("cancel");
|
|
46
|
+
emits("update:open");
|
|
47
|
+
};
|
|
48
|
+
const handleConfirm = () => {
|
|
49
|
+
emits("confirm");
|
|
50
|
+
};
|
|
51
|
+
return (_ctx, _cache) => {
|
|
52
|
+
const _component_ll_button = resolveComponent("ll-button");
|
|
53
|
+
return openBlock(), createBlock(unref(Drawer), mergeProps(getBindValue.value, {
|
|
54
|
+
title: _ctx.title,
|
|
55
|
+
open: _ctx.open,
|
|
56
|
+
"root-class-name": `${unref(bem).b()} ${_ctx.rootClassName}`,
|
|
57
|
+
onClose: handleClose
|
|
58
|
+
}), createSlots({
|
|
59
|
+
title: withCtx(() => [
|
|
60
|
+
renderSlot(_ctx.$slots, "title")
|
|
61
|
+
]),
|
|
62
|
+
extra: withCtx(() => [
|
|
63
|
+
renderSlot(_ctx.$slots, "extra")
|
|
64
|
+
]),
|
|
65
|
+
default: withCtx(() => [
|
|
66
|
+
createElementVNode(
|
|
67
|
+
"div",
|
|
68
|
+
{
|
|
69
|
+
class: normalizeClass([unref(bem).e("container")])
|
|
70
|
+
},
|
|
71
|
+
[
|
|
72
|
+
createCommentVNode(" \u5185\u5BB9\u533A\u57DF "),
|
|
73
|
+
createElementVNode(
|
|
74
|
+
"div",
|
|
75
|
+
{
|
|
76
|
+
ref_key: "scrollRef",
|
|
77
|
+
ref: scrollRef,
|
|
78
|
+
class: normalizeClass([unref(bem).e("content")])
|
|
79
|
+
},
|
|
80
|
+
[
|
|
81
|
+
createCommentVNode(" \u5185\u5BB9\u533A\u57DF\u9876\u90E8\u7684\u76D2\u5B50\u7528\u4E8E\u6EDA\u52A8\u906E\u76D6/\u9634\u5F71 \u53EA\u6709\u6EDA\u52A8\u72B6\u6001\u4E0B\u624D\u6709\uFF0C\u6EDA\u52A8\u5230\u9876\u90E8\u9700\u8981 "),
|
|
82
|
+
withDirectives(createElementVNode(
|
|
83
|
+
"div",
|
|
84
|
+
{
|
|
85
|
+
class: normalizeClass(unref(bem).e("content-top-shadow"))
|
|
86
|
+
},
|
|
87
|
+
null,
|
|
88
|
+
2
|
|
89
|
+
/* CLASS */
|
|
90
|
+
), [
|
|
91
|
+
[vShow, isShowContentTopBox.value]
|
|
92
|
+
]),
|
|
93
|
+
renderSlot(_ctx.$slots, "default")
|
|
94
|
+
],
|
|
95
|
+
2
|
|
96
|
+
/* CLASS */
|
|
97
|
+
)
|
|
98
|
+
],
|
|
99
|
+
2
|
|
100
|
+
/* CLASS */
|
|
101
|
+
)
|
|
102
|
+
]),
|
|
103
|
+
_: 2
|
|
104
|
+
/* DYNAMIC */
|
|
105
|
+
}, [
|
|
106
|
+
_ctx.showFooter ? {
|
|
107
|
+
name: "footer",
|
|
108
|
+
fn: withCtx(() => [
|
|
109
|
+
createElementVNode(
|
|
110
|
+
"div",
|
|
111
|
+
{
|
|
112
|
+
class: normalizeClass(`${unref(bem).e("footer")} ${isShowContentBottomBox.value ? unref(bem).e("footer-shadow") : ""}`)
|
|
113
|
+
},
|
|
114
|
+
[
|
|
115
|
+
renderSlot(_ctx.$slots, "footer", {}, () => [
|
|
116
|
+
createElementVNode(
|
|
117
|
+
"div",
|
|
118
|
+
{
|
|
119
|
+
class: normalizeClass(unref(bem).e("footer-left"))
|
|
120
|
+
},
|
|
121
|
+
[
|
|
122
|
+
renderSlot(_ctx.$slots, "footer-left")
|
|
123
|
+
],
|
|
124
|
+
2
|
|
125
|
+
/* CLASS */
|
|
126
|
+
),
|
|
127
|
+
createElementVNode(
|
|
128
|
+
"div",
|
|
129
|
+
{
|
|
130
|
+
class: normalizeClass(unref(bem).e("footer-right"))
|
|
131
|
+
},
|
|
132
|
+
[
|
|
133
|
+
renderSlot(_ctx.$slots, "footer-right", {}, () => [
|
|
134
|
+
createVNode(_component_ll_button, mergeProps({
|
|
135
|
+
class: unref(bem).m("cancel"),
|
|
136
|
+
label: _ctx.cancelText
|
|
137
|
+
}, _ctx.cancelButtonProps, { onClick: handleCancel }), null, 16, ["class", "label"]),
|
|
138
|
+
createVNode(_component_ll_button, mergeProps({
|
|
139
|
+
type: "primary",
|
|
140
|
+
loading: _ctx.confirmLoading,
|
|
141
|
+
label: _ctx.confirmText
|
|
142
|
+
}, _ctx.okButtonProps, { onClick: handleConfirm }), null, 16, ["loading", "label"])
|
|
143
|
+
])
|
|
144
|
+
],
|
|
145
|
+
2
|
|
146
|
+
/* CLASS */
|
|
147
|
+
)
|
|
148
|
+
])
|
|
149
|
+
],
|
|
150
|
+
2
|
|
151
|
+
/* CLASS */
|
|
152
|
+
)
|
|
153
|
+
]),
|
|
154
|
+
key: "0"
|
|
155
|
+
} : void 0
|
|
156
|
+
]), 1040, ["title", "open", "root-class-name"]);
|
|
157
|
+
};
|
|
158
|
+
}
|
|
159
|
+
});
|
|
160
|
+
|
|
161
|
+
export { _sfc_main as default };
|
|
162
|
+
//# sourceMappingURL=drawer.vue2.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"drawer.vue2.mjs","sources":["../../../../../../packages/components/new-drawer/src/drawer.vue"],"sourcesContent":["<template>\n <Drawer\n v-bind=\"getBindValue\"\n :title=\"title\"\n :open=\"open\"\n :root-class-name=\"`${bem.b()} ${rootClassName}`\"\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 <!-- 内容区域 -->\n <div ref=\"scrollRef\" :class=\"[bem.e('content')]\">\n <!-- 内容区域顶部的盒子用于滚动遮盖/阴影 只有滚动状态下才有,滚动到顶部需要 -->\n <div\n v-show=\"isShowContentTopBox\"\n :class=\"bem.e('content-top-shadow')\"\n ></div>\n <slot />\n </div>\n </div>\n <!-- 地步区域 -->\n <template v-if=\"showFooter\" #footer>\n <div\n :class=\"`${bem.e('footer')} ${\n isShowContentBottomBox ? bem.e('footer-shadow') : ''\n }`\"\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 :class=\"bem.m('cancel')\"\n :label=\"cancelText\"\n v-bind=\"cancelButtonProps\"\n @click=\"handleCancel\"\n >\n </ll-button>\n <ll-button\n type=\"primary\"\n :loading=\"confirmLoading\"\n :label=\"confirmText\"\n v-bind=\"okButtonProps\"\n @click=\"handleConfirm\"\n >\n </ll-button>\n </slot>\n </div>\n </slot>\n </div>\n </template>\n </Drawer>\n</template>\n\n<script setup lang=\"ts\">\nimport { computed, useAttrs } from 'vue'\n\nimport { Drawer } from 'ant-design-vue'\n\nimport { createNamespace } from '@ll-plus/utils'\nimport { useScroll } from '@ll-plus/hooks'\nimport { omit } from 'lodash-es'\nimport { newDrawerProps, newDrawerEmits } from './drawer'\n\nimport type { DrawerProps } from 'ant-design-vue'\n\ndefineOptions({ name: 'LlNewDrawer' })\n\n// 1.props/emits\nconst props = defineProps(newDrawerProps)\nconst emits = defineEmits(newDrawerEmits)\n\n// 2.hooks\nconst attrs = useAttrs()\nconst { scrollPosition, isHasScrollBar, scrollRef } = useScroll()\n\n// 3.ref/computed/const\nconst getBindValue = computed(() => {\n const result: DrawerProps = {\n ...omit({ ...attrs }, [...Object.keys(newDrawerProps), 'rootClassName'])\n }\n if (!props.showFooter) result.footer = null\n return result\n})\n// 是否现实内容区域顶部的阴影div\nconst isShowContentTopBox = computed(() => {\n return (\n props.isShowTopShadow &&\n scrollPosition.value &&\n isHasScrollBar.value &&\n scrollPosition.value !== 'top'\n )\n})\n// 是否现实内容区域底部的阴影div\nconst isShowContentBottomBox = computed(() => {\n // 如果顶部的阴影为true则说明是内部的容器在滚动产品的阴影 则由容器的滚动情况来决定阴影\n if (props.isShowTopShadow) {\n return isHasScrollBar.value && scrollPosition.value !== 'bottom'\n } else {\n // 如果顶部的阴影为false,则说明不是内部容器滚动,则底部的阴影由 外部的isShowFooterShadow来决定\n return props.isShowFooterShadow\n }\n})\nconst bem = createNamespace('new-drawer')\n\n// 4.methods\n// 点击关闭icon\nconst handleClose = (): void => {\n emits('close')\n emits('update:open')\n}\n// 点击取消按钮\nconst handleCancel = (): void => {\n emits('cancel')\n emits('update:open')\n}\n// 点击确定按钮\nconst handleConfirm = (): void => {\n emits('confirm')\n}\n</script>\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;AA4EA,IAAA,MAAM,KAAQ,GAAA,OAAA,CAAA;AACd,IAAA,MAAM,KAAQ,GAAA,MAAA,CAAA;AAGd,IAAA,MAAM,QAAQ,QAAS,EAAA,CAAA;AACvB,IAAA,MAAM,EAAE,cAAA,EAAgB,cAAgB,EAAA,SAAA,KAAc,SAAU,EAAA,CAAA;AAGhE,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,cAAc,CAAA,EAAG,eAAe,CAAC,CAAA;AAAA,OACzE,CAAA;AACA,MAAA,IAAI,CAAC,KAAM,CAAA,UAAA;AAAY,QAAA,MAAA,CAAO,MAAS,GAAA,IAAA,CAAA;AACvC,MAAO,OAAA,MAAA,CAAA;AAAA,KACR,CAAA,CAAA;AAED,IAAM,MAAA,mBAAA,GAAsB,SAAS,MAAM;AACzC,MAAA,OACE,MAAM,eACN,IAAA,cAAA,CAAe,SACf,cAAe,CAAA,KAAA,IACf,eAAe,KAAU,KAAA,KAAA,CAAA;AAAA,KAE5B,CAAA,CAAA;AAED,IAAM,MAAA,sBAAA,GAAyB,SAAS,MAAM;AAE5C,MAAA,IAAI,MAAM,eAAiB,EAAA;AACzB,QAAO,OAAA,cAAA,CAAe,KAAS,IAAA,cAAA,CAAe,KAAU,KAAA,QAAA,CAAA;AAAA,OACnD,MAAA;AAEL,QAAA,OAAO,KAAM,CAAA,kBAAA,CAAA;AAAA,OACf;AAAA,KACD,CAAA,CAAA;AACD,IAAM,MAAA,GAAA,GAAM,gBAAgB,YAAY,CAAA,CAAA;AAIxC,IAAA,MAAM,cAAc,MAAY;AAC9B,MAAA,KAAA,CAAM,OAAO,CAAA,CAAA;AACb,MAAA,KAAA,CAAM,aAAa,CAAA,CAAA;AAAA,KACrB,CAAA;AAEA,IAAA,MAAM,eAAe,MAAY;AAC/B,MAAA,KAAA,CAAM,QAAQ,CAAA,CAAA;AACd,MAAA,KAAA,CAAM,aAAa,CAAA,CAAA;AAAA,KACrB,CAAA;AAEA,IAAA,MAAM,gBAAgB,MAAY;AAChC,MAAA,KAAA,CAAM,SAAS,CAAA,CAAA;AAAA,KACjB,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import '../../utils/index.mjs';
|
|
2
|
+
import Modal from './src/modal.vue.mjs';
|
|
3
|
+
export { modalType, newModalEmits, newModalProps } from './src/modal.mjs';
|
|
4
|
+
import { withInstall } from '../../utils/with-install.mjs';
|
|
5
|
+
|
|
6
|
+
"use strict";
|
|
7
|
+
const LlNewModal = withInstall(Modal);
|
|
8
|
+
|
|
9
|
+
export { LlNewModal, LlNewModal as default };
|
|
10
|
+
//# sourceMappingURL=index.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.mjs","sources":["../../../../../packages/components/new-modal/index.ts"],"sourcesContent":["import { withInstall } from '@ll-plus/utils'\n\nimport Modal from './src/modal.vue'\n\nexport const LlNewModal = withInstall(Modal)\nexport default LlNewModal\nexport * from './src/modal'\n\ndeclare module 'vue' {\n export interface GlobalComponents {\n LlNewModal: typeof Modal\n }\n}\n"],"names":[],"mappings":";;;;;;AAIa,MAAA,UAAA,GAAa,YAAY,KAAK;;;;"}
|