x-runtime-lib 0.5.1 → 0.5.2
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/components/element/container/v1/index.vue.d.ts +17 -0
- package/dist/composables/element/basic/{border.d.ts → borderV1.d.ts} +1 -1
- package/dist/composables/element/basic/{margin.d.ts → marginV1.d.ts} +1 -1
- package/dist/composables/element/basic/{padding.d.ts → paddingV1.d.ts} +1 -1
- package/dist/composables/element/basic/{size.d.ts → sizeV1.d.ts} +1 -1
- package/dist/element/_common/keys.d.ts +4 -0
- package/dist/element/_common/props/margin/v1/index.d.ts +3 -0
- package/dist/element/_common/props/padding/v1/index.d.ts +3 -0
- package/dist/element/_common/props/size/v1/index.d.ts +3 -0
- package/dist/element/basic/container/v1/index.d.ts +3 -0
- package/dist/element/index.d.ts +1 -1
- package/dist/{i18n-en-j2twg2xy.js → i18n-en-gana12hn.js} +9 -1
- package/dist/{i18n-zhHans-hdbgtmk2.js → i18n-zhHans-elu3m97j.js} +9 -1
- package/dist/index.js +1670 -1481
- package/dist/types/element.d.ts +65 -18
- package/dist/utils/provideInject.d.ts +2 -2
- package/package.json +1 -1
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { BaseProps } from '../../../../types';
|
|
2
|
+
declare function __VLS_template(): {
|
|
3
|
+
slots: {
|
|
4
|
+
default?(_: {}): any;
|
|
5
|
+
};
|
|
6
|
+
refs: {};
|
|
7
|
+
attrs: Partial<{}>;
|
|
8
|
+
};
|
|
9
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
10
|
+
declare const __VLS_component: import("vue").DefineComponent<BaseProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<BaseProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
11
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
12
|
+
export default _default;
|
|
13
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
14
|
+
new (): {
|
|
15
|
+
$slots: S;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { CSSProperties } from 'vue';
|
|
2
2
|
import { BaseProps } from '../../../types';
|
|
3
|
-
export declare function
|
|
3
|
+
export declare function useBorderV1(props: BaseProps): {
|
|
4
4
|
borderStyle: import("vue").ComputedRef<any>;
|
|
5
5
|
borderWidth: import("vue").ComputedRef<any>;
|
|
6
6
|
borderColor: import("vue").ComputedRef<any>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { CSSProperties } from 'vue';
|
|
2
2
|
import { BaseProps } from '../../../types';
|
|
3
|
-
export declare function
|
|
3
|
+
export declare function useMarginV1(props: BaseProps): {
|
|
4
4
|
marginTop: import("vue").ComputedRef<any>;
|
|
5
5
|
marginLeft: import("vue").ComputedRef<any>;
|
|
6
6
|
marginBottom: import("vue").ComputedRef<any>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { CSSProperties } from 'vue';
|
|
2
2
|
import { BaseProps } from '../../../types';
|
|
3
|
-
export declare function
|
|
3
|
+
export declare function usePaddingV1(props: BaseProps): {
|
|
4
4
|
paddingTop: import("vue").ComputedRef<any>;
|
|
5
5
|
paddingLeft: import("vue").ComputedRef<any>;
|
|
6
6
|
paddingBottom: import("vue").ComputedRef<any>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { CSSProperties, Ref } from 'vue';
|
|
2
2
|
import { BaseProps, Mode } from '../../../types';
|
|
3
|
-
export declare function
|
|
3
|
+
export declare function useSizeV1(mode: Mode, device: Ref<any>, props: BaseProps): {
|
|
4
4
|
width: import("vue").ComputedRef<any>;
|
|
5
5
|
minWidth: import("vue").ComputedRef<any>;
|
|
6
6
|
maxWidth: import("vue").ComputedRef<any>;
|
package/dist/element/index.d.ts
CHANGED
|
@@ -5,12 +5,15 @@ const t = {
|
|
|
5
5
|
backgroundColor: "Background Color",
|
|
6
6
|
basic: "Basic",
|
|
7
7
|
block: "Block",
|
|
8
|
+
bottom: "Bottom",
|
|
8
9
|
button: "Button",
|
|
9
10
|
circularRef: "Circular Reference",
|
|
10
11
|
click: "Click",
|
|
11
12
|
comfortable: "Comfortable",
|
|
13
|
+
comp: "Comp",
|
|
12
14
|
compNotAvail: "Comp Not Available",
|
|
13
15
|
compact: "Compact",
|
|
16
|
+
container: "Container",
|
|
14
17
|
default: "Default",
|
|
15
18
|
density: "Density",
|
|
16
19
|
disabled: "Disabled",
|
|
@@ -20,20 +23,25 @@ const t = {
|
|
|
20
23
|
globalSettings: "Global Settings",
|
|
21
24
|
height: "Height",
|
|
22
25
|
id: "ID",
|
|
26
|
+
left: "Left",
|
|
27
|
+
margin: "Margin",
|
|
23
28
|
maxHeight: "Max Height",
|
|
24
29
|
maxWidth: "Max Width",
|
|
25
30
|
minHeight: "Min Height",
|
|
26
31
|
minWidth: "Min Width",
|
|
27
32
|
name: "Name",
|
|
28
33
|
outlined: "Outlined",
|
|
34
|
+
padding: "Padding",
|
|
29
35
|
percent: "Percent",
|
|
30
36
|
pixel: "Pixel",
|
|
31
37
|
plain: "Plain",
|
|
32
38
|
ref: "Reference",
|
|
39
|
+
right: "Right",
|
|
33
40
|
settings: "Settings",
|
|
41
|
+
size: "Size",
|
|
34
42
|
text: "Text",
|
|
35
43
|
tonal: "Tonal",
|
|
36
|
-
|
|
44
|
+
top: "Top",
|
|
37
45
|
variant: "Variant",
|
|
38
46
|
width: "Width"
|
|
39
47
|
}
|
|
@@ -5,12 +5,15 @@ const t = {
|
|
|
5
5
|
backgroundColor: "背景颜色",
|
|
6
6
|
basic: "基本",
|
|
7
7
|
block: "块",
|
|
8
|
+
bottom: "底部",
|
|
8
9
|
button: "按钮",
|
|
9
10
|
circularRef: "循环引用",
|
|
10
11
|
click: "单击",
|
|
11
12
|
comfortable: "舒适",
|
|
13
|
+
comp: "组件",
|
|
12
14
|
compNotAvail: "组件不可用",
|
|
13
15
|
compact: "紧凑",
|
|
16
|
+
container: "容器",
|
|
14
17
|
default: "缺省",
|
|
15
18
|
density: "密度",
|
|
16
19
|
disabled: "禁用",
|
|
@@ -20,20 +23,25 @@ const t = {
|
|
|
20
23
|
globalSettings: "全局设置",
|
|
21
24
|
height: "高度",
|
|
22
25
|
id: "ID",
|
|
26
|
+
left: "左边",
|
|
27
|
+
margin: "外边距",
|
|
23
28
|
maxHeight: "最大高度",
|
|
24
29
|
maxWidth: "最大宽度",
|
|
25
30
|
minHeight: "最小高度",
|
|
26
31
|
minWidth: "最小宽度",
|
|
27
32
|
name: "名称",
|
|
28
33
|
outlined: "轮廓",
|
|
34
|
+
padding: "内边距",
|
|
29
35
|
percent: "百分比",
|
|
30
36
|
pixel: "像素",
|
|
31
37
|
plain: "朴素",
|
|
32
38
|
ref: "引用",
|
|
39
|
+
right: "右边",
|
|
33
40
|
settings: "设置",
|
|
41
|
+
size: "大小",
|
|
34
42
|
text: "文本",
|
|
35
43
|
tonal: "色调",
|
|
36
|
-
|
|
44
|
+
top: "顶部",
|
|
37
45
|
variant: "变种",
|
|
38
46
|
width: "宽度"
|
|
39
47
|
}
|