@king-design/vue 2.0.0-beta.1 → 2.0.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.
- package/__tests__/__snapshots__/Vue Next Demos.md +1795 -0
- package/__tests__/components/dropdown.spec.ts +72 -0
- package/__tests__/components/select.spec.ts +29 -0
- package/__tests__/index.ts +46 -0
- package/__tests__/karma.conf.js +54 -0
- package/__tests__/webpack.config.js +61 -0
- package/components/breadcrumb/item.d.ts +1 -1
- package/components/breadcrumb/item.js +3 -14
- package/components/breadcrumb/styles.js +1 -1
- package/components/button/index.vdt.js +26 -17
- package/components/button/styles.d.ts +82 -1
- package/components/button/styles.js +16 -2
- package/components/card/styles.js +1 -1
- package/components/carousel/styles.js +4 -1
- package/components/carousel/useSlide.js +10 -9
- package/components/cascader/index.spec.js +89 -1
- package/components/cascader/index.vdt.js +4 -4
- package/components/cascader/useLabel.js +8 -12
- package/components/checkbox/index.vdt.js +15 -10
- package/components/checkbox/styles.js +2 -2
- package/components/collapse/item.vdt.js +2 -1
- package/components/collapse/styles.js +5 -1
- package/components/colorpicker/index.d.ts +2 -0
- package/components/colorpicker/index.js +2 -1
- package/components/colorpicker/index.spec.js +1 -1
- package/components/colorpicker/index.vdt.js +3 -1
- package/components/context.d.ts +5 -2
- package/components/context.js +7 -4
- package/components/datepicker/helpers.d.ts +2 -1
- package/components/datepicker/helpers.js +8 -2
- package/components/datepicker/index.spec.js +1 -1
- package/components/datepicker/index.vdt.js +10 -5
- package/components/datepicker/styles.d.ts +46 -1
- package/components/diagram/shapes/generateShapes.js +3 -3
- package/components/diagram/shapes/line.d.ts +2 -2
- package/components/diagram/shapes/line.js +0 -1
- package/components/dialog/base.d.ts +2 -0
- package/components/dialog/base.js +2 -1
- package/components/dialog/index.spec.js +59 -94
- package/components/dialog/styles.js +5 -1
- package/components/dialog/useFixBody.d.ts +6 -0
- package/components/dialog/useFixBody.js +12 -0
- package/components/drawer/index.spec.js +5 -5
- package/components/drawer/styles.js +1 -1
- package/components/dropdown/dropdown.js +1 -0
- package/components/dropdown/index.js +1 -2
- package/components/dropdown/index.spec.js +3 -3
- package/components/dropdown/styles.js +1 -1
- package/components/editable/index.vdt.js +2 -1
- package/components/editable/styles.d.ts +8 -1
- package/components/form/index.spec.js +10 -12
- package/components/form/item.vdt.js +13 -9
- package/components/form/useError.d.ts +5 -1
- package/components/form/useError.js +3 -1
- package/components/form/useValidate.js +2 -2
- package/components/grid/col.vdt.js +4 -2
- package/components/grid/styles.js +1 -1
- package/components/grid/useGutter.d.ts +1 -1
- package/components/icon/index.vdt.js +3 -2
- package/components/icon/styles.js +8 -4
- package/components/input/index.d.ts +1 -0
- package/components/input/index.js +2 -1
- package/components/input/index.vdt.js +47 -32
- package/components/input/search.vdt.js +4 -2
- package/components/input/styles.js +8 -3
- package/components/layout/styles.d.ts +1 -1
- package/components/layout/styles.js +7 -3
- package/components/menu/index.spec.js +15 -8
- package/components/menu/item.d.ts +1 -2
- package/components/menu/item.js +10 -17
- package/components/menu/item.vdt.js +4 -4
- package/components/menu/menu.d.ts +3 -0
- package/components/menu/menu.js +4 -0
- package/components/menu/styles.d.ts +62 -1
- package/components/menu/styles.js +6 -2
- package/components/menu/useExpanded.d.ts +1 -4
- package/components/menu/useHighlight.d.ts +5 -8
- package/components/menu/useHighlight.js +44 -33
- package/components/message/index.spec.js +1 -1
- package/components/message/styles.js +6 -2
- package/components/pagination/styles.js +1 -1
- package/components/radio/index.vdt.js +14 -9
- package/components/radio/styles.js +9 -1
- package/components/rate/styles.js +5 -1
- package/components/scrollSelect/styles.d.ts +14 -1
- package/components/scrollSelect/styles.js +9 -1
- package/components/select/base.vdt.js +135 -121
- package/components/select/index.spec.js +1 -1
- package/components/select/menu.vdt.js +1 -0
- package/components/select/styles.js +9 -4
- package/components/select/useSearchable.d.ts +1 -1
- package/components/slider/styles.js +5 -1
- package/components/spinner/index.d.ts +1 -1
- package/components/spinner/index.js +1 -1
- package/components/split/style.js +1 -1
- package/components/steps/context.d.ts +1 -1
- package/components/steps/styles.js +5 -1
- package/components/switch/styles.js +5 -1
- package/components/table/index.d.ts +1 -0
- package/components/table/index.spec.js +2 -1
- package/components/table/row.vdt.js +12 -4
- package/components/table/styles.js +6 -1
- package/components/table/table.d.ts +1 -0
- package/components/table/table.js +2 -1
- package/components/table/table.vdt.js +30 -27
- package/components/table/useColumns.d.ts +1 -1
- package/components/table/useFixedColumns.d.ts +1 -1
- package/components/table/useFixedColumns.js +5 -2
- package/components/table/useGroup.d.ts +1 -1
- package/components/table/useResizable.d.ts +1 -1
- package/components/table/useSortable.d.ts +1 -1
- package/components/table/useWidth.js +7 -1
- package/components/tabs/index.spec.js +1 -1
- package/components/tabs/styles.js +9 -2
- package/components/tabs/tab.vdt.js +2 -1
- package/components/tabs/useActiveBar.js +6 -3
- package/components/tag/base.js +1 -0
- package/components/tag/styles.js +8 -2
- package/components/timepicker/constants.d.ts +2 -1
- package/components/timepicker/constants.js +3 -2
- package/components/timepicker/index.spec.js +36 -35
- package/components/timepicker/useStep.js +3 -3
- package/components/timepicker/useValue.js +2 -2
- package/components/tooltip/index.spec.js +32 -25
- package/components/transfer/index.spec.js +20 -19
- package/components/transfer/styles.js +2 -6
- package/components/tree/index.d.ts +1 -1
- package/components/tree/index.js +1 -1
- package/components/tree/index.spec.js +20 -19
- package/components/tree/index.vdt.js +1 -0
- package/components/tree/styles.js +5 -1
- package/components/treeSelect/index.spec.js +5 -5
- package/components/treeSelect/styles.js +5 -1
- package/components/upload/index.d.ts +1 -1
- package/components/upload/index.spec.js +1 -1
- package/components/upload/index.vdt.js +10 -11
- package/components/upload/styles.js +5 -1
- package/components/utils.d.ts +1 -1
- package/components/wave/index.d.ts +19 -0
- package/components/wave/index.js +120 -0
- package/components/wave/styles.d.ts +2 -0
- package/components/wave/styles.js +17 -0
- package/hooks/useRouter.d.ts +1 -0
- package/hooks/useRouter.js +10 -0
- package/i18n/en-US.d.ts +1 -0
- package/i18n/en-US.js +1 -0
- package/index.d.ts +3 -2
- package/index.js +3 -2
- package/install.d.ts +2 -0
- package/package.json +2 -12
- package/styles/global.js +4 -3
- package/styles/theme.d.ts +16 -7
- package/styles/theme.js +15 -7
- package/tsconfig.json +22 -0
|
@@ -4,16 +4,19 @@ import { createUnknownComponentVNode as _$cc, createVNode as _$cv, className as
|
|
|
4
4
|
import { TransitionGroup, Transition } from 'intact';
|
|
5
5
|
import { Input } from '../input';
|
|
6
6
|
import { Icon } from '../icon';
|
|
7
|
-
import { isNullOrUndefined } from 'intact-shared';
|
|
7
|
+
import { isNullOrUndefined, isStringOrNumber } from 'intact-shared';
|
|
8
8
|
import makeStyles from './styles';
|
|
9
9
|
import { Dropdown } from '../dropdown';
|
|
10
10
|
import { getRestProps, addStyle } from '../utils';
|
|
11
|
+
import { Wave } from '../wave';
|
|
12
|
+
import { context as ErrorContext } from '../form/useError';
|
|
11
13
|
var _$tmp0 = {
|
|
12
14
|
'className': 'ion-load-c',
|
|
13
15
|
'rotate': true
|
|
14
16
|
};
|
|
15
17
|
export default function ($props, $blocks, $__proto__) {
|
|
16
|
-
var _classNameObj
|
|
18
|
+
var _classNameObj,
|
|
19
|
+
_this = this;
|
|
17
20
|
|
|
18
21
|
$blocks || ($blocks = {});
|
|
19
22
|
$props || ($props = {});
|
|
@@ -53,64 +56,57 @@ export default function ($props, $blocks, $__proto__) {
|
|
|
53
56
|
var _this$focusout = this.focusout,
|
|
54
57
|
onFocusout = _this$focusout.onFocusout,
|
|
55
58
|
triggerRef = _this$focusout.triggerRef;
|
|
56
|
-
return _$cc(
|
|
57
|
-
'
|
|
58
|
-
'
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
59
|
+
return _$cc(ErrorContext.Consumer, {
|
|
60
|
+
'defaultValue': false,
|
|
61
|
+
'children': function children(isInvalid) {
|
|
62
|
+
return _$cc(Wave, {
|
|
63
|
+
'disabled': disabled || isInvalid || inline,
|
|
64
|
+
'inset': '-2px',
|
|
65
|
+
'children': _$cc(Dropdown, {
|
|
66
|
+
'trigger': 'click',
|
|
67
|
+
'ref': _this.dropdownRef,
|
|
68
|
+
'disabled': disabled,
|
|
69
|
+
'container': container,
|
|
70
|
+
'children': [_$cv('div', _extends({}, getRestProps(_this), {
|
|
71
|
+
'className': _$cn(classNameObj),
|
|
72
|
+
'tabindex': disabled ? '-1' : '0',
|
|
73
|
+
'ev-keydown': _this.onKeydown,
|
|
74
|
+
'ev-focusout': onFocusout,
|
|
75
|
+
'style': !isNullOrUndefined(width) ? addStyle(style, {
|
|
76
|
+
width: width + "px"
|
|
77
|
+
}) : style,
|
|
78
|
+
'ref': triggerRef
|
|
79
|
+
}), [$blocks.prefix ? _$ce(2, 'div', (_$blocks['prefix'] = function ($super) {
|
|
80
|
+
return null;
|
|
81
|
+
}, __$blocks['prefix'] = function ($super, data) {
|
|
82
|
+
var block = $blocks['prefix'];
|
|
74
83
|
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
84
|
+
var callBlock = function callBlock() {
|
|
85
|
+
return _$blocks['prefix'].call($this, $super, data);
|
|
86
|
+
};
|
|
78
87
|
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
var block = $blocks['value'];
|
|
102
|
-
|
|
103
|
-
var callBlock = function callBlock() {
|
|
104
|
-
return _$blocks['value'].call($this, $super, data);
|
|
105
|
-
};
|
|
106
|
-
|
|
107
|
-
return block ? block.call($this, callBlock, data) : callBlock();
|
|
108
|
-
}, __$blocks['value'](_$no, [value, label])), 0, 'k-select-value c-ellipsis', null, 'value') : _$ce(2, 'div', [_$cc(TransitionGroup, {
|
|
109
|
-
'name': 'k-fade',
|
|
110
|
-
'children': (_$blocks['values'] = function ($super) {
|
|
111
|
-
return _$ma(label, function ($label, $key) {
|
|
112
|
-
return _$ce(2, 'div', [_$ce(2, 'span', (_$blocks['value'] = function ($super) {
|
|
113
|
-
return $label;
|
|
88
|
+
return block ? block.call($this, callBlock, data) : callBlock();
|
|
89
|
+
}, __$blocks['prefix'](_$no)), 0, 'k-select-prefix') : undefined, _$ce(2, 'div', [_$ce(64, 'input', null, 1, null, {
|
|
90
|
+
'type': 'hidden',
|
|
91
|
+
'value': value,
|
|
92
|
+
'name': name
|
|
93
|
+
}, 'hidden-input'), null, _$cc(TransitionGroup, {
|
|
94
|
+
'name': 'k-fade',
|
|
95
|
+
'appear': false,
|
|
96
|
+
'children': !multiple && filterable ? _$cc(Input, {
|
|
97
|
+
'value': _show ? keywords : label,
|
|
98
|
+
'ev-$change:value': onInput,
|
|
99
|
+
'disabled': disabled,
|
|
100
|
+
'placeholder': label || placeholder,
|
|
101
|
+
'ref': inputRef,
|
|
102
|
+
'size': size,
|
|
103
|
+
'fluid': true,
|
|
104
|
+
'inline': true,
|
|
105
|
+
'key': 'input',
|
|
106
|
+
'readonly': !_show,
|
|
107
|
+
'waveDisabled': true
|
|
108
|
+
}, 'input', inputRef) : !filterable && !hasValue ? _$ce(2, 'div', placeholder, 0, 'k-select-placeholder c-ellipsis', null, 'placeholder') : !multiple ? _$ce(2, 'div', (_$blocks['value'] = function ($super) {
|
|
109
|
+
return label;
|
|
114
110
|
}, __$blocks['value'] = function ($super, data) {
|
|
115
111
|
var block = $blocks['value'];
|
|
116
112
|
|
|
@@ -119,74 +115,92 @@ export default function ($props, $blocks, $__proto__) {
|
|
|
119
115
|
};
|
|
120
116
|
|
|
121
117
|
return block ? block.call($this, callBlock, data) : callBlock();
|
|
122
|
-
}, __$blocks['value'](_$no, [value
|
|
123
|
-
'
|
|
124
|
-
'
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
118
|
+
}, __$blocks['value'](_$no, [value, label])), 0, 'k-select-value c-ellipsis', null, 'value') : _$ce(2, 'div', [_$cc(TransitionGroup, {
|
|
119
|
+
'name': 'k-fade',
|
|
120
|
+
'children': (_$blocks['values'] = function ($super) {
|
|
121
|
+
return _$ma(label, function ($label, $key) {
|
|
122
|
+
return _$ce(2, 'div', [_$ce(2, 'span', (_$blocks['value'] = function ($super) {
|
|
123
|
+
return $label;
|
|
124
|
+
}, __$blocks['value'] = function ($super, data) {
|
|
125
|
+
var block = $blocks['value'];
|
|
126
|
+
|
|
127
|
+
var callBlock = function callBlock() {
|
|
128
|
+
return _$blocks['value'].call($this, $super, data);
|
|
129
|
+
};
|
|
130
|
+
|
|
131
|
+
return block ? block.call($this, callBlock, data) : callBlock();
|
|
132
|
+
}, __$blocks['value'](_$no, [value[$key], $label])), 0, 'k-select-text'), _$cc(Icon, {
|
|
133
|
+
'className': 'ion-ios-close k-select-close',
|
|
134
|
+
'ev-click': this.delete.bind(this, $key),
|
|
135
|
+
'hoverable': !disabled
|
|
136
|
+
})], 4, 'k-select-tag', null, isStringOrNumber($label) ? $label : isStringOrNumber(value[$key]) ? value[$key] : undefined);
|
|
137
|
+
}, $this);
|
|
138
|
+
}, __$blocks['values'] = function ($super, data) {
|
|
139
|
+
var block = _valuesInstanceProperty($blocks);
|
|
130
140
|
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
141
|
+
var callBlock = function callBlock() {
|
|
142
|
+
return _valuesInstanceProperty(_$blocks).call($this, $super, data);
|
|
143
|
+
};
|
|
134
144
|
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
145
|
+
return block ? block.call($this, callBlock, data) : callBlock();
|
|
146
|
+
}, _valuesInstanceProperty(__$blocks).call(__$blocks, _$no, [value, label]))
|
|
147
|
+
}), filterable ? _$cc(Input, {
|
|
148
|
+
'className': 'k-select-input',
|
|
149
|
+
'value': keywords,
|
|
150
|
+
'ev-$change:value': onInput,
|
|
151
|
+
'disabled': disabled,
|
|
152
|
+
'placeholder': !hasValue ? placeholder : '',
|
|
153
|
+
'ref': inputRef,
|
|
154
|
+
'autoWidth': true,
|
|
155
|
+
'inline': true,
|
|
156
|
+
'size': size,
|
|
157
|
+
'key': 'filter',
|
|
158
|
+
'readonly': !_show,
|
|
159
|
+
'waveDisabled': true
|
|
160
|
+
}, 'filter', inputRef) : undefined], 0, _$cn({
|
|
161
|
+
"k-select-values": true,
|
|
162
|
+
"k-with-values": _valuesInstanceProperty($blocks)
|
|
163
|
+
}), null, 'values')
|
|
164
|
+
})], 0, 'k-select-main'), !hideIcon || clearable || loading || $blocks.suffix ? _$ce(2, 'span', [clearable && !disabled ? _$cc(Icon, {
|
|
165
|
+
'className': _$cn({
|
|
166
|
+
"k-select-clear ion-ios-close": true,
|
|
167
|
+
"k-show": hasValue
|
|
168
|
+
}),
|
|
169
|
+
'ev-click': _this.clear,
|
|
170
|
+
'hoverable': true
|
|
171
|
+
}) : undefined, _$ce(2, 'span', (_$blocks['suffix'] = function ($super) {
|
|
172
|
+
return loading ? _$cc(Icon, _$tmp0) : !hideIcon ? _$cc(Icon, {
|
|
173
|
+
'className': _$cn({
|
|
174
|
+
"k-select-arrow ion-ios-arrow-down": true,
|
|
175
|
+
'k-disabled': $props.isDisableArrow
|
|
176
|
+
})
|
|
177
|
+
}) : undefined;
|
|
178
|
+
}, __$blocks['suffix'] = function ($super, data) {
|
|
179
|
+
var block = $blocks['suffix'];
|
|
169
180
|
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
181
|
+
var callBlock = function callBlock() {
|
|
182
|
+
return _$blocks['suffix'].call($this, $super, data);
|
|
183
|
+
};
|
|
173
184
|
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
185
|
+
return block ? block.call($this, callBlock, data) : callBlock();
|
|
186
|
+
}, __$blocks['suffix'](_$no)), 0, 'k-select-suffix-icon')], 0, 'k-select-suffix') : undefined]), (_$blocks['base-menu'] = function ($super) {
|
|
187
|
+
return _$ce(2, 'div', 'should be implemeted', 16);
|
|
188
|
+
}, __$blocks['base-menu'] = function ($super, data) {
|
|
189
|
+
var block = $blocks['base-menu'];
|
|
179
190
|
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
191
|
+
var callBlock = function callBlock() {
|
|
192
|
+
return _$blocks['base-menu'].call($this, $super, data);
|
|
193
|
+
};
|
|
183
194
|
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
195
|
+
return block ? block.call($this, callBlock, data) : callBlock();
|
|
196
|
+
}, __$blocks['base-menu'](_$no))],
|
|
197
|
+
'ev-$model:value': function ev$modelValue($v) {
|
|
198
|
+
$this.set('_show', $v);
|
|
199
|
+
},
|
|
200
|
+
'value': $this.get('_show')
|
|
201
|
+
}, null, _this.dropdownRef)
|
|
202
|
+
});
|
|
203
|
+
}
|
|
204
|
+
});
|
|
191
205
|
}
|
|
192
206
|
;
|
|
@@ -16,7 +16,7 @@ import SearchableDemo from '~/components/select/demos/searchable';
|
|
|
16
16
|
describe('Select', function () {
|
|
17
17
|
afterEach(function (done) {
|
|
18
18
|
unmount();
|
|
19
|
-
setTimeout(done,
|
|
19
|
+
setTimeout(done, 500);
|
|
20
20
|
});
|
|
21
21
|
it('should select value correctly', /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {
|
|
22
22
|
var _mount, instance, element, trigger, dropdown, item, _dropdown;
|
|
@@ -4,6 +4,10 @@ import { theme, setDefault } from '../../styles/theme';
|
|
|
4
4
|
import { deepDefaults, sizes, getRight, getLeft } from '../../styles/utils';
|
|
5
5
|
import '../../styles/global';
|
|
6
6
|
var defaults = deepDefaults({
|
|
7
|
+
get transition() {
|
|
8
|
+
return theme.transition.middle;
|
|
9
|
+
},
|
|
10
|
+
|
|
7
11
|
width: "300px",
|
|
8
12
|
|
|
9
13
|
get height() {
|
|
@@ -24,8 +28,9 @@ var defaults = deepDefaults({
|
|
|
24
28
|
return "1px solid " + theme.color.primary;
|
|
25
29
|
},
|
|
26
30
|
|
|
31
|
+
// get hoverBorder() { return `1px solid ${theme.color.darkBorder}` },
|
|
27
32
|
get hoverBorder() {
|
|
28
|
-
return "1px solid " + theme.color.
|
|
33
|
+
return "1px solid " + theme.color.primary;
|
|
29
34
|
},
|
|
30
35
|
|
|
31
36
|
get iconColor() {
|
|
@@ -89,7 +94,7 @@ var defaults = deepDefaults({
|
|
|
89
94
|
},
|
|
90
95
|
tag: {
|
|
91
96
|
margin: "3px 8px 3px 0",
|
|
92
|
-
padding: "
|
|
97
|
+
padding: "5px 8px",
|
|
93
98
|
|
|
94
99
|
get borderRadius() {
|
|
95
100
|
return theme.borderRadius;
|
|
@@ -183,7 +188,7 @@ setDefault(function () {
|
|
|
183
188
|
}).select;
|
|
184
189
|
});
|
|
185
190
|
export default function makeStyles() {
|
|
186
|
-
return /*#__PURE__*/css("display:inline-flex;align-items:center;vertical-align:middle;position:relative;width:", select.width, ";cursor:pointer;outline:none;border:", select.border, ";background:", select.bgColor, ";transition:border ",
|
|
191
|
+
return /*#__PURE__*/css("display:inline-flex;align-items:center;vertical-align:middle;position:relative;width:", select.width, ";cursor:pointer;outline:none;border:", select.border, ";background:", select.bgColor, ";transition:border ", select.transition, ",background ", select.transition, ",box-shadow ", select.transition, ";border-radius:", select.borderRadius, ";.k-select-main{flex:1;}.k-select-prefix,.k-select-suffix{color:", select.iconColor, ";position:relative;}.k-select-suffix{margin-left:", select.suffixGap, ";}.k-select-placeholder{color:", select.placeholderColor, ";user-select:none;}&.k-fluid{width:100%;}.k-select-clear{opacity:0;transition:opacity ", select.transition, ",color ", select.transition, "!important;pointer-events:none;position:absolute;z-index:1;top:50%;left:50%;transform:translate(-50%, -50%);}&:hover{border:", select.hoverBorder, ";.k-select-clear.k-show{opacity:1;pointer-events:all;+.k-select-suffix-icon{opacity:0;}}}.k-select-suffix-icon{display:inline-block;transition:opacity ", select.transition, ";}.k-select-arrow{display:inline-block;transition:transform ", select.transition, ";&.k-disabled{color:", select.disabledArrowColor, ";}}&.k-dropdown-open{border:", select.focusBorder, ";.k-select-arrow{transform:rotateX(180deg);}}&:focus{outline:none;border:", select.focusBorder, ";}&.k-disabled{color:", select.disabled.color, ";cursor:not-allowed;background:", select.disabled.bgColor, ";border-color:", select.disabled.borderColor, ";.k-select-tag{background:", select.tag.disabledBgColor, ";}}.k-select-values{display:inline-block;margin-right:-", getRight(select.tag.margin), ";&.k-with-values{margin:0;}}.k-select-tag{display:inline-flex;align-items:center;padding:", select.tag.padding, ";background:", select.tag.bgColor, ";border-radius:", select.tag.borderRadius, ";margin:", select.tag.margin, ";line-height:1;}.k-select-close{margin-left:", select.tag.delete.gap, ";font-size:", select.tag.delete.fontSize, ";color:", select.tag.delete.color, ";}.k-select-input{margin-right:", getRight(select.tag.margin), ";}", _mapInstanceProperty(sizes).call(sizes, function (size) {
|
|
187
192
|
var styles = select[size];
|
|
188
193
|
var className = /*#__PURE__*/css("font-size:", styles.fontSize, ";min-height:", styles.height, ";padding:", styles.padding, ";");
|
|
189
194
|
if (size === 'default') return className;
|
|
@@ -192,7 +197,7 @@ export default function makeStyles() {
|
|
|
192
197
|
}
|
|
193
198
|
export function makeMenuStyles() {
|
|
194
199
|
var searchable = select.searchable;
|
|
195
|
-
return /*#__PURE__*/css("min-width:auto;max-height:", select.menuMaxHeight, ";overflow:auto;&:not([class*=\"-active\"]){transition:left ",
|
|
200
|
+
return /*#__PURE__*/css("min-width:auto;max-height:", select.menuMaxHeight, ";overflow:auto;&:not([class*=\"-active\"]){transition:left ", select.transition, ",top ", select.transition, ";}.k-select-empty{padding:", select.empty.padding, ";color:", select.empty.color, ";text-align:center;}.k-select-option{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;&.k-active{color:", select.activeColor, ";}}&.k-card{display:flex;height:", select.card.height, ";.k-tabs{border:none;overflow:auto;}.k-select-group{flex:1;overflow:auto;}.k-select-option.k-hover{background:", select.card.itemHoverBgColor, ";color:", select.card.itemHoverColor, ";}}&.k-searchable{max-height:none;padding:", searchable.padding, ";.k-select-option{padding:", searchable.optionPadding, ";}}.k-select-header{display:flex;padding:", searchable.header.padding, ";border-bottom:", searchable.border, ";margin-bottom:", searchable.header.gap, ";}.k-select-op{white-space:nowrap;.k-btn{padding:", searchable.header.btnPadding, ";margin-left:", searchable.header.btnGap, ";}}.k-select-body{max-height:", select.menuMaxHeight, ";overflow:auto;}.k-select-footer{border-top:", searchable.border, ";padding:", searchable.footer.padding, ";text-align:right;margin-top:", searchable.footer.gap, ";.k-btn{margin-left:", searchable.footer.btnGap, ";}}.k-select-option{.k-checkbox{margin:0 -", getRight(searchable.optionPadding), " 0 -", getLeft(searchable.optionPadding), ";padding:", searchable.optionPadding, ";}}.k-select-checkmark{float:right;height:100%;font-size:", select.multiple.checkmark.fontSize, ";}");
|
|
196
201
|
}
|
|
197
202
|
export function makeGroupStyles() {
|
|
198
203
|
return /*#__PURE__*/css(".k-select-group-label{color:", select.group.labelColor, ";padding:", select.group.labelPadding, ";}");
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export declare const context: {
|
|
2
2
|
Provider: import('intact-vue-next').ComponentConstructor<import("intact").Component<import("../context").ProviderProps<any>, {}, {}, {}>>;
|
|
3
|
-
Consumer: import("intact").ComponentConstructor<import("intact").Component<
|
|
3
|
+
Consumer: import("intact").ComponentConstructor<import("intact").Component<import("../context").ConsumerProps<any>, {}, {}, {}>>;
|
|
4
4
|
};
|
|
5
5
|
export declare function useSearchable(): {
|
|
6
6
|
checkedKeys: import("../../hooks/useState").State<any[]>;
|
|
@@ -3,6 +3,10 @@ import { theme, setDefault } from '../../styles/theme';
|
|
|
3
3
|
import { deepDefaults } from '../../styles/utils';
|
|
4
4
|
import '../../styles/global';
|
|
5
5
|
var defaults = {
|
|
6
|
+
get transition() {
|
|
7
|
+
return theme.transition.middle;
|
|
8
|
+
},
|
|
9
|
+
|
|
6
10
|
height: '4px',
|
|
7
11
|
bgColor: '#e5e5e5',
|
|
8
12
|
|
|
@@ -73,5 +77,5 @@ setDefault(function () {
|
|
|
73
77
|
}).slider;
|
|
74
78
|
});
|
|
75
79
|
export function makeStyles() {
|
|
76
|
-
return /*#__PURE__*/css("position:relative;outline:none;display:flex;.k-slider-main{flex:1;}.k-slider-track-wrapper{cursor:pointer;height:32px;display:flex;align-items:center;}.k-slider-track{flex:1;height:", slider.height, ";background-color:", slider.bgColor, ";border-radius:", slider.borderRadius, ";position:relative;user-select:none;}.k-slider-bar{background-color:", slider.barColor, ";position:absolute;height:100%;border-radius:", slider.borderRadius, ";transition:all ",
|
|
80
|
+
return /*#__PURE__*/css("position:relative;outline:none;display:flex;.k-slider-main{flex:1;}.k-slider-track-wrapper{cursor:pointer;height:32px;display:flex;align-items:center;}.k-slider-track{flex:1;height:", slider.height, ";background-color:", slider.bgColor, ";border-radius:", slider.borderRadius, ";position:relative;user-select:none;}.k-slider-bar{background-color:", slider.barColor, ";position:absolute;height:100%;border-radius:", slider.borderRadius, ";transition:all ", slider.transition, ";}.k-slider-thumb-wrapper{position:absolute;top:50%;transform:translate(-50%, -50%);transition:left ", slider.transition, ";z-index:1;}.k-slider-thumb{height:", slider.thumb.height, ";width:", slider.thumb.width, ";transition:all ", slider.transition, ";border:", slider.thumb.border, ";border-radius:", slider.thumb.borderRadius, ";background-color:", slider.thumb.bgColor, ";outline:none;&:hover,&:focus{transform:", slider.thumb.hoverTransform, ";cursor:grab;background-color:", slider.thumb.hoverBgColor, ";}}.k-slider-ends{display:flex;justify-content:space-between;span{cursor:pointer;}}.k-slider-spinner{margin-left:", slider.spinnerGap, ";}&.k-dragging{.k-slider-bar{transition:none;}.k-slider-thumb-wrapper{transition:none;}}&.k-disabled{color:", slider.disabled.color, ";.k-slider-track-wrapper{cursor:not-allowed;}.k-slider-bar{background-color:", slider.disabled.color, ";}.k-slider-thumb{border-color:", slider.disabled.color, ";&:hover,&:focus{background-color:", slider.disabled.bgColor, ";cursor:not-allowed;transform:none;}}.k-slider-ends{span{cursor:not-allowed;}}}.k-slider-point{position:absolute;top:calc((", slider.height, " - ", slider.point.height, ") / 2 );width:", slider.point.width, ";height:", slider.point.height, ";background:", slider.point.bgColor, ";transform:translateX(-50%);border-radius:", slider.point.borderRadius, ";border:", slider.point.border, ";&.k-active{border-color:", slider.point.activeBorderColor, ";}}.k-slider-marks{position:relative;height:", slider.marks.height, ";>span{position:absolute;transform:translateX(-50%);white-space:nowrap;cursor:pointer;&:first-child{transform:none;}&:last-child{transform:translateX(-100%);}&.k-active{color:", slider.marks.activeColor, ";}}}.k-slider-tooltip{white-space:nowrap;}");
|
|
77
81
|
}
|
|
@@ -2,8 +2,8 @@ import { Component, TypeDefs } from 'intact-vue-next';
|
|
|
2
2
|
import { Sizes } from '../../styles/utils';
|
|
3
3
|
import type { Events } from '../types';
|
|
4
4
|
export interface SpinnerProps {
|
|
5
|
-
disabled?: boolean;
|
|
6
5
|
value?: number;
|
|
6
|
+
disabled?: boolean;
|
|
7
7
|
max?: number;
|
|
8
8
|
min?: number;
|
|
9
9
|
step?: number | StepObject | StepFunction;
|
|
@@ -11,8 +11,8 @@ import { useFormatter } from './useFormatter';
|
|
|
11
11
|
import { useValue } from './useValue';
|
|
12
12
|
import { useChange } from './useChange';
|
|
13
13
|
var typeDefs = {
|
|
14
|
-
disabled: Boolean,
|
|
15
14
|
value: Number,
|
|
15
|
+
disabled: Boolean,
|
|
16
16
|
max: Number,
|
|
17
17
|
min: Number,
|
|
18
18
|
step: [Number, Object, Function],
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export declare const context: {
|
|
2
2
|
Provider: import("misstime").ComponentConstructor<import('intact-vue-next').Component<import("../context").ProviderProps<any>, {}, {}, {}>>;
|
|
3
|
-
Consumer: import("misstime").ComponentConstructor<import("intact").Component<
|
|
3
|
+
Consumer: import("misstime").ComponentConstructor<import("intact").Component<import("../context").ConsumerProps<any>, {}, {}, {}>>;
|
|
4
4
|
};
|
|
@@ -4,6 +4,10 @@ import { theme, setDefault } from '../../styles/theme';
|
|
|
4
4
|
import { deepDefaults } from '../../styles/utils';
|
|
5
5
|
import '../../styles/global';
|
|
6
6
|
var defaults = {
|
|
7
|
+
get transition() {
|
|
8
|
+
return theme.transition.middle;
|
|
9
|
+
},
|
|
10
|
+
|
|
7
11
|
get height() {
|
|
8
12
|
return theme.default.height;
|
|
9
13
|
},
|
|
@@ -150,5 +154,5 @@ export function makeStepsStyles() {
|
|
|
150
154
|
}), ";.k-step,.k-step-main{color:", steps.simple.color, ";}.k-step-head{padding-right:", steps.simple.headPaddingRight, ";vertical-align:top;}}&.k-clickable{.k-done{cursor:pointer;}}");
|
|
151
155
|
}
|
|
152
156
|
export function makeStepStyles() {
|
|
153
|
-
return /*#__PURE__*/css("position:relative;flex:1;.k-step-icon:before{font-size:", steps.head.iconFontSize, ";}.k-step-title{display:inline-block;padding-right:", steps.main.titlePaddingRight, ";white-space:nowrap;}.k-step-content{font-size:", steps.main.contentFontSize, ";}.k-step-inner,.k-step-main{transition:all ",
|
|
157
|
+
return /*#__PURE__*/css("position:relative;flex:1;.k-step-icon:before{font-size:", steps.head.iconFontSize, ";}.k-step-title{display:inline-block;padding-right:", steps.main.titlePaddingRight, ";white-space:nowrap;}.k-step-content{font-size:", steps.main.contentFontSize, ";}.k-step-inner,.k-step-main{transition:all ", steps.transition, ";}");
|
|
154
158
|
}
|
|
@@ -4,6 +4,10 @@ import { theme, setDefault } from '../../styles/theme';
|
|
|
4
4
|
import { deepDefaults, sizes } from '../../styles/utils';
|
|
5
5
|
import '../../styles/global';
|
|
6
6
|
var defaults = {
|
|
7
|
+
get transition() {
|
|
8
|
+
return theme.transition.middle;
|
|
9
|
+
},
|
|
10
|
+
|
|
7
11
|
bgColor: "#fff",
|
|
8
12
|
fontSize: "12px",
|
|
9
13
|
|
|
@@ -75,7 +79,7 @@ setDefault(function () {
|
|
|
75
79
|
}).switch;
|
|
76
80
|
});
|
|
77
81
|
export function makeStyles() {
|
|
78
|
-
return /*#__PURE__*/css("display:inline-block;vertical-align:middle;background:", kswitch.bgColor, ";position:relative;cursor:pointer;user-select:none;overflow:hidden;border:", kswitch.border, ";box-sizing:content-box;input{opacity:0;position:absolute;}.k-switch-bar,.k-switch-off{box-sizing:border-box;}.k-switch-bar{position:absolute;text-align:right;overflow:hidden;}.k-switch-wrapper{display:inline-block;position:relative;z-index:1;border-radius:", kswitch.handleBorderRadius, ";}.k-switch-bar,.k-switch-wrapper{height:100%;background:", kswitch.bgColor, ";transition:all ",
|
|
82
|
+
return /*#__PURE__*/css("display:inline-block;vertical-align:middle;background:", kswitch.bgColor, ";position:relative;cursor:pointer;user-select:none;overflow:hidden;border:", kswitch.border, ";box-sizing:content-box;input{opacity:0;position:absolute;}.k-switch-bar,.k-switch-off{box-sizing:border-box;}.k-switch-bar{position:absolute;text-align:right;overflow:hidden;}.k-switch-wrapper{display:inline-block;position:relative;z-index:1;border-radius:", kswitch.handleBorderRadius, ";}.k-switch-bar,.k-switch-wrapper{height:100%;background:", kswitch.bgColor, ";transition:all ", kswitch.transition, ";}.k-switch-handle{border-radius:", kswitch.handleBorderRadius, ";background:", kswitch.handleBgColor, ";height:100%;cursor:pointer;transition:left ", kswitch.transition, ";display:inline-block;img{height:100%;visibility:hidden;}}.k-switch-on,.k-switch-off{position:absolute;font-size:", kswitch.fontSize, ";color:", kswitch.color, ";text-align:center;}&.k-dragging{.k-switch-bar,.k-switch-wrapper{background:", kswitch.checkedBgColor, ";transition:background ", kswitch.transition, ";}}&:focus{outline:none;border-color:", kswitch.checked.borderColor, ";}", _mapInstanceProperty(sizes).call(sizes, function (size) {
|
|
79
83
|
var _kswitch$size = kswitch[size],
|
|
80
84
|
width = _kswitch$size.width,
|
|
81
85
|
height = _kswitch$size.height,
|
|
@@ -25,7 +25,8 @@ import MergeCellDemo from '~/components/table/demos/mergeCell';
|
|
|
25
25
|
import { AllCheckedStatus } from './useChecked';
|
|
26
26
|
describe('Table', function () {
|
|
27
27
|
afterEach(function () {
|
|
28
|
-
|
|
28
|
+
unmount();
|
|
29
|
+
localStorage.removeItem('resizableTable');
|
|
29
30
|
});
|
|
30
31
|
it('check & uncheck', /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {
|
|
31
32
|
var _mount, instance, element, table, checked, spy, _element$querySelecto, tr1, tr2, all;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import _extends from "@babel/runtime-corejs3/helpers/extends";
|
|
2
2
|
import { createVNode as _$cv, createUnknownComponentVNode as _$cc } from 'intact-vue-next';
|
|
3
|
+
import { TransitionGroup } from 'intact';
|
|
3
4
|
import { getClassAndStyleForFixed } from './useFixedColumns';
|
|
4
5
|
import { Checkbox } from '../checkbox';
|
|
5
6
|
import { Radio } from '../radio';
|
|
@@ -108,11 +109,18 @@ export default function ($props, $blocks, $__proto__) {
|
|
|
108
109
|
'hasChildren': hasChildren,
|
|
109
110
|
'key': columnKey
|
|
110
111
|
}, columnKey));
|
|
111
|
-
});
|
|
112
|
+
});
|
|
113
|
+
|
|
114
|
+
var rows = _$cc(TransitionGroup, {
|
|
115
|
+
'name': 'k-fade-expand',
|
|
116
|
+
'move': false,
|
|
117
|
+
'children': vNodes
|
|
118
|
+
});
|
|
119
|
+
/* const rows = vNodes; */
|
|
120
|
+
// for performance, no normalize
|
|
121
|
+
|
|
112
122
|
|
|
113
|
-
return createElementVNode(2, 'tr',
|
|
114
|
-
/* HasKeyedChildren */
|
|
115
|
-
, cx(classNameObj), {
|
|
123
|
+
return createElementVNode(2, 'tr', rows, 2, cx(classNameObj), {
|
|
116
124
|
'data-key': key,
|
|
117
125
|
'ev-mouseenter': this.onMouseEnter,
|
|
118
126
|
'ev-mouseleave': this.onMouseLeave,
|
|
@@ -4,6 +4,11 @@ import { theme, setDefault } from '../../styles/theme';
|
|
|
4
4
|
import { deepDefaults, palette } from '../../styles/utils';
|
|
5
5
|
import '../../styles/global';
|
|
6
6
|
var defaults = {
|
|
7
|
+
get transition() {
|
|
8
|
+
return theme.transition.large;
|
|
9
|
+
},
|
|
10
|
+
|
|
11
|
+
// transition: '15000s',
|
|
7
12
|
border: "1px solid #e5e5e5",
|
|
8
13
|
fontSize: "12px",
|
|
9
14
|
bgColor: "#fff",
|
|
@@ -77,7 +82,7 @@ setDefault(function () {
|
|
|
77
82
|
}).table;
|
|
78
83
|
});
|
|
79
84
|
export function makeStyles() {
|
|
80
|
-
return /*#__PURE__*/css("font-size:", table.fontSize, ";color:", table.color, ";border-top:", table.border, ";position:relative;z-index:0;.k-table-wrapper{border-bottom:", table.border, ";overflow:auto;}table{width:100%;border-spacing:0;table-layout:fixed;}thead{text-align:", table.thead.textAlign, ";font-size:", table.thead.fontSize, ";font-weight:", table.thead.fontWeight, ";position:sticky;top:0;z-index:2;tr{height:", table.thead.height, ";}}th{padding:", table.thead.padding, ";position:relative;background:", table.thead.bgColor, ";border-bottom:", table.border, ";&:before{content:'';height:", table.thead.delimiterHeight, ";position:absolute;background-color:", table.thead.delimiterColor, ";width:1px;left:1px;top:50%;transform:translateY(-50%);}&:first-of-type:before{display:none;}}.k-table-title{display:inline-flex;align-items:center;max-width:100%;}.k-table-title-text{flex:1;}tbody{tr{&:hover td{background:", table.tbody.hoverBgcolor, ";}&:last-of-type td{border-bottom:
|
|
85
|
+
return /*#__PURE__*/css("font-size:", table.fontSize, ";color:", table.color, ";border-top:", table.border, ";position:relative;z-index:0;.k-table-wrapper{border-bottom:", table.border, ";overflow:auto;}table{width:100%;border-spacing:0;table-layout:fixed;td,th{transition:all ", table.transition, ";}}thead{text-align:", table.thead.textAlign, ";font-size:", table.thead.fontSize, ";font-weight:", table.thead.fontWeight, ";position:sticky;top:0;z-index:2;tr{height:", table.thead.height, ";}}th{padding:", table.thead.padding, ";position:relative;background:", table.thead.bgColor, ";border-bottom:", table.border, ";&:before{content:'';height:", table.thead.delimiterHeight, ";position:absolute;background-color:", table.thead.delimiterColor, ";width:1px;left:1px;top:50%;transform:translateY(-50%);}&:first-of-type:before{display:none;}}.k-table-title{display:inline-flex;align-items:center;max-width:100%;}.k-table-title-text{flex:1;}tbody{tr{&:hover td{background:", table.tbody.hoverBgcolor, ";}&:last-of-type td{border-bottom-color:transparent;}}}td{padding:", table.tbody.padding, ";border-bottom:", table.border, ";background:", table.bgColor, ";word-wrap:break-word;}.k-fixed-left,.k-fixed-right{position:sticky;z-index:1;&:after{content:'';display:block;transition:box-shadow ", table.transition, ";position:absolute;top:0;bottom:0px;width:10px;pointer-events:none;}}.k-fixed-left:after{right:-11px;}.k-fixed-right:after{left:-11px;}&.k-scroll-left .k-fixed-right:after{box-shadow:", table.fixRightShadow, ";}&.k-scroll-right .k-fixed-left:after{box-shadow:", table.fixLeftShadow, ";}&.k-scroll-middle{.k-fixed-left:after{box-shadow:", table.fixLeftShadow, ";}.k-fixed-right:after{box-shadow:", table.fixRightShadow, ";}}.k-fixed-right+.k-fixed-right:after{display:none;}.k-table-affix-header{position:sticky;top:0;left:0;.k-affix-wrapper{overflow:hidden;}&.k-fixed{position:relative;}}&.k-border,&.k-grid{.k-table-wrapper{border-left:", table.border, ";border-right:", table.border, ";}}&.k-grid{td:not(:last-of-type),th:not(:last-of-type){border-right:", table.border, ";}th:before{display:none;}}&.k-stripe{tr:nth-child(even):not(:hover) td{background:", table.stripeBgColor, ";}}.k-table-group{width:", table.group.width, "!important;height:", table.group.width, "!important;margin-left:", table.group.gap, ";position:relative;color:", table.group.color, ";&:hover{color:", theme.color.primary, ";}.k-icon{transition:transform ", table.transition, ";}&.k-dropdown-open .k-icon{transform:rotate(180deg);}}.k-table-check{.k-checkbox,.k-radio{position:relative;top:-1px;}}.k-column-sortable{cursor:pointer;}.k-column-sort{.k-icon{display:block;height:", _sortInstanceProperty(table).iconHeight, ";line-height:", _sortInstanceProperty(table).iconHeight, ";margin-left:", _sortInstanceProperty(table).gap, ";color:", _sortInstanceProperty(table).color, ";}&.k-asc .k-icon.k-desc,&.k-desc .k-icon.k-asc{color:", _sortInstanceProperty(table).disabledColor, ";}}.k-table-spin.k-overlay{z-index:2;}.k-table-empty{text-align:center;}tr.k-expand{td{padding:0;background:#fdfcff;}}&.k-with-expand{tr:not(.k-expand){td{border-bottom:none;}}}.k-table-expand{border-top:", table.border, ";box-sizing:content-box;}tbody tr.k-selected td{background:", table.selectedBgColor, ";}.k-table-arrow{margin-right:", table.arrow.gap, ";transition:transform ", table.transition, ";position:relative;top:-1px;}tr.k-spreaded{.k-table-arrow{transform:rotate(90deg);}}.k-table-resize{height:100%;width:", table.resizeWidth, ";position:absolute;top:0;left:-1px;cursor:ew-resize;}tr.k-dragging{opacity:", table.draggingOpacity, ";}.k-table-scrollbar{overflow-x:auto;overflow-y:hidden;}.k-table-scrollbar-inner{height:1px;}");
|
|
81
86
|
}
|
|
82
87
|
export function makeGroupMenuStyles() {
|
|
83
88
|
return /*#__PURE__*/css("max-height:", table.group.menuMaxHeight, ";overflow:auto;.k-dropdown-item.k-active{color:", table.group.activeColor, ";}");
|
|
@@ -33,6 +33,7 @@ export interface TableProps<T = any, K extends TableRowKey = TableRowKey, C exte
|
|
|
33
33
|
resizable?: boolean;
|
|
34
34
|
minColWidth?: number;
|
|
35
35
|
widthStoreKey?: string;
|
|
36
|
+
draggable?: boolean;
|
|
36
37
|
}
|
|
37
38
|
export interface TableEvents<T = any, K extends TableRowKey = number> {
|
|
38
39
|
clickRow: [T, number, K];
|