@fle-ui/plus-table 1.2.27 → 1.2.28-alpha.0

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.
@@ -142,7 +142,7 @@ var FormRender = function FormRender(_ref) {
142
142
  var columnKey = (item === null || item === void 0 ? void 0 : item.key) || (item === null || item === void 0 ? void 0 : (_item$dataIndex = item.dataIndex) === null || _item$dataIndex === void 0 ? void 0 : _item$dataIndex.toString());
143
143
  return _objectSpread(_objectSpread(_objectSpread({}, item), {}, {
144
144
  width: undefined
145
- }, _typeof(item.search) === "object" ? item.search : {}), {}, {
145
+ }, _typeof(item.search) === 'object' ? item.search : {}), {}, {
146
146
  valueType: finalValueType,
147
147
  proFieldProps: _objectSpread(_objectSpread({}, item.proFieldProps), {}, {
148
148
  proFieldKey: columnKey ? "table-field-".concat(columnKey) : undefined
package/es/index.d.ts CHANGED
@@ -34,6 +34,7 @@ interface PlusTableProps<DataSource, U, ValueType> extends Omit<ProTableProps<Da
34
34
  };
35
35
  hasShowFull?: boolean;
36
36
  getContainer?: string | HTMLElement | (() => HTMLElement) | false;
37
+ defaultShowFull?: boolean;
37
38
  }
38
39
  interface PlusTableRef {
39
40
  getFieldsValue: () => Promise<any>;
package/es/index.js CHANGED
@@ -50,7 +50,7 @@ function PlusTable(props, ref) {
50
50
  _useState2 = _slicedToArray(_useState, 2),
51
51
  searchDrawer = _useState2[0],
52
52
  setSearchDrawer = _useState2[1];
53
- var _useState3 = useState(false),
53
+ var _useState3 = useState(props.defaultShowFull || false),
54
54
  _useState4 = _slicedToArray(_useState3, 2),
55
55
  showFull = _useState4[0],
56
56
  setShowFull = _useState4[1];
@@ -148,7 +148,7 @@ var FormRender = function FormRender(_ref) {
148
148
  var columnKey = (item === null || item === void 0 ? void 0 : item.key) || (item === null || item === void 0 ? void 0 : (_item$dataIndex = item.dataIndex) === null || _item$dataIndex === void 0 ? void 0 : _item$dataIndex.toString());
149
149
  return _objectSpread(_objectSpread(_objectSpread({}, item), {}, {
150
150
  width: undefined
151
- }, _typeof(item.search) === "object" ? item.search : {}), {}, {
151
+ }, _typeof(item.search) === 'object' ? item.search : {}), {}, {
152
152
  valueType: finalValueType,
153
153
  proFieldProps: _objectSpread(_objectSpread({}, item.proFieldProps), {}, {
154
154
  proFieldKey: columnKey ? "table-field-".concat(columnKey) : undefined
package/lib/index.d.ts CHANGED
@@ -34,6 +34,7 @@ interface PlusTableProps<DataSource, U, ValueType> extends Omit<ProTableProps<Da
34
34
  };
35
35
  hasShowFull?: boolean;
36
36
  getContainer?: string | HTMLElement | (() => HTMLElement) | false;
37
+ defaultShowFull?: boolean;
37
38
  }
38
39
  interface PlusTableRef {
39
40
  getFieldsValue: () => Promise<any>;
package/lib/index.js CHANGED
@@ -54,7 +54,7 @@ function PlusTable(props, ref) {
54
54
  _useState2 = _slicedToArray(_useState, 2),
55
55
  searchDrawer = _useState2[0],
56
56
  setSearchDrawer = _useState2[1];
57
- var _useState3 = (0, _react.useState)(false),
57
+ var _useState3 = (0, _react.useState)(props.defaultShowFull || false),
58
58
  _useState4 = _slicedToArray(_useState3, 2),
59
59
  showFull = _useState4[0],
60
60
  setShowFull = _useState4[1];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fle-ui/plus-table",
3
- "version": "1.2.27",
3
+ "version": "1.2.28-alpha.0",
4
4
  "description": "@fle-ui/plus-table",
5
5
  "keywords": [
6
6
  "fle-ui",
@@ -46,5 +46,5 @@
46
46
  "@ant-design/pro-components": "^2.7.0",
47
47
  "dayjs": "^1.11.10"
48
48
  },
49
- "gitHead": "e56b10c76831c3d57c62576452c07ae1cee01a8a"
49
+ "gitHead": "92b9f0ae1b287b3d16ca1ecc970f265c3588b6fc"
50
50
  }
package/es/index.less DELETED
@@ -1,107 +0,0 @@
1
- @primar-color: #2c68ff;
2
-
3
- .choose-site-goods-modal {
4
- .ww-search {
5
- background-color: #fafafa;
6
- padding: 20px;
7
- .ww-search-flex {
8
- width: 100%;
9
- display: flex;
10
- align-items: center;
11
- overflow: hidden;
12
- .ww-search-range-input {
13
- flex: 1;
14
- display: flex;
15
- align-items: center;
16
- }
17
- }
18
- }
19
- .main-search {
20
- display: flex;
21
- justify-content: center;
22
- margin-bottom: 16px;
23
- position: relative;
24
- .choose-more-btn {
25
- position: absolute;
26
- right: 0px;
27
- top: 0px;
28
- }
29
- }
30
- .search-2 {
31
- .sort-item {
32
- display: flex;
33
- align-items: center;
34
- .sort-item-label {
35
- font-size: 12px;
36
- }
37
- .sort-item-icon {
38
- font-size: 10px;
39
- margin-left: 4px;
40
- }
41
- }
42
- .ant-radio-button-wrapper {
43
- padding: 0 10px !important;
44
- }
45
- }
46
- .table-goods-wrap {
47
- display: flex;
48
-
49
- .table-goods-img-wrap {
50
- width: 60px;
51
- height: 60px;
52
- background: #ffffff;
53
- border-radius: 1px;
54
- border: 1px solid #cccccc;
55
- box-sizing: border-box;
56
- display: flex;
57
- align-items: center;
58
- overflow: hidden;
59
- .pro-image {
60
- width: 100%;
61
- height: 100%;
62
- object-fit: cover;
63
- .ant-image {
64
- width: 100%;
65
- height: 100%;
66
- }
67
- }
68
- }
69
-
70
- .table-goods-content {
71
- margin-left: 10px;
72
- flex: 1;
73
-
74
- .table-goods-content-title {
75
- height: 34px;
76
- font-size: 12px;
77
- font-weight: 500;
78
- color: #666666;
79
- line-height: 17px;
80
- text-overflow: -o-ellipsis-lastline;
81
- overflow: hidden;
82
- text-overflow: ellipsis;
83
- display: -webkit-box;
84
- -webkit-line-clamp: 2;
85
- line-clamp: 2;
86
- -webkit-box-orient: vertical;
87
- text-align: left;
88
- // color: @primary-color;
89
- }
90
-
91
- .table-goods-content-sub-title {
92
- text-align: left;
93
- height: 17px;
94
- font-size: 12px;
95
- font-weight: 400;
96
- color: #666666;
97
- overflow: hidden;
98
- text-overflow: ellipsis;
99
- white-space: nowrap;
100
- margin-top: 9px;
101
- }
102
- }
103
- }
104
- .ml-3 {
105
- margin-left: 3px;
106
- }
107
- }
package/lib/index.less DELETED
@@ -1,107 +0,0 @@
1
- @primar-color: #2c68ff;
2
-
3
- .choose-site-goods-modal {
4
- .ww-search {
5
- background-color: #fafafa;
6
- padding: 20px;
7
- .ww-search-flex {
8
- width: 100%;
9
- display: flex;
10
- align-items: center;
11
- overflow: hidden;
12
- .ww-search-range-input {
13
- flex: 1;
14
- display: flex;
15
- align-items: center;
16
- }
17
- }
18
- }
19
- .main-search {
20
- display: flex;
21
- justify-content: center;
22
- margin-bottom: 16px;
23
- position: relative;
24
- .choose-more-btn {
25
- position: absolute;
26
- right: 0px;
27
- top: 0px;
28
- }
29
- }
30
- .search-2 {
31
- .sort-item {
32
- display: flex;
33
- align-items: center;
34
- .sort-item-label {
35
- font-size: 12px;
36
- }
37
- .sort-item-icon {
38
- font-size: 10px;
39
- margin-left: 4px;
40
- }
41
- }
42
- .ant-radio-button-wrapper {
43
- padding: 0 10px !important;
44
- }
45
- }
46
- .table-goods-wrap {
47
- display: flex;
48
-
49
- .table-goods-img-wrap {
50
- width: 60px;
51
- height: 60px;
52
- background: #ffffff;
53
- border-radius: 1px;
54
- border: 1px solid #cccccc;
55
- box-sizing: border-box;
56
- display: flex;
57
- align-items: center;
58
- overflow: hidden;
59
- .pro-image {
60
- width: 100%;
61
- height: 100%;
62
- object-fit: cover;
63
- .ant-image {
64
- width: 100%;
65
- height: 100%;
66
- }
67
- }
68
- }
69
-
70
- .table-goods-content {
71
- margin-left: 10px;
72
- flex: 1;
73
-
74
- .table-goods-content-title {
75
- height: 34px;
76
- font-size: 12px;
77
- font-weight: 500;
78
- color: #666666;
79
- line-height: 17px;
80
- text-overflow: -o-ellipsis-lastline;
81
- overflow: hidden;
82
- text-overflow: ellipsis;
83
- display: -webkit-box;
84
- -webkit-line-clamp: 2;
85
- line-clamp: 2;
86
- -webkit-box-orient: vertical;
87
- text-align: left;
88
- // color: @primary-color;
89
- }
90
-
91
- .table-goods-content-sub-title {
92
- text-align: left;
93
- height: 17px;
94
- font-size: 12px;
95
- font-weight: 400;
96
- color: #666666;
97
- overflow: hidden;
98
- text-overflow: ellipsis;
99
- white-space: nowrap;
100
- margin-top: 9px;
101
- }
102
- }
103
- }
104
- .ml-3 {
105
- margin-left: 3px;
106
- }
107
- }