@zgfe/business-lib 1.1.74-alpha.0 → 1.1.74-alpha.2

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.
@@ -30,6 +30,9 @@
30
30
  line-height: 30px;
31
31
  }
32
32
  }
33
+ .biz-select-handle-content-label {
34
+ max-width: 450px;
35
+ }
33
36
  }
34
37
 
35
38
  &-drowdown {
@@ -141,11 +141,13 @@ var SelectHandle = /*#__PURE__*/React.forwardRef(function (props, ref) {
141
141
  title: props.label || props.value && props.value[labelField]
142
142
  }, /*#__PURE__*/React.createElement("span", {
143
143
  className: "".concat(classPrefix, "-content")
144
+ }, /*#__PURE__*/React.createElement("span", {
145
+ className: "".concat(classPrefix, "-content-label")
144
146
  }, showSelectIcon && ((_props$value = props.value) === null || _props$value === void 0 ? void 0 : _props$value.icon) && /*#__PURE__*/React.createElement("span", {
145
147
  className: "".concat(classPrefix, "-icon")
146
148
  }, props.value.icon), props.children || props.label || props.value && props.value[labelField] || /*#__PURE__*/React.createElement("span", {
147
149
  className: "".concat(classPrefix, "-holder")
148
- }, placeholder || '请选择')), /*#__PURE__*/React.createElement(IconFont, {
150
+ }, placeholder || '请选择'))), /*#__PURE__*/React.createElement(IconFont, {
149
151
  className: "".concat(classPrefix, "-expand-icon"),
150
152
  type: 'xiangxia'
151
153
  }));
@@ -199,7 +199,7 @@ var BizSelect = function BizSelect(props) {
199
199
  BizSelect.defaultProps = {
200
200
  labelField: 'label',
201
201
  keyField: 'id',
202
- popupContainer: false,
202
+ popupContainer: true,
203
203
  destroyPopupOnHide: true,
204
204
  size: 'middle'
205
205
  };
@@ -121,7 +121,9 @@
121
121
  display: flex;
122
122
  flex: 1;
123
123
  align-items: center;
124
- .__default-overflow();
124
+ &-label {
125
+ .__default-overflow();
126
+ }
125
127
  }
126
128
  &-expand-icon {
127
129
  width: 14px;
@@ -10,7 +10,6 @@
10
10
  .biz-select-handle {
11
11
  flex: 1;
12
12
  width: 100%;
13
- max-width: 500px;
14
13
  padding: 0;
15
14
  border: none;
16
15
  border-radius: 0;
@@ -24,6 +23,9 @@
24
23
  box-shadow: none;
25
24
  }
26
25
  }
26
+ .biz-select-handle-content-label {
27
+ max-width: 450px;
28
+ }
27
29
  }
28
30
 
29
31
  &:hover {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zgfe/business-lib",
3
- "version": "1.1.74-alpha.0",
3
+ "version": "1.1.74-alpha.2",
4
4
  "scripts": {
5
5
  "start": "dumi dev",
6
6
  "docs:build": "dumi build",
@@ -58,5 +58,5 @@
58
58
  "react": "^16.12.0 || ^17.0.0",
59
59
  "yorkie": "^2.0.0"
60
60
  },
61
- "gitHead": "f9ef36b7b0f344033abb5a673ce28e364f329162"
61
+ "gitHead": "3a7e744d475baf924a5754d5053e4cba33d34d59"
62
62
  }