ep-craft 0.1.30 → 0.1.32
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/dist/components/aside/aside.d.ts +26 -0
- package/dist/components/aside/aside.js +29 -0
- package/dist/components/aside/index.d.ts +2 -2
- package/dist/components/aside/index.js +4 -4
- package/dist/components/autocomplete/EpAutocomplete.d.ts +494 -0
- package/dist/components/autocomplete/EpAutocomplete.js +465 -0
- package/dist/components/autocomplete/autocomplete.d.ts +322 -0
- package/dist/components/autocomplete/autocomplete.js +120 -0
- package/dist/components/autocomplete/index.d.ts +23 -2
- package/dist/components/autocomplete/index.js +9 -3
- package/dist/components/autocomplete/instance.d.ts +70 -0
- package/dist/components/backtop/EpBacktop.vue.d.ts +55 -0
- package/dist/components/backtop/EpBacktop.vue.js +59 -0
- package/dist/components/backtop/EpBacktop2.vue.js +4 -0
- package/dist/components/backtop/backtop.d.ts +43 -0
- package/dist/components/backtop/backtop.js +36 -0
- package/dist/components/backtop/index.d.ts +35 -2
- package/dist/components/backtop/index.js +6 -3
- package/dist/components/backtop/instance.d.ts +10 -0
- package/dist/components/backtop/use-backtop.d.ts +13 -0
- package/dist/components/backtop/use-backtop.js +23 -0
- package/dist/components/checkbox/EpCheckbox.vue.d.ts +147 -0
- package/dist/components/checkbox/EpCheckbox.vue.js +101 -0
- package/dist/components/checkbox/EpCheckbox2.vue.js +4 -0
- package/dist/components/checkbox/index.d.ts +34 -2
- package/dist/components/checkbox/index.js +10 -4
- package/dist/components/checkbox/instance.d.ts +10 -0
- package/dist/components/checkbox/src/checkbox.d.ts +208 -0
- package/dist/components/checkbox/src/checkbox.js +119 -0
- package/dist/components/checkbox/src/composables/use-checkbox-disabled.d.ts +7 -0
- package/dist/components/checkbox/src/composables/use-checkbox-disabled.js +31 -0
- package/dist/components/checkbox/src/composables/use-checkbox-event.d.ts +9 -0
- package/dist/components/checkbox/src/composables/use-checkbox-event.js +48 -0
- package/dist/components/checkbox/src/composables/use-checkbox-model.d.ts +7 -0
- package/dist/components/checkbox/src/composables/use-checkbox-model.js +31 -0
- package/dist/components/checkbox/src/composables/use-checkbox-status.d.ts +12 -0
- package/dist/components/checkbox/src/composables/use-checkbox-status.js +33 -0
- package/dist/components/checkbox/src/composables/use-checkbox.d.ts +16 -0
- package/dist/components/checkbox/src/composables/use-checkbox.js +81 -0
- package/dist/components/checkbox/src/constants.d.ts +8 -0
- package/dist/components/checkbox/src/constants.js +4 -0
- package/dist/components/checkbox-button/EpCheckboxButton.vue.d.ts +147 -0
- package/dist/components/checkbox-button/EpCheckboxButton.vue.js +84 -0
- package/dist/components/checkbox-button/EpCheckboxButton2.vue.js +4 -0
- package/dist/components/checkbox-button/index.d.ts +24 -2
- package/dist/components/checkbox-button/index.js +6 -3
- package/dist/components/checkbox-button/instance.d.ts +10 -0
- package/dist/components/checkbox-group/EpCheckboxGroup.vue.d.ts +74 -0
- package/dist/components/checkbox-group/EpCheckboxGroup.vue.js +92 -0
- package/dist/components/checkbox-group/EpCheckboxGroup2.vue.js +4 -0
- package/dist/components/checkbox-group/index.d.ts +27 -2
- package/dist/components/checkbox-group/index.js +10 -4
- package/dist/components/checkbox-group/instance.d.ts +10 -0
- package/dist/components/checkbox-group/src/checkbox-group.d.ts +102 -0
- package/dist/components/checkbox-group/src/checkbox-group.js +84 -0
- package/dist/components/container/container.d.ts +35 -0
- package/dist/components/container/container.js +26 -0
- package/dist/components/container/index.d.ts +23 -2
- package/dist/components/container/index.js +13 -4
- package/dist/components/date-picker/src/date-picker.d.ts +5 -5
- package/dist/components/footer/footer.d.ts +28 -0
- package/dist/components/footer/footer.js +29 -0
- package/dist/components/footer/index.d.ts +2 -2
- package/dist/components/footer/index.js +4 -4
- package/dist/components/header/header.d.ts +28 -0
- package/dist/components/header/header.js +29 -0
- package/dist/components/header/index.d.ts +2 -2
- package/dist/components/header/index.js +4 -4
- package/dist/components/input/index.d.ts +177 -0
- package/dist/components/input/index.js +8 -6
- package/dist/components/input/input.d.ts +2 -2
- package/dist/components/input/input.js +6 -6
- package/dist/components/input-number/EpInputNumber.vue.d.ts +5 -5
- package/dist/components/input-number/input-number.d.ts +2 -2
- package/dist/components/main/index.d.ts +2 -2
- package/dist/components/main/index.js +3 -3
- package/dist/components/main/main.d.ts +14 -0
- package/dist/components/main/main.js +14 -0
- package/dist/components/pagination/index.d.ts +4 -2
- package/dist/components/pagination/index.js +9 -3
- package/dist/components/pagination/src/components/jumper.d.ts +13 -0
- package/dist/components/pagination/src/components/jumper.js +16 -0
- package/dist/components/pagination/src/components/jumper.vue.d.ts +16 -0
- package/dist/components/pagination/src/components/jumper.vue.js +58 -0
- package/dist/components/pagination/src/components/jumper2.vue.js +4 -0
- package/dist/components/pagination/src/components/next.d.ts +22 -0
- package/dist/components/pagination/src/components/next.js +26 -0
- package/dist/components/pagination/src/components/next.vue.d.ts +42 -0
- package/dist/components/pagination/src/components/next.vue.js +44 -0
- package/dist/components/pagination/src/components/next2.vue.js +4 -0
- package/dist/components/pagination/src/components/pager.d.ts +16 -0
- package/dist/components/pagination/src/components/pager.js +24 -0
- package/dist/components/pagination/src/components/pager.vue.d.ts +30 -0
- package/dist/components/pagination/src/components/pager.vue.js +148 -0
- package/dist/components/pagination/src/components/pager2.vue.js +4 -0
- package/dist/components/pagination/src/components/prev.d.ts +24 -0
- package/dist/components/pagination/src/components/prev.js +25 -0
- package/dist/components/pagination/src/components/prev.vue.d.ts +39 -0
- package/dist/components/pagination/src/components/prev.vue.js +44 -0
- package/dist/components/pagination/src/components/prev2.vue.js +4 -0
- package/dist/components/pagination/src/components/sizes.d.ts +35 -0
- package/dist/components/pagination/src/components/sizes.js +34 -0
- package/dist/components/pagination/src/components/sizes.vue.d.ts +68 -0
- package/dist/components/pagination/src/components/sizes.vue.js +73 -0
- package/dist/components/pagination/src/components/sizes2.vue.js +4 -0
- package/dist/components/pagination/src/components/total.d.ts +8 -0
- package/dist/components/pagination/src/components/total.js +15 -0
- package/dist/components/pagination/src/components/total.vue.d.ts +8 -0
- package/dist/components/pagination/src/components/total.vue.js +33 -0
- package/dist/components/pagination/src/components/total2.vue.js +4 -0
- package/dist/components/pagination/src/constants.d.ts +9 -0
- package/dist/components/pagination/src/constants.js +4 -0
- package/dist/components/pagination/src/pagination.d.ts +147 -0
- package/dist/components/pagination/src/pagination.js +314 -0
- package/dist/components/pagination/src/usePagination.d.ts +1 -0
- package/dist/components/pagination/src/usePagination.js +6 -0
- package/dist/components/popper/src/content.vue.d.ts +6 -6
- package/dist/components/scrollbar/index.d.ts +217 -6
- package/dist/components/scrollbar/index.js +12 -5
- package/dist/components/scrollbar/src/bar.d.ts +23 -0
- package/dist/components/scrollbar/src/bar.js +19 -0
- package/dist/components/scrollbar/src/bar.vue.d.ts +23 -0
- package/dist/components/scrollbar/src/bar.vue.js +43 -0
- package/dist/components/scrollbar/src/bar2.vue.js +4 -0
- package/dist/components/scrollbar/src/constants.d.ts +6 -0
- package/dist/components/scrollbar/src/constants.js +4 -0
- package/dist/components/scrollbar/src/scrollbar.d.ts +111 -6
- package/dist/components/scrollbar/src/scrollbar.js +108 -7
- package/dist/components/scrollbar/src/scrollbar.vue.d.ts +101 -0
- package/dist/components/scrollbar/src/scrollbar.vue.js +178 -0
- package/dist/components/scrollbar/src/scrollbar2.vue.js +4 -0
- package/dist/components/scrollbar/src/thumb.d.ts +29 -0
- package/dist/components/scrollbar/src/thumb.js +19 -0
- package/dist/components/scrollbar/src/thumb.vue.d.ts +27 -0
- package/dist/components/scrollbar/src/thumb.vue.js +109 -0
- package/dist/components/scrollbar/src/thumb2.vue.js +4 -0
- package/dist/components/scrollbar/src/util.d.ts +2 -14
- package/dist/components/scrollbar/src/util.js +12 -3
- package/dist/components/select/index.d.ts +2214 -0
- package/dist/components/select/index.js +10 -7
- package/dist/components/select/select.vue.d.ts +148 -90
- package/dist/components/select-v2/src/select.vue.d.ts +30 -30
- package/dist/components/time-picker/src/common/picker.vue.d.ts +5 -5
- package/dist/components/time-picker/src/time-picker.d.ts +5 -5
- package/dist/components/tooltip/index.d.ts +24 -24
- package/dist/components/tooltip/src/content.vue.d.ts +6 -6
- package/dist/components/tooltip/src/tooltip.vue.d.ts +8 -8
- package/dist/ep-craft.js +187 -179
- package/dist/index.css +1 -1
- package/dist/index.d.ts +18 -0
- package/dist/vendored-components.d.ts +5 -2
- package/dist/vendored-components.js +22 -1
- package/package.json +5 -2
- package/theme-chalk/src/float-label.scss +51 -26
|
@@ -0,0 +1,314 @@
|
|
|
1
|
+
import { defineComponent as W, getCurrentInstance as $, computed as c, ref as _, watch as T, provide as O, h as g } from "vue";
|
|
2
|
+
import { ArrowRight as R, ArrowLeft as G } from "@element-plus/icons-vue";
|
|
3
|
+
import { isNumber as u } from "../../../utils/types.js";
|
|
4
|
+
import "lodash-unified";
|
|
5
|
+
import "@vueuse/core";
|
|
6
|
+
import { debugWarn as V } from "../../../utils/error.js";
|
|
7
|
+
import "@vue/shared";
|
|
8
|
+
import { mutable as D } from "../../../utils/typescript.js";
|
|
9
|
+
import { CHANGE_EVENT as H } from "../../../constants/event.js";
|
|
10
|
+
import { iconPropType as N } from "../../../utils/vue/icon.js";
|
|
11
|
+
import { buildProps as K, definePropType as k } from "../../../utils/vue/props/runtime.js";
|
|
12
|
+
import { useNamespace as q } from "../../../hooks/use-namespace/index.js";
|
|
13
|
+
import { useLocale as F } from "../../../hooks/use-locale/index.js";
|
|
14
|
+
import { useSizeProp as J, useGlobalSize as Q } from "../../../hooks/use-size/index.js";
|
|
15
|
+
import { useDeprecated as X } from "../../../hooks/use-deprecated/index.js";
|
|
16
|
+
import "@popperjs/core";
|
|
17
|
+
import "../../../hooks/use-z-index/index.js";
|
|
18
|
+
import "../../../hooks/use-delayed-toggle/index.js";
|
|
19
|
+
import "../../../hooks/use-aria/index.js";
|
|
20
|
+
import "../../../hooks/use-model-toggle/index.js";
|
|
21
|
+
import "../../../hooks/use-empty-values/index.js";
|
|
22
|
+
import { elPaginationKey as Y } from "./constants.js";
|
|
23
|
+
import Z from "./components/prev.vue.js";
|
|
24
|
+
import ee from "./components/next.vue.js";
|
|
25
|
+
import te from "./components/sizes.vue.js";
|
|
26
|
+
import ae from "./components/jumper.vue.js";
|
|
27
|
+
import ne from "./components/total.vue.js";
|
|
28
|
+
import ie from "./components/pager.vue.js";
|
|
29
|
+
const n = (e) => typeof e != "number", re = K({
|
|
30
|
+
/**
|
|
31
|
+
* @description options of item count per page
|
|
32
|
+
*/
|
|
33
|
+
pageSize: Number,
|
|
34
|
+
/**
|
|
35
|
+
* @description default initial value of page size, not setting is the same as setting 10
|
|
36
|
+
*/
|
|
37
|
+
defaultPageSize: Number,
|
|
38
|
+
/**
|
|
39
|
+
* @description total item count
|
|
40
|
+
*/
|
|
41
|
+
total: Number,
|
|
42
|
+
/**
|
|
43
|
+
* @description total page count. Set either `total` or `page-count` and pages will be displayed; if you need `page-sizes`, `total` is required
|
|
44
|
+
*/
|
|
45
|
+
pageCount: Number,
|
|
46
|
+
/**
|
|
47
|
+
* @description number of pagers. Pagination collapses when the total page count exceeds this value
|
|
48
|
+
*/
|
|
49
|
+
pagerCount: {
|
|
50
|
+
type: Number,
|
|
51
|
+
validator: (e) => u(e) && Math.trunc(e) === e && e > 4 && e < 22 && e % 2 === 1,
|
|
52
|
+
default: 7
|
|
53
|
+
},
|
|
54
|
+
/**
|
|
55
|
+
* @description current page number
|
|
56
|
+
*/
|
|
57
|
+
currentPage: Number,
|
|
58
|
+
/**
|
|
59
|
+
* @description default initial value of current-page, not setting is the same as setting 1
|
|
60
|
+
*/
|
|
61
|
+
defaultCurrentPage: Number,
|
|
62
|
+
/**
|
|
63
|
+
* @description layout of Pagination, elements separated with a comma
|
|
64
|
+
*/
|
|
65
|
+
layout: {
|
|
66
|
+
type: String,
|
|
67
|
+
default: ["prev", "pager", "next", "jumper", "->", "total"].join(", ")
|
|
68
|
+
},
|
|
69
|
+
/**
|
|
70
|
+
* @description item count of each page
|
|
71
|
+
*/
|
|
72
|
+
pageSizes: {
|
|
73
|
+
type: k(Array),
|
|
74
|
+
default: () => D([10, 20, 30, 40, 50, 100])
|
|
75
|
+
},
|
|
76
|
+
/**
|
|
77
|
+
* @description custom class name for the page size Select's dropdown
|
|
78
|
+
*/
|
|
79
|
+
popperClass: {
|
|
80
|
+
type: String,
|
|
81
|
+
default: ""
|
|
82
|
+
},
|
|
83
|
+
/**
|
|
84
|
+
* @description custom style for the page size Select's dropdown
|
|
85
|
+
*/
|
|
86
|
+
popperStyle: {
|
|
87
|
+
type: k([String, Object])
|
|
88
|
+
},
|
|
89
|
+
/**
|
|
90
|
+
* @description text for the prev button
|
|
91
|
+
*/
|
|
92
|
+
prevText: {
|
|
93
|
+
type: String,
|
|
94
|
+
default: ""
|
|
95
|
+
},
|
|
96
|
+
/**
|
|
97
|
+
* @description icon for the prev button, higher priority of `prev-text`
|
|
98
|
+
*/
|
|
99
|
+
prevIcon: {
|
|
100
|
+
type: N,
|
|
101
|
+
default: () => G
|
|
102
|
+
},
|
|
103
|
+
/**
|
|
104
|
+
* @description text for the next button
|
|
105
|
+
*/
|
|
106
|
+
nextText: {
|
|
107
|
+
type: String,
|
|
108
|
+
default: ""
|
|
109
|
+
},
|
|
110
|
+
/**
|
|
111
|
+
* @description icon for the next button, higher priority of `next-text`
|
|
112
|
+
*/
|
|
113
|
+
nextIcon: {
|
|
114
|
+
type: N,
|
|
115
|
+
default: () => R
|
|
116
|
+
},
|
|
117
|
+
/**
|
|
118
|
+
* @description whether Pagination size is teleported to body
|
|
119
|
+
*/
|
|
120
|
+
teleported: {
|
|
121
|
+
type: Boolean,
|
|
122
|
+
default: !0
|
|
123
|
+
},
|
|
124
|
+
/**
|
|
125
|
+
* @description whether to use small pagination
|
|
126
|
+
*/
|
|
127
|
+
small: Boolean,
|
|
128
|
+
/**
|
|
129
|
+
* @description set page size
|
|
130
|
+
*/
|
|
131
|
+
size: J,
|
|
132
|
+
/**
|
|
133
|
+
* @description whether the buttons have a background color
|
|
134
|
+
*/
|
|
135
|
+
background: Boolean,
|
|
136
|
+
/**
|
|
137
|
+
* @description whether Pagination is disabled
|
|
138
|
+
*/
|
|
139
|
+
disabled: Boolean,
|
|
140
|
+
/**
|
|
141
|
+
* @description whether to hide when there's only one page
|
|
142
|
+
*/
|
|
143
|
+
hideOnSinglePage: Boolean,
|
|
144
|
+
/**
|
|
145
|
+
* @description which element the size dropdown appends to.
|
|
146
|
+
*/
|
|
147
|
+
appendSizeTo: String
|
|
148
|
+
}), ue = {
|
|
149
|
+
"update:current-page": (e) => u(e),
|
|
150
|
+
"update:page-size": (e) => u(e),
|
|
151
|
+
"size-change": (e) => u(e),
|
|
152
|
+
change: (e, r) => u(e) && u(r),
|
|
153
|
+
"current-change": (e) => u(e),
|
|
154
|
+
"prev-click": (e) => u(e),
|
|
155
|
+
"next-click": (e) => u(e)
|
|
156
|
+
}, E = "ElPagination", Le = W({
|
|
157
|
+
name: E,
|
|
158
|
+
props: re,
|
|
159
|
+
emits: ue,
|
|
160
|
+
setup(e, { emit: r, slots: d }) {
|
|
161
|
+
const { t: B } = F(), o = q("pagination"), f = $().vnode.props || {}, A = Q(), h = c(
|
|
162
|
+
() => e.small ? "small" : e.size ?? A.value
|
|
163
|
+
);
|
|
164
|
+
X(
|
|
165
|
+
{
|
|
166
|
+
from: "small",
|
|
167
|
+
replacement: "size",
|
|
168
|
+
version: "3.0.0",
|
|
169
|
+
scope: "el-pagination",
|
|
170
|
+
ref: "https://element-plus.org/zh-CN/component/pagination.html"
|
|
171
|
+
},
|
|
172
|
+
c(() => !!e.small)
|
|
173
|
+
);
|
|
174
|
+
const z = "onUpdate:currentPage" in f || "onUpdate:current-page" in f || "onCurrentChange" in f, v = "onUpdate:pageSize" in f || "onUpdate:page-size" in f || "onSizeChange" in f, I = c(() => {
|
|
175
|
+
if (n(e.total) && n(e.pageCount) || !n(e.currentPage) && !z) return !1;
|
|
176
|
+
if (e.layout.includes("sizes")) {
|
|
177
|
+
if (n(e.pageCount)) {
|
|
178
|
+
if (!n(e.total) && !n(e.pageSize) && !v)
|
|
179
|
+
return !1;
|
|
180
|
+
} else if (!v) return !1;
|
|
181
|
+
}
|
|
182
|
+
return !0;
|
|
183
|
+
}), P = _(
|
|
184
|
+
n(e.defaultPageSize) ? 10 : e.defaultPageSize
|
|
185
|
+
), S = _(
|
|
186
|
+
n(e.defaultCurrentPage) ? 1 : e.defaultCurrentPage
|
|
187
|
+
), p = c({
|
|
188
|
+
get() {
|
|
189
|
+
return n(e.pageSize) ? P.value : e.pageSize;
|
|
190
|
+
},
|
|
191
|
+
set(t) {
|
|
192
|
+
n(e.pageSize) && (P.value = t), v && (r("update:page-size", t), r("size-change", t));
|
|
193
|
+
}
|
|
194
|
+
}), l = c(() => {
|
|
195
|
+
let t = 0;
|
|
196
|
+
return n(e.pageCount) ? n(e.total) || (t = Math.max(1, Math.ceil(e.total / p.value))) : t = e.pageCount, t;
|
|
197
|
+
}), i = c({
|
|
198
|
+
get() {
|
|
199
|
+
return n(e.currentPage) ? S.value : e.currentPage;
|
|
200
|
+
},
|
|
201
|
+
set(t) {
|
|
202
|
+
let a = t;
|
|
203
|
+
t < 1 ? a = 1 : t > l.value && (a = l.value), n(e.currentPage) && (S.value = a), z && (r("update:current-page", a), r("current-change", a));
|
|
204
|
+
}
|
|
205
|
+
});
|
|
206
|
+
T(l, (t) => {
|
|
207
|
+
i.value > t && (i.value = t);
|
|
208
|
+
}), T(
|
|
209
|
+
[i, p],
|
|
210
|
+
(t) => {
|
|
211
|
+
r(H, ...t);
|
|
212
|
+
},
|
|
213
|
+
{ flush: "post" }
|
|
214
|
+
);
|
|
215
|
+
function b(t) {
|
|
216
|
+
i.value = t;
|
|
217
|
+
}
|
|
218
|
+
function w(t) {
|
|
219
|
+
p.value = t;
|
|
220
|
+
const a = l.value;
|
|
221
|
+
i.value > a && (i.value = a);
|
|
222
|
+
}
|
|
223
|
+
function j() {
|
|
224
|
+
e.disabled || (i.value -= 1, r("prev-click", i.value));
|
|
225
|
+
}
|
|
226
|
+
function L() {
|
|
227
|
+
e.disabled || (i.value += 1, r("next-click", i.value));
|
|
228
|
+
}
|
|
229
|
+
function m(t, a) {
|
|
230
|
+
t && (t.props || (t.props = {}), t.props.class = [t.props.class, a].join(" "));
|
|
231
|
+
}
|
|
232
|
+
return O(Y, {
|
|
233
|
+
pageCount: l,
|
|
234
|
+
disabled: c(() => e.disabled),
|
|
235
|
+
currentPage: i,
|
|
236
|
+
changeEvent: b,
|
|
237
|
+
handleSizeChange: w
|
|
238
|
+
}), () => {
|
|
239
|
+
var x;
|
|
240
|
+
if (!I.value)
|
|
241
|
+
return V(E, B("el.pagination.deprecationWarning")), null;
|
|
242
|
+
if (!e.layout || e.hideOnSinglePage && l.value <= 1) return null;
|
|
243
|
+
const t = [], a = [], M = g(
|
|
244
|
+
"div",
|
|
245
|
+
{ class: o.e("rightwrapper") },
|
|
246
|
+
a
|
|
247
|
+
), y = {
|
|
248
|
+
prev: g(Z, {
|
|
249
|
+
disabled: e.disabled,
|
|
250
|
+
currentPage: i.value,
|
|
251
|
+
prevText: e.prevText,
|
|
252
|
+
prevIcon: e.prevIcon,
|
|
253
|
+
onClick: j
|
|
254
|
+
}),
|
|
255
|
+
jumper: g(ae, {
|
|
256
|
+
size: h.value
|
|
257
|
+
}),
|
|
258
|
+
pager: g(ie, {
|
|
259
|
+
currentPage: i.value,
|
|
260
|
+
pageCount: l.value,
|
|
261
|
+
pagerCount: e.pagerCount,
|
|
262
|
+
onChange: b,
|
|
263
|
+
disabled: e.disabled
|
|
264
|
+
}),
|
|
265
|
+
next: g(ee, {
|
|
266
|
+
disabled: e.disabled,
|
|
267
|
+
currentPage: i.value,
|
|
268
|
+
pageCount: l.value,
|
|
269
|
+
nextText: e.nextText,
|
|
270
|
+
nextIcon: e.nextIcon,
|
|
271
|
+
onClick: L
|
|
272
|
+
}),
|
|
273
|
+
sizes: g(te, {
|
|
274
|
+
pageSize: p.value,
|
|
275
|
+
pageSizes: e.pageSizes,
|
|
276
|
+
popperClass: e.popperClass,
|
|
277
|
+
popperStyle: e.popperStyle,
|
|
278
|
+
disabled: e.disabled,
|
|
279
|
+
teleported: e.teleported,
|
|
280
|
+
size: h.value,
|
|
281
|
+
appendSizeTo: e.appendSizeTo
|
|
282
|
+
}),
|
|
283
|
+
slot: ((x = d == null ? void 0 : d.default) == null ? void 0 : x.call(d)) ?? null,
|
|
284
|
+
total: g(ne, { total: n(e.total) ? 0 : e.total })
|
|
285
|
+
}, U = e.layout.split(",").map((s) => s.trim());
|
|
286
|
+
let C = !1;
|
|
287
|
+
return U.forEach((s) => {
|
|
288
|
+
if (s === "->") {
|
|
289
|
+
C = !0;
|
|
290
|
+
return;
|
|
291
|
+
}
|
|
292
|
+
C ? a.push(y[s]) : t.push(y[s]);
|
|
293
|
+
}), m(t[0], o.is("first")), m(t[t.length - 1], o.is("last")), C && a.length > 0 && (m(a[0], o.is("first")), m(
|
|
294
|
+
a[a.length - 1],
|
|
295
|
+
o.is("last")
|
|
296
|
+
), t.push(M)), g(
|
|
297
|
+
"div",
|
|
298
|
+
{
|
|
299
|
+
class: [
|
|
300
|
+
o.b(),
|
|
301
|
+
o.is("background", e.background),
|
|
302
|
+
o.m(h.value)
|
|
303
|
+
]
|
|
304
|
+
},
|
|
305
|
+
t
|
|
306
|
+
);
|
|
307
|
+
};
|
|
308
|
+
}
|
|
309
|
+
});
|
|
310
|
+
export {
|
|
311
|
+
Le as default,
|
|
312
|
+
ue as paginationEmits,
|
|
313
|
+
re as paginationProps
|
|
314
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const usePagination: () => import("./constants").ElPaginationContext;
|
|
@@ -39,18 +39,18 @@ declare const __VLS_component: import("vue").DefineComponent<PopperContentProps,
|
|
|
39
39
|
placement: import("element-plus").Placement;
|
|
40
40
|
strategy: "fixed" | "absolute";
|
|
41
41
|
effect: import("./popper").PopperEffect;
|
|
42
|
+
virtualTriggering: boolean;
|
|
43
|
+
loop: boolean;
|
|
44
|
+
arrowOffset: number;
|
|
45
|
+
boundariesPadding: number;
|
|
46
|
+
gpuAcceleration: boolean;
|
|
47
|
+
popperOptions: Partial<import("element-plus").Options>;
|
|
42
48
|
enterable: boolean;
|
|
43
49
|
pure: boolean;
|
|
44
50
|
focusOnShow: boolean;
|
|
45
51
|
trapping: boolean;
|
|
46
52
|
popperStyle: string | false | import("vue").CSSProperties | import("vue").StyleValue[] | null;
|
|
47
53
|
stopPopperMouseEvent: boolean;
|
|
48
|
-
virtualTriggering: boolean;
|
|
49
|
-
loop: boolean;
|
|
50
|
-
boundariesPadding: number;
|
|
51
|
-
gpuAcceleration: boolean;
|
|
52
|
-
popperOptions: Partial<import("element-plus").Options>;
|
|
53
|
-
arrowOffset: number;
|
|
54
54
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
55
55
|
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
56
56
|
export default _default;
|
|
@@ -1,7 +1,218 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
|
|
1
|
+
import Scrollbar from './src/scrollbar.vue';
|
|
2
|
+
import { scrollbarEmits, scrollbarProps } from './src/scrollbar';
|
|
3
|
+
import { scrollbarContextKey } from './src/constants';
|
|
4
|
+
import { thumbProps } from './src/thumb';
|
|
5
|
+
import { BAR_MAP, GAP, renderThumbStyle } from './src/util';
|
|
6
|
+
import type { SFCWithInstall } from '@element-plus/utils';
|
|
7
|
+
import type { ScrollbarDirection, ScrollbarEmits, ScrollbarInstance } from './src/scrollbar';
|
|
8
|
+
/**
|
|
9
|
+
* scrollbar 自持 barrel:双名导出 + 完整下游契约。
|
|
10
|
+
*
|
|
11
|
+
* 形态对齐仓内唯一的同类先例 `src/components/icon/index.ts` 与
|
|
12
|
+
* `src/components/tooltip/index.ts`:具名 `ElScrollbar`(供上游源码的具名引用,
|
|
13
|
+
* 如 autocomplete)与具名 + 默认 `EpScrollbar`(供公开面与下游)共用同一本体对象
|
|
14
|
+
* (`withInstall` 就地附加 `install`,后调用者生效,故 `EpScrollbar` 注册名
|
|
15
|
+
* `ep-scrollbar` 为最终生效者)。
|
|
16
|
+
*
|
|
17
|
+
* **默认导出必须保持 `EpScrollbar`**:`select/select.vue` 与
|
|
18
|
+
* `time-picker/.../basic-time-spinner.vue` 以**默认导入**消费本模块,若照搬上游
|
|
19
|
+
* barrel 的 `ElScrollbar as default` 会静默换组件。
|
|
20
|
+
*
|
|
21
|
+
* 不使用 `export *`:`scrollbar.ts` / `util.ts` 等内部声明(如 `ScrollbarProps`、
|
|
22
|
+
* `BarProps`)不外泄到主入口,具名面按契约显式列出。
|
|
23
|
+
*/
|
|
24
|
+
export declare const ElScrollbar: SFCWithInstall<typeof Scrollbar>;
|
|
25
|
+
export declare const EpScrollbar: {
|
|
26
|
+
new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("vue").ExtractPropTypes<{
|
|
27
|
+
readonly ariaLabel: StringConstructor;
|
|
28
|
+
readonly ariaOrientation: {
|
|
29
|
+
readonly type: import("vue").PropType<string>;
|
|
30
|
+
readonly required: false;
|
|
31
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
32
|
+
__epPropKey: true;
|
|
33
|
+
};
|
|
34
|
+
readonly distance: import("@element-plus/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 0, boolean>;
|
|
35
|
+
readonly height: import("@element-plus/utils").EpPropFinalized<readonly [StringConstructor, NumberConstructor], unknown, unknown, "", boolean>;
|
|
36
|
+
readonly maxHeight: import("@element-plus/utils").EpPropFinalized<readonly [StringConstructor, NumberConstructor], unknown, unknown, "", boolean>;
|
|
37
|
+
readonly native: BooleanConstructor;
|
|
38
|
+
readonly wrapStyle: import("@element-plus/utils").EpPropFinalized<(new (...args: any[]) => string | false | import("vue").CSSProperties | import("vue").StyleValue[]) | (() => import("vue").StyleValue) | (((new (...args: any[]) => string | false | import("vue").CSSProperties | import("vue").StyleValue[]) | (() => import("vue").StyleValue)) | null)[], unknown, unknown, "", boolean>;
|
|
39
|
+
readonly wrapClass: import("@element-plus/utils").EpPropFinalized<readonly [StringConstructor, ArrayConstructor], unknown, unknown, "", boolean>;
|
|
40
|
+
readonly viewClass: import("@element-plus/utils").EpPropFinalized<readonly [StringConstructor, ArrayConstructor], unknown, unknown, "", boolean>;
|
|
41
|
+
readonly viewStyle: import("@element-plus/utils").EpPropFinalized<(new (...args: any[]) => string | false | import("vue").CSSProperties | import("vue").StyleValue[]) | (() => import("vue").StyleValue) | (((new (...args: any[]) => string | false | import("vue").CSSProperties | import("vue").StyleValue[]) | (() => import("vue").StyleValue)) | null)[], unknown, unknown, "", boolean>;
|
|
42
|
+
readonly noresize: BooleanConstructor;
|
|
43
|
+
readonly tag: import("@element-plus/utils").EpPropFinalized<StringConstructor, unknown, unknown, "div", boolean>;
|
|
44
|
+
readonly always: BooleanConstructor;
|
|
45
|
+
readonly minSize: import("@element-plus/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 20, boolean>;
|
|
46
|
+
readonly tabindex: import("@element-plus/utils").EpPropFinalized<readonly [StringConstructor, NumberConstructor], unknown, unknown, undefined, boolean>;
|
|
47
|
+
readonly id: StringConstructor;
|
|
48
|
+
readonly role: StringConstructor;
|
|
49
|
+
}>> & Readonly<{
|
|
50
|
+
onScroll?: ((args_0: {
|
|
51
|
+
scrollTop: number;
|
|
52
|
+
scrollLeft: number;
|
|
53
|
+
}) => any) | undefined;
|
|
54
|
+
"onEnd-reached"?: ((direction: ScrollbarDirection) => any) | undefined;
|
|
55
|
+
}>, {
|
|
56
|
+
wrapRef: import("vue").Ref<HTMLDivElement | undefined, HTMLDivElement | undefined>;
|
|
57
|
+
update: () => void;
|
|
58
|
+
scrollTo: {
|
|
59
|
+
(xCord: number, yCord?: number): void;
|
|
60
|
+
(options: ScrollToOptions): void;
|
|
61
|
+
};
|
|
62
|
+
setScrollTop: (value: number) => void;
|
|
63
|
+
setScrollLeft: (value: number) => void;
|
|
64
|
+
handleScroll: () => void;
|
|
65
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
66
|
+
scroll: (args_0: {
|
|
67
|
+
scrollTop: number;
|
|
68
|
+
scrollLeft: number;
|
|
69
|
+
}) => void;
|
|
70
|
+
"end-reached": (direction: ScrollbarDirection) => void;
|
|
71
|
+
}, import("vue").PublicProps, {
|
|
72
|
+
readonly always: boolean;
|
|
73
|
+
readonly height: import("@element-plus/utils").EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
|
|
74
|
+
readonly maxHeight: import("@element-plus/utils").EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
|
|
75
|
+
readonly tabindex: import("@element-plus/utils").EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
|
|
76
|
+
readonly tag: string;
|
|
77
|
+
readonly minSize: number;
|
|
78
|
+
readonly distance: number;
|
|
79
|
+
readonly wrapStyle: import("vue").StyleValue;
|
|
80
|
+
readonly wrapClass: import("@element-plus/utils").EpPropMergeType<readonly [StringConstructor, ArrayConstructor], unknown, unknown>;
|
|
81
|
+
readonly viewClass: import("@element-plus/utils").EpPropMergeType<readonly [StringConstructor, ArrayConstructor], unknown, unknown>;
|
|
82
|
+
readonly viewStyle: import("vue").StyleValue;
|
|
83
|
+
readonly native: boolean;
|
|
84
|
+
readonly noresize: boolean;
|
|
85
|
+
}, true, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
|
|
86
|
+
P: {};
|
|
87
|
+
B: {};
|
|
88
|
+
D: {};
|
|
89
|
+
C: {};
|
|
90
|
+
M: {};
|
|
91
|
+
Defaults: {};
|
|
92
|
+
}, Readonly<import("vue").ExtractPropTypes<{
|
|
93
|
+
readonly ariaLabel: StringConstructor;
|
|
94
|
+
readonly ariaOrientation: {
|
|
95
|
+
readonly type: import("vue").PropType<string>;
|
|
96
|
+
readonly required: false;
|
|
97
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
98
|
+
__epPropKey: true;
|
|
99
|
+
};
|
|
100
|
+
readonly distance: import("@element-plus/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 0, boolean>;
|
|
101
|
+
readonly height: import("@element-plus/utils").EpPropFinalized<readonly [StringConstructor, NumberConstructor], unknown, unknown, "", boolean>;
|
|
102
|
+
readonly maxHeight: import("@element-plus/utils").EpPropFinalized<readonly [StringConstructor, NumberConstructor], unknown, unknown, "", boolean>;
|
|
103
|
+
readonly native: BooleanConstructor;
|
|
104
|
+
readonly wrapStyle: import("@element-plus/utils").EpPropFinalized<(new (...args: any[]) => string | false | import("vue").CSSProperties | import("vue").StyleValue[]) | (() => import("vue").StyleValue) | (((new (...args: any[]) => string | false | import("vue").CSSProperties | import("vue").StyleValue[]) | (() => import("vue").StyleValue)) | null)[], unknown, unknown, "", boolean>;
|
|
105
|
+
readonly wrapClass: import("@element-plus/utils").EpPropFinalized<readonly [StringConstructor, ArrayConstructor], unknown, unknown, "", boolean>;
|
|
106
|
+
readonly viewClass: import("@element-plus/utils").EpPropFinalized<readonly [StringConstructor, ArrayConstructor], unknown, unknown, "", boolean>;
|
|
107
|
+
readonly viewStyle: import("@element-plus/utils").EpPropFinalized<(new (...args: any[]) => string | false | import("vue").CSSProperties | import("vue").StyleValue[]) | (() => import("vue").StyleValue) | (((new (...args: any[]) => string | false | import("vue").CSSProperties | import("vue").StyleValue[]) | (() => import("vue").StyleValue)) | null)[], unknown, unknown, "", boolean>;
|
|
108
|
+
readonly noresize: BooleanConstructor;
|
|
109
|
+
readonly tag: import("@element-plus/utils").EpPropFinalized<StringConstructor, unknown, unknown, "div", boolean>;
|
|
110
|
+
readonly always: BooleanConstructor;
|
|
111
|
+
readonly minSize: import("@element-plus/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 20, boolean>;
|
|
112
|
+
readonly tabindex: import("@element-plus/utils").EpPropFinalized<readonly [StringConstructor, NumberConstructor], unknown, unknown, undefined, boolean>;
|
|
113
|
+
readonly id: StringConstructor;
|
|
114
|
+
readonly role: StringConstructor;
|
|
115
|
+
}>> & Readonly<{
|
|
116
|
+
onScroll?: ((args_0: {
|
|
117
|
+
scrollTop: number;
|
|
118
|
+
scrollLeft: number;
|
|
119
|
+
}) => any) | undefined;
|
|
120
|
+
"onEnd-reached"?: ((direction: ScrollbarDirection) => any) | undefined;
|
|
121
|
+
}>, {
|
|
122
|
+
wrapRef: import("vue").Ref<HTMLDivElement | undefined, HTMLDivElement | undefined>;
|
|
123
|
+
update: () => void;
|
|
124
|
+
scrollTo: {
|
|
125
|
+
(xCord: number, yCord?: number): void;
|
|
126
|
+
(options: ScrollToOptions): void;
|
|
127
|
+
};
|
|
128
|
+
setScrollTop: (value: number) => void;
|
|
129
|
+
setScrollLeft: (value: number) => void;
|
|
130
|
+
handleScroll: () => void;
|
|
131
|
+
}, {}, {}, {}, {
|
|
132
|
+
readonly always: boolean;
|
|
133
|
+
readonly height: import("@element-plus/utils").EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
|
|
134
|
+
readonly maxHeight: import("@element-plus/utils").EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
|
|
135
|
+
readonly tabindex: import("@element-plus/utils").EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
|
|
136
|
+
readonly tag: string;
|
|
137
|
+
readonly minSize: number;
|
|
138
|
+
readonly distance: number;
|
|
139
|
+
readonly wrapStyle: import("vue").StyleValue;
|
|
140
|
+
readonly wrapClass: import("@element-plus/utils").EpPropMergeType<readonly [StringConstructor, ArrayConstructor], unknown, unknown>;
|
|
141
|
+
readonly viewClass: import("@element-plus/utils").EpPropMergeType<readonly [StringConstructor, ArrayConstructor], unknown, unknown>;
|
|
142
|
+
readonly viewStyle: import("vue").StyleValue;
|
|
143
|
+
readonly native: boolean;
|
|
144
|
+
readonly noresize: boolean;
|
|
145
|
+
}>;
|
|
146
|
+
__isFragment?: never;
|
|
147
|
+
__isTeleport?: never;
|
|
148
|
+
__isSuspense?: never;
|
|
149
|
+
} & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
|
150
|
+
readonly ariaLabel: StringConstructor;
|
|
151
|
+
readonly ariaOrientation: {
|
|
152
|
+
readonly type: import("vue").PropType<string>;
|
|
153
|
+
readonly required: false;
|
|
154
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
155
|
+
__epPropKey: true;
|
|
156
|
+
};
|
|
157
|
+
readonly distance: import("@element-plus/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 0, boolean>;
|
|
158
|
+
readonly height: import("@element-plus/utils").EpPropFinalized<readonly [StringConstructor, NumberConstructor], unknown, unknown, "", boolean>;
|
|
159
|
+
readonly maxHeight: import("@element-plus/utils").EpPropFinalized<readonly [StringConstructor, NumberConstructor], unknown, unknown, "", boolean>;
|
|
160
|
+
readonly native: BooleanConstructor;
|
|
161
|
+
readonly wrapStyle: import("@element-plus/utils").EpPropFinalized<(new (...args: any[]) => string | false | import("vue").CSSProperties | import("vue").StyleValue[]) | (() => import("vue").StyleValue) | (((new (...args: any[]) => string | false | import("vue").CSSProperties | import("vue").StyleValue[]) | (() => import("vue").StyleValue)) | null)[], unknown, unknown, "", boolean>;
|
|
162
|
+
readonly wrapClass: import("@element-plus/utils").EpPropFinalized<readonly [StringConstructor, ArrayConstructor], unknown, unknown, "", boolean>;
|
|
163
|
+
readonly viewClass: import("@element-plus/utils").EpPropFinalized<readonly [StringConstructor, ArrayConstructor], unknown, unknown, "", boolean>;
|
|
164
|
+
readonly viewStyle: import("@element-plus/utils").EpPropFinalized<(new (...args: any[]) => string | false | import("vue").CSSProperties | import("vue").StyleValue[]) | (() => import("vue").StyleValue) | (((new (...args: any[]) => string | false | import("vue").CSSProperties | import("vue").StyleValue[]) | (() => import("vue").StyleValue)) | null)[], unknown, unknown, "", boolean>;
|
|
165
|
+
readonly noresize: BooleanConstructor;
|
|
166
|
+
readonly tag: import("@element-plus/utils").EpPropFinalized<StringConstructor, unknown, unknown, "div", boolean>;
|
|
167
|
+
readonly always: BooleanConstructor;
|
|
168
|
+
readonly minSize: import("@element-plus/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 20, boolean>;
|
|
169
|
+
readonly tabindex: import("@element-plus/utils").EpPropFinalized<readonly [StringConstructor, NumberConstructor], unknown, unknown, undefined, boolean>;
|
|
170
|
+
readonly id: StringConstructor;
|
|
171
|
+
readonly role: StringConstructor;
|
|
172
|
+
}>> & Readonly<{
|
|
173
|
+
onScroll?: ((args_0: {
|
|
174
|
+
scrollTop: number;
|
|
175
|
+
scrollLeft: number;
|
|
176
|
+
}) => any) | undefined;
|
|
177
|
+
"onEnd-reached"?: ((direction: ScrollbarDirection) => any) | undefined;
|
|
178
|
+
}>, {
|
|
179
|
+
wrapRef: import("vue").Ref<HTMLDivElement | undefined, HTMLDivElement | undefined>;
|
|
180
|
+
update: () => void;
|
|
181
|
+
scrollTo: {
|
|
182
|
+
(xCord: number, yCord?: number): void;
|
|
183
|
+
(options: ScrollToOptions): void;
|
|
184
|
+
};
|
|
185
|
+
setScrollTop: (value: number) => void;
|
|
186
|
+
setScrollLeft: (value: number) => void;
|
|
187
|
+
handleScroll: () => void;
|
|
188
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
189
|
+
scroll: (args_0: {
|
|
190
|
+
scrollTop: number;
|
|
191
|
+
scrollLeft: number;
|
|
192
|
+
}) => void;
|
|
193
|
+
"end-reached": (direction: ScrollbarDirection) => void;
|
|
194
|
+
}, string, {
|
|
195
|
+
readonly always: boolean;
|
|
196
|
+
readonly height: import("@element-plus/utils").EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
|
|
197
|
+
readonly maxHeight: import("@element-plus/utils").EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
|
|
198
|
+
readonly tabindex: import("@element-plus/utils").EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
|
|
199
|
+
readonly tag: string;
|
|
200
|
+
readonly minSize: number;
|
|
201
|
+
readonly distance: number;
|
|
202
|
+
readonly wrapStyle: import("vue").StyleValue;
|
|
203
|
+
readonly wrapClass: import("@element-plus/utils").EpPropMergeType<readonly [StringConstructor, ArrayConstructor], unknown, unknown>;
|
|
204
|
+
readonly viewClass: import("@element-plus/utils").EpPropMergeType<readonly [StringConstructor, ArrayConstructor], unknown, unknown>;
|
|
205
|
+
readonly viewStyle: import("vue").StyleValue;
|
|
206
|
+
readonly native: boolean;
|
|
207
|
+
readonly noresize: boolean;
|
|
208
|
+
}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
209
|
+
$slots: {
|
|
210
|
+
default?: (props: {}) => any;
|
|
211
|
+
};
|
|
212
|
+
}) & import("vue").Plugin;
|
|
4
213
|
export default EpScrollbar;
|
|
5
|
-
export { scrollbarEmits }
|
|
6
|
-
export
|
|
7
|
-
export
|
|
214
|
+
export { scrollbarEmits, scrollbarProps };
|
|
215
|
+
export { scrollbarContextKey };
|
|
216
|
+
export { thumbProps };
|
|
217
|
+
export { BAR_MAP, GAP, renderThumbStyle };
|
|
218
|
+
export type { ScrollbarDirection, ScrollbarEmits, ScrollbarInstance };
|
|
@@ -1,12 +1,19 @@
|
|
|
1
|
-
import { ElScrollbar as r } from "element-plus";
|
|
2
|
-
import { withInstall as o } from "../../utils/with-install.js";
|
|
3
1
|
import "@vue/shared";
|
|
4
2
|
import "lodash-unified";
|
|
5
3
|
import "@vueuse/core";
|
|
6
4
|
import "@element-plus/icons-vue";
|
|
7
5
|
import "vue";
|
|
8
|
-
|
|
6
|
+
import { withInstall as o } from "../../utils/vue/install.js";
|
|
7
|
+
import { withInstall as t } from "../../utils/with-install.js";
|
|
8
|
+
import r from "./src/scrollbar.vue.js";
|
|
9
|
+
import { scrollbarEmits as w, scrollbarProps as x } from "./src/scrollbar.js";
|
|
10
|
+
import { thumbProps as I } from "./src/thumb.js";
|
|
11
|
+
const b = o(r), n = t(r, "ep-scrollbar");
|
|
9
12
|
export {
|
|
10
|
-
b as
|
|
11
|
-
|
|
13
|
+
b as ElScrollbar,
|
|
14
|
+
n as EpScrollbar,
|
|
15
|
+
n as default,
|
|
16
|
+
w as scrollbarEmits,
|
|
17
|
+
x as scrollbarProps,
|
|
18
|
+
I as thumbProps
|
|
12
19
|
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { ExtractPublicPropTypes } from 'vue';
|
|
2
|
+
import type Bar from './bar.vue';
|
|
3
|
+
export interface BarProps {
|
|
4
|
+
always?: boolean;
|
|
5
|
+
minSize: number;
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* @deprecated Removed after 3.0.0, Use `BarProps` instead.
|
|
9
|
+
*/
|
|
10
|
+
export declare const barProps: {
|
|
11
|
+
readonly always: import("@element-plus/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
12
|
+
readonly minSize: {
|
|
13
|
+
readonly type: import("vue").PropType<number>;
|
|
14
|
+
readonly required: true;
|
|
15
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
16
|
+
__epPropKey: true;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
/**
|
|
20
|
+
* @deprecated Removed after 3.0.0, Use `BarProps` instead.
|
|
21
|
+
*/
|
|
22
|
+
export type BarPropsPublic = ExtractPublicPropTypes<typeof barProps>;
|
|
23
|
+
export type BarInstance = InstanceType<typeof Bar> & unknown;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import "@vue/shared";
|
|
2
|
+
import "lodash-unified";
|
|
3
|
+
import "@vueuse/core";
|
|
4
|
+
import "@element-plus/icons-vue";
|
|
5
|
+
import { buildProps as r } from "../../../utils/vue/props/runtime.js";
|
|
6
|
+
import "vue";
|
|
7
|
+
const u = r({
|
|
8
|
+
always: {
|
|
9
|
+
type: Boolean,
|
|
10
|
+
default: !0
|
|
11
|
+
},
|
|
12
|
+
minSize: {
|
|
13
|
+
type: Number,
|
|
14
|
+
required: !0
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
export {
|
|
18
|
+
u as barProps
|
|
19
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
2
|
+
readonly always: import("../../../utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
3
|
+
readonly minSize: {
|
|
4
|
+
readonly type: import("vue").PropType<number>;
|
|
5
|
+
readonly required: true;
|
|
6
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
7
|
+
__epPropKey: true;
|
|
8
|
+
};
|
|
9
|
+
}>, {
|
|
10
|
+
handleScroll: (wrap: HTMLDivElement) => void;
|
|
11
|
+
update: () => void;
|
|
12
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
13
|
+
readonly always: import("../../../utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
14
|
+
readonly minSize: {
|
|
15
|
+
readonly type: import("vue").PropType<number>;
|
|
16
|
+
readonly required: true;
|
|
17
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
18
|
+
__epPropKey: true;
|
|
19
|
+
};
|
|
20
|
+
}>> & Readonly<{}>, {
|
|
21
|
+
readonly always: import("../../../utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
22
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
23
|
+
export default _default;
|