straw-ui-vue 0.1.18 → 0.1.19
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/st-divider/context.d.ts +6 -0
- package/dist/components/st-divider/index.d.ts +61 -0
- package/dist/components/st-divider/st-divider-content.d.ts +11 -0
- package/dist/components/st-divider/st-divider-line.d.ts +11 -0
- package/dist/components/st-divider/types.d.ts +47 -1
- package/dist/index.d.ts +2 -0
- package/dist/straw-ui.js +364 -296
- package/dist/utils/device.d.ts +69 -0
- package/package.json +1 -1
- /package/dist/{utils/directive → directive}/index.d.ts +0 -0
- /package/dist/{utils/directive → directive}/types.d.ts +0 -0
- /package/dist/{utils/directive → directive}/v-intersection.d.ts +0 -0
- /package/dist/{utils/directive → directive}/v-resize.d.ts +0 -0
- /package/dist/utils/{utils/id.d.ts → id.d.ts} +0 -0
|
@@ -24,6 +24,67 @@ export declare const StDivider: {
|
|
|
24
24
|
contentPosition: import('./types.d.ts').StDividerContentPosition;
|
|
25
25
|
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
26
26
|
$slots: import('./types.d.ts').StDividerSlots;
|
|
27
|
+
}) & {
|
|
28
|
+
StDividerLine: {
|
|
29
|
+
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('./types.d.ts').StDividerLineProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
30
|
+
P: {};
|
|
31
|
+
B: {};
|
|
32
|
+
D: {};
|
|
33
|
+
C: {};
|
|
34
|
+
M: {};
|
|
35
|
+
Defaults: {};
|
|
36
|
+
}, Readonly<import('./types.d.ts').StDividerLineProps> & Readonly<{}>, {}, {}, {}, {}, {}>;
|
|
37
|
+
__isFragment?: never;
|
|
38
|
+
__isTeleport?: never;
|
|
39
|
+
__isSuspense?: never;
|
|
40
|
+
} & import('vue').ComponentOptionsBase<Readonly<import('./types.d.ts').StDividerLineProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
41
|
+
$slots: import('./types.d.ts').StDividerLineSlots;
|
|
42
|
+
});
|
|
43
|
+
StDividerContent: {
|
|
44
|
+
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('./types.d.ts').StDividerContentProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
45
|
+
P: {};
|
|
46
|
+
B: {};
|
|
47
|
+
D: {};
|
|
48
|
+
C: {};
|
|
49
|
+
M: {};
|
|
50
|
+
Defaults: {};
|
|
51
|
+
}, Readonly<import('./types.d.ts').StDividerContentProps> & Readonly<{}>, {}, {}, {}, {}, {}>;
|
|
52
|
+
__isFragment?: never;
|
|
53
|
+
__isTeleport?: never;
|
|
54
|
+
__isSuspense?: never;
|
|
55
|
+
} & import('vue').ComponentOptionsBase<Readonly<import('./types.d.ts').StDividerContentProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
56
|
+
$slots: import('./types.d.ts').StDividerContentSlots;
|
|
57
|
+
});
|
|
58
|
+
};
|
|
59
|
+
export declare const StDividerLine: {
|
|
60
|
+
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('./types.d.ts').StDividerLineProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
61
|
+
P: {};
|
|
62
|
+
B: {};
|
|
63
|
+
D: {};
|
|
64
|
+
C: {};
|
|
65
|
+
M: {};
|
|
66
|
+
Defaults: {};
|
|
67
|
+
}, Readonly<import('./types.d.ts').StDividerLineProps> & Readonly<{}>, {}, {}, {}, {}, {}>;
|
|
68
|
+
__isFragment?: never;
|
|
69
|
+
__isTeleport?: never;
|
|
70
|
+
__isSuspense?: never;
|
|
71
|
+
} & import('vue').ComponentOptionsBase<Readonly<import('./types.d.ts').StDividerLineProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
72
|
+
$slots: import('./types.d.ts').StDividerLineSlots;
|
|
73
|
+
});
|
|
74
|
+
export declare const StDividerContent: {
|
|
75
|
+
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('./types.d.ts').StDividerContentProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
76
|
+
P: {};
|
|
77
|
+
B: {};
|
|
78
|
+
D: {};
|
|
79
|
+
C: {};
|
|
80
|
+
M: {};
|
|
81
|
+
Defaults: {};
|
|
82
|
+
}, Readonly<import('./types.d.ts').StDividerContentProps> & Readonly<{}>, {}, {}, {}, {}, {}>;
|
|
83
|
+
__isFragment?: never;
|
|
84
|
+
__isTeleport?: never;
|
|
85
|
+
__isSuspense?: never;
|
|
86
|
+
} & import('vue').ComponentOptionsBase<Readonly<import('./types.d.ts').StDividerContentProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
87
|
+
$slots: import('./types.d.ts').StDividerContentSlots;
|
|
27
88
|
});
|
|
28
89
|
export default StDivider;
|
|
29
90
|
export type * from './types.d.ts';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { StDividerContentProps, StDividerContentSlots } from './types.d.ts';
|
|
2
|
+
type __VLS_Slots = StDividerContentSlots;
|
|
3
|
+
declare const __VLS_base: import('vue').DefineComponent<StDividerContentProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<StDividerContentProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
4
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
5
|
+
declare const _default: typeof __VLS_export;
|
|
6
|
+
export default _default;
|
|
7
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
8
|
+
new (): {
|
|
9
|
+
$slots: S;
|
|
10
|
+
};
|
|
11
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { StDividerLineProps, StDividerLineSlots } from './types.d.ts';
|
|
2
|
+
type __VLS_Slots = StDividerLineSlots;
|
|
3
|
+
declare const __VLS_base: import('vue').DefineComponent<StDividerLineProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<StDividerLineProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
4
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
5
|
+
declare const _default: typeof __VLS_export;
|
|
6
|
+
export default _default;
|
|
7
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
8
|
+
new (): {
|
|
9
|
+
$slots: S;
|
|
10
|
+
};
|
|
11
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ClassValue, StyleValue } from 'vue';
|
|
1
|
+
import type { ClassValue, ComputedRef, StyleValue } from 'vue';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* 分割线方向类型
|
|
@@ -43,4 +43,50 @@ export interface StDividerSlots {
|
|
|
43
43
|
default?: () => unknown;
|
|
44
44
|
}
|
|
45
45
|
|
|
46
|
+
/**
|
|
47
|
+
* 分割线组件事件类型
|
|
48
|
+
* */
|
|
49
|
+
export interface StDividerEmits {}
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* 分割线 线组件属性
|
|
53
|
+
* */
|
|
54
|
+
export interface StDividerLineProps {}
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* 分割线 线组件插槽类型
|
|
58
|
+
* */
|
|
59
|
+
export interface StDividerLineSlots {}
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* 分割线 线组件事件类型
|
|
63
|
+
* */
|
|
64
|
+
export interface StDividerLineEmits {}
|
|
65
|
+
|
|
66
|
+
/**
|
|
67
|
+
* 分割线 文本组件属性
|
|
68
|
+
* */
|
|
69
|
+
export interface StDividerContentProps {}
|
|
70
|
+
|
|
71
|
+
/**
|
|
72
|
+
* 分割线 文本组件插槽类型
|
|
73
|
+
* */
|
|
74
|
+
export interface StDividerContentSlots {}
|
|
75
|
+
|
|
76
|
+
/**
|
|
77
|
+
* 分割线 文本组建事件类型
|
|
78
|
+
* */
|
|
79
|
+
export interface StDividerContentEmits {}
|
|
80
|
+
|
|
81
|
+
/**
|
|
82
|
+
* StDivider 注入上下文接口
|
|
83
|
+
* 由 st-divider.vue 提供,供子组件注入获取共享状态
|
|
84
|
+
* */
|
|
85
|
+
export interface StDividerContext {
|
|
86
|
+
/** 分割线方向 */
|
|
87
|
+
readonly direction: ComputedRef<StDividerDirection>;
|
|
88
|
+
/** 分割线样式 */
|
|
89
|
+
readonly variant: ComputedRef<StDividerVariant>;
|
|
90
|
+
}
|
|
91
|
+
|
|
46
92
|
export {};
|
package/dist/index.d.ts
CHANGED
|
@@ -45,6 +45,8 @@ export { cn } from './utils/cn.ts';
|
|
|
45
45
|
export { withInstall, withInstallExtra } from './utils/with-install';
|
|
46
46
|
export type { SFCWithInstall, ExtractComponent, ComponentInstance } from './utils/with-install';
|
|
47
47
|
export { setZIndexBase, nextZIndex, getCurrentZIndex } from './utils/z-index.ts';
|
|
48
|
+
export { DeviceType, isMobile, isTablet, isPhone, isDesktop, getDeviceType, getDeviceInfo } from './utils/device.ts';
|
|
49
|
+
export type { DeviceInfo } from './utils/device.ts';
|
|
48
50
|
export type * from './components/st-button/types.d.ts';
|
|
49
51
|
export type * from './components/st-card/types.d.ts';
|
|
50
52
|
export type * from './components/st-cascade/types.d.ts';
|