@lemon-fe/components 0.1.68 → 0.1.69

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.
@@ -5,7 +5,7 @@ interface Props {
5
5
  /**
6
6
  * @description 布局类型
7
7
  * 栅格系统同antd,总计24列,默认占8列
8
- * flex 弹性型,默认占24
8
+ * flex 弹性型,默认占24列,完全按照百分比进行布局
9
9
  * @default default
10
10
  */
11
11
  layout?: 'default' | 'flex';
@@ -75,6 +75,12 @@
75
75
  }
76
76
  }
77
77
 
78
+ &-layout-flex > div > .ant-form-item,
79
+ &-layout-flex &-col {
80
+ width: 100%;
81
+ min-width: 0;
82
+ }
83
+
78
84
  &-row {
79
85
  .row();
80
86
  }
@@ -87,13 +93,11 @@
87
93
  &-col-@{value} {
88
94
  .col(@value);
89
95
  }
90
- });
91
96
 
92
- &-layout-flex > div > .ant-form-item,
93
- &-layout-flex &-col {
94
- width: 100%;
95
- max-width: 100%;
96
- }
97
+ &-layout-flex &-col-@{value} {
98
+ width: percentage((@value / 24));
99
+ }
100
+ });
97
101
  }
98
102
 
99
103
  @media (max-width: 575px) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lemon-fe/components",
3
- "version": "0.1.68",
3
+ "version": "0.1.69",
4
4
  "description": "> TODO: description",
5
5
  "author": "鲁盛杰 <lusj@cnlemon.net>",
6
6
  "homepage": "",
@@ -41,5 +41,5 @@
41
41
  "react": "^17.0.2",
42
42
  "react-dom": "^17.0.2"
43
43
  },
44
- "gitHead": "c78284f7973b457f109c8b655a3d67c8ffca6d67"
44
+ "gitHead": "982c86782a006d7ab8acc57de95fdc1f8951969a"
45
45
  }