fluekit 1.1.0 → 1.1.1

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.
@@ -3,8 +3,8 @@ import { BoxDecoration } from './BoxDecoration';
3
3
  import { EdgeInsets } from './EdgeInsets';
4
4
  import { Alignment } from './FlexProps';
5
5
  interface Props {
6
- width?: number;
7
- height?: number;
6
+ width?: number | string;
7
+ height?: number | string;
8
8
  padding?: EdgeInsets;
9
9
  margin?: EdgeInsets;
10
10
  decoration?: BoxDecoration;
package/dist/Border.d.ts CHANGED
@@ -3,7 +3,7 @@ export type BorderStyleType = "none" | "solid" | "dashed" | "dotted" | "double";
3
3
  declare const BORDER_SIDE_SYMBOL: unique symbol;
4
4
  declare const BORDERS_SYMBOL: unique symbol;
5
5
  export type BorderSide = {
6
- width?: number;
6
+ width?: number | string;
7
7
  color?: string;
8
8
  style?: BorderStyleType;
9
9
  [BORDER_SIDE_SYMBOL]?: true;
@@ -19,7 +19,7 @@ export declare function Border(side: Omit<BorderSide, typeof BORDER_SIDE_SYMBOL>
19
19
  export declare namespace Border {
20
20
  var all: ({ color, width, style, }?: {
21
21
  color?: string;
22
- width?: number;
22
+ width?: number | string;
23
23
  style?: BorderStyleType;
24
24
  }) => {
25
25
  top: BorderSide;
@@ -3,8 +3,8 @@ import { Alignment } from './Alignment';
3
3
  import { BoxDecoration } from './BoxDecoration';
4
4
  import { EdgeInsets } from './EdgeInsets';
5
5
  interface Props {
6
- width?: number;
7
- height?: number;
6
+ width?: number | string;
7
+ height?: number | string;
8
8
  padding?: EdgeInsets;
9
9
  margin?: EdgeInsets;
10
10
  decoration?: BoxDecoration;
@@ -1,8 +1,8 @@
1
1
  interface Props {
2
2
  flex?: number;
3
3
  alignSelf?: "auto" | "start" | "end" | "center" | "stretch" | "baseline";
4
- minSize?: number;
5
- maxSize?: number;
4
+ minSize?: number | string;
5
+ maxSize?: number | string;
6
6
  }
7
7
  declare function __VLS_template(): {
8
8
  attrs: Partial<{}>;
@@ -3,8 +3,8 @@ interface Props {
3
3
  expanded?: boolean;
4
4
  flexible?: boolean;
5
5
  alignSelf?: "auto" | "start" | "end" | "center" | "stretch" | "baseline";
6
- minSize?: number;
7
- maxSize?: number;
6
+ minSize?: number | string;
7
+ maxSize?: number | string;
8
8
  }
9
9
  declare function __VLS_template(): {
10
10
  attrs: Partial<{}>;
package/dist/Size.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  export interface SizeType {
2
- width?: number;
3
- height?: number;
2
+ width?: number | string;
3
+ height?: number | string;
4
4
  }
5
5
  export type Size = SizeType;
6
6
  export declare function Size(props: SizeType): SizeType;
@@ -1,6 +1,6 @@
1
1
  interface Props {
2
- width?: number;
3
- height?: number;
2
+ width?: number | string;
3
+ height?: number | string;
4
4
  }
5
5
  declare function __VLS_template(): {
6
6
  attrs: Partial<{}>;
@@ -99,7 +99,7 @@ export interface TextStyleProps {
99
99
  letterSpacing?: number;
100
100
  wordSpacing?: number;
101
101
  textBaseline?: TextBaseline;
102
- height?: number;
102
+ height?: number | string;
103
103
  leadingDistribution?: any;
104
104
  locale?: any;
105
105
  foreground?: CSSProperties;
@@ -1,17 +1,17 @@
1
1
  import { CSSProperties } from 'vue';
2
2
  export interface Props {
3
3
  /** 距离顶部的距离 */
4
- top?: number;
4
+ top?: number | string;
5
5
  /** 距离底部的距离 */
6
- bottom?: number;
6
+ bottom?: number | string;
7
7
  /** 距离左侧的距离 */
8
- left?: number;
8
+ left?: number | string;
9
9
  /** 距离右侧的距离 */
10
- right?: number;
10
+ right?: number | string;
11
11
  /** 宽度 */
12
- width?: number;
12
+ width?: number | string;
13
13
  /** 高度 */
14
- height?: number;
14
+ height?: number | string;
15
15
  /** z-index 层级 */
16
16
  zIndex?: number;
17
17
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fluekit",
3
- "version": "1.1.0",
3
+ "version": "1.1.1",
4
4
  "description": "A Flutter-style Layout UI kit for Vue",
5
5
  "repository": {
6
6
  "type": "git",