@jetlinks-web/components 2.0.2-4 → 2.0.2-6

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.
Files changed (38) hide show
  1. package/es/CheckButton/CheckButton.js +1 -1
  2. package/es/ConfigProvider/index.js +1 -1
  3. package/es/FullPage/FullPage.js +1 -1
  4. package/es/Icon/icon.js +1 -2
  5. package/es/ProLayout/Basic/BasicLayout.js +11 -7
  6. package/es/ProLayout/Basic/Header.js +7 -3
  7. package/es/ProLayout/PageContainer/index.js +14 -8
  8. package/es/ProLayout/SiderMenu/BaseMenu.js +37 -14
  9. package/es/ProLayout/SiderMenu/SiderMenu.js +34 -14
  10. package/es/ProLayout/TopHeader/index.js +10 -2
  11. package/es/ProLayout/util.js +5 -5
  12. package/es/ProTable/index.js +140 -135
  13. package/es/Scrollbar/Scrollbar.js +212 -100
  14. package/es/Scrollbar/Thumb.js +189 -10
  15. package/es/Scrollbar/scrollbarProps.js +100 -0
  16. package/es/Scrollbar/thumbProps.js +10 -0
  17. package/es/Search/Advanced/SaveHistory.js +1 -1
  18. package/es/Search/Item.js +1 -1
  19. package/es/Search/Search.js +1 -1
  20. package/lib/CheckButton/CheckButton.js +1 -1
  21. package/lib/FullPage/FullPage.js +1 -1
  22. package/lib/Icon/icon.js +1 -1
  23. package/lib/ProLayout/Basic/BasicLayout.js +10 -6
  24. package/lib/ProLayout/Basic/Header.js +6 -2
  25. package/lib/ProLayout/PageContainer/index.js +11 -7
  26. package/lib/ProLayout/SiderMenu/BaseMenu.js +36 -14
  27. package/lib/ProLayout/SiderMenu/SiderMenu.js +34 -14
  28. package/lib/ProLayout/TopHeader/index.js +8 -1
  29. package/lib/ProLayout/util.js +5 -5
  30. package/lib/ProTable/index.js +139 -134
  31. package/lib/Scrollbar/Scrollbar.js +211 -105
  32. package/lib/Scrollbar/Thumb.js +188 -15
  33. package/lib/Scrollbar/scrollbarProps.js +106 -0
  34. package/lib/Scrollbar/thumbProps.js +16 -0
  35. package/lib/Search/Advanced/SaveHistory.js +1 -1
  36. package/lib/Search/Item.js +1 -1
  37. package/lib/Search/Search.js +1 -1
  38. package/package.json +4 -4
@@ -1,100 +1,212 @@
1
- import { isNumber } from '@jetlinks-web/utils';
2
- export var scrollbarProps = {
3
- /**
4
- * @description height of scrollbar
5
- */
6
- height: {
7
- type: [String, Number],
8
- default: ''
9
- },
10
- /**
11
- * @description max height of scrollbar
12
- */
13
- maxHeight: {
14
- type: [String, Number],
15
- default: ''
16
- },
17
- /**
18
- * @description whether to use the native scrollbar
19
- */
20
- native: {
21
- type: Boolean,
22
- default: false
23
- },
24
- /**
25
- * @description style of wrap
26
- */
27
- wrapStyle: {
28
- type: [String, Object, Array],
29
- default: ''
30
- },
31
- /**
32
- * @description class of wrap
33
- */
34
- wrapClass: {
35
- type: [String, Array],
36
- default: ''
37
- },
38
- /**
39
- * @description class of view
40
- */
41
- viewClass: {
42
- type: [String, Array],
43
- default: ''
44
- },
45
- /**
46
- * @description style of view
47
- */
48
- viewStyle: {
49
- type: [String, Array, Object],
50
- default: ''
51
- },
52
- /**
53
- * @description do not respond to container size changes, if the container size does not change, it is better to set it to optimize performance
54
- */
55
- noresize: Boolean,
56
- /**
57
- * @description element tag of the view
58
- */
59
- tag: {
60
- type: String,
61
- default: 'div'
62
- },
63
- /**
64
- * @description always show
65
- */
66
- always: Boolean,
67
- /**
68
- * @description minimum size of scrollbar
69
- */
70
- minSize: {
71
- type: Number,
72
- default: 20
73
- },
74
- /**
75
- * @description id of view
76
- */
77
- id: String,
78
- /**
79
- * @description role of view
80
- */
81
- role: String,
82
- /**
83
- * @description aria-label of view
84
- */
85
- ariaLabel: String,
86
- /**
87
- * @description aria-orientation of view
88
- */
89
- ariaOrientation: {
90
- type: String,
91
- values: ['horizontal', 'vertical']
92
- }
93
- };
94
- export var scrollbarEmits = {
95
- scroll: function scroll(_ref) {
96
- var scrollTop = _ref.scrollTop,
97
- scrollLeft = _ref.scrollLeft;
98
- return [scrollTop, scrollLeft].every(isNumber);
99
- }
100
- };
1
+ function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) {
2
+ const op = ops[i];
3
+ const fn = ops[i + 1];
4
+ i += 2;
5
+ if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) {
6
+ return undefined;
7
+ }
8
+ if (op === 'access' || op === 'optionalAccess') {
9
+ lastAccessLHS = value;
10
+ value = fn(value);
11
+ }
12
+ else if (op === 'call' || op === 'optionalCall') {
13
+ value = fn((...args) => value.call(lastAccessLHS, ...args));
14
+ lastAccessLHS = undefined;
15
+ }
16
+ } return value; }
17
+ /* Analyzed bindings: {
18
+ "computed": "setup-const",
19
+ "nextTick": "setup-const",
20
+ "onMounted": "setup-const",
21
+ "onUpdated": "setup-const",
22
+ "provide": "setup-const",
23
+ "reactive": "setup-const",
24
+ "ref": "setup-const",
25
+ "watch": "setup-const",
26
+ "useEventListener": "setup-maybe-ref",
27
+ "useResizeObserver": "setup-maybe-ref",
28
+ "isNumber": "setup-maybe-ref",
29
+ "isObject": "setup-maybe-ref",
30
+ "Bar": "setup-const",
31
+ "scrollbarContextKey": "setup-maybe-ref",
32
+ "scrollbarEmits": "setup-maybe-ref",
33
+ "scrollbarProps": "setup-maybe-ref",
34
+ "BarInstance": "setup-maybe-ref",
35
+ "COMPONENT_NAME": "literal-const",
36
+ "props": "setup-reactive-const",
37
+ "emit": "setup-const",
38
+ "stopResizeObserver": "setup-let",
39
+ "stopResizeListener": "setup-let",
40
+ "scrollbarRef": "setup-ref",
41
+ "wrapRef": "setup-ref",
42
+ "resizeRef": "setup-ref",
43
+ "barRef": "setup-ref",
44
+ "wrapStyle": "setup-ref",
45
+ "wrapKls": "setup-ref",
46
+ "resizeKls": "setup-ref",
47
+ "handleScroll": "setup-const",
48
+ "scrollTo": "setup-const",
49
+ "setScrollTop": "setup-const",
50
+ "setScrollLeft": "setup-const",
51
+ "update": "setup-const"
52
+ } */
53
+ import { defineComponent as _defineComponent } from 'vue';
54
+ import { renderSlot as _renderSlot, resolveDynamicComponent as _resolveDynamicComponent, normalizeClass as _normalizeClass, withCtx as _withCtx, openBlock as _openBlock, createBlock as _createBlock, normalizeStyle as _normalizeStyle, createElementVNode as _createElementVNode, createCommentVNode as _createCommentVNode, createElementBlock as _createElementBlock } from "vue";
55
+ import { computed, nextTick, onMounted, onUpdated, provide, reactive, ref, watch, } from 'vue';
56
+ import { useEventListener, useResizeObserver } from '@vueuse/core';
57
+ import { isNumber, isObject } from '@jetlinks-web/utils';
58
+ import Bar from './Bar.js';
59
+ import { scrollbarContextKey } from './constants';
60
+ import { scrollbarEmits, scrollbarProps, } from './scrollbarProps';
61
+ const COMPONENT_NAME = 'JScrollbar';
62
+ const __sfc_main__ = _defineComponent({
63
+ ...{
64
+ name: COMPONENT_NAME,
65
+ },
66
+ props: scrollbarProps,
67
+ emits: scrollbarEmits,
68
+ setup(__props, { expose: __expose, emit: __emit }) {
69
+ const props = __props;
70
+ const emit = __emit;
71
+ let stopResizeObserver = undefined;
72
+ let stopResizeListener = undefined;
73
+ const scrollbarRef = ref();
74
+ const wrapRef = ref();
75
+ const resizeRef = ref();
76
+ const barRef = ref();
77
+ const wrapStyle = computed(() => {
78
+ const style = {};
79
+ if (props.height)
80
+ style.height = `${props.height}px`;
81
+ if (props.maxHeight)
82
+ style.maxHeight = `${props.maxHeight}px`;
83
+ return [props.wrapStyle, style];
84
+ });
85
+ const wrapKls = computed(() => {
86
+ return [
87
+ 'j-scrollbar__wrap',
88
+ 'j-scrollbar__wrap--hidden-default'
89
+ ];
90
+ });
91
+ const resizeKls = computed(() => {
92
+ return ['j-scrollbar__view', props.viewClass];
93
+ });
94
+ const handleScroll = () => {
95
+ if (wrapRef.value) {
96
+ _optionalChain([barRef, 'access', _2 => _2.value, 'optionalAccess', _3 => _3.handleScroll, 'call', _4 => _4(wrapRef.value)]);
97
+ emit('scroll', {
98
+ scrollTop: wrapRef.value.scrollTop,
99
+ scrollLeft: wrapRef.value.scrollLeft,
100
+ });
101
+ }
102
+ };
103
+ function scrollTo(arg1, arg2) {
104
+ if (isObject(arg1)) {
105
+ wrapRef.value.scrollTo(arg1);
106
+ }
107
+ else if (isNumber(arg1) && isNumber(arg2)) {
108
+ wrapRef.value.scrollTo(arg1, arg2);
109
+ }
110
+ }
111
+ const setScrollTop = (value) => {
112
+ if (!isNumber(value)) {
113
+ throw new Error('value must be a number');
114
+ }
115
+ wrapRef.value.scrollTop = value;
116
+ };
117
+ const setScrollLeft = (value) => {
118
+ if (!isNumber(value)) {
119
+ throw new Error(`[${COMPONENT_NAME}] value must be a number`);
120
+ }
121
+ wrapRef.value.scrollLeft = value;
122
+ };
123
+ const update = () => {
124
+ _optionalChain([barRef, 'access', _5 => _5.value, 'optionalAccess', _6 => _6.update, 'call', _7 => _7()]);
125
+ };
126
+ watch(() => props.noresize, (noResize) => {
127
+ if (noResize) {
128
+ _optionalChain([stopResizeObserver, 'optionalCall', _8 => _8()]);
129
+ _optionalChain([stopResizeListener, 'optionalCall', _9 => _9()]);
130
+ }
131
+ else {
132
+ ;
133
+ ({ stop: stopResizeObserver } = useResizeObserver(resizeRef, update));
134
+ stopResizeListener = useEventListener('resize', update);
135
+ }
136
+ }, { immediate: true });
137
+ watch(() => [props.maxHeight, props.height], () => {
138
+ if (!props.native)
139
+ nextTick(() => {
140
+ update();
141
+ if (wrapRef.value) {
142
+ _optionalChain([barRef, 'access', _10 => _10.value, 'optionalAccess', _11 => _11.handleScroll, 'call', _12 => _12(wrapRef.value)]);
143
+ }
144
+ });
145
+ });
146
+ provide(scrollbarContextKey, reactive({
147
+ scrollbarElement: scrollbarRef,
148
+ wrapElement: wrapRef,
149
+ }));
150
+ onMounted(() => {
151
+ if (!props.native)
152
+ nextTick(() => {
153
+ update();
154
+ });
155
+ });
156
+ onUpdated(() => update());
157
+ __expose({
158
+ /** @description scrollbar wrap ref */
159
+ wrapRef,
160
+ /** @description update scrollbar state manually */
161
+ update,
162
+ /** @description scrolls to a particular set of coordinates */
163
+ scrollTo,
164
+ /** @description set distance to scroll top */
165
+ setScrollTop,
166
+ /** @description set distance to scroll left */
167
+ setScrollLeft,
168
+ /** @description handle scroll event */
169
+ handleScroll,
170
+ });
171
+ return (_ctx, _cache) => {
172
+ return (_openBlock(), _createElementBlock("div", {
173
+ ref_key: "scrollbarRef",
174
+ ref: scrollbarRef,
175
+ class: "j-scrollbar"
176
+ }, [
177
+ _createElementVNode("div", {
178
+ ref_key: "wrapRef",
179
+ ref: wrapRef,
180
+ class: _normalizeClass(wrapKls.value),
181
+ style: _normalizeStyle(wrapStyle.value),
182
+ onScroll: handleScroll
183
+ }, [
184
+ (_openBlock(), _createBlock(_resolveDynamicComponent(_ctx.tag), {
185
+ id: _ctx.id,
186
+ ref_key: "resizeRef",
187
+ ref: resizeRef,
188
+ class: _normalizeClass(resizeKls.value),
189
+ role: _ctx.role,
190
+ "aria-label": _ctx.ariaLabel,
191
+ "aria-orientation": _ctx.ariaOrientation
192
+ }, {
193
+ default: _withCtx(() => [
194
+ _renderSlot(_ctx.$slots, "default")
195
+ ]),
196
+ _: 3 /* FORWARDED */
197
+ }, 8 /* PROPS */, ["id", "class", "role", "aria-label", "aria-orientation"]))
198
+ ], 38 /* CLASS, STYLE, NEED_HYDRATION */),
199
+ (!_ctx.native)
200
+ ? (_openBlock(), _createBlock(Bar, {
201
+ key: 0,
202
+ ref_key: "barRef",
203
+ ref: barRef,
204
+ always: _ctx.always,
205
+ "min-size": _ctx.minSize
206
+ }, null, 8 /* PROPS */, ["always", "min-size"]))
207
+ : _createCommentVNode("v-if", true)
208
+ ], 512 /* NEED_PATCH */));
209
+ };
210
+ }
211
+ });
212
+ export default __sfc_main__;
@@ -1,10 +1,189 @@
1
- export var thumbProps = {
2
- vertical: Boolean,
3
- size: String,
4
- move: Number,
5
- ratio: {
6
- type: Number,
7
- required: true
8
- },
9
- always: Boolean
10
- };
1
+ function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) {
2
+ const op = ops[i];
3
+ const fn = ops[i + 1];
4
+ i += 2;
5
+ if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) {
6
+ return undefined;
7
+ }
8
+ if (op === 'access' || op === 'optionalAccess') {
9
+ lastAccessLHS = value;
10
+ value = fn(value);
11
+ }
12
+ else if (op === 'call' || op === 'optionalCall') {
13
+ value = fn((...args) => value.call(lastAccessLHS, ...args));
14
+ lastAccessLHS = undefined;
15
+ }
16
+ } return value; }
17
+ /* Analyzed bindings: {
18
+ "computed": "setup-const",
19
+ "inject": "setup-const",
20
+ "onBeforeUnmount": "setup-const",
21
+ "ref": "setup-const",
22
+ "toRef": "setup-const",
23
+ "useEventListener": "setup-maybe-ref",
24
+ "isClient": "setup-maybe-ref",
25
+ "scrollbarContextKey": "setup-maybe-ref",
26
+ "BAR_MAP": "setup-maybe-ref",
27
+ "renderThumbStyle": "setup-maybe-ref",
28
+ "thumbProps": "setup-maybe-ref",
29
+ "props": "setup-reactive-const",
30
+ "scrollbar": "setup-maybe-ref",
31
+ "instance": "setup-ref",
32
+ "thumb": "setup-ref",
33
+ "thumbState": "setup-ref",
34
+ "visible": "setup-ref",
35
+ "cursorDown": "setup-let",
36
+ "cursorLeave": "setup-let",
37
+ "originalOnSelectStart": "setup-let",
38
+ "bar": "setup-ref",
39
+ "thumbStyle": "setup-ref",
40
+ "offsetRatio": "setup-ref",
41
+ "clickThumbHandler": "setup-const",
42
+ "clickTrackHandler": "setup-const",
43
+ "startDrag": "setup-const",
44
+ "mouseMoveDocumentHandler": "setup-const",
45
+ "mouseUpDocumentHandler": "setup-const",
46
+ "mouseMoveScrollbarHandler": "setup-const",
47
+ "mouseLeaveScrollbarHandler": "setup-const",
48
+ "restoreOnselectstart": "setup-const"
49
+ } */
50
+ import { defineComponent as _defineComponent } from 'vue';
51
+ import { normalizeStyle as _normalizeStyle, createElementVNode as _createElementVNode, vShow as _vShow, normalizeClass as _normalizeClass, withDirectives as _withDirectives, Transition as _Transition, withCtx as _withCtx, openBlock as _openBlock, createBlock as _createBlock } from "vue";
52
+ import { computed, inject, onBeforeUnmount, ref, toRef } from 'vue';
53
+ import { useEventListener } from '@vueuse/core';
54
+ import { isClient } from '@jetlinks-web/utils';
55
+ import { scrollbarContextKey } from './constants';
56
+ import { BAR_MAP, renderThumbStyle } from './util';
57
+ import { thumbProps } from './thumbProps';
58
+ const __sfc_main__ = _defineComponent({
59
+ props: thumbProps,
60
+ setup(__props) {
61
+ const props = __props;
62
+ const scrollbar = inject(scrollbarContextKey);
63
+ if (!scrollbar)
64
+ throw new Error('can not inject scrollbar context');
65
+ const instance = ref();
66
+ const thumb = ref();
67
+ const thumbState = ref({});
68
+ const visible = ref(false);
69
+ let cursorDown = false;
70
+ let cursorLeave = false;
71
+ let originalOnSelectStart = isClient ? document.onselectstart : null;
72
+ const bar = computed(() => BAR_MAP[props.vertical ? 'vertical' : 'horizontal']);
73
+ const thumbStyle = computed(() => renderThumbStyle({
74
+ size: props.size,
75
+ move: props.move,
76
+ bar: bar.value,
77
+ }));
78
+ const offsetRatio = computed(() => instance.value[bar.value.offset] ** 2 /
79
+ scrollbar.wrapElement[bar.value.scrollSize] /
80
+ props.ratio /
81
+ Thumb.value[bar.value.offset]);
82
+ const clickThumbHandler = (e) => {
83
+ // prevent click event of middle and right button
84
+ e.stopPropagation();
85
+ if (e.ctrlKey || [1, 2].includes(e.button))
86
+ return;
87
+ _optionalChain([window, 'access', _2 => _2.getSelection, 'call', _3 => _3(), 'optionalAccess', _4 => _4.removeAllRanges, 'call', _5 => _5()]);
88
+ startDrag(e);
89
+ const el = e.currentTarget;
90
+ if (!el)
91
+ return;
92
+ thumbState.value[bar.value.axis] =
93
+ el[bar.value.offset] -
94
+ (e[bar.value.client] - el.getBoundingClientRect()[bar.value.direction]);
95
+ };
96
+ const clickTrackHandler = (e) => {
97
+ if (!Thumb.value || !instance.value || !scrollbar.wrapElement)
98
+ return;
99
+ const offset = Math.abs((e.target).getBoundingClientRect()[bar.value.direction] -
100
+ e[bar.value.client]);
101
+ const thumbHalf = Thumb.value[bar.value.offset] / 2;
102
+ const thumbPositionPercentage = ((offset - thumbHalf) * 100 * offsetRatio.value) /
103
+ instance.value[bar.value.offset];
104
+ scrollbar.wrapElement[bar.value.scroll] =
105
+ (thumbPositionPercentage * scrollbar.wrapElement[bar.value.scrollSize]) /
106
+ 100;
107
+ };
108
+ const startDrag = (e) => {
109
+ e.stopImmediatePropagation();
110
+ cursorDown = true;
111
+ document.addEventListener('mousemove', mouseMoveDocumentHandler);
112
+ document.addEventListener('mouseup', mouseUpDocumentHandler);
113
+ originalOnSelectStart = document.onselectstart;
114
+ document.onselectstart = () => false;
115
+ };
116
+ const mouseMoveDocumentHandler = (e) => {
117
+ if (!instance.value || !Thumb.value)
118
+ return;
119
+ if (cursorDown === false)
120
+ return;
121
+ const prevPage = thumbState.value[bar.value.axis];
122
+ if (!prevPage)
123
+ return;
124
+ const offset = (instance.value.getBoundingClientRect()[bar.value.direction] -
125
+ e[bar.value.client]) *
126
+ -1;
127
+ const thumbClickPosition = Thumb.value[bar.value.offset] - prevPage;
128
+ const thumbPositionPercentage = ((offset - thumbClickPosition) * 100 * offsetRatio.value) /
129
+ instance.value[bar.value.offset];
130
+ scrollbar.wrapElement[bar.value.scroll] =
131
+ (thumbPositionPercentage * scrollbar.wrapElement[bar.value.scrollSize]) /
132
+ 100;
133
+ };
134
+ const mouseUpDocumentHandler = () => {
135
+ cursorDown = false;
136
+ thumbState.value[bar.value.axis] = 0;
137
+ document.removeEventListener('mousemove', mouseMoveDocumentHandler);
138
+ document.removeEventListener('mouseup', mouseUpDocumentHandler);
139
+ restoreOnselectstart();
140
+ if (cursorLeave)
141
+ visible.value = false;
142
+ };
143
+ const mouseMoveScrollbarHandler = () => {
144
+ cursorLeave = false;
145
+ visible.value = !!props.size;
146
+ };
147
+ const mouseLeaveScrollbarHandler = () => {
148
+ cursorLeave = true;
149
+ visible.value = cursorDown;
150
+ };
151
+ onBeforeUnmount(() => {
152
+ restoreOnselectstart();
153
+ document.removeEventListener('mouseup', mouseUpDocumentHandler);
154
+ });
155
+ const restoreOnselectstart = () => {
156
+ if (document.onselectstart !== originalOnSelectStart)
157
+ document.onselectstart = originalOnSelectStart;
158
+ };
159
+ useEventListener(toRef(scrollbar, 'scrollbarElement'), 'mousemove', mouseMoveScrollbarHandler);
160
+ useEventListener(toRef(scrollbar, 'scrollbarElement'), 'mouseleave', mouseLeaveScrollbarHandler);
161
+ return (_ctx, _cache) => {
162
+ return (_openBlock(), _createBlock(_Transition, {
163
+ name: "j-scrollbar-fade",
164
+ persisted: ""
165
+ }, {
166
+ default: _withCtx(() => [
167
+ _withDirectives(_createElementVNode("div", {
168
+ ref_key: "instance",
169
+ ref: instance,
170
+ class: _normalizeClass(['j-scrollbar__bar', props.vertical ? 'is-vertical' : 'is-horizontal']),
171
+ onMousedown: clickTrackHandler
172
+ }, [
173
+ _createElementVNode("div", {
174
+ ref_key: "thumb",
175
+ ref: thumb,
176
+ class: "j-scrollbar__thumb",
177
+ style: _normalizeStyle(thumbStyle.value),
178
+ onMousedown: clickThumbHandler
179
+ }, null, 36 /* STYLE, NEED_HYDRATION */)
180
+ ], 34 /* CLASS, NEED_HYDRATION */), [
181
+ [_vShow, _ctx.always || visible.value]
182
+ ])
183
+ ]),
184
+ _: 1 /* STABLE */
185
+ }));
186
+ };
187
+ }
188
+ });
189
+ export default __sfc_main__;
@@ -0,0 +1,100 @@
1
+ import { isNumber } from '@jetlinks-web/utils';
2
+ export var scrollbarProps = {
3
+ /**
4
+ * @description height of scrollbar
5
+ */
6
+ height: {
7
+ type: [String, Number],
8
+ default: ''
9
+ },
10
+ /**
11
+ * @description max height of scrollbar
12
+ */
13
+ maxHeight: {
14
+ type: [String, Number],
15
+ default: ''
16
+ },
17
+ /**
18
+ * @description whether to use the native scrollbar
19
+ */
20
+ native: {
21
+ type: Boolean,
22
+ default: false
23
+ },
24
+ /**
25
+ * @description style of wrap
26
+ */
27
+ wrapStyle: {
28
+ type: [String, Object, Array],
29
+ default: ''
30
+ },
31
+ /**
32
+ * @description class of wrap
33
+ */
34
+ wrapClass: {
35
+ type: [String, Array],
36
+ default: ''
37
+ },
38
+ /**
39
+ * @description class of view
40
+ */
41
+ viewClass: {
42
+ type: [String, Array],
43
+ default: ''
44
+ },
45
+ /**
46
+ * @description style of view
47
+ */
48
+ viewStyle: {
49
+ type: [String, Array, Object],
50
+ default: ''
51
+ },
52
+ /**
53
+ * @description do not respond to container size changes, if the container size does not change, it is better to set it to optimize performance
54
+ */
55
+ noresize: Boolean,
56
+ /**
57
+ * @description element tag of the view
58
+ */
59
+ tag: {
60
+ type: String,
61
+ default: 'div'
62
+ },
63
+ /**
64
+ * @description always show
65
+ */
66
+ always: Boolean,
67
+ /**
68
+ * @description minimum size of scrollbar
69
+ */
70
+ minSize: {
71
+ type: Number,
72
+ default: 20
73
+ },
74
+ /**
75
+ * @description id of view
76
+ */
77
+ id: String,
78
+ /**
79
+ * @description role of view
80
+ */
81
+ role: String,
82
+ /**
83
+ * @description aria-label of view
84
+ */
85
+ ariaLabel: String,
86
+ /**
87
+ * @description aria-orientation of view
88
+ */
89
+ ariaOrientation: {
90
+ type: String,
91
+ values: ['horizontal', 'vertical']
92
+ }
93
+ };
94
+ export var scrollbarEmits = {
95
+ scroll: function scroll(_ref) {
96
+ var scrollTop = _ref.scrollTop,
97
+ scrollLeft = _ref.scrollLeft;
98
+ return [scrollTop, scrollLeft].every(isNumber);
99
+ }
100
+ };
@@ -0,0 +1,10 @@
1
+ export var thumbProps = {
2
+ vertical: Boolean,
3
+ size: String,
4
+ move: Number,
5
+ ratio: {
6
+ type: Number,
7
+ required: true
8
+ },
9
+ always: Boolean
10
+ };
@@ -21,7 +21,7 @@
21
21
  } */
22
22
  import { defineComponent as _defineComponent } from 'vue';
23
23
  import { unref as _unref, createVNode as _createVNode, withCtx as _withCtx, createTextVNode as _createTextVNode, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, createBlock as _createBlock, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from "vue";
24
- const _withScopeId = n => (_pushScopeId("data-v-1712538746514"), n = n(), _popScopeId(), n);
24
+ const _withScopeId = n => (_pushScopeId("data-v-1712542099782"), n = n(), _popScopeId(), n);
25
25
  const _hoisted_1 = {
26
26
  key: 0,
27
27
  style: { "width": "240px" }
package/es/Search/Item.js CHANGED
@@ -78,7 +78,7 @@ function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]
78
78
  } */
79
79
  import { defineComponent as _defineComponent } from 'vue';
80
80
  import { unref as _unref, openBlock as _openBlock, createBlock as _createBlock, createCommentVNode as _createCommentVNode, toDisplayString as _toDisplayString, createElementBlock as _createElementBlock, createVNode as _createVNode, Fragment as _Fragment, normalizeStyle as _normalizeStyle, mergeProps as _mergeProps, resolveDynamicComponent as _resolveDynamicComponent, withCtx as _withCtx, createElementVNode as _createElementVNode, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from "vue";
81
- const _withScopeId = n => (_pushScopeId("data-v-1712538746157"), n = n(), _popScopeId(), n);
81
+ const _withScopeId = n => (_pushScopeId("data-v-1712542099380"), n = n(), _popScopeId(), n);
82
82
  const _hoisted_1 = { class: "JSearch-item" };
83
83
  const _hoisted_2 = {
84
84
  key: 0,
@@ -36,7 +36,7 @@
36
36
  } */
37
37
  import { defineComponent as _defineComponent } from 'vue';
38
38
  import { renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, createVNode as _createVNode, unref as _unref, withCtx as _withCtx, createBlock as _createBlock, renderSlot as _renderSlot, toDisplayString as _toDisplayString, createTextVNode as _createTextVNode, normalizeStyle as _normalizeStyle, createElementVNode as _createElementVNode, normalizeClass as _normalizeClass, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from "vue";
39
- const _withScopeId = n => (_pushScopeId("data-v-1712538746257"), n = n(), _popScopeId(), n);
39
+ const _withScopeId = n => (_pushScopeId("data-v-1712542099481"), n = n(), _popScopeId(), n);
40
40
  const _hoisted_1 = { class: "JSearch-content simple" };
41
41
  const _hoisted_2 = { class: "JSearch-items" };
42
42
  import { Button, Row, Col, Form, FormItemRest, } from 'ant-design-vue';
@@ -20,7 +20,7 @@
20
20
  } */
21
21
  import { defineComponent as _defineComponent } from 'vue';
22
22
  import { renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, toDisplayString as _toDisplayString, normalizeClass as _normalizeClass, normalizeStyle as _normalizeStyle, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from "vue";
23
- const _withScopeId = n => (_pushScopeId("data-v-1712538744762"), n = n(), _popScopeId(), n);
23
+ const _withScopeId = n => (_pushScopeId("data-v-1712542098705"), n = n(), _popScopeId(), n);
24
24
  const _hoisted_1 = ["onClick"];
25
25
  import { computed, ref, watch } from 'vue';
26
26
  import { isArray } from '@jetlinks-web/utils';