cc1-ui 1.0.9 → 1.0.10
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/cc1-ui.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineAsyncComponent } from 'vue';
|
|
2
2
|
|
|
3
|
-
const DRscroll = () => import('./scroll-
|
|
3
|
+
const DRscroll = () => import('./scroll-eue6GI9w.js');
|
|
4
4
|
const VButton = () => defineAsyncComponent(() => import('./index-lDlR9NjA.js'));
|
|
5
5
|
const VSwitch = () => defineAsyncComponent(() => import('./index-BvvdDtUd.js'));
|
|
6
6
|
const VScale = () => defineAsyncComponent(() => import('./index-l4J1-e0K.js'));
|
package/dist/index.d.ts
CHANGED
|
@@ -16,9 +16,9 @@ declare module 'vue' {
|
|
|
16
16
|
VCircle:typeof import('./components/Circle/index.vue')['default']
|
|
17
17
|
VIcon:typeof import('./components/Icon/index.vue')['default']
|
|
18
18
|
VMask:typeof import('./components/Mask/index.vue')['default']
|
|
19
|
-
VScale:typeof import('./components/Scale/index.vue')['default']
|
|
20
|
-
VSelect:typeof import('./components/Select/index.vue')['default']
|
|
21
19
|
VSIcon:typeof import('./components/SIcon/index.vue')['default']
|
|
20
|
+
VSelect:typeof import('./components/Select/index.vue')['default']
|
|
21
|
+
VScale:typeof import('./components/Scale/index.vue')['default']
|
|
22
22
|
VSwitch:typeof import('./components/Switch/index.vue')['default']
|
|
23
23
|
}
|
|
24
24
|
export interface ComponentCustomProperties {
|
|
@@ -220,9 +220,11 @@ class InertiaScroller {
|
|
|
220
220
|
const maxScrollLeft = scrollWidth - clientWidth;
|
|
221
221
|
const maxScrollTop = scrollHeight - clientHeight;
|
|
222
222
|
const isLeft = scrollLeft <= 0 || maxScrollLeft <= 0;
|
|
223
|
-
const
|
|
223
|
+
const scrollRight = Math.abs(scrollLeft + clientWidth - scrollWidth);
|
|
224
|
+
const isRight = scrollRight < 1;
|
|
224
225
|
const isTop = scrollTop <= 0 || maxScrollTop <= 0;
|
|
225
|
-
const
|
|
226
|
+
const scrollBottom = Math.abs(scrollTop + clientHeight - scrollHeight);
|
|
227
|
+
const isBottom = scrollBottom < 1;
|
|
226
228
|
const val = {
|
|
227
229
|
isLeft,
|
|
228
230
|
isRight,
|
|
@@ -230,8 +232,8 @@ class InertiaScroller {
|
|
|
230
232
|
isBottom,
|
|
231
233
|
scrollLeft,
|
|
232
234
|
scrollTop,
|
|
233
|
-
scrollRight
|
|
234
|
-
scrollBottom
|
|
235
|
+
scrollRight,
|
|
236
|
+
scrollBottom,
|
|
235
237
|
clientHeight,
|
|
236
238
|
clientWidth,
|
|
237
239
|
scrollHeight,
|