antd-solid 0.0.32 → 0.0.34
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/index.esm.js +9 -1
- package/dist/index.umd.js +1 -1
- package/es/hooks/useEllipsisLoading.d.ts +1 -0
- package/es/hooks/useEllipsisLoading.js +11 -0
- package/es/index.d.ts +1 -0
- package/es/index.js +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function useEllipsisLoading(time?: number): import("solid-js").Accessor<string>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { createSignal } from 'solid-js';
|
|
2
|
+
|
|
3
|
+
function useEllipsisLoading(time = 500) {
|
|
4
|
+
const [ellipsis, setEllipsis] = createSignal('');
|
|
5
|
+
setInterval(() => {
|
|
6
|
+
setEllipsis(prev => prev.length >= 3 ? '.' : prev + '.');
|
|
7
|
+
}, time);
|
|
8
|
+
return ellipsis;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export { useEllipsisLoading as default };
|
package/es/index.d.ts
CHANGED
|
@@ -92,6 +92,7 @@ export { default as useFocus } from './hooks/useFocus';
|
|
|
92
92
|
export { default as useVirtualList } from './hooks/useVirtualList';
|
|
93
93
|
export { default as useCounter } from './hooks/useCounter';
|
|
94
94
|
export { default as useMouse } from './hooks/useMouse';
|
|
95
|
+
export { default as useEllipsisLoading } from './hooks/useEllipsisLoading';
|
|
95
96
|
export { setupGlobalDrag } from './utils/setupGlobalDrag';
|
|
96
97
|
export type { ComponentSize } from './types';
|
|
97
98
|
export { default as enUS } from './locale/en_US';
|
package/es/index.js
CHANGED
|
@@ -56,6 +56,7 @@ export { default as useFocus } from './hooks/useFocus.js';
|
|
|
56
56
|
export { default as useVirtualList } from './hooks/useVirtualList.js';
|
|
57
57
|
export { default as useCounter } from './hooks/useCounter.js';
|
|
58
58
|
export { default as useMouse } from './hooks/useMouse.js';
|
|
59
|
+
export { default as useEllipsisLoading } from './hooks/useEllipsisLoading.js';
|
|
59
60
|
export { setupGlobalDrag } from './utils/setupGlobalDrag.js';
|
|
60
61
|
export { default as enUS } from './locale/en_US.js';
|
|
61
62
|
export { default as zhCN } from './locale/zh_CN.js';
|