@aplus-frontend/ui 7.13.6 → 7.13.8
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/src/ag-grid/components/body-cell/index.vue2.mjs +7 -7
- package/es/src/ag-grid/components/empty/index.vue2.mjs +10 -10
- package/es/src/ag-grid/components/header-cell/index.vue2.mjs +37 -37
- package/es/src/ag-grid/components/row/index.vue2.mjs +5 -5
- package/es/src/ag-grid/components/tooltip/index.vue2.mjs +12 -12
- package/es/src/ag-grid/editable/form-item.vue.mjs +49 -49
- package/es/src/ag-grid/editable/index.vue.mjs +27 -27
- package/es/src/ag-grid/index.vue.mjs +249 -249
- package/es/src/ap-action/group/index.vue.mjs +15 -15
- package/es/src/ap-action/item/index.vue2.mjs +28 -28
- package/es/src/ap-action/item-dropdown/index.vue.mjs +39 -39
- package/es/src/ap-field/checkbox/index.vue.mjs +19 -19
- package/es/src/ap-field/checkbox/read.vue2.mjs +9 -9
- package/es/src/ap-field/date/index.vue.mjs +50 -50
- package/es/src/ap-field/date/read.vue2.mjs +7 -7
- package/es/src/ap-field/date-range/index.vue.mjs +30 -30
- package/es/src/ap-field/date-range/read.vue2.mjs +20 -20
- package/es/src/ap-field/number/index.vue.mjs +24 -24
- package/es/src/ap-field/radio/index.vue.mjs +24 -24
- package/es/src/ap-field/second/index.vue.mjs +15 -15
- package/es/src/ap-field/second/read.vue2.mjs +7 -7
- package/es/src/ap-field/segmented/index.vue.mjs +24 -24
- package/es/src/ap-field/select/index.vue.d.ts +1 -1
- package/es/src/ap-field/select/index.vue.mjs +246 -206
- package/es/src/ap-field/select/read.vue2.mjs +6 -6
- package/es/src/ap-field/slider/index.vue.mjs +11 -11
- package/es/src/ap-field/style/select.mjs +17 -4
- package/es/src/ap-field/switch/index.vue.mjs +45 -45
- package/es/src/ap-field/text/read-password.vue2.mjs +13 -13
- package/es/src/ap-field/text/read.vue2.mjs +3 -3
- package/es/src/ap-field/text-area/index.vue.mjs +29 -29
- package/es/src/ap-field/text-area/read.vue2.mjs +12 -12
- package/es/src/ap-field/tree-select/index.vue.mjs +31 -31
- package/es/src/ap-form/ap-form.vue2.mjs +46 -46
- package/es/src/ap-form/drawer-form/index.vue.mjs +30 -30
- package/es/src/ap-form/item/index.vue.mjs +75 -75
- package/es/src/ap-form/items/checkbox/index.vue.mjs +10 -10
- package/es/src/ap-form/items/number/index.vue.mjs +17 -17
- package/es/src/ap-form/items/radio/index.vue.mjs +13 -13
- package/es/src/ap-form/items/select/index.vue.d.ts +4 -4
- package/es/src/ap-form/items/switch/index.vue.mjs +14 -14
- package/es/src/ap-form/items/text/index.vue2.mjs +26 -26
- package/es/src/ap-form/items/text/password.vue.mjs +19 -19
- package/es/src/ap-form/items/text-area/index.vue.mjs +17 -17
- package/es/src/ap-form/modal-form/index.vue.mjs +34 -34
- package/es/src/ap-form/search-form/components/popover-filter.vue2.mjs +39 -39
- package/es/src/ap-form/search-form/components/popover-sorter/sortable-item.vue2.mjs +7 -7
- package/es/src/ap-grid/editable/form-item.vue.mjs +46 -46
- package/es/src/ap-grid/editable/index.vue.mjs +19 -19
- package/es/src/ap-grid/index.vue.mjs +212 -212
- package/es/src/ap-list/index.vue.mjs +116 -116
- package/es/src/ap-table/ap-table.vue2.mjs +217 -217
- package/es/src/ap-table/components/index/index.vue2.mjs +9 -9
- package/es/src/ap-table/components/setting/modal/index.vue2.mjs +42 -42
- package/es/src/ap-table/components/setting/select-group/index.vue2.mjs +21 -21
- package/es/src/ap-table/components/setting/sortable/index.vue2.mjs +15 -15
- package/es/src/ap-table/components/setting/sortable/item.vue2.mjs +69 -69
- package/es/src/ap-table/components/setting/template/edit-form.vue2.mjs +22 -22
- package/es/src/ap-table/components/setting/template/index.vue2.mjs +25 -25
- package/es/src/ap-table/components/setting/template/item.vue2.mjs +40 -40
- package/es/src/ap-table/components/setting/tree-select/index.vue2.mjs +13 -13
- package/es/src/ap-table/constants.d.ts +2 -2
- package/es/src/business/ag-grid-modal/modal-layout/index.vue2.mjs +54 -54
- package/es/src/business/ag-grid-modal/selected-items/default.vue2.mjs +13 -13
- package/es/src/business/ag-grid-modal/wrapper/index.vue2.mjs +20 -20
- package/es/src/business/ap-descriptions/ap-descriptions.vue.mjs +33 -33
- package/es/src/business/ap-descriptions/help-message/index.vue2.mjs +13 -13
- package/es/src/business/ap-download/ap-download.vue.mjs +24 -24
- package/es/src/business/ap-expand-alert/ApExpandAlert.vue.mjs +77 -77
- package/es/src/business/ap-export-group/ApExportGroup.vue2.mjs +168 -157
- package/es/src/business/ap-radio-group/ap-radio-group.vue2.mjs +33 -33
- package/es/src/business/ap-status/group/ApStatusGroup.vue2.mjs +12 -12
- package/es/src/business/ap-table-modal/table-layout/index.vue2.mjs +43 -43
- package/es/src/business/ap-table-modal/table-modal.vue2.mjs +57 -57
- package/es/src/business/ap-tag/ap-tag-group.vue.mjs +37 -37
- package/es/src/business/ap-tag/ap-tag.vue.mjs +24 -24
- package/es/src/business/ap-title/ApTitle.vue2.mjs +27 -27
- package/es/src/business/ap-value-select-card/index.vue2.mjs +98 -98
- package/es/src/business/ap-view/components/main-button-content.vue.d.ts +1 -1
- package/es/src/business/batch-input-group/form-item.vue.mjs +25 -25
- package/es/src/business/batch-input-group/index.vue.mjs +60 -60
- package/es/src/business/batch-input-group/popover-input/index.vue2.mjs +29 -29
- package/es/src/editable-table/form-item.vue.mjs +35 -35
- package/es/src/editable-table/index.vue.mjs +19 -19
- package/es/src/full-screen/index.vue.mjs +46 -46
- package/es/src/mask/index.vue.mjs +48 -48
- package/es/src/portal/index.vue.mjs +5 -5
- package/es/src/scroll-bar/internal.vue.mjs +62 -62
- package/es/src/scroll-view/index.vue.mjs +66 -66
- package/es/src/skeleton/components/desc/index.vue2.mjs +9 -9
- package/es/src/skeleton/components/desc/item-large.vue2.mjs +25 -25
- package/es/src/skeleton/components/desc/item.vue2.mjs +13 -13
- package/es/src/skeleton/components/list/index.vue2.mjs +14 -14
- package/es/src/skeleton/components/list/item.vue2.mjs +12 -12
- package/es/src/skeleton/components/page-header/index.vue2.mjs +8 -8
- package/es/src/skeleton/components/search-form/index.vue2.mjs +35 -35
- package/es/src/skeleton/components/table/index.vue2.mjs +17 -17
- package/es/src/skeleton/components/table/item.vue2.mjs +23 -23
- package/es/src/skeleton/descriptions.vue2.mjs +15 -15
- package/es/src/skeleton/list-page.vue2.mjs +12 -12
- package/es/src/splitter/Panel.vue2.mjs +11 -11
- package/es/src/splitter/SplitBar.vue2.mjs +79 -79
- package/es/src/splitter/Splitter.vue2.mjs +50 -50
- package/es/src/text/group.vue.mjs +8 -8
- package/es/src/text/index.vue.mjs +48 -48
- package/es/src/version.d.ts +1 -1
- package/es/src/version.mjs +1 -1
- package/lib/src/ag-grid/components/body-cell/index.vue2.js +1 -1
- package/lib/src/ag-grid/components/empty/index.vue2.js +1 -1
- package/lib/src/ag-grid/components/header-cell/index.vue2.js +1 -1
- package/lib/src/ag-grid/components/row/index.vue2.js +1 -1
- package/lib/src/ag-grid/components/tooltip/index.vue2.js +1 -1
- package/lib/src/ag-grid/editable/form-item.vue.js +1 -1
- package/lib/src/ag-grid/editable/index.vue.js +1 -1
- package/lib/src/ag-grid/index.vue.js +1 -1
- package/lib/src/ap-action/group/index.vue.js +1 -1
- package/lib/src/ap-action/item/index.vue2.js +1 -1
- package/lib/src/ap-action/item-dropdown/index.vue.js +1 -1
- package/lib/src/ap-field/checkbox/index.vue.js +1 -1
- package/lib/src/ap-field/checkbox/read.vue2.js +1 -1
- package/lib/src/ap-field/date/index.vue.js +1 -1
- package/lib/src/ap-field/date/read.vue2.js +1 -1
- package/lib/src/ap-field/date-range/index.vue.js +1 -1
- package/lib/src/ap-field/date-range/read.vue2.js +1 -1
- package/lib/src/ap-field/number/index.vue.js +1 -1
- package/lib/src/ap-field/radio/index.vue.js +1 -1
- package/lib/src/ap-field/second/index.vue.js +1 -1
- package/lib/src/ap-field/second/read.vue2.js +1 -1
- package/lib/src/ap-field/segmented/index.vue.js +1 -1
- package/lib/src/ap-field/select/index.vue.d.ts +1 -1
- package/lib/src/ap-field/select/index.vue.js +1 -1
- package/lib/src/ap-field/select/read.vue2.js +1 -1
- package/lib/src/ap-field/slider/index.vue.js +1 -1
- package/lib/src/ap-field/style/select.js +1 -1
- package/lib/src/ap-field/switch/index.vue.js +1 -1
- package/lib/src/ap-field/text/read-password.vue2.js +1 -1
- package/lib/src/ap-field/text/read.vue2.js +1 -1
- package/lib/src/ap-field/text-area/index.vue.js +1 -1
- package/lib/src/ap-field/text-area/read.vue2.js +1 -1
- package/lib/src/ap-field/tree-select/index.vue.js +1 -1
- package/lib/src/ap-form/ap-form.vue2.js +1 -1
- package/lib/src/ap-form/drawer-form/index.vue.js +1 -1
- package/lib/src/ap-form/item/index.vue.js +1 -1
- package/lib/src/ap-form/items/checkbox/index.vue.js +1 -1
- package/lib/src/ap-form/items/number/index.vue.js +1 -1
- package/lib/src/ap-form/items/radio/index.vue.js +1 -1
- package/lib/src/ap-form/items/select/index.vue.d.ts +4 -4
- package/lib/src/ap-form/items/switch/index.vue.js +1 -1
- package/lib/src/ap-form/items/text/index.vue2.js +1 -1
- package/lib/src/ap-form/items/text/password.vue.js +1 -1
- package/lib/src/ap-form/items/text-area/index.vue.js +1 -1
- package/lib/src/ap-form/modal-form/index.vue.js +1 -1
- package/lib/src/ap-form/search-form/components/popover-filter.vue2.js +1 -1
- package/lib/src/ap-form/search-form/components/popover-sorter/sortable-item.vue2.js +1 -1
- package/lib/src/ap-grid/editable/form-item.vue.js +1 -1
- package/lib/src/ap-grid/editable/index.vue.js +1 -1
- package/lib/src/ap-grid/index.vue.js +1 -1
- package/lib/src/ap-list/index.vue.js +1 -1
- package/lib/src/ap-table/ap-table.vue2.js +1 -1
- package/lib/src/ap-table/components/index/index.vue2.js +1 -1
- package/lib/src/ap-table/components/setting/modal/index.vue2.js +1 -1
- package/lib/src/ap-table/components/setting/select-group/index.vue2.js +1 -1
- package/lib/src/ap-table/components/setting/sortable/index.vue2.js +1 -1
- package/lib/src/ap-table/components/setting/sortable/item.vue2.js +1 -1
- package/lib/src/ap-table/components/setting/template/edit-form.vue2.js +1 -1
- package/lib/src/ap-table/components/setting/template/index.vue2.js +1 -1
- package/lib/src/ap-table/components/setting/template/item.vue2.js +1 -1
- package/lib/src/ap-table/components/setting/tree-select/index.vue2.js +1 -1
- package/lib/src/ap-table/constants.d.ts +2 -2
- package/lib/src/business/ag-grid-modal/modal-layout/index.vue2.js +1 -1
- package/lib/src/business/ag-grid-modal/selected-items/default.vue2.js +1 -1
- package/lib/src/business/ag-grid-modal/wrapper/index.vue2.js +1 -1
- package/lib/src/business/ap-descriptions/ap-descriptions.vue.js +1 -1
- package/lib/src/business/ap-descriptions/help-message/index.vue2.js +1 -1
- package/lib/src/business/ap-download/ap-download.vue.js +1 -1
- package/lib/src/business/ap-expand-alert/ApExpandAlert.vue.js +1 -1
- package/lib/src/business/ap-export-group/ApExportGroup.vue2.js +1 -1
- package/lib/src/business/ap-radio-group/ap-radio-group.vue2.js +1 -1
- package/lib/src/business/ap-status/group/ApStatusGroup.vue2.js +1 -1
- package/lib/src/business/ap-table-modal/table-layout/index.vue2.js +1 -1
- package/lib/src/business/ap-table-modal/table-modal.vue2.js +1 -1
- package/lib/src/business/ap-tag/ap-tag-group.vue.js +1 -1
- package/lib/src/business/ap-tag/ap-tag.vue.js +1 -1
- package/lib/src/business/ap-title/ApTitle.vue2.js +1 -1
- package/lib/src/business/ap-value-select-card/index.vue2.js +1 -1
- package/lib/src/business/ap-view/components/main-button-content.vue.d.ts +1 -1
- package/lib/src/business/batch-input-group/form-item.vue.js +1 -1
- package/lib/src/business/batch-input-group/index.vue.js +2 -2
- package/lib/src/business/batch-input-group/popover-input/index.vue2.js +2 -2
- package/lib/src/editable-table/form-item.vue.js +1 -1
- package/lib/src/editable-table/index.vue.js +1 -1
- package/lib/src/full-screen/index.vue.js +1 -1
- package/lib/src/mask/index.vue.js +1 -1
- package/lib/src/portal/index.vue.js +1 -1
- package/lib/src/scroll-bar/internal.vue.js +1 -1
- package/lib/src/scroll-view/index.vue.js +1 -1
- package/lib/src/skeleton/components/desc/index.vue2.js +1 -1
- package/lib/src/skeleton/components/desc/item-large.vue2.js +1 -1
- package/lib/src/skeleton/components/desc/item.vue2.js +1 -1
- package/lib/src/skeleton/components/list/index.vue2.js +1 -1
- package/lib/src/skeleton/components/list/item.vue2.js +1 -1
- package/lib/src/skeleton/components/page-header/index.vue2.js +1 -1
- package/lib/src/skeleton/components/search-form/index.vue2.js +1 -1
- package/lib/src/skeleton/components/table/index.vue2.js +1 -1
- package/lib/src/skeleton/components/table/item.vue2.js +1 -1
- package/lib/src/skeleton/descriptions.vue2.js +1 -1
- package/lib/src/skeleton/list-page.vue2.js +1 -1
- package/lib/src/splitter/Panel.vue2.js +1 -1
- package/lib/src/splitter/SplitBar.vue2.js +1 -1
- package/lib/src/splitter/Splitter.vue2.js +1 -1
- package/lib/src/text/group.vue.js +1 -1
- package/lib/src/text/index.vue.js +1 -1
- package/lib/src/version.d.ts +1 -1
- package/lib/src/version.js +1 -1
- package/package.json +1 -1
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { defineComponent as ue, ref as he, reactive as pe, computed as v, unref as a, watchEffect as
|
|
2
|
-
import { wait as
|
|
3
|
-
import { useElementSize as
|
|
4
|
-
import { isString as
|
|
1
|
+
import { defineComponent as ue, ref as he, reactive as pe, computed as v, unref as a, watchEffect as A, watch as ye, createElementBlock as me, openBlock as z, withModifiers as L, normalizeStyle as O, normalizeClass as B, createElementVNode as k, renderSlot as de, createBlock as I, createCommentVNode as T, mergeProps as _ } from "vue";
|
|
2
|
+
import { wait as R } from "@aplus-frontend/utils";
|
|
3
|
+
import { useElementSize as j, useRafFn as ve } from "@vueuse/core";
|
|
4
|
+
import { isString as F } from "lodash-unified";
|
|
5
5
|
import "../config-provider/index.mjs";
|
|
6
6
|
import "../scroll-bar/index.mjs";
|
|
7
|
-
import { ensureRangeValue as n, getScrollable as
|
|
7
|
+
import { ensureRangeValue as n, getScrollable as W } from "../scroll-bar/utils/index.mjs";
|
|
8
8
|
import "../utils/index.mjs";
|
|
9
9
|
import { useScrollBack as xe } from "./hooks/use-scroll-back.mjs";
|
|
10
10
|
import { useScrollSmooth as we } from "./hooks/use-scroll-smooth.mjs";
|
|
@@ -13,8 +13,8 @@ import Se from "./style/index.mjs";
|
|
|
13
13
|
import { getElementScrollOffset as ge } from "./utils/index.mjs";
|
|
14
14
|
import { useNamespace as be } from "../config-provider/hooks/use-namespace.mjs";
|
|
15
15
|
import { isDef as f } from "../utils/is.mjs";
|
|
16
|
-
import
|
|
17
|
-
const
|
|
16
|
+
import H from "../scroll-bar/internal.vue.mjs";
|
|
17
|
+
const Oe = /* @__PURE__ */ ue({
|
|
18
18
|
name: "ScrollView",
|
|
19
19
|
__name: "index",
|
|
20
20
|
props: {
|
|
@@ -27,13 +27,13 @@ const Le = /* @__PURE__ */ ue({
|
|
|
27
27
|
yBarProps: { default: () => ({}) },
|
|
28
28
|
onWheel: {}
|
|
29
29
|
},
|
|
30
|
-
setup(
|
|
31
|
-
const o =
|
|
30
|
+
setup(x, { expose: q }) {
|
|
31
|
+
const o = x, G = {
|
|
32
32
|
direction: "vertical",
|
|
33
33
|
rate: 1,
|
|
34
34
|
repeat: !0
|
|
35
|
-
}, { b: J, e:
|
|
36
|
-
let
|
|
35
|
+
}, { b: J, e: S, em: N } = be("scroll-view"), K = Se("scroll-view"), u = he(), c = pe({ x: 30, y: 30 });
|
|
36
|
+
let g = !1;
|
|
37
37
|
const {
|
|
38
38
|
scrollOffset: r,
|
|
39
39
|
maxScrollDistance: i,
|
|
@@ -43,25 +43,25 @@ const Le = /* @__PURE__ */ ue({
|
|
|
43
43
|
scrollYBar: h,
|
|
44
44
|
scrollXBar: p,
|
|
45
45
|
updateMaxScrollDistance: Z
|
|
46
|
-
} = Be(), { width: ee, height: te } =
|
|
46
|
+
} = Be(), { width: ee, height: te } = j(u), { width: re, height: oe } = j(s), { start: $ } = xe({
|
|
47
47
|
scrollOffset: r,
|
|
48
48
|
maxScrollDistance: i,
|
|
49
49
|
onScroll: (e) => {
|
|
50
50
|
e === "horizontal" ? p() : h();
|
|
51
51
|
},
|
|
52
52
|
async onScrollEnd() {
|
|
53
|
-
await
|
|
53
|
+
await R(200), b();
|
|
54
54
|
}
|
|
55
|
-
}), { start:
|
|
55
|
+
}), { start: V } = we({
|
|
56
56
|
scrollOffset: r,
|
|
57
57
|
maxScrollDistance: i,
|
|
58
58
|
onScroll(e, t) {
|
|
59
|
-
|
|
59
|
+
E.value && (y(), g = !0), e && p(), t && h();
|
|
60
60
|
},
|
|
61
61
|
async onScrollEnd() {
|
|
62
|
-
|
|
62
|
+
g && (await R(200), b(), g = !1);
|
|
63
63
|
}
|
|
64
|
-
}), { resume:
|
|
64
|
+
}), { resume: b, pause: y, isActive: E } = ve(
|
|
65
65
|
() => {
|
|
66
66
|
if (!o.autoPlay) {
|
|
67
67
|
y();
|
|
@@ -73,7 +73,7 @@ const Le = /* @__PURE__ */ ue({
|
|
|
73
73
|
};
|
|
74
74
|
if (t.direction === "horizontal") {
|
|
75
75
|
if (r.x === i.x) {
|
|
76
|
-
y(), t.repeat &&
|
|
76
|
+
y(), t.repeat && $("horizontal");
|
|
77
77
|
return;
|
|
78
78
|
}
|
|
79
79
|
r.x = n(
|
|
@@ -83,7 +83,7 @@ const Le = /* @__PURE__ */ ue({
|
|
|
83
83
|
), p();
|
|
84
84
|
} else {
|
|
85
85
|
if (r.y === i.y) {
|
|
86
|
-
y(), t.repeat &&
|
|
86
|
+
y(), t.repeat && $("vertical");
|
|
87
87
|
return;
|
|
88
88
|
}
|
|
89
89
|
r.y = n(
|
|
@@ -94,16 +94,16 @@ const Le = /* @__PURE__ */ ue({
|
|
|
94
94
|
}
|
|
95
95
|
},
|
|
96
96
|
{ immediate: !0 }
|
|
97
|
-
), m = v(() => o.showXBar && c.x !== 100),
|
|
98
|
-
width: f(o.width) ?
|
|
99
|
-
height: f(o.heigth) ?
|
|
97
|
+
), m = v(() => o.showXBar && c.x !== 100), w = v(() => o.showYBar && c.y !== 100), ae = v(() => ({
|
|
98
|
+
width: f(o.width) ? F(o.width) ? o.width : Number.isNaN(o.width) ? void 0 : `${o.width}px` : void 0,
|
|
99
|
+
height: f(o.heigth) ? F(o.heigth) ? o.heigth : Number.isNaN(o.heigth) ? void 0 : `${o.heigth}px` : void 0,
|
|
100
100
|
padding: `${o.xBarProps.trackWidth || 10}px ${o.yBarProps.trackWidth || 10}px`
|
|
101
101
|
}));
|
|
102
|
-
async function
|
|
103
|
-
|
|
102
|
+
async function P() {
|
|
103
|
+
E.value && (y(), await R(500), b());
|
|
104
104
|
}
|
|
105
105
|
async function le(e) {
|
|
106
|
-
if (a(
|
|
106
|
+
if (a(w))
|
|
107
107
|
e.preventDefault(), e.stopPropagation();
|
|
108
108
|
else
|
|
109
109
|
return;
|
|
@@ -111,7 +111,7 @@ const Le = /* @__PURE__ */ ue({
|
|
|
111
111
|
r.y + e.deltaY,
|
|
112
112
|
0,
|
|
113
113
|
i.y
|
|
114
|
-
), h(), o.onWheel?.("vertical", r.y),
|
|
114
|
+
), h(), o.onWheel?.("vertical", r.y), P();
|
|
115
115
|
}
|
|
116
116
|
function ie(e) {
|
|
117
117
|
if (a(m))
|
|
@@ -122,11 +122,11 @@ const Le = /* @__PURE__ */ ue({
|
|
|
122
122
|
r.x + e.deltaX,
|
|
123
123
|
0,
|
|
124
124
|
i.x
|
|
125
|
-
), p(), o.onWheel?.("horizontal", r.x),
|
|
125
|
+
), p(), o.onWheel?.("horizontal", r.x), P();
|
|
126
126
|
}
|
|
127
|
-
function
|
|
127
|
+
function X() {
|
|
128
128
|
if (o.showYBar) {
|
|
129
|
-
const { visibleSize: e, totalSize: t } =
|
|
129
|
+
const { visibleSize: e, totalSize: t } = W(
|
|
130
130
|
s.value,
|
|
131
131
|
"vertical"
|
|
132
132
|
);
|
|
@@ -135,7 +135,7 @@ const Le = /* @__PURE__ */ ue({
|
|
|
135
135
|
);
|
|
136
136
|
}
|
|
137
137
|
if (o.showXBar) {
|
|
138
|
-
const { visibleSize: e, totalSize: t } =
|
|
138
|
+
const { visibleSize: e, totalSize: t } = W(
|
|
139
139
|
s.value,
|
|
140
140
|
"horizontal"
|
|
141
141
|
);
|
|
@@ -144,21 +144,21 @@ const Le = /* @__PURE__ */ ue({
|
|
|
144
144
|
);
|
|
145
145
|
}
|
|
146
146
|
}
|
|
147
|
-
function
|
|
147
|
+
function C(e, t) {
|
|
148
148
|
const l = a(s), d = a(u);
|
|
149
149
|
if (!l || !d) return;
|
|
150
|
-
const { visibleSize:
|
|
151
|
-
if (
|
|
152
|
-
const
|
|
153
|
-
if (
|
|
154
|
-
r.y =
|
|
150
|
+
const { visibleSize: D, totalSize: Y } = W(l, t);
|
|
151
|
+
if (Y <= D) return;
|
|
152
|
+
const M = (Y - D) * e / 100, fe = t === "vertical";
|
|
153
|
+
if (P(), fe) {
|
|
154
|
+
r.y = M;
|
|
155
155
|
return;
|
|
156
156
|
}
|
|
157
|
-
r.x =
|
|
157
|
+
r.x = M;
|
|
158
158
|
}
|
|
159
|
-
|
|
159
|
+
A(
|
|
160
160
|
() => {
|
|
161
|
-
a(s.value) &&
|
|
161
|
+
a(s.value) && X();
|
|
162
162
|
},
|
|
163
163
|
{ flush: "post" }
|
|
164
164
|
), ye(
|
|
@@ -169,16 +169,16 @@ const Le = /* @__PURE__ */ ue({
|
|
|
169
169
|
oe.value
|
|
170
170
|
],
|
|
171
171
|
() => {
|
|
172
|
-
|
|
172
|
+
X(), Z();
|
|
173
173
|
}
|
|
174
|
-
),
|
|
174
|
+
), A(() => {
|
|
175
175
|
u.value && (u.value.style.transform = `translate3d(-${r.x}px, -${r.y}px, 0px)`);
|
|
176
176
|
});
|
|
177
177
|
function ne(e, t) {
|
|
178
|
-
f(e) && m.value && (r.x = n(e, 0, i.x), p()), f(t) &&
|
|
178
|
+
f(e) && m.value && (r.x = n(e, 0, i.x), p()), f(t) && w.value && (r.y = n(t, 0, i.y), h());
|
|
179
179
|
}
|
|
180
180
|
function se({ smooth: e, left: t, top: l }) {
|
|
181
|
-
e ?
|
|
181
|
+
e ? V({ x: t, y: l }) : (f(t) && (r.x = t), f(l) && (r.y = l));
|
|
182
182
|
}
|
|
183
183
|
function ce(e, t = "start") {
|
|
184
184
|
const l = ge(
|
|
@@ -190,11 +190,11 @@ const Le = /* @__PURE__ */ ue({
|
|
|
190
190
|
r.x + l.x,
|
|
191
191
|
0,
|
|
192
192
|
i.x
|
|
193
|
-
)),
|
|
193
|
+
)), w.value && (d.y = n(
|
|
194
194
|
r.y + l.y,
|
|
195
195
|
0,
|
|
196
196
|
i.y
|
|
197
|
-
)),
|
|
197
|
+
)), V(d);
|
|
198
198
|
}
|
|
199
199
|
return q({
|
|
200
200
|
scrollTop: v(() => r.y),
|
|
@@ -202,52 +202,52 @@ const Le = /* @__PURE__ */ ue({
|
|
|
202
202
|
scroll: ne,
|
|
203
203
|
scrollTo: se,
|
|
204
204
|
scrollIntoView: ce
|
|
205
|
-
}), (e, t) => (
|
|
205
|
+
}), (e, t) => (z(), me("div", {
|
|
206
206
|
ref_key: "containerRef",
|
|
207
207
|
ref: s,
|
|
208
|
-
class:
|
|
209
|
-
style:
|
|
208
|
+
class: B([a(J)(), a(K)]),
|
|
209
|
+
style: O(ae.value),
|
|
210
210
|
onWheel: [
|
|
211
|
-
|
|
212
|
-
|
|
211
|
+
L(le, ["exact"]),
|
|
212
|
+
L(ie, ["shift"])
|
|
213
213
|
]
|
|
214
214
|
}, [
|
|
215
|
-
|
|
215
|
+
k("div", {
|
|
216
216
|
ref_key: "contentRef",
|
|
217
217
|
ref: u,
|
|
218
|
-
class:
|
|
218
|
+
class: B(a(S)("content"))
|
|
219
219
|
}, [
|
|
220
220
|
de(e.$slots, "default")
|
|
221
221
|
], 2),
|
|
222
|
-
|
|
223
|
-
class:
|
|
224
|
-
style:
|
|
222
|
+
k("div", {
|
|
223
|
+
class: B([a(S)("bar-wrapper"), a(N)("bar-wrapper", "vertical")]),
|
|
224
|
+
style: O(`height: calc(100% - ${m.value ? x.xBarProps.trackWidth || 10 : 0}px)`)
|
|
225
225
|
}, [
|
|
226
|
-
|
|
226
|
+
w.value ? (z(), I(a(H), _({
|
|
227
227
|
key: 0,
|
|
228
228
|
ref_key: "yBarRef",
|
|
229
229
|
ref: U
|
|
230
|
-
},
|
|
230
|
+
}, x.yBarProps, {
|
|
231
231
|
"bar-length": c.y,
|
|
232
|
-
onScroll: t[0] || (t[0] = (l) =>
|
|
233
|
-
}), null, 16, ["bar-length"])) :
|
|
232
|
+
onScroll: t[0] || (t[0] = (l) => C(l, "vertical"))
|
|
233
|
+
}), null, 16, ["bar-length"])) : T("", !0)
|
|
234
234
|
], 6),
|
|
235
|
-
|
|
236
|
-
class:
|
|
235
|
+
k("div", {
|
|
236
|
+
class: B([a(S)("bar-wrapper"), a(N)("bar-wrapper", "horizontal")])
|
|
237
237
|
}, [
|
|
238
|
-
m.value ? (
|
|
238
|
+
m.value ? (z(), I(a(H), _({
|
|
239
239
|
key: 0,
|
|
240
240
|
ref_key: "xBarRef",
|
|
241
241
|
ref: Q
|
|
242
|
-
},
|
|
242
|
+
}, x.xBarProps, {
|
|
243
243
|
direction: "horizontal",
|
|
244
244
|
"bar-length": c.x,
|
|
245
|
-
onScroll: t[1] || (t[1] = (l) =>
|
|
246
|
-
}), null, 16, ["bar-length"])) :
|
|
245
|
+
onScroll: t[1] || (t[1] = (l) => C(l, "horizontal"))
|
|
246
|
+
}), null, 16, ["bar-length"])) : T("", !0)
|
|
247
247
|
], 2)
|
|
248
248
|
], 38));
|
|
249
249
|
}
|
|
250
250
|
});
|
|
251
251
|
export {
|
|
252
|
-
|
|
252
|
+
Oe as default
|
|
253
253
|
};
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as i, createBlock as o, openBlock as r, unref as a, withCtx as n, createVNode as t } from "vue";
|
|
2
2
|
import { Card as c, Skeleton as l } from "@aplus-frontend/antdv";
|
|
3
3
|
import "./item-large.vue.mjs";
|
|
4
4
|
import "./item.vue.mjs";
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
const
|
|
5
|
+
import m from "./item.vue2.mjs";
|
|
6
|
+
import d from "./item-large.vue2.mjs";
|
|
7
|
+
const B = /* @__PURE__ */ i({
|
|
8
8
|
name: "ApSkeletonDesc",
|
|
9
9
|
__name: "index",
|
|
10
10
|
props: {
|
|
11
11
|
active: { type: Boolean }
|
|
12
12
|
},
|
|
13
|
-
setup(
|
|
14
|
-
return (
|
|
13
|
+
setup(e) {
|
|
14
|
+
return (p, s) => (r(), o(a(c), {
|
|
15
15
|
variant: "borderless",
|
|
16
16
|
style: {
|
|
17
17
|
borderStartEndRadius: 0,
|
|
@@ -25,13 +25,13 @@ const x = /* @__PURE__ */ o({
|
|
|
25
25
|
size: "small",
|
|
26
26
|
style: { width: "100px", marginBlockEnd: "16px" }
|
|
27
27
|
}, null, 8, ["active"]),
|
|
28
|
-
t(
|
|
29
|
-
t(
|
|
28
|
+
t(m, { active: e.active }, null, 8, ["active"]),
|
|
29
|
+
t(d, { active: e.active }, null, 8, ["active"])
|
|
30
30
|
]),
|
|
31
31
|
_: 1
|
|
32
32
|
}));
|
|
33
33
|
}
|
|
34
34
|
});
|
|
35
35
|
export {
|
|
36
|
-
|
|
36
|
+
B as default
|
|
37
37
|
};
|
|
@@ -1,61 +1,61 @@
|
|
|
1
|
-
import { defineComponent as n, createElementBlock as
|
|
1
|
+
import { defineComponent as n, createElementBlock as c, openBlock as r, createVNode as e, createElementVNode as l, unref as a } from "vue";
|
|
2
2
|
import { Skeleton as i } from "@aplus-frontend/antdv";
|
|
3
|
-
const
|
|
3
|
+
const o = { style: { marginBlockStart: "32px" } }, s = { style: {
|
|
4
4
|
width: "100%",
|
|
5
5
|
justifyContent: "space-between",
|
|
6
6
|
display: "flex"
|
|
7
|
-
} },
|
|
7
|
+
} }, v = { style: {
|
|
8
8
|
flex: 1,
|
|
9
9
|
marginInlineEnd: "24px",
|
|
10
10
|
maxWidth: "300px"
|
|
11
|
-
} },
|
|
11
|
+
} }, m = { style: {
|
|
12
12
|
flex: 1,
|
|
13
13
|
alignItems: "center",
|
|
14
14
|
justifyContent: "center"
|
|
15
|
-
} },
|
|
15
|
+
} }, d = { style: {
|
|
16
16
|
maxWidth: "300px",
|
|
17
17
|
margin: "auto"
|
|
18
|
-
} },
|
|
18
|
+
} }, h = /* @__PURE__ */ n({
|
|
19
19
|
__name: "item-large",
|
|
20
20
|
props: {
|
|
21
21
|
active: { type: Boolean }
|
|
22
22
|
},
|
|
23
|
-
setup(
|
|
24
|
-
return (
|
|
25
|
-
|
|
26
|
-
active:
|
|
23
|
+
setup(t) {
|
|
24
|
+
return (p, f) => (r(), c("div", o, [
|
|
25
|
+
e(a(i).Button, {
|
|
26
|
+
active: t.active,
|
|
27
27
|
size: "small",
|
|
28
28
|
style: { width: "100px", marginBlockEnd: "16px" }
|
|
29
29
|
}, null, 8, ["active"]),
|
|
30
|
-
l("div",
|
|
31
|
-
l("div",
|
|
32
|
-
|
|
33
|
-
active:
|
|
30
|
+
l("div", s, [
|
|
31
|
+
l("div", v, [
|
|
32
|
+
e(a(i), {
|
|
33
|
+
active: t.active,
|
|
34
34
|
paragraph: !1,
|
|
35
35
|
title: { style: { marginBlockStart: 0 } }
|
|
36
36
|
}, null, 8, ["active"]),
|
|
37
|
-
|
|
38
|
-
active:
|
|
37
|
+
e(a(i), {
|
|
38
|
+
active: t.active,
|
|
39
39
|
paragraph: !1,
|
|
40
40
|
title: { style: { marginBlockStart: "8px" } }
|
|
41
41
|
}, null, 8, ["active"]),
|
|
42
|
-
|
|
43
|
-
active:
|
|
42
|
+
e(a(i), {
|
|
43
|
+
active: t.active,
|
|
44
44
|
paragraph: !1,
|
|
45
45
|
title: { style: { marginBlockStart: "8px" } }
|
|
46
46
|
}, null, 8, ["active"])
|
|
47
47
|
]),
|
|
48
|
-
l("div",
|
|
49
|
-
l("div",
|
|
50
|
-
|
|
51
|
-
active:
|
|
48
|
+
l("div", m, [
|
|
49
|
+
l("div", d, [
|
|
50
|
+
e(a(i), {
|
|
51
|
+
active: t.active,
|
|
52
52
|
paragraph: !1,
|
|
53
53
|
title: {
|
|
54
54
|
style: { marginBlockStart: 0 }
|
|
55
55
|
}
|
|
56
56
|
}, null, 8, ["active"]),
|
|
57
|
-
|
|
58
|
-
active:
|
|
57
|
+
e(a(i), {
|
|
58
|
+
active: t.active,
|
|
59
59
|
paragraph: !1,
|
|
60
60
|
title: {
|
|
61
61
|
style: { marginBlockStart: "8px" }
|
|
@@ -68,5 +68,5 @@ const s = { style: { marginBlockStart: "32px" } }, c = { style: {
|
|
|
68
68
|
}
|
|
69
69
|
});
|
|
70
70
|
export {
|
|
71
|
-
|
|
71
|
+
h as default
|
|
72
72
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as y, computed as a, createElementBlock as n, openBlock as
|
|
1
|
+
import { defineComponent as y, computed as a, createElementBlock as n, openBlock as i, Fragment as x, renderList as g, normalizeStyle as k, createVNode as r, unref as s } from "vue";
|
|
2
2
|
import { Skeleton as o } from "@aplus-frontend/antdv";
|
|
3
3
|
import S from "@aplus-frontend/antdv/es/_util/hooks/useBreakpoint";
|
|
4
4
|
const z = { style: {
|
|
@@ -12,10 +12,10 @@ const z = { style: {
|
|
|
12
12
|
size: {},
|
|
13
13
|
active: { type: Boolean }
|
|
14
14
|
},
|
|
15
|
-
setup(
|
|
16
|
-
const t =
|
|
15
|
+
setup(e) {
|
|
16
|
+
const t = e;
|
|
17
17
|
t.size;
|
|
18
|
-
const
|
|
18
|
+
const p = {
|
|
19
19
|
lg: !0,
|
|
20
20
|
md: !0,
|
|
21
21
|
sm: !1,
|
|
@@ -29,33 +29,33 @@ const z = { style: {
|
|
|
29
29
|
lg: 3,
|
|
30
30
|
xl: 3,
|
|
31
31
|
xxl: 4
|
|
32
|
-
}, d = S(), c = a(() => d.value ||
|
|
32
|
+
}, d = S(), c = a(() => d.value || p), v = a(
|
|
33
33
|
() => Object.keys(c.value).filter(
|
|
34
|
-
(
|
|
34
|
+
(m) => c.value[m] === !0
|
|
35
35
|
)[0] || "md"
|
|
36
|
-
),
|
|
36
|
+
), u = a(
|
|
37
37
|
() => t.size === void 0 ? f[v.value] || 3 : t.size
|
|
38
38
|
);
|
|
39
|
-
return (
|
|
40
|
-
(
|
|
39
|
+
return (m, B) => (i(), n("div", z, [
|
|
40
|
+
(i(!0), n(x, null, g(new Array(u.value).fill(null), (h, l) => (i(), n("div", {
|
|
41
41
|
key: l,
|
|
42
42
|
style: k({
|
|
43
43
|
flex: 1,
|
|
44
44
|
paddingInlineStart: l === 0 ? 0 : "24px",
|
|
45
|
-
paddingInlineEnd: l ===
|
|
45
|
+
paddingInlineEnd: l === u.value - 1 ? 0 : "24px"
|
|
46
46
|
})
|
|
47
47
|
}, [
|
|
48
|
-
|
|
48
|
+
r(s(o), {
|
|
49
49
|
active: e.active,
|
|
50
50
|
paragraph: !1,
|
|
51
51
|
title: { style: { marginBlockStart: 0 } }
|
|
52
52
|
}, null, 8, ["active"]),
|
|
53
|
-
|
|
53
|
+
r(s(o), {
|
|
54
54
|
active: e.active,
|
|
55
55
|
paragraph: !1,
|
|
56
56
|
title: { style: { marginBlockStart: "8px" } }
|
|
57
57
|
}, null, 8, ["active"]),
|
|
58
|
-
|
|
58
|
+
r(s(o), {
|
|
59
59
|
active: e.active,
|
|
60
60
|
paragraph: !1,
|
|
61
61
|
title: { style: { marginBlockStart: "8px" } }
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { Card as
|
|
1
|
+
import { defineComponent as o, createBlock as n, openBlock as t, unref as a, withCtx as l, createCommentVNode as c, createElementBlock as d, createVNode as s, Fragment as u, renderList as m } from "vue";
|
|
2
|
+
import { Card as r, Skeleton as f } from "@aplus-frontend/antdv";
|
|
3
3
|
import "./item.vue.mjs";
|
|
4
|
-
import
|
|
5
|
-
const
|
|
4
|
+
import p from "./item.vue2.mjs";
|
|
5
|
+
const b = /* @__PURE__ */ o({
|
|
6
6
|
name: "ApSkeletonList",
|
|
7
7
|
__name: "index",
|
|
8
8
|
props: {
|
|
@@ -10,13 +10,13 @@ const g = /* @__PURE__ */ i({
|
|
|
10
10
|
active: { type: Boolean, default: !0 },
|
|
11
11
|
actionButton: { type: Boolean }
|
|
12
12
|
},
|
|
13
|
-
setup(
|
|
14
|
-
return (
|
|
13
|
+
setup(e) {
|
|
14
|
+
return (y, v) => (t(), n(a(r), {
|
|
15
15
|
variant: "borderless",
|
|
16
16
|
"body-style": { padding: 0 }
|
|
17
17
|
}, {
|
|
18
|
-
default:
|
|
19
|
-
e.actionButton !== !1 ? (t(), n(a(
|
|
18
|
+
default: l(() => [
|
|
19
|
+
e.actionButton !== !1 ? (t(), n(a(r), {
|
|
20
20
|
key: 0,
|
|
21
21
|
variant: "borderless",
|
|
22
22
|
"body-style": {
|
|
@@ -26,17 +26,17 @@ const g = /* @__PURE__ */ i({
|
|
|
26
26
|
padding: "18px 24px"
|
|
27
27
|
}
|
|
28
28
|
}, {
|
|
29
|
-
default:
|
|
30
|
-
|
|
29
|
+
default: l(() => [
|
|
30
|
+
s(a(f).Button, {
|
|
31
31
|
style: { width: "80px" },
|
|
32
32
|
active: e.active,
|
|
33
33
|
size: "small"
|
|
34
34
|
}, null, 8, ["active"])
|
|
35
35
|
]),
|
|
36
36
|
_: 1
|
|
37
|
-
})) :
|
|
38
|
-
(t(!0), d(u, null,
|
|
39
|
-
key:
|
|
37
|
+
})) : c("", !0),
|
|
38
|
+
(t(!0), d(u, null, m(new Array(e.size).fill(null), (x, i) => (t(), n(p, {
|
|
39
|
+
key: i,
|
|
40
40
|
active: !!e.active
|
|
41
41
|
}, null, 8, ["active"]))), 128))
|
|
42
42
|
]),
|
|
@@ -45,5 +45,5 @@ const g = /* @__PURE__ */ i({
|
|
|
45
45
|
}
|
|
46
46
|
});
|
|
47
47
|
export {
|
|
48
|
-
|
|
48
|
+
b as default
|
|
49
49
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { Card as
|
|
3
|
-
import { ApSkeletonLine as
|
|
4
|
-
const
|
|
1
|
+
import { defineComponent as l, createElementBlock as o, openBlock as r, Fragment as s, createVNode as e, unref as t, withCtx as c, createElementVNode as i } from "vue";
|
|
2
|
+
import { Card as d, Skeleton as n } from "@aplus-frontend/antdv";
|
|
3
|
+
import { ApSkeletonLine as m } from "../line/index.mjs";
|
|
4
|
+
const p = { style: {
|
|
5
5
|
width: "100%",
|
|
6
6
|
display: "flex",
|
|
7
7
|
alignItems: "center",
|
|
@@ -9,21 +9,21 @@ const m = { style: {
|
|
|
9
9
|
} }, u = { style: {
|
|
10
10
|
maxWidth: "100%",
|
|
11
11
|
flex: 1
|
|
12
|
-
} },
|
|
12
|
+
} }, _ = /* @__PURE__ */ l({
|
|
13
13
|
name: "ApSkeletonListItem",
|
|
14
14
|
__name: "item",
|
|
15
15
|
props: {
|
|
16
16
|
active: { type: Boolean }
|
|
17
17
|
},
|
|
18
|
-
setup(
|
|
19
|
-
return (
|
|
20
|
-
e(t(
|
|
18
|
+
setup(a) {
|
|
19
|
+
return (f, y) => (r(), o(s, null, [
|
|
20
|
+
e(t(d), {
|
|
21
21
|
variant: "borderless",
|
|
22
22
|
style: { borderRadius: 0 },
|
|
23
23
|
"body-style": { padding: "24px" }
|
|
24
24
|
}, {
|
|
25
|
-
default:
|
|
26
|
-
i("div",
|
|
25
|
+
default: c(() => [
|
|
26
|
+
i("div", p, [
|
|
27
27
|
i("div", u, [
|
|
28
28
|
e(t(n), {
|
|
29
29
|
active: a.active,
|
|
@@ -48,10 +48,10 @@ const m = { style: {
|
|
|
48
48
|
]),
|
|
49
49
|
_: 1
|
|
50
50
|
}),
|
|
51
|
-
e(t(
|
|
51
|
+
e(t(m))
|
|
52
52
|
], 64));
|
|
53
53
|
}
|
|
54
54
|
});
|
|
55
55
|
export {
|
|
56
|
-
|
|
56
|
+
_ as default
|
|
57
57
|
};
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { Skeleton as
|
|
3
|
-
const i = { style: { "margin-block-end": "16px" } }, d = /* @__PURE__ */
|
|
1
|
+
import { defineComponent as o, createElementBlock as r, openBlock as c, createVNode as e, unref as t } from "vue";
|
|
2
|
+
import { Skeleton as a } from "@aplus-frontend/antdv";
|
|
3
|
+
const i = { style: { "margin-block-end": "16px" } }, d = /* @__PURE__ */ o({
|
|
4
4
|
name: "ApSkeletonPageHeader",
|
|
5
5
|
__name: "index",
|
|
6
6
|
props: {
|
|
7
7
|
active: { type: Boolean }
|
|
8
8
|
},
|
|
9
|
-
setup(
|
|
10
|
-
return (
|
|
11
|
-
e(t(
|
|
9
|
+
setup(n) {
|
|
10
|
+
return (l, p) => (c(), r("div", i, [
|
|
11
|
+
e(t(a), {
|
|
12
12
|
paragraph: !1,
|
|
13
13
|
title: { width: "185px" }
|
|
14
14
|
}),
|
|
15
|
-
e(t(
|
|
16
|
-
active:
|
|
15
|
+
e(t(a).Button, {
|
|
16
|
+
active: n.active,
|
|
17
17
|
size: "small"
|
|
18
18
|
}, null, 8, ["active"])
|
|
19
19
|
]));
|