bkui-vue 2.0.1-beta.1 → 2.0.1-beta.11

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.
Files changed (54) hide show
  1. package/dist/index.cjs.js +58 -58
  2. package/dist/index.esm.js +11848 -11789
  3. package/dist/index.umd.js +57 -57
  4. package/dist/style.css +1 -1
  5. package/dist/style.variable.css +1 -1
  6. package/lib/cascader/cascader.css +3 -3
  7. package/lib/cascader/cascader.less +4 -4
  8. package/lib/cascader/cascader.variable.css +3 -3
  9. package/lib/cascader/index.js +4 -4
  10. package/lib/color-picker/color-picker.css +3 -3
  11. package/lib/color-picker/color-picker.less +3 -3
  12. package/lib/color-picker/color-picker.variable.css +3 -3
  13. package/lib/color-picker/index.js +1 -1
  14. package/lib/date-picker/base/year-table.d.ts +2 -2
  15. package/lib/date-picker/index.js +115 -38
  16. package/lib/date-picker/interface.d.ts +1 -1
  17. package/lib/date-picker/panel/date-range.d.ts +1 -63
  18. package/lib/date-picker/utils.d.ts +4 -0
  19. package/lib/dialog/dialog.css +0 -4
  20. package/lib/dialog/dialog.variable.css +0 -4
  21. package/lib/info-box/index.js +1 -1
  22. package/lib/modal/modal.css +0 -4
  23. package/lib/modal/modal.less +0 -5
  24. package/lib/modal/modal.variable.css +0 -4
  25. package/lib/pop-confirm/index.d.ts +11 -11
  26. package/lib/pop-confirm/index.js +2 -1
  27. package/lib/pop-confirm/pop-confirm.d.ts +5 -5
  28. package/lib/pop-confirm/props.d.ts +2 -2
  29. package/lib/radio/index.js +8 -13
  30. package/lib/rate/rate.css +27 -0
  31. package/lib/rate/rate.less +33 -0
  32. package/lib/rate/rate.variable.css +27 -0
  33. package/lib/select/select.css +1 -2
  34. package/lib/select/select.less +1 -2
  35. package/lib/select/select.variable.css +1 -2
  36. package/lib/styles/index.d.ts +0 -1
  37. package/lib/table/index.js +40 -15
  38. package/lib/table/plugins/use-shift-key.d.ts +2 -0
  39. package/lib/table/props.d.ts +1 -1
  40. package/lib/table-column/index.js +1 -1
  41. package/lib/transfer/index.js +16 -14
  42. package/lib/transfer/transfer.css +9 -9
  43. package/lib/transfer/transfer.less +3 -3
  44. package/lib/transfer/transfer.variable.css +9 -9
  45. package/lib/tree/index.js +17 -13
  46. package/lib/tree/tree.d.ts +2 -8
  47. package/lib/tree/tree.less +1 -1
  48. package/lib/tree/util.d.ts +1 -1
  49. package/lib/upload/index.js +16 -9
  50. package/lib/upload/upload.type.d.ts +1 -1
  51. package/package.json +1 -1
  52. package/lib/rate/star.css +0 -27
  53. package/lib/rate/star.less +0 -34
  54. package/lib/rate/star.variable.css +0 -156
@@ -191,69 +191,7 @@ declare const _default: import("vue").DefineComponent<{
191
191
  leftPickerTable: import("vue").Ref<string>;
192
192
  rightPickerTable: import("vue").Ref<string>;
193
193
  leftPanelDate: import("vue").Ref<any>;
194
- rightPanelDate: import("vue").Ref<{
195
- toString: () => string;
196
- toDateString: () => string;
197
- toTimeString: () => string;
198
- toLocaleString: {
199
- (): string;
200
- (locales?: string | string[], options?: Intl.DateTimeFormatOptions): string;
201
- (locales?: Intl.LocalesArgument, options?: Intl.DateTimeFormatOptions): string;
202
- };
203
- toLocaleDateString: {
204
- (): string;
205
- (locales?: string | string[], options?: Intl.DateTimeFormatOptions): string;
206
- (locales?: Intl.LocalesArgument, options?: Intl.DateTimeFormatOptions): string;
207
- };
208
- toLocaleTimeString: {
209
- (): string;
210
- (locales?: string | string[], options?: Intl.DateTimeFormatOptions): string;
211
- (locales?: Intl.LocalesArgument, options?: Intl.DateTimeFormatOptions): string;
212
- };
213
- valueOf: () => number;
214
- getTime: () => number;
215
- getFullYear: () => number;
216
- getUTCFullYear: () => number;
217
- getMonth: () => number;
218
- getUTCMonth: () => number;
219
- getDate: () => number;
220
- getUTCDate: () => number;
221
- getDay: () => number;
222
- getUTCDay: () => number;
223
- getHours: () => number;
224
- getUTCHours: () => number;
225
- getMinutes: () => number;
226
- getUTCMinutes: () => number;
227
- getSeconds: () => number;
228
- getUTCSeconds: () => number;
229
- getMilliseconds: () => number;
230
- getUTCMilliseconds: () => number;
231
- getTimezoneOffset: () => number;
232
- setTime: (time: number) => number;
233
- setMilliseconds: (ms: number) => number;
234
- setUTCMilliseconds: (ms: number) => number;
235
- setSeconds: (sec: number, ms?: number) => number;
236
- setUTCSeconds: (sec: number, ms?: number) => number;
237
- setMinutes: (min: number, sec?: number, ms?: number) => number;
238
- setUTCMinutes: (min: number, sec?: number, ms?: number) => number;
239
- setHours: (hours: number, min?: number, sec?: number, ms?: number) => number;
240
- setUTCHours: (hours: number, min?: number, sec?: number, ms?: number) => number;
241
- setDate: (date: number) => number;
242
- setUTCDate: (date: number) => number;
243
- setMonth: (month: number, date?: number) => number;
244
- setUTCMonth: (month: number, date?: number) => number;
245
- setFullYear: (year: number, month?: number, date?: number) => number;
246
- setUTCFullYear: (year: number, month?: number, date?: number) => number;
247
- toUTCString: () => string;
248
- toISOString: () => string;
249
- toJSON: (key?: any) => string;
250
- [Symbol.toPrimitive]: {
251
- (hint: "default"): string;
252
- (hint: "string"): string;
253
- (hint: "number"): number;
254
- (hint: string): string | number;
255
- };
256
- }>;
194
+ rightPanelDate: import("vue").Ref<any>;
257
195
  rangeState: import("vue").Ref<{
258
196
  from: any;
259
197
  to: any;
@@ -42,6 +42,10 @@ export declare const typeValueResolver: {
42
42
  formatter: (value: any, format: any) => string;
43
43
  parser: (text: any, format: any) => any;
44
44
  };
45
+ yearrange: {
46
+ formatter: (value: any, format: any) => string;
47
+ parser: (text: any, format: any) => any[];
48
+ };
45
49
  multiple: {
46
50
  formatter(value: any, format: any): any;
47
51
  parser(v: any, format: any): any;
@@ -88,10 +88,6 @@
88
88
  .bk-modal-content {
89
89
  position: relative;
90
90
  max-height: 100vh;
91
- font-size: 0;
92
- }
93
- .bk-modal-content div {
94
- font-size: 12px;
95
91
  }
96
92
  .bk-modal-footer {
97
93
  position: relative;
@@ -217,10 +217,6 @@
217
217
  .bk-modal-content {
218
218
  position: relative;
219
219
  max-height: 100vh;
220
- font-size: 0;
221
- }
222
- .bk-modal-content div {
223
- font-size: 12px;
224
220
  }
225
221
  .bk-modal-footer {
226
222
  position: relative;
@@ -661,7 +661,7 @@ var genDefaultState = function genDefaultState() {
661
661
  while (1) switch (_context2.prev = _context2.next) {
662
662
  case 0:
663
663
  _context2.next = 2;
664
- return state.beforeClose('confirm');
664
+ return state.beforeClose('cancel');
665
665
  case 2:
666
666
  willClose = _context2.sent;
667
667
  if (willClose) {
@@ -88,10 +88,6 @@
88
88
  .bk-modal-content {
89
89
  position: relative;
90
90
  max-height: 100vh;
91
- font-size: 0;
92
- }
93
- .bk-modal-content div {
94
- font-size: 12px;
95
91
  }
96
92
  .bk-modal-footer {
97
93
  position: relative;
@@ -25,11 +25,6 @@
25
25
  .@{bk-prefix}-modal-content {
26
26
  position: relative;
27
27
  max-height: 100vh;
28
- font-size: 0;
29
-
30
- div {
31
- font-size: 12px;
32
- }
33
28
  }
34
29
  .@{bk-prefix}-modal-footer {
35
30
  position: relative;
@@ -217,10 +217,6 @@
217
217
  .bk-modal-content {
218
218
  position: relative;
219
219
  max-height: 100vh;
220
- font-size: 0;
221
- }
222
- .bk-modal-content div {
223
- font-size: 12px;
224
220
  }
225
221
  .bk-modal-footer {
226
222
  position: relative;
@@ -23,8 +23,8 @@ declare const BKPopConfirm: {
23
23
  } & {
24
24
  default: string;
25
25
  };
26
- placement: import("vue-types").VueTypeDef<string> & {
27
- default: string;
26
+ placement: import("vue-types").VueTypeValidableDef<"auto" | "auto-start" | "auto-end" | "top" | "right" | "bottom" | "left" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end"> & {
27
+ default: "auto" | "auto-start" | "auto-end" | "top" | "right" | "bottom" | "left" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end";
28
28
  };
29
29
  theme: import("vue-types").VueTypeValidableDef<string> & {
30
30
  default: string;
@@ -79,8 +79,8 @@ declare const BKPopConfirm: {
79
79
  } & {
80
80
  default: string;
81
81
  };
82
- placement: import("vue-types").VueTypeDef<string> & {
83
- default: string;
82
+ placement: import("vue-types").VueTypeValidableDef<"auto" | "auto-start" | "auto-end" | "top" | "right" | "bottom" | "left" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end"> & {
83
+ default: "auto" | "auto-start" | "auto-end" | "top" | "right" | "bottom" | "left" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end";
84
84
  };
85
85
  theme: import("vue-types").VueTypeValidableDef<string> & {
86
86
  default: string;
@@ -102,7 +102,7 @@ declare const BKPopConfirm: {
102
102
  title: string;
103
103
  width: string | number;
104
104
  content: string;
105
- placement: string;
105
+ placement: "auto" | "auto-start" | "auto-end" | "top" | "right" | "bottom" | "left" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end";
106
106
  theme: string;
107
107
  trigger: "click" | "hover";
108
108
  icon: string;
@@ -139,8 +139,8 @@ declare const BKPopConfirm: {
139
139
  } & {
140
140
  default: string;
141
141
  };
142
- placement: import("vue-types").VueTypeDef<string> & {
143
- default: string;
142
+ placement: import("vue-types").VueTypeValidableDef<"auto" | "auto-start" | "auto-end" | "top" | "right" | "bottom" | "left" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end"> & {
143
+ default: "auto" | "auto-start" | "auto-end" | "top" | "right" | "bottom" | "left" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end";
144
144
  };
145
145
  theme: import("vue-types").VueTypeValidableDef<string> & {
146
146
  default: string;
@@ -175,7 +175,7 @@ declare const BKPopConfirm: {
175
175
  title: string;
176
176
  width: string | number;
177
177
  content: string;
178
- placement: string;
178
+ placement: "auto" | "auto-start" | "auto-end" | "top" | "right" | "bottom" | "left" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end";
179
179
  theme: string;
180
180
  trigger: "click" | "hover";
181
181
  icon: string;
@@ -209,8 +209,8 @@ declare const BKPopConfirm: {
209
209
  } & {
210
210
  default: string;
211
211
  };
212
- placement: import("vue-types").VueTypeDef<string> & {
213
- default: string;
212
+ placement: import("vue-types").VueTypeValidableDef<"auto" | "auto-start" | "auto-end" | "top" | "right" | "bottom" | "left" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end"> & {
213
+ default: "auto" | "auto-start" | "auto-end" | "top" | "right" | "bottom" | "left" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end";
214
214
  };
215
215
  theme: import("vue-types").VueTypeValidableDef<string> & {
216
216
  default: string;
@@ -245,7 +245,7 @@ declare const BKPopConfirm: {
245
245
  title: string;
246
246
  width: string | number;
247
247
  content: string;
248
- placement: string;
248
+ placement: "auto" | "auto-start" | "auto-end" | "top" | "right" | "bottom" | "left" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end";
249
249
  theme: string;
250
250
  trigger: "click" | "hover";
251
251
  icon: string;
@@ -131,7 +131,7 @@ var PopConfirmProps = {
131
131
  content: shared_namespaceObject.PropTypes.string.def(''),
132
132
  confirmText: shared_namespaceObject.PropTypes.string.def(''),
133
133
  cancelText: shared_namespaceObject.PropTypes.string.def(''),
134
- placement: shared_namespaceObject.PropTypes.oneOfType([(0,shared_namespaceObject.placementType)().def(shared_namespaceObject.PlacementEnum.TOP), shared_namespaceObject.PropTypes.string]).def(shared_namespaceObject.PlacementEnum.TOP),
134
+ placement: (0,shared_namespaceObject.placementType)().def(shared_namespaceObject.PlacementEnum.TOP_START),
135
135
  theme: shared_namespaceObject.PropTypes.string.def('light '),
136
136
  /**
137
137
  * 自定义icon:根据确认框中提示文字的语境来选择 icon的样式,当确认操作存在风险时,可选择带警示的icon来引起用户的注意。
@@ -226,6 +226,7 @@ var PopConfirmProps = {
226
226
  "ref": "popoverRef",
227
227
  "isShow": this.visible,
228
228
  "trigger": this.trigger,
229
+ "placement": this.placement,
229
230
  "theme": this.theme,
230
231
  "width": this.width,
231
232
  "onAfterShow": function onAfterShow() {
@@ -22,8 +22,8 @@ declare const _default: import("vue").DefineComponent<{
22
22
  } & {
23
23
  default: string;
24
24
  };
25
- placement: import("vue-types").VueTypeDef<string> & {
26
- default: string;
25
+ placement: import("vue-types").VueTypeValidableDef<"auto" | "auto-start" | "auto-end" | "top" | "right" | "bottom" | "left" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end"> & {
26
+ default: "auto" | "auto-start" | "auto-end" | "top" | "right" | "bottom" | "left" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end";
27
27
  };
28
28
  theme: import("vue-types").VueTypeValidableDef<string> & {
29
29
  default: string;
@@ -75,8 +75,8 @@ declare const _default: import("vue").DefineComponent<{
75
75
  } & {
76
76
  default: string;
77
77
  };
78
- placement: import("vue-types").VueTypeDef<string> & {
79
- default: string;
78
+ placement: import("vue-types").VueTypeValidableDef<"auto" | "auto-start" | "auto-end" | "top" | "right" | "bottom" | "left" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end"> & {
79
+ default: "auto" | "auto-start" | "auto-end" | "top" | "right" | "bottom" | "left" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end";
80
80
  };
81
81
  theme: import("vue-types").VueTypeValidableDef<string> & {
82
82
  default: string;
@@ -98,7 +98,7 @@ declare const _default: import("vue").DefineComponent<{
98
98
  title: string;
99
99
  width: string | number;
100
100
  content: string;
101
- placement: string;
101
+ placement: "auto" | "auto-start" | "auto-end" | "top" | "right" | "bottom" | "left" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end";
102
102
  theme: string;
103
103
  trigger: "click" | "hover";
104
104
  icon: string;
@@ -44,8 +44,8 @@ export declare const PopConfirmProps: {
44
44
  } & {
45
45
  default: string;
46
46
  };
47
- placement: import("vue-types").VueTypeDef<string> & {
48
- default: string;
47
+ placement: import("vue-types").VueTypeValidableDef<"auto" | "auto-start" | "auto-end" | "top" | "right" | "bottom" | "left" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end"> & {
48
+ default: "auto" | "auto-start" | "auto-end" | "top" | "right" | "bottom" | "left" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end";
49
49
  };
50
50
  theme: import("vue-types").VueTypeValidableDef<string> & {
51
51
  default: string;
@@ -238,13 +238,14 @@ var useRadio = function useRadio() {
238
238
  };
239
239
  // 值更新
240
240
  var handleChange = function handleChange(event) {
241
- var _props$beforeChange, _props$beforeChange2;
241
+ var _radioGroup$props$bef, _beforeChangeFn;
242
242
  if (isDisabled.value || isPrechecking.value) {
243
243
  return;
244
244
  }
245
245
  var $targetInput = event.target;
246
246
  var newValue = $targetInput.checked;
247
- var beforeChangeValue = (_props$beforeChange = (_props$beforeChange2 = props.beforeChange) === null || _props$beforeChange2 === void 0 ? void 0 : _props$beforeChange2.call(props, newValue, event, props)) !== null && _props$beforeChange !== void 0 ? _props$beforeChange : true;
247
+ var beforeChangeFn = (_radioGroup$props$bef = radioGroup === null || radioGroup === void 0 ? void 0 : radioGroup.props.beforeChange) !== null && _radioGroup$props$bef !== void 0 ? _radioGroup$props$bef : props.beforeChange;
248
+ var beforeChangeValue = (_beforeChangeFn = beforeChangeFn === null || beforeChangeFn === void 0 ? void 0 : beforeChangeFn(newValue, event, props)) !== null && _beforeChangeFn !== void 0 ? _beforeChangeFn : true;
248
249
  Promise.resolve(beforeChangeValue).then(function (result) {
249
250
  if (result) {
250
251
  isChecked.value = $targetInput.checked;
@@ -565,20 +566,14 @@ var radioGroupProps = {
565
566
  }
566
567
  };
567
568
  var handleChange = function handleChange(checkedRadioInstance) {
568
- var _props$beforeChange, _props$beforeChange2;
569
569
  var nextValue = checkedRadioInstance.label;
570
- var beforeChangeValue = (_props$beforeChange = (_props$beforeChange2 = props.beforeChange) === null || _props$beforeChange2 === void 0 ? void 0 : _props$beforeChange2.call(props, nextValue, checkedRadioInstance, props)) !== null && _props$beforeChange !== void 0 ? _props$beforeChange : true;
571
- Promise.resolve(beforeChangeValue).then(function (resp) {
572
- if (resp) {
573
- radioInstanceList.forEach(function (radioInstance) {
574
- if (radioInstance !== checkedRadioInstance) {
575
- radioInstance.setChecked(false);
576
- }
577
- });
578
- context.emit('update:modelValue', nextValue);
579
- context.emit('change', nextValue);
570
+ radioInstanceList.forEach(function (radioInstance) {
571
+ if (radioInstance !== checkedRadioInstance) {
572
+ radioInstance.setChecked(false);
580
573
  }
581
574
  });
575
+ context.emit('update:modelValue', nextValue);
576
+ context.emit('change', nextValue);
582
577
  };
583
578
  (0,external_vue_namespaceObject.provide)(radioGroupKey, {
584
579
  props: props,
package/lib/rate/rate.css CHANGED
@@ -8,3 +8,30 @@
8
8
  display: flex;
9
9
  overflow: hidden;
10
10
  }
11
+ .bk-rate-stars {
12
+ padding: 0;
13
+ margin: 0;
14
+ }
15
+ .bk-rate-stars .bk-is-edit {
16
+ cursor: pointer;
17
+ }
18
+ .bk-rate-stars:after {
19
+ display: table;
20
+ clear: both;
21
+ content: '';
22
+ }
23
+ .bk-rate-stars .bk-rate-star {
24
+ float: left;
25
+ margin-right: 3px;
26
+ enable-background: new 0 0 64 64;
27
+ fill: #c5c7d1;
28
+ }
29
+ .bk-rate-stars .bk-rate-star.bk-is-select {
30
+ fill: #ffb848;
31
+ }
32
+ .bk-rate-stars .bk-rate-star.bk-is-hover {
33
+ transform: scale(1.2);
34
+ }
35
+ .bk-rate-stars .bk-rate-star:last-child {
36
+ margin-right: 0;
37
+ }
@@ -11,3 +11,36 @@
11
11
  overflow: hidden;
12
12
  }
13
13
  }
14
+
15
+ .@{bk-prefix}-rate-stars {
16
+ padding: 0;
17
+ margin: 0;
18
+
19
+ .@{bk-prefix}-is-edit {
20
+ cursor: pointer;
21
+ }
22
+
23
+ &:after {
24
+ display: table;
25
+ clear: both;
26
+ content: '';
27
+ }
28
+
29
+ .@{bk-prefix}-rate-star {
30
+ float: left;
31
+ margin-right: 3px;
32
+ enable-background: new 0 0 64 64;
33
+ fill: #c5c7d1;
34
+
35
+ &.@{bk-prefix}-is-select {
36
+ fill: #ffb848;
37
+ }
38
+ &.@{bk-prefix}-is-hover {
39
+ transform: scale(1.2);
40
+ }
41
+
42
+ &:last-child {
43
+ margin-right: 0;
44
+ }
45
+ }
46
+ }
@@ -137,3 +137,30 @@
137
137
  display: flex;
138
138
  overflow: hidden;
139
139
  }
140
+ .bk-rate-stars {
141
+ padding: 0;
142
+ margin: 0;
143
+ }
144
+ .bk-rate-stars .bk-is-edit {
145
+ cursor: pointer;
146
+ }
147
+ .bk-rate-stars:after {
148
+ display: table;
149
+ clear: both;
150
+ content: '';
151
+ }
152
+ .bk-rate-stars .bk-rate-star {
153
+ float: left;
154
+ margin-right: 3px;
155
+ enable-background: new 0 0 64 64;
156
+ fill: #c5c7d1;
157
+ }
158
+ .bk-rate-stars .bk-rate-star.bk-is-select {
159
+ fill: #ffb848;
160
+ }
161
+ .bk-rate-stars .bk-rate-star.bk-is-hover {
162
+ transform: scale(1.2);
163
+ }
164
+ .bk-rate-stars .bk-rate-star:last-child {
165
+ margin-right: 0;
166
+ }
@@ -330,9 +330,8 @@
330
330
  .bk-popover.bk-pop2-content.bk-select-popover .bk-select-content-wrapper .bk-select-option {
331
331
  position: relative;
332
332
  display: flex;
333
- height: 32px;
333
+ min-height: 32px;
334
334
  padding: 0 12px;
335
- line-height: 32px;
336
335
  color: #63656e;
337
336
  text-align: left;
338
337
  cursor: pointer;
@@ -380,9 +380,8 @@
380
380
  .@{bk-prefix}-select-option {
381
381
  position: relative;
382
382
  display: flex;
383
- height: 32px;
383
+ min-height: 32px;
384
384
  padding: 0 12px;
385
- line-height: 32px;
386
385
  color: #63656e;
387
386
  text-align: left;
388
387
  cursor: pointer;
@@ -459,9 +459,8 @@
459
459
  .bk-popover.bk-pop2-content.bk-select-popover .bk-select-content-wrapper .bk-select-option {
460
460
  position: relative;
461
461
  display: flex;
462
- height: 32px;
462
+ min-height: 32px;
463
463
  padding: 0 12px;
464
- line-height: 32px;
465
464
  color: #63656e;
466
465
  text-align: left;
467
466
  cursor: pointer;
@@ -20,7 +20,6 @@ import '../modal/modal.less';
20
20
  import '../progress/progress.less';
21
21
  import '../radio/radio.less';
22
22
  import '../rate/rate.less';
23
- import '../rate/star.less';
24
23
  import '../swiper/swiper.less';
25
24
  import '../select/select.less';
26
25
  import '../sideslider/sideslider.less';
@@ -17804,7 +17804,7 @@ var tableProps = {
17804
17804
  /**
17805
17805
  * 提供自定义判定当前行是否选中
17806
17806
  * 如果设置了此属性,其他判定均不生效
17807
- * ({ row, cell, data }) => bool
17807
+ * ({ row }) => bool
17808
17808
  */
17809
17809
  isSelectedFn: shared_namespaceObject.PropTypes.func.def(undefined),
17810
17810
  /**
@@ -20397,6 +20397,7 @@ var resolvePaginationOption = function resolvePaginationOption(propPagination, d
20397
20397
  ;// CONCATENATED MODULE: ../../packages/table/src/use-attributes.ts
20398
20398
 
20399
20399
 
20400
+
20400
20401
  function use_attributes_ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
20401
20402
  function use_attributes_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? use_attributes_ownKeys(Object(t), !0).forEach(function (r) { defineProperty_defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : use_attributes_ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
20402
20403
  /*
@@ -20776,14 +20777,16 @@ var tableSchemaResponse = function tableSchemaResponse(props) {
20776
20777
  return false;
20777
20778
  }
20778
20779
  if (typeof props.isSelectedFn === 'function') {
20779
- return props.isSelectedFn({
20780
- row: row
20781
- });
20780
+ return props.isSelectedFn(getSelectionRowArgs(row));
20782
20781
  }
20783
20782
  if (Array.isArray(props.checked)) {
20784
20783
  return props.checked.some(function (item) {
20785
- if (typeof item === 'string') {
20786
- return getRowValue(row, item) === item;
20784
+ if (typeof_typeof(item) !== 'object') {
20785
+ if (props.selectionKey.length && Object.prototype.hasOwnProperty.call(row, props.selectionKey)) {
20786
+ return getRowValue(row, props.selectionKey) === item;
20787
+ }
20788
+ console.warn('props.selectionKey is undefined or null or empty');
20789
+ return false;
20787
20790
  }
20788
20791
  return getRawData(item) === getRawData(row);
20789
20792
  });
@@ -20868,10 +20871,7 @@ var tableSchemaResponse = function tableSchemaResponse(props) {
20868
20871
  var setRowSelection = function setRowSelection(row, isSelected, index) {
20869
20872
  var value = isSelected;
20870
20873
  if (typeof props.isSelectedFn === 'function') {
20871
- value = props.isSelectedFn({
20872
- row: row,
20873
- index: index !== null && index !== void 0 ? index : getRowAttribute(row, TABLE_ROW_ATTRIBUTE.ROW_INDEX)
20874
- });
20874
+ value = props.isSelectedFn(getSelectionRowArgs(row, index));
20875
20875
  }
20876
20876
  if (isRowSelectEnable(props, {
20877
20877
  row: row,
@@ -20902,11 +20902,16 @@ var tableSchemaResponse = function tableSchemaResponse(props) {
20902
20902
  var row = getRawData(item);
20903
20903
  return (_formatData$dataSchem6 = formatData.dataSchema.get(row)) === null || _formatData$dataSchem6 === void 0 ? void 0 : _formatData$dataSchem6[attrName];
20904
20904
  };
20905
+ var getSelectionRowArgs = function getSelectionRowArgs(row, index) {
20906
+ return {
20907
+ row: row,
20908
+ index: index !== null && index !== void 0 ? index : getRowAttribute(row, TABLE_ROW_ATTRIBUTE.ROW_INDEX),
20909
+ isSelectAll: getRowAttribute(CHECK_ALL_OBJ, TABLE_ROW_ATTRIBUTE.ROW_SELECTION)
20910
+ };
20911
+ };
20905
20912
  var toggleRowSelection = function toggleRowSelection(row) {
20906
20913
  if (typeof props.isSelectedFn === 'function') {
20907
- setRowSelection(row, props.isSelectedFn({
20908
- row: row
20909
- }));
20914
+ setRowSelection(row, props.isSelectedFn(getSelectionRowArgs(row)));
20910
20915
  return;
20911
20916
  }
20912
20917
  setRowSelection(row, !getRowAttribute(row, TABLE_ROW_ATTRIBUTE.ROW_SELECTION));
@@ -23236,6 +23241,15 @@ function use_head_cell_isSlot(s) {
23236
23241
  clearStore();
23237
23242
  }
23238
23243
  };
23244
+ var setStoreStart = function setStoreStart(row, index) {
23245
+ store.start = {
23246
+ index: index !== null && index !== void 0 ? index : null,
23247
+ row: row !== null && row !== void 0 ? row : null
23248
+ };
23249
+ };
23250
+ var clearStoreStart = function clearStoreStart() {
23251
+ setStoreStart();
23252
+ };
23239
23253
  var setStore = function setStore(row, index) {
23240
23254
  if (store.start === null && store.end === null) {
23241
23255
  store.start = {
@@ -23271,7 +23285,9 @@ function use_head_cell_isSlot(s) {
23271
23285
  isShiftKeyDown: isShiftKeyDown,
23272
23286
  setStore: setStore,
23273
23287
  getStore: getStore,
23274
- clearStore: clearStore
23288
+ clearStore: clearStore,
23289
+ setStoreStart: setStoreStart,
23290
+ clearStoreStart: clearStoreStart
23275
23291
  };
23276
23292
  });
23277
23293
  ;// CONCATENATED MODULE: ../../packages/table/src/use-render.tsx
@@ -23344,7 +23360,9 @@ function use_render_isSlot(s) {
23344
23360
  var _useShiftKey = use_shift_key(props),
23345
23361
  isShiftKeyDown = _useShiftKey.isShiftKeyDown,
23346
23362
  getStore = _useShiftKey.getStore,
23347
- setStore = _useShiftKey.setStore;
23363
+ setStore = _useShiftKey.setStore,
23364
+ setStoreStart = _useShiftKey.setStoreStart,
23365
+ clearStoreStart = _useShiftKey.clearStoreStart;
23348
23366
  // const activeSortIndex = ref(null);
23349
23367
  /**
23350
23368
  * 过滤当前可渲染的列
@@ -23766,6 +23784,13 @@ function use_render_isSlot(s) {
23766
23784
  });
23767
23785
  return;
23768
23786
  }
23787
+ if (!isShiftKeyDown.value) {
23788
+ if (value) {
23789
+ setStoreStart(row, index);
23790
+ } else {
23791
+ clearStoreStart();
23792
+ }
23793
+ }
23769
23794
  tableResp.setRowSelection(row, value);
23770
23795
  context.emit(EMIT_EVENTS.ROW_SELECT, {
23771
23796
  row: row,
@@ -7,5 +7,7 @@ declare const _default: (props: TablePropTypes) => {
7
7
  end: any;
8
8
  };
9
9
  clearStore: () => void;
10
+ setStoreStart: (row?: any, index?: any) => void;
11
+ clearStoreStart: () => void;
10
12
  };
11
13
  export default _default;
@@ -459,7 +459,7 @@ export declare const tableProps: {
459
459
  /**
460
460
  * 提供自定义判定当前行是否选中
461
461
  * 如果设置了此属性,其他判定均不生效
462
- * ({ row, cell, data }) => bool
462
+ * ({ row }) => bool
463
463
  */
464
464
  isSelectedFn: import("vue-types").VueTypeValidableDef<(...args: any[]) => any> & {
465
465
  default: (...args: any[]) => any;
@@ -517,7 +517,7 @@ var tableProps = {
517
517
  /**
518
518
  * 提供自定义判定当前行是否选中
519
519
  * 如果设置了此属性,其他判定均不生效
520
- * ({ row, cell, data }) => bool
520
+ * ({ row }) => bool
521
521
  */
522
522
  isSelectedFn: shared_namespaceObject.PropTypes.func.def(undefined),
523
523
  /**