stk-table-vue 1.2.2 → 1.2.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.
- package/lib/{Dropdown-D40QlY91.js → Dropdown-B2dzC5D3.js} +5 -3
- package/lib/{StkTable-g_qwf6BE.js → StkTable-DFh1B-f9.js} +2 -2
- package/lib/stk-table-vue.js +3 -3
- package/lib/style.css +1 -1
- package/package.json +1 -1
- package/src/StkTable/custom-cells/FilterCell/Dropdown/index.vue +3 -1
- package/src/StkTable/useFixedCol.ts +1 -1
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* name: stk-table-vue
|
|
3
|
-
* version: v1.2.
|
|
3
|
+
* version: v1.2.3
|
|
4
4
|
* description: High performance realtime virtual table for vue3 and vue2.7
|
|
5
5
|
* author: japlus
|
|
6
6
|
* homepage: https://ja-plus.github.io/stk-table-vue/
|
|
7
7
|
* license: MIT
|
|
8
8
|
*/
|
|
9
|
-
import { t as StkTable_default } from "./StkTable-
|
|
9
|
+
import { t as StkTable_default } from "./StkTable-DFh1B-f9.js";
|
|
10
10
|
import { createElementBlock, createElementVNode, createVNode, defineComponent, h, nextTick, normalizeClass, normalizeStyle, onMounted, onUnmounted, openBlock, reactive, ref, withModifiers } from "vue";
|
|
11
11
|
//#region src/StkTable/custom-cells/FilterCell/Dropdown/index.vue?vue&type=script&setup=true&lang.ts
|
|
12
12
|
var DROPDOWN_DEFAULT_WIDTH = 300;
|
|
@@ -115,7 +115,9 @@ var Dropdown_default = /* @__PURE__ */ defineComponent({
|
|
|
115
115
|
}
|
|
116
116
|
function handleClear() {
|
|
117
117
|
checkedTempValueSet.clear();
|
|
118
|
-
|
|
118
|
+
options.value.forEach((opt) => opt.selected = false);
|
|
119
|
+
onConfirmFn([]);
|
|
120
|
+
hide();
|
|
119
121
|
}
|
|
120
122
|
__expose({
|
|
121
123
|
visible,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* name: stk-table-vue
|
|
3
|
-
* version: v1.2.
|
|
3
|
+
* version: v1.2.3
|
|
4
4
|
* description: High performance realtime virtual table for vue3 and vue2.7
|
|
5
5
|
* author: japlus
|
|
6
6
|
* homepage: https://ja-plus.github.io/stk-table-vue/
|
|
@@ -1547,7 +1547,7 @@ function useFixedCol(props, colKeyGen, getFixedColPosition, tableHeaders, tableH
|
|
|
1547
1547
|
}
|
|
1548
1548
|
if (showShadow) classList.push("fixed-cell--shadow");
|
|
1549
1549
|
if (fixed === "right" && fixedBorderLeftColsValue.includes(col)) classList.push("fixed-cell--border-left");
|
|
1550
|
-
colMap.set(colKeyFn(col), classList);
|
|
1550
|
+
colMap.set(colKeyFn(col), classList.join(" "));
|
|
1551
1551
|
}
|
|
1552
1552
|
}
|
|
1553
1553
|
return colMap;
|
package/lib/stk-table-vue.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* name: stk-table-vue
|
|
3
|
-
* version: v1.2.
|
|
3
|
+
* version: v1.2.3
|
|
4
4
|
* description: High performance realtime virtual table for vue3 and vue2.7
|
|
5
5
|
* author: japlus
|
|
6
6
|
* homepage: https://ja-plus.github.io/stk-table-vue/
|
|
7
7
|
* license: MIT
|
|
8
8
|
*/
|
|
9
|
-
import { a as insertToOrderedArray, i as binarySearch, n as registerFeature, o as strCompare, r as useAreaSelection, s as tableSort, t as StkTable_default } from "./StkTable-
|
|
9
|
+
import { a as insertToOrderedArray, i as binarySearch, n as registerFeature, o as strCompare, r as useAreaSelection, s as tableSort, t as StkTable_default } from "./StkTable-DFh1B-f9.js";
|
|
10
10
|
import { Fragment, computed, createApp, createBlock, createElementBlock, createElementVNode, createTextVNode, defineComponent, getCurrentInstance, h, markRaw, nextTick, normalizeClass, openBlock, ref, renderSlot, resolveDynamicComponent, toDisplayString, watch, withModifiers } from "vue";
|
|
11
11
|
//#region src/StkTable/custom-cells/FilterCell/Dropdown/index.ts
|
|
12
12
|
var DropdownIns = null;
|
|
@@ -15,7 +15,7 @@ async function getDropdownIns() {
|
|
|
15
15
|
const div = document.createElement("div");
|
|
16
16
|
div.classList.add("stk-filter-dropdown-wrapper");
|
|
17
17
|
document.body.appendChild(div);
|
|
18
|
-
DropdownIns = createApp(await import("./Dropdown-
|
|
18
|
+
DropdownIns = createApp(await import("./Dropdown-B2dzC5D3.js").then((module) => module.default)).mount(div);
|
|
19
19
|
}
|
|
20
20
|
return DropdownIns;
|
|
21
21
|
}
|
package/lib/style.css
CHANGED
package/package.json
CHANGED
|
@@ -146,7 +146,9 @@ function setTheme(t: 'light' | 'dark') {
|
|
|
146
146
|
|
|
147
147
|
function handleClear() {
|
|
148
148
|
checkedTempValueSet.clear();
|
|
149
|
-
|
|
149
|
+
options.value.forEach(opt => (opt.selected = false));
|
|
150
|
+
onConfirmFn([]);
|
|
151
|
+
hide();
|
|
150
152
|
}
|
|
151
153
|
|
|
152
154
|
defineExpose({ visible, show, hide, setTheme });
|
|
@@ -59,7 +59,7 @@ export function useFixedCol<DT extends Record<string, any>>(
|
|
|
59
59
|
if (fixed === 'right' && fixedBorderLeftColsValue.includes(col)) {
|
|
60
60
|
classList.push('fixed-cell--border-left');
|
|
61
61
|
}
|
|
62
|
-
colMap.set(colKeyFn(col), classList);
|
|
62
|
+
colMap.set(colKeyFn(col), classList.join(' '));
|
|
63
63
|
}
|
|
64
64
|
}
|
|
65
65
|
return colMap;
|