bkui-vue 2.0.1-beta.54 → 2.0.1-beta.55
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/dist/index.cjs.js +27 -27
- package/dist/index.esm.js +909 -911
- package/dist/index.umd.js +27 -27
- package/lib/index.js +1 -1
- package/lib/table/hooks/use-draggable.d.ts +1 -1
- package/lib/table/index.js +5 -4
- package/lib/tree/index.js +4 -1
- package/package.json +1 -1
package/lib/index.js
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
import { SetupContext } from 'vue';
|
2
2
|
import { TablePropTypes } from '../props';
|
3
3
|
import { UseRows } from './use-rows';
|
4
|
-
declare const _default: (props: TablePropTypes, rows: UseRows, ctx: SetupContext
|
4
|
+
declare const _default: (props: TablePropTypes, rows: UseRows, ctx: SetupContext) => {
|
5
5
|
onDragenter?: undefined;
|
6
6
|
onDragleave?: undefined;
|
7
7
|
onDragstart?: undefined;
|
package/lib/table/index.js
CHANGED
@@ -19965,11 +19965,12 @@ var getSortFn = function getSortFn(column, sortType) {
|
|
19965
19965
|
return String.prototype.localeCompare.call(val0, val1);
|
19966
19966
|
};
|
19967
19967
|
var sortFn = typeof ((_column$sort = column.sort) === null || _column$sort === void 0 ? void 0 : _column$sort.sortFn) === 'function' ? (_column$sort2 = column.sort) === null || _column$sort2 === void 0 ? void 0 : _column$sort2.sortFn : sortFn0;
|
19968
|
-
|
19969
|
-
return true;
|
19970
|
-
} : function (a, b, index0, index1) {
|
19968
|
+
var userFn = function userFn(a, b, index0, index1) {
|
19971
19969
|
return sortFn(a, b, index0, index1) * (sortType === SORT_OPTION.DESC ? -1 : 1);
|
19972
19970
|
};
|
19971
|
+
return sortType === SORT_OPTION.NULL ? function (_a, _b) {
|
19972
|
+
return true;
|
19973
|
+
} : userFn;
|
19973
19974
|
};
|
19974
19975
|
var getNextSortType = function getNextSortType(sortType) {
|
19975
19976
|
var steps = defineProperty_defineProperty(defineProperty_defineProperty(defineProperty_defineProperty({}, SORT_OPTION.NULL, 3), SORT_OPTION.ASC, 1), SORT_OPTION.DESC, 2);
|
@@ -20888,7 +20889,7 @@ var useColumns = function useColumns(props) {
|
|
20888
20889
|
lastDragRowClass = '';
|
20889
20890
|
ctx.emit(EMIT_EVENTS.DRAG_END, {
|
20890
20891
|
sourceEvent: event,
|
20891
|
-
data: rows.
|
20892
|
+
data: rows.pageRowList
|
20892
20893
|
});
|
20893
20894
|
};
|
20894
20895
|
return {
|
package/lib/tree/index.js
CHANGED
@@ -18320,10 +18320,13 @@ var getNodeItemStyle = function getNodeItemStyle(item, props, flatData) {
|
|
18320
18320
|
var depth = (_schema$get = schema.get(item)) === null || _schema$get === void 0 ? void 0 : _schema$get[NODE_ATTRIBUTES.DEPTH];
|
18321
18321
|
if (showTree) {
|
18322
18322
|
var args = ['node'];
|
18323
|
+
var levelLine = function levelLine() {
|
18324
|
+
return getPropsOneOfBoolValueWithDefault(props, 'levelLine', item, DEFAULT_LEVLE_LINE, null, args);
|
18325
|
+
};
|
18323
18326
|
return _objectSpread({
|
18324
18327
|
'--depth': depth
|
18325
18328
|
}, typeof props.levelLine === 'function' ? {
|
18326
|
-
'--level-line':
|
18329
|
+
'--level-line': levelLine()
|
18327
18330
|
} : {});
|
18328
18331
|
}
|
18329
18332
|
return {};
|