x-runtime-lib 0.6.35 → 0.6.37
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.js +457 -460
- package/dist/types/element.d.ts +1 -5
- package/dist/utils/misc.d.ts +0 -1
- package/package.json +1 -1
package/dist/types/element.d.ts
CHANGED
|
@@ -7,10 +7,6 @@ type ZTypeBase = {
|
|
|
7
7
|
value: string;
|
|
8
8
|
validator: (v: any) => boolean;
|
|
9
9
|
};
|
|
10
|
-
type ZTypeUndefined = {
|
|
11
|
-
ui: 'undefined';
|
|
12
|
-
default: undefined;
|
|
13
|
-
} & ZTypeBase;
|
|
14
10
|
type ZTypeWord = {
|
|
15
11
|
ui: 'word';
|
|
16
12
|
default: string;
|
|
@@ -23,7 +19,7 @@ type ZTypeNumInput = {
|
|
|
23
19
|
step?: number;
|
|
24
20
|
default: string;
|
|
25
21
|
} & ZTypeBase;
|
|
26
|
-
export type ZType =
|
|
22
|
+
export type ZType = ZTypeWord | ZTypeNumInput;
|
|
27
23
|
export type ZSlot = {
|
|
28
24
|
key: string;
|
|
29
25
|
name: string;
|
package/dist/utils/misc.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
export declare function genId(len: number): string;
|
|
2
|
-
export declare function isEmptyStr(v: unknown): boolean;
|
|
3
2
|
export declare function isPixelStr(v: unknown): boolean;
|
|
4
3
|
export declare function isPercentStr(v: unknown): boolean;
|
|
5
4
|
export declare function parsePixelStr(v: unknown): number | undefined;
|