bkui-vue 1.0.3-beta.66.dialog.1 → 1.0.3-beta.66.dialog.3

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.
@@ -573,7 +573,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
573
573
 
574
574
 
575
575
  var dialogProps = (0,cloneDeep_namespaceObject["default"])(modal_namespaceObject.propsMixin);
576
- dialogProps.width["default"] = '400';
576
+ dialogProps.width["default"] = '480';
577
577
  var props = _objectSpread(_objectSpread({}, dialogProps), {}, {
578
578
  // 是否可拖拽
579
579
  draggable: shared_namespaceObject.PropTypes.bool.def(false),
@@ -432,7 +432,7 @@ const shared_namespaceObject = x({ ["withInstall"]: () => __WEBPACK_EXTERNAL_MOD
432
432
  ;// CONCATENATED MODULE: external "vue"
433
433
  var external_vue_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
434
434
  var external_vue_y = x => () => x
435
- const external_vue_namespaceObject = external_vue_x({ ["createApp"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.createApp, ["createVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.createVNode, ["defineComponent"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.defineComponent, ["reactive"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.reactive, ["ref"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.ref });
435
+ const external_vue_namespaceObject = external_vue_x({ ["createApp"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.createApp, ["createVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.createVNode, ["defineComponent"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.defineComponent, ["h"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.h, ["reactive"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.reactive, ["ref"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.ref });
436
436
  ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/typeof.js
437
437
  function _typeof(o) {
438
438
  "@babel/helpers - typeof";
@@ -832,15 +832,21 @@ var genDefaultState = function genDefaultState() {
832
832
  */
833
833
 
834
834
 
835
- var infoboxInstance;
835
+ var appRef = (0,external_vue_namespaceObject.ref)();
836
836
  var getInstance = function getInstance() {
837
- if (!infoboxInstance) {
837
+ if (!appRef.value) {
838
838
  var container = document.createElement('div');
839
- infoboxInstance = (0,external_vue_namespaceObject.createApp)(render_component);
839
+ var infoboxInstance = (0,external_vue_namespaceObject.createApp)({
840
+ render: function render() {
841
+ return (0,external_vue_namespaceObject.h)(render_component, {
842
+ ref: appRef
843
+ });
844
+ }
845
+ });
840
846
  document.body.appendChild(container);
841
847
  infoboxInstance.mount(container);
842
848
  }
843
- return infoboxInstance._instance.exposed;
849
+ return appRef.value;
844
850
  };
845
851
  var InfoBox = function InfoBox(config) {
846
852
  var instance = getInstance();
@@ -41,7 +41,7 @@ __webpack_require__.d(__webpack_exports__, {
41
41
  ;// CONCATENATED MODULE: external "../shared"
42
42
  var x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
43
43
  var y = x => () => x
44
- const shared_namespaceObject = x({ ["PropTypes"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.PropTypes, ["debounce"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.debounce, ["withInstall"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.withInstall });
44
+ const shared_namespaceObject = x({ ["PropTypes"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.PropTypes, ["debounce"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.debounce, ["hasOverflowEllipsis"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.hasOverflowEllipsis, ["withInstall"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.withInstall });
45
45
  ;// CONCATENATED MODULE: external "vue"
46
46
  var external_vue_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
47
47
  var external_vue_y = x => () => x
@@ -91,38 +91,6 @@ function placementType() {
91
91
  resizeable: shared_namespaceObject.PropTypes.bool,
92
92
  popoverOptions: Object // popover属性
93
93
  });
94
- ;// CONCATENATED MODULE: ../../packages/overflow-title/src/utils/getActualWidthByCanvas.ts
95
- function getActualWidthByCanvas(text, options) {
96
- var _options$fontSize = options.fontSize,
97
- fontSize = _options$fontSize === void 0 ? 14 : _options$fontSize,
98
- _options$fontFamily = options.fontFamily,
99
- fontFamily = _options$fontFamily === void 0 ? 'Microsoft YaHei' : _options$fontFamily;
100
- var canvas = document.createElement('canvas');
101
- var ctx = canvas.getContext('2d');
102
- ctx.font = "".concat(fontSize, "px ").concat(fontFamily);
103
- var metrics = ctx.measureText(text);
104
- var actual = Math.abs(metrics.actualBoundingBoxLeft) + Math.abs(metrics.actualBoundingBoxRight);
105
- return Math.max(metrics.width, actual);
106
- }
107
- /* harmony default export */ const utils_getActualWidthByCanvas = (getActualWidthByCanvas);
108
- ;// CONCATENATED MODULE: ../../packages/overflow-title/src/utils/getActualWidthByDom.ts
109
- function getActualWidthByDom(text, options) {
110
- var dom = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : document.body;
111
- if (!dom) {
112
- return 0;
113
- }
114
- var _ref = options || {},
115
- fontSize = _ref.fontSize,
116
- fontFamily = _ref.fontFamily;
117
- var tempDom = document.createElement('div');
118
- tempDom.style.cssText = "position: absolute;left: -999em;top:-999em;z-index: -1;text-overflow: initial;\n ".concat(fontSize ? "font-size:".concat(fontSize, " ;") : '', "\n ").concat(fontFamily ? "font-family:".concat(fontFamily, " ") : '', "\n ");
119
- tempDom.innerText = text;
120
- dom.append(tempDom);
121
- var clientWidth = tempDom.clientWidth;
122
- dom.removeChild(tempDom);
123
- return clientWidth;
124
- }
125
- /* harmony default export */ const utils_getActualWidthByDom = (getActualWidthByDom);
126
94
  ;// CONCATENATED MODULE: ../../packages/overflow-title/src/components/overflow-title.tsx
127
95
 
128
96
 
@@ -130,8 +98,8 @@ function getActualWidthByDom(text, options) {
130
98
 
131
99
 
132
100
 
133
-
134
-
101
+ // import getActualWidthByCanvas from '../utils/getActualWidthByCanvas';
102
+ // import getActualWidthByDom from '../utils/getActualWidthByDom';
135
103
  /* harmony default export */ const overflow_title = ((0,external_vue_namespaceObject.defineComponent)({
136
104
  name: 'OverflowTitle',
137
105
  props: props,
@@ -149,29 +117,23 @@ function getActualWidthByDom(text, options) {
149
117
  return slots === null || slots === void 0 || (_slots$default = slots["default"]) === null || _slots$default === void 0 ? void 0 : _slots$default.call(slots);
150
118
  });
151
119
  (0,external_vue_namespaceObject.onMounted)(function () {
152
- var clientWidth = boxRef.value.clientWidth;
120
+ // const { clientWidth } = boxRef.value;
153
121
  var resizeHandler = (0,shared_namespaceObject.debounce)(500, function () {
154
122
  isShowTips.value = false;
155
123
  textProps.value = {};
156
- var textWidth = 0;
157
- if (props.calType === 'dom') {
158
- var _textRef$value;
159
- textWidth = utils_getActualWidthByDom((_textRef$value = textRef.value) === null || _textRef$value === void 0 ? void 0 : _textRef$value.textContent, null, boxRef.value);
160
- } else {
161
- var _getComputedStyle = getComputedStyle(boxRef.value),
162
- fontSize = _getComputedStyle.fontSize,
163
- fontFamily = _getComputedStyle.fontFamily;
164
- textWidth = utils_getActualWidthByCanvas(contentText.value, {
165
- fontSize: fontSize,
166
- fontFamily: fontFamily
167
- });
168
- }
169
- if (textWidth > clientWidth) {
124
+ // let textWidth = 0;
125
+ // if (props.calType === 'dom') {
126
+ // textWidth = getActualWidthByDom(textRef.value?.textContent, null, boxRef.value);
127
+ // } else {
128
+ // const { fontSize, fontFamily } = getComputedStyle(boxRef.value);
129
+ // textWidth = getActualWidthByCanvas(contentText.value as string, { fontSize, fontFamily });
130
+ // }
131
+ if ((0,shared_namespaceObject.hasOverflowEllipsis)(boxRef.value)) {
170
132
  isShowTips.value = true;
171
133
  if (props.type === 'title') {
172
- var _textRef$value$innerT, _textRef$value2;
134
+ var _textRef$value$innerT, _textRef$value;
173
135
  textProps.value = {
174
- title: (_textRef$value$innerT = textRef === null || textRef === void 0 || (_textRef$value2 = textRef.value) === null || _textRef$value2 === void 0 ? void 0 : _textRef$value2.innerText) !== null && _textRef$value$innerT !== void 0 ? _textRef$value$innerT : props.content
136
+ title: (_textRef$value$innerT = textRef === null || textRef === void 0 || (_textRef$value = textRef.value) === null || _textRef$value === void 0 ? void 0 : _textRef$value.innerText) !== null && _textRef$value$innerT !== void 0 ? _textRef$value$innerT : props.content
175
137
  };
176
138
  }
177
139
  }
@@ -218,6 +180,38 @@ function getActualWidthByDom(text, options) {
218
180
  })]);
219
181
  }
220
182
  }));
183
+ ;// CONCATENATED MODULE: ../../packages/overflow-title/src/utils/getActualWidthByCanvas.ts
184
+ function getActualWidthByCanvas(text, options) {
185
+ var _options$fontSize = options.fontSize,
186
+ fontSize = _options$fontSize === void 0 ? 14 : _options$fontSize,
187
+ _options$fontFamily = options.fontFamily,
188
+ fontFamily = _options$fontFamily === void 0 ? 'Microsoft YaHei' : _options$fontFamily;
189
+ var canvas = document.createElement('canvas');
190
+ var ctx = canvas.getContext('2d');
191
+ ctx.font = "".concat(fontSize, "px ").concat(fontFamily);
192
+ var metrics = ctx.measureText(text);
193
+ var actual = Math.abs(metrics.actualBoundingBoxLeft) + Math.abs(metrics.actualBoundingBoxRight);
194
+ return Math.max(metrics.width, actual);
195
+ }
196
+ /* harmony default export */ const utils_getActualWidthByCanvas = (getActualWidthByCanvas);
197
+ ;// CONCATENATED MODULE: ../../packages/overflow-title/src/utils/getActualWidthByDom.ts
198
+ function getActualWidthByDom(text, options) {
199
+ var dom = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : document.body;
200
+ if (!dom) {
201
+ return 0;
202
+ }
203
+ var _ref = options || {},
204
+ fontSize = _ref.fontSize,
205
+ fontFamily = _ref.fontFamily;
206
+ var tempDom = document.createElement('div');
207
+ tempDom.style.cssText = "position: absolute;left: -999em;top:-999em;z-index: -1;text-overflow: initial;\n ".concat(fontSize ? "font-size:".concat(fontSize, " ;") : '', "\n ").concat(fontFamily ? "font-family:".concat(fontFamily, " ") : '', "\n ");
208
+ tempDom.innerText = text;
209
+ dom.append(tempDom);
210
+ var clientWidth = tempDom.clientWidth;
211
+ dom.removeChild(tempDom);
212
+ return clientWidth;
213
+ }
214
+ /* harmony default export */ const utils_getActualWidthByDom = (getActualWidthByDom);
221
215
  ;// CONCATENATED MODULE: ../../packages/overflow-title/src/directive/overflow-title.ts
222
216
 
223
217
 
@@ -5,6 +5,7 @@
5
5
  .bk-scrollbar-wrapper .bk-scrollbar-content-el {
6
6
  display: inline-flex;
7
7
  flex-direction: column;
8
+ width: 100%;
8
9
  }
9
10
  .bk-scrollbar-wrapper .bk-scrollbar-track {
10
11
  z-index: 1;
@@ -7,6 +7,7 @@
7
7
  .@{bk-prefix}-scrollbar-content-el {
8
8
  display: inline-flex;
9
9
  flex-direction: column;
10
+ width: 100%;
10
11
  }
11
12
 
12
13
  .@{bk-prefix}-scrollbar-track {
@@ -134,6 +134,7 @@
134
134
  .bk-scrollbar-wrapper .bk-scrollbar-content-el {
135
135
  display: inline-flex;
136
136
  flex-direction: column;
137
+ width: 100%;
137
138
  }
138
139
  .bk-scrollbar-wrapper .bk-scrollbar-track {
139
140
  z-index: 1;
@@ -5439,15 +5439,15 @@ const input_less_namespaceObject = input_less_x({ });
5439
5439
 
5440
5440
 
5441
5441
 
5442
-
5443
5442
  function head_filter_isSlot(s) {
5444
5443
  return typeof s === 'function' || Object.prototype.toString.call(s) === '[object Object]' && !(0,external_vue_namespaceObject.isVNode)(s);
5445
5444
  }
5445
+ var ROW_HEIGHT = 32;
5446
5446
  /* harmony default export */ const head_filter = ((0,external_vue_namespaceObject.defineComponent)({
5447
5447
  name: 'HeadFilter',
5448
5448
  props: {
5449
5449
  column: IColumnType,
5450
- height: shared_namespaceObject.PropTypes.number.def(LINE_HEIGHT)
5450
+ height: shared_namespaceObject.PropTypes.number.def(ROW_HEIGHT)
5451
5451
  },
5452
5452
  emits: ['change', 'filterSave'],
5453
5453
  setup: function setup(props, _ref) {
@@ -5469,14 +5469,6 @@ function head_filter_isSlot(s) {
5469
5469
  isOpen: false,
5470
5470
  checked: checked.value
5471
5471
  });
5472
- var maxHeight = (0,external_vue_namespaceObject.computed)(function () {
5473
- var _filter$value$maxHeig, _filter$value2;
5474
- return (_filter$value$maxHeig = (_filter$value2 = filter.value) === null || _filter$value2 === void 0 ? void 0 : _filter$value2.maxHeight) !== null && _filter$value$maxHeig !== void 0 ? _filter$value$maxHeig : LINE_HEIGHT * 15;
5475
- });
5476
- var height = (0,external_vue_namespaceObject.computed)(function () {
5477
- var _filter$value3;
5478
- return ((_filter$value3 = filter.value) === null || _filter$value3 === void 0 ? void 0 : _filter$value3.height) || '100%';
5479
- });
5480
5472
  (0,external_vue_namespaceObject.watch)(function () {
5481
5473
  return filter.value;
5482
5474
  }, function () {
@@ -5508,6 +5500,22 @@ function head_filter_isSlot(s) {
5508
5500
  });
5509
5501
  return filterList;
5510
5502
  });
5503
+ var maxLength = 5;
5504
+ var maxHeight = (0,external_vue_namespaceObject.computed)(function () {
5505
+ var _filter$value$maxHeig, _filter$value2;
5506
+ return (_filter$value$maxHeig = (_filter$value2 = filter.value) === null || _filter$value2 === void 0 ? void 0 : _filter$value2.maxHeight) !== null && _filter$value$maxHeig !== void 0 ? _filter$value$maxHeig : ROW_HEIGHT * maxLength;
5507
+ });
5508
+ var height = (0,external_vue_namespaceObject.computed)(function () {
5509
+ var _filter$value3;
5510
+ return ((_filter$value3 = filter.value) === null || _filter$value3 === void 0 ? void 0 : _filter$value3.height) || '100%';
5511
+ });
5512
+ var minHeight = (0,external_vue_namespaceObject.computed)(function () {
5513
+ var defaultMin = ROW_HEIGHT * 2;
5514
+ if (localData.value.length > maxLength) {
5515
+ return maxHeight.value;
5516
+ }
5517
+ return defaultMin;
5518
+ });
5511
5519
  var getRegExp = function getRegExp(val) {
5512
5520
  var flags = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'ig';
5513
5521
  return new RegExp("".concat(val).replace(/[-[\]{}()*+?.,\\^$|#\s]/g, '\\$&'), flags);
@@ -5643,16 +5651,6 @@ function head_filter_isSlot(s) {
5643
5651
  "class": "list-item is-empty"
5644
5652
  }, [t.value.emptyText]);
5645
5653
  };
5646
- /* 监听过滤筛选值,更新表格
5647
- onMounted(() => {
5648
- watch(() => filter.value.checked, (val) => {
5649
- if (val?.length) {
5650
- state.checked = val;
5651
- emit('change', val, filterFn);
5652
- }
5653
- }, { immediate: true });
5654
- });
5655
- */
5656
5654
  return function () {
5657
5655
  return (0,external_vue_namespaceObject.createVNode)(popover_namespaceObject["default"], (0,external_vue_namespaceObject.mergeProps)({
5658
5656
  "trigger": "click",
@@ -5692,6 +5690,7 @@ function head_filter_isSlot(s) {
5692
5690
  "default": function _default() {
5693
5691
  return [(0,external_vue_namespaceObject.createVNode)(virtual_render_namespaceObject["default"], {
5694
5692
  "maxHeight": maxHeight.value,
5693
+ "minHeight": minHeight.value,
5695
5694
  "height": height.value,
5696
5695
  "lineHeight": 32,
5697
5696
  "list": localData.value,
@@ -5927,11 +5926,11 @@ function use_head_cell_isSlot(s) {
5927
5926
  }));
5928
5927
  }, {});
5929
5928
  };
5930
- var getSortFnByColumn = function getSortFnByColumn(column, fn, a, b) {
5929
+ var getSortFnByColumn = function getSortFnByColumn(column, fn, a, b, type) {
5931
5930
  if (column.type === 'index') {
5932
- return fn(tableResp.getRowAttribute(a, TABLE_ROW_ATTRIBUTE.ROW_INDEX), tableResp.getRowAttribute(b, TABLE_ROW_ATTRIBUTE.ROW_INDEX));
5931
+ return fn(tableResp.getRowAttribute(a, TABLE_ROW_ATTRIBUTE.ROW_INDEX), tableResp.getRowAttribute(b, TABLE_ROW_ATTRIBUTE.ROW_INDEX), type);
5933
5932
  }
5934
- return fn(a, b);
5933
+ return fn(a, b, type);
5935
5934
  };
5936
5935
  /**
5937
5936
  * 点击选中一列事件
@@ -5946,7 +5945,7 @@ function use_head_cell_isSlot(s) {
5946
5945
  var type = tableResp.getColumnAttribute(column, COLUMN_ATTRIBUTE.COL_SORT_TYPE);
5947
5946
  nextSort.value = getNextSortType(type);
5948
5947
  var sortFn = function sortFn(a, b) {
5949
- return getSortFnByColumn(column, getSortFn(column, nextSort.value, props.sortValFormat), a, b);
5948
+ return getSortFnByColumn(column, getSortFn(column, nextSort.value, props.sortValFormat), a, b, type);
5950
5949
  };
5951
5950
  tableResp.setColumnAttribute(column, COLUMN_ATTRIBUTE.COL_SORT_TYPE, nextSort.value);
5952
5951
  tableResp.setColumnAttribute(column, COLUMN_ATTRIBUTE.COL_SORT_FN, sortFn);
@@ -6014,8 +6013,9 @@ function use_head_cell_isSlot(s) {
6014
6013
  * @param type 排序类型
6015
6014
  */
6016
6015
  var handleSortClick = function handleSortClick(sortFn, type) {
6016
+ console.log('handleSortClick', type);
6017
6017
  var fn = function fn(a, b) {
6018
- return getSortFnByColumn(column, sortFn, a, b);
6018
+ return getSortFnByColumn(column, sortFn, a, b, type);
6019
6019
  };
6020
6020
  tableResp.setColumnAttribute(column, COLUMN_ATTRIBUTE.COL_SORT_TYPE, type);
6021
6021
  tableResp.setColumnAttribute(column, COLUMN_ATTRIBUTE.COL_SORT_FN, fn);
@@ -27,10 +27,6 @@
27
27
  max-width: 300px;
28
28
  min-width: 200px;
29
29
  }
30
- .bk-popover.bk-pop2-content.bk-table-head-filter .content-list .content-items {
31
- max-height: 200px;
32
- min-height: 40px;
33
- }
34
30
  .bk-popover.bk-pop2-content.bk-table-head-filter .content-list .content-items .list-item {
35
31
  width: 100%;
36
32
  height: 32px;
@@ -43,11 +39,19 @@
43
39
  .bk-popover.bk-pop2-content.bk-table-head-filter .content-list .content-items .list-item:hover {
44
40
  background: #f0f1f5;
45
41
  }
42
+ .bk-popover.bk-pop2-content.bk-table-head-filter .content-list .content-items .list-item label {
43
+ text-overflow: ellipsis;
44
+ white-space: nowrap;
45
+ overflow: hidden;
46
+ width: 100%;
47
+ }
46
48
  .bk-popover.bk-pop2-content.bk-table-head-filter .content-list .content-items .list-item label:hover {
47
49
  background: #f0f1f5;
48
50
  }
49
51
  .bk-popover.bk-pop2-content.bk-table-head-filter .content-list .content-items .list-item .bk-checkbox-label {
50
52
  white-space: nowrap;
53
+ text-overflow: ellipsis;
54
+ overflow: hidden;
51
55
  }
52
56
  .bk-popover.bk-pop2-content.bk-table-head-filter .content-list .content-items .list-item .bk-checkbox {
53
57
  margin-left: 0;
@@ -35,9 +35,6 @@
35
35
  min-width: 200px;
36
36
 
37
37
  .content-items {
38
- max-height: 200px;
39
- min-height: 40px;
40
-
41
38
  .list-item {
42
39
  width: 100%;
43
40
  height: 32px;
@@ -52,6 +49,10 @@
52
49
  }
53
50
 
54
51
  label {
52
+ text-overflow: ellipsis;
53
+ white-space: nowrap;
54
+ overflow: hidden;
55
+ width: 100%;
55
56
  &:hover {
56
57
  background: #f0f1f5;
57
58
  }
@@ -59,6 +60,8 @@
59
60
 
60
61
  .@{bk-prefix}-checkbox-label {
61
62
  white-space: nowrap;
63
+ text-overflow: ellipsis;
64
+ overflow: hidden;
62
65
  }
63
66
 
64
67
  .@{bk-prefix}-checkbox {
@@ -156,10 +156,6 @@
156
156
  max-width: 300px;
157
157
  min-width: 200px;
158
158
  }
159
- .bk-popover.bk-pop2-content.bk-table-head-filter .content-list .content-items {
160
- max-height: 200px;
161
- min-height: 40px;
162
- }
163
159
  .bk-popover.bk-pop2-content.bk-table-head-filter .content-list .content-items .list-item {
164
160
  width: 100%;
165
161
  height: 32px;
@@ -172,11 +168,19 @@
172
168
  .bk-popover.bk-pop2-content.bk-table-head-filter .content-list .content-items .list-item:hover {
173
169
  background: #f0f1f5;
174
170
  }
171
+ .bk-popover.bk-pop2-content.bk-table-head-filter .content-list .content-items .list-item label {
172
+ text-overflow: ellipsis;
173
+ white-space: nowrap;
174
+ overflow: hidden;
175
+ width: 100%;
176
+ }
175
177
  .bk-popover.bk-pop2-content.bk-table-head-filter .content-list .content-items .list-item label:hover {
176
178
  background: #f0f1f5;
177
179
  }
178
180
  .bk-popover.bk-pop2-content.bk-table-head-filter .content-list .content-items .list-item .bk-checkbox-label {
179
181
  white-space: nowrap;
182
+ text-overflow: ellipsis;
183
+ overflow: hidden;
180
184
  }
181
185
  .bk-popover.bk-pop2-content.bk-table-head-filter .content-list .content-items .list-item .bk-checkbox {
182
186
  margin-left: 0;
@@ -22,6 +22,7 @@
22
22
  .bk-scrollbar-wrapper .bk-scrollbar-content-el {
23
23
  display: inline-flex;
24
24
  flex-direction: column;
25
+ width: 100%;
25
26
  }
26
27
  .bk-scrollbar-wrapper .bk-scrollbar-track {
27
28
  z-index: 1;
@@ -864,10 +865,6 @@
864
865
  max-width: 300px;
865
866
  min-width: 200px;
866
867
  }
867
- .bk-popover.bk-pop2-content.bk-table-head-filter .content-list .content-items {
868
- max-height: 200px;
869
- min-height: 40px;
870
- }
871
868
  .bk-popover.bk-pop2-content.bk-table-head-filter .content-list .content-items .list-item {
872
869
  width: 100%;
873
870
  height: 32px;
@@ -880,11 +877,19 @@
880
877
  .bk-popover.bk-pop2-content.bk-table-head-filter .content-list .content-items .list-item:hover {
881
878
  background: #f0f1f5;
882
879
  }
880
+ .bk-popover.bk-pop2-content.bk-table-head-filter .content-list .content-items .list-item label {
881
+ text-overflow: ellipsis;
882
+ white-space: nowrap;
883
+ overflow: hidden;
884
+ width: 100%;
885
+ }
883
886
  .bk-popover.bk-pop2-content.bk-table-head-filter .content-list .content-items .list-item label:hover {
884
887
  background: #f0f1f5;
885
888
  }
886
889
  .bk-popover.bk-pop2-content.bk-table-head-filter .content-list .content-items .list-item .bk-checkbox-label {
887
890
  white-space: nowrap;
891
+ text-overflow: ellipsis;
892
+ overflow: hidden;
888
893
  }
889
894
  .bk-popover.bk-pop2-content.bk-table-head-filter .content-list .content-items .list-item .bk-checkbox {
890
895
  margin-left: 0;
@@ -151,6 +151,7 @@
151
151
  .bk-scrollbar-wrapper .bk-scrollbar-content-el {
152
152
  display: inline-flex;
153
153
  flex-direction: column;
154
+ width: 100%;
154
155
  }
155
156
  .bk-scrollbar-wrapper .bk-scrollbar-track {
156
157
  z-index: 1;
@@ -993,10 +994,6 @@
993
994
  max-width: 300px;
994
995
  min-width: 200px;
995
996
  }
996
- .bk-popover.bk-pop2-content.bk-table-head-filter .content-list .content-items {
997
- max-height: 200px;
998
- min-height: 40px;
999
- }
1000
997
  .bk-popover.bk-pop2-content.bk-table-head-filter .content-list .content-items .list-item {
1001
998
  width: 100%;
1002
999
  height: 32px;
@@ -1009,11 +1006,19 @@
1009
1006
  .bk-popover.bk-pop2-content.bk-table-head-filter .content-list .content-items .list-item:hover {
1010
1007
  background: #f0f1f5;
1011
1008
  }
1009
+ .bk-popover.bk-pop2-content.bk-table-head-filter .content-list .content-items .list-item label {
1010
+ text-overflow: ellipsis;
1011
+ white-space: nowrap;
1012
+ overflow: hidden;
1013
+ width: 100%;
1014
+ }
1012
1015
  .bk-popover.bk-pop2-content.bk-table-head-filter .content-list .content-items .list-item label:hover {
1013
1016
  background: #f0f1f5;
1014
1017
  }
1015
1018
  .bk-popover.bk-pop2-content.bk-table-head-filter .content-list .content-items .list-item .bk-checkbox-label {
1016
1019
  white-space: nowrap;
1020
+ text-overflow: ellipsis;
1021
+ overflow: hidden;
1017
1022
  }
1018
1023
  .bk-popover.bk-pop2-content.bk-table-head-filter .content-list .content-items .list-item .bk-checkbox {
1019
1024
  margin-left: 0;
package/lib/tree/tree.css CHANGED
@@ -22,6 +22,7 @@
22
22
  .bk-scrollbar-wrapper .bk-scrollbar-content-el {
23
23
  display: inline-flex;
24
24
  flex-direction: column;
25
+ width: 100%;
25
26
  }
26
27
  .bk-scrollbar-wrapper .bk-scrollbar-track {
27
28
  z-index: 1;
@@ -151,6 +151,7 @@
151
151
  .bk-scrollbar-wrapper .bk-scrollbar-content-el {
152
152
  display: inline-flex;
153
153
  flex-direction: column;
154
+ width: 100%;
154
155
  }
155
156
  .bk-scrollbar-wrapper .bk-scrollbar-track {
156
157
  z-index: 1;
@@ -995,13 +995,13 @@ function virtual_render_objectSpread(e) { for (var r = 1; r < arguments.length;
995
995
  });
996
996
  /** 虚拟渲染外层容器样式 */
997
997
  var wrapperStyle = (0,external_vue_namespaceObject.computed)(function () {
998
- var _props$maxHeight;
999
998
  var height = typeof props.height === 'number' ? "".concat(props.height, "px") : props.height;
1000
999
  return virtual_render_objectSpread(virtual_render_objectSpread({
1001
1000
  height: height,
1002
1001
  width: typeof props.width === 'number' ? "".concat(props.width, "px") : props.width,
1003
1002
  display: 'inline-block',
1004
- maxHeight: (_props$maxHeight = props.maxHeight) !== null && _props$maxHeight !== void 0 ? _props$maxHeight : height
1003
+ maxHeight: props.maxHeight ? "".concat(props.maxHeight, "px") : false,
1004
+ minHeight: props.minHeight ? "".concat(props.minHeight, "px") : false
1005
1005
  }, props.scrollPosition === 'container' ? innerContentStyle.value : {}), props.wrapperStyle);
1006
1006
  });
1007
1007
  var contentHeight = (0,external_vue_namespaceObject.computed)(function () {
@@ -22,6 +22,7 @@
22
22
  .bk-scrollbar-wrapper .bk-scrollbar-content-el {
23
23
  display: inline-flex;
24
24
  flex-direction: column;
25
+ width: 100%;
25
26
  }
26
27
  .bk-scrollbar-wrapper .bk-scrollbar-track {
27
28
  z-index: 1;
@@ -151,6 +151,7 @@
151
151
  .bk-scrollbar-wrapper .bk-scrollbar-content-el {
152
152
  display: inline-flex;
153
153
  flex-direction: column;
154
+ width: 100%;
154
155
  }
155
156
  .bk-scrollbar-wrapper .bk-scrollbar-track {
156
157
  z-index: 1;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bkui-vue",
3
- "version": "1.0.3-beta.66.dialog.1",
3
+ "version": "1.0.3-beta.66.dialog.3",
4
4
  "workspaces": {
5
5
  "packages": [
6
6
  "packages/!(**.bak)*",