@juzhenfe/page-model 3.18.1 → 3.18.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/dist/index.es.js
CHANGED
|
@@ -9252,8 +9252,12 @@ const useColumnDrag = () => {
|
|
|
9252
9252
|
}
|
|
9253
9253
|
});
|
|
9254
9254
|
};
|
|
9255
|
+
const clearSelectStart = () => {
|
|
9256
|
+
document.removeEventListener("selectstart", sortable);
|
|
9257
|
+
};
|
|
9255
9258
|
return {
|
|
9256
9259
|
initTableDrag,
|
|
9260
|
+
clearSelectStart,
|
|
9257
9261
|
destroyTableDrag() {
|
|
9258
9262
|
sortable && sortable.destroy();
|
|
9259
9263
|
sortable = null;
|
|
@@ -9603,7 +9607,7 @@ const _sfc_main$n = defineComponent({
|
|
|
9603
9607
|
tableManager.updateColumnToolsVisible(false);
|
|
9604
9608
|
};
|
|
9605
9609
|
const scrollLifecycle = useListenScroll(tableManager);
|
|
9606
|
-
const { initTableDrag, destroyTableDrag } = useColumnDrag();
|
|
9610
|
+
const { initTableDrag, destroyTableDrag, clearSelectStart } = useColumnDrag();
|
|
9607
9611
|
onMounted(() => {
|
|
9608
9612
|
tableManager.updateTableRef(tableRef.value);
|
|
9609
9613
|
scrollLifecycle.onMounted();
|
|
@@ -9631,6 +9635,7 @@ const _sfc_main$n = defineComponent({
|
|
|
9631
9635
|
}, 2e3);
|
|
9632
9636
|
});
|
|
9633
9637
|
const handleTableHeaderDragEnd = (newWidth, oldWidth, column, event) => {
|
|
9638
|
+
clearSelectStart();
|
|
9634
9639
|
if (newWidth === oldWidth) {
|
|
9635
9640
|
return false;
|
|
9636
9641
|
}
|
|
@@ -14898,7 +14903,7 @@ const defineEditableTable = function(config) {
|
|
|
14898
14903
|
};
|
|
14899
14904
|
var iconfont = "";
|
|
14900
14905
|
const name = "@juzhenfe/page-model";
|
|
14901
|
-
const version = "3.18.
|
|
14906
|
+
const version = "3.18.2";
|
|
14902
14907
|
const types = "dist/main.d.ts";
|
|
14903
14908
|
const main = "dist/index.umd.js";
|
|
14904
14909
|
const keywords = [
|