cdui-js 1.0.27 → 1.0.28
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/package.json +1 -1
- package/src/reactive.ts +5 -19
package/package.json
CHANGED
package/src/reactive.ts
CHANGED
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
const getOwnPropertyNames = Object.getOwnPropertyNames;
|
|
1
|
+
import { createEffect, createSignal, createUniqueId, splitProps } from 'solid-js';
|
|
4
2
|
|
|
5
3
|
export const defineProperty = Object.defineProperty;
|
|
6
4
|
export const defineProperties = Object.defineProperties;
|
|
@@ -9,18 +7,19 @@ export const isArray = Array.isArray;
|
|
|
9
7
|
|
|
10
8
|
export {
|
|
11
9
|
type JSX,
|
|
10
|
+
batch,
|
|
12
11
|
children,
|
|
13
12
|
createComponent,
|
|
14
13
|
createEffect,
|
|
15
14
|
createMemo,
|
|
16
15
|
createContext,
|
|
17
16
|
createSignal,
|
|
18
|
-
|
|
19
|
-
splitProps,
|
|
17
|
+
lazy,
|
|
20
18
|
onMount,
|
|
21
19
|
onCleanup,
|
|
20
|
+
splitProps,
|
|
22
21
|
untrack,
|
|
23
|
-
|
|
22
|
+
useContext,
|
|
24
23
|
} from 'solid-js';
|
|
25
24
|
|
|
26
25
|
export { hydrate, render } from 'solid-js/web';
|
|
@@ -495,16 +494,3 @@ export const createFetcher = <T>(asyncLoad: () => Promise<T>, ssr_cache?: string
|
|
|
495
494
|
},
|
|
496
495
|
) as unknown as FetcherResult<T>;
|
|
497
496
|
};
|
|
498
|
-
|
|
499
|
-
/**
|
|
500
|
-
* 延迟加载组件
|
|
501
|
-
*
|
|
502
|
-
* @param importFn 按需导入的组件 import('...')
|
|
503
|
-
*/
|
|
504
|
-
export const LazyComponent = (
|
|
505
|
-
importFn: () => Promise<{
|
|
506
|
-
default: Component<any>;
|
|
507
|
-
}>,
|
|
508
|
-
) => {
|
|
509
|
-
return lazy(importFn);
|
|
510
|
-
};
|