bkui-vue 0.0.1-beta.190 → 0.0.1-beta.191
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 +20 -20
- package/dist/index.esm.js +10 -5
- package/dist/index.umd.js +20 -20
- package/lib/table/index.d.ts +11 -0
- package/lib/table/index.js +1 -1
- package/lib/table/props.d.ts +2 -0
- package/lib/table-column/index.d.ts +11 -0
- package/lib/table-column/index.js +1 -1
- package/package.json +1 -1
- package/lib/styles/mixins/animate.css +0 -21
package/dist/index.esm.js
CHANGED
@@ -16107,7 +16107,8 @@ const IColumnType = {
|
|
16107
16107
|
sort: PropTypes.oneOfType([
|
16108
16108
|
PropTypes.shape({
|
16109
16109
|
sortFn: PropTypes.func.def(void 0),
|
16110
|
-
sortScope: PropTypes.commonType(Object.values(SortScope)).def("current")
|
16110
|
+
sortScope: PropTypes.commonType(Object.values(SortScope)).def("current"),
|
16111
|
+
value: PropTypes.string.def(null)
|
16111
16112
|
}),
|
16112
16113
|
PropTypes.bool,
|
16113
16114
|
PropTypes.string
|
@@ -17280,9 +17281,13 @@ var HeadSort = defineComponent({
|
|
17280
17281
|
setup(props2, {
|
17281
17282
|
emit
|
17282
17283
|
}) {
|
17283
|
-
|
17284
|
+
var _a, _b;
|
17285
|
+
const {
|
17286
|
+
value = SortType.NULL
|
17287
|
+
} = (_b = (_a = props2.column) == null ? void 0 : _a.sort) != null ? _b : {};
|
17288
|
+
const sortType = ref(value);
|
17284
17289
|
const hanldeSortClick = (e, type) => {
|
17285
|
-
var
|
17290
|
+
var _a2, _b2;
|
17286
17291
|
e.stopImmediatePropagation();
|
17287
17292
|
e.stopPropagation();
|
17288
17293
|
e.preventDefault();
|
@@ -17305,8 +17310,8 @@ var HeadSort = defineComponent({
|
|
17305
17310
|
}
|
17306
17311
|
return String.prototype.localeCompare.call(val0, val1);
|
17307
17312
|
};
|
17308
|
-
const sortFn = typeof ((
|
17309
|
-
const execFn = sortType.value === SortType.NULL ? () => true : (
|
17313
|
+
const sortFn = typeof ((_a2 = props2.column.sort) == null ? void 0 : _a2.sortFn) === "function" ? (_b2 = props2.column.sort) == null ? void 0 : _b2.sortFn : sortFn0;
|
17314
|
+
const execFn = sortType.value === SortType.NULL ? () => true : (_a3, _b3) => sortFn(_a3, _b3) * (type === SortType.DESC ? -1 : 1);
|
17310
17315
|
emit("change", execFn, type);
|
17311
17316
|
};
|
17312
17317
|
return () => createVNode("span", {
|