straw-ui-vue 0.1.17 → 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.
@@ -12,8 +12,6 @@ export declare const StDialog: {
12
12
  }, import('vue').PublicProps, {
13
13
  title: string;
14
14
  center: boolean;
15
- height: string;
16
- width: string;
17
15
  draggable: boolean;
18
16
  closable: boolean;
19
17
  fullscreen: boolean;
@@ -35,8 +33,6 @@ export declare const StDialog: {
35
33
  }>, {}, {}, {}, {}, {
36
34
  title: string;
37
35
  center: boolean;
38
- height: string;
39
- width: string;
40
36
  draggable: boolean;
41
37
  closable: boolean;
42
38
  fullscreen: boolean;
@@ -59,8 +55,6 @@ export declare const StDialog: {
59
55
  }, string, {
60
56
  title: string;
61
57
  center: boolean;
62
- height: string;
63
- width: string;
64
58
  draggable: boolean;
65
59
  closable: boolean;
66
60
  fullscreen: boolean;
@@ -16,8 +16,6 @@ declare const __VLS_base: import('vue').DefineComponent<__VLS_PublicProps, {}, {
16
16
  }>, {
17
17
  title: string;
18
18
  center: boolean;
19
- height: string;
20
- width: string;
21
19
  draggable: boolean;
22
20
  closable: boolean;
23
21
  fullscreen: boolean;
@@ -20,10 +20,6 @@ export interface StDialogGroupContext {
20
20
 
21
21
  /** 是否居中显示 */
22
22
  readonly center: boolean;
23
- /** 弹窗宽度 */
24
- readonly width: string;
25
- /** 弹窗高度 */
26
- readonly height: string;
27
23
  /** 是否显示遮罩层 */
28
24
  readonly showOverlay: boolean;
29
25
  /** 是否显示关闭按钮 */
@@ -223,10 +219,6 @@ export interface StDialogGroupFooterEmits {}
223
219
  export interface StDialogProps {
224
220
  /** 弹窗标题 */
225
221
  title?: string;
226
- /** 弹窗宽度 */
227
- width?: string;
228
- /** 弹窗高度 */
229
- height?: string;
230
222
  /** 是否显示关闭按钮 */
231
223
  closable?: boolean;
232
224
  /** 是否支持拖拽 */
@@ -0,0 +1,6 @@
1
+ import { InjectionKey } from 'vue';
2
+ import { StDividerContext } from './types.d.ts';
3
+ /**
4
+ * StDivider 注入上下文键
5
+ * */
6
+ export declare const DIVIDER_INJECTION_KEY: InjectionKey<StDividerContext>;
@@ -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 {};
@@ -10,7 +10,6 @@ export declare const StDrawer: {
10
10
  close: () => any;
11
11
  "update:modelValue": (value: boolean) => any;
12
12
  }, import('vue').PublicProps, {
13
- size: number | string;
14
13
  title: string;
15
14
  placement: import('./types.d.ts').StDrawerPlacement;
16
15
  closable: boolean;
@@ -30,7 +29,6 @@ export declare const StDrawer: {
30
29
  onClose?: () => any;
31
30
  "onUpdate:modelValue"?: (value: boolean) => any;
32
31
  }>, {}, {}, {}, {}, {
33
- size: number | string;
34
32
  title: string;
35
33
  placement: import('./types.d.ts').StDrawerPlacement;
36
34
  closable: boolean;
@@ -51,7 +49,6 @@ export declare const StDrawer: {
51
49
  close: () => any;
52
50
  "update:modelValue": (value: boolean) => any;
53
51
  }, string, {
54
- size: number | string;
55
52
  title: string;
56
53
  placement: import('./types.d.ts').StDrawerPlacement;
57
54
  closable: boolean;
@@ -14,7 +14,6 @@ declare const __VLS_base: import('vue').DefineComponent<__VLS_PublicProps, {}, {
14
14
  onClose?: () => any;
15
15
  "onUpdate:modelValue"?: (value: boolean) => any;
16
16
  }>, {
17
- size: number | string;
18
17
  title: string;
19
18
  placement: import('./types.d.ts').StDrawerPlacement;
20
19
  closable: boolean;
@@ -23,8 +23,6 @@ export interface StDrawerGroupContext {
23
23
  readonly closeByOverlay: boolean;
24
24
  /** 抽屉方向 */
25
25
  readonly placement: StDrawerPlacement;
26
- /** 尺寸 */
27
- readonly size: number | string;
28
26
  /** 是否显示关闭按钮 */
29
27
  readonly closable: boolean;
30
28
 
@@ -177,8 +175,6 @@ export interface StDrawerProps {
177
175
  closeByOverlay?: boolean;
178
176
  /** 抽屉方向 */
179
177
  placement?: StDrawerPlacement;
180
- /** 尺寸 */
181
- size?: number | string;
182
178
  /** 标题 */
183
179
  title?: string;
184
180
  /** 是否显示关闭按钮 */
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';