keli-ui 0.0.9 → 0.0.10

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/keli-ui.js CHANGED
@@ -78209,21 +78209,19 @@ const msgTips = { alert, elNotification, tips };
78209
78209
  }
78210
78210
  })();
78211
78211
  function useCopyPaste(params) {
78212
- if (!params.rowConfig || !params.rowConfig.height) {
78212
+ if (!params.rowConfig || !params.rowConfig.height || !params.tableConfig || !params.tableConfig.paste) {
78213
78213
  return {
78214
- cellArea: () => {
78215
- },
78216
- leftFixedCellArea: () => {
78217
- },
78218
- rightFixedCellArea: () => {
78219
- },
78214
+ cellArea: null,
78215
+ leftFixedCellArea: null,
78216
+ rightFixedCellArea: null,
78220
78217
  addListener: () => {
78221
78218
  },
78222
78219
  removeListener: () => {
78223
78220
  },
78224
78221
  removeCopyShortcut: () => {
78225
78222
  },
78226
- removePasteShortcut
78223
+ removePasteShortcut: () => {
78224
+ }
78227
78225
  };
78228
78226
  }
78229
78227
  const isSelecting = ref(false);
@@ -79002,7 +79000,7 @@ const _export_sfc = (sfc, props) => {
79002
79000
  }
79003
79001
  return target;
79004
79002
  };
79005
- const ToolBarClient = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["__scopeId", "data-v-a54415be"]]);
79003
+ const ToolBarClient = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["__scopeId", "data-v-1d587f27"]]);
79006
79004
  const _hoisted_1$9 = { class: "ke-table-render-client" };
79007
79005
  const _hoisted_2$6 = {
79008
79006
  key: 1,
@@ -79099,7 +79097,6 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
79099
79097
  // 当选择项发生变化时会触发该事件
79100
79098
  ], ["update:tablePagination"]),
79101
79099
  setup(__props, { emit: __emit }) {
79102
- var _a2;
79103
79100
  const props = __props;
79104
79101
  const emits = __emit;
79105
79102
  const pagination = useModel(__props, "tablePagination");
@@ -79142,20 +79139,33 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
79142
79139
  xGrid.value.openCustom();
79143
79140
  };
79144
79141
  const xGrid = ref();
79145
- const {
79146
- cellArea,
79147
- leftFixedCellArea,
79148
- rightFixedCellArea,
79149
- addListener,
79150
- removeListener,
79151
- removeCopyShortcut,
79152
- removePasteShortcut
79153
- } = useCopyPaste({
79154
- xGrid,
79155
- rowConfig: (_a2 = props.vxeGridOptions) == null ? void 0 : _a2.rowConfig,
79156
- fieldChange: fieldValueChanged
79157
- });
79142
+ let cellArea, leftFixedCellArea, rightFixedCellArea, addListener, removeListener, removeCopyShortcut, removePasteShortcut;
79143
+ const initCopy = () => {
79144
+ var _a2;
79145
+ const {
79146
+ cellArea: cellAreaX,
79147
+ leftFixedCellArea: leftFixedCellAreaX,
79148
+ rightFixedCellArea: rightFixedCellAreaX,
79149
+ addListener: addListenerX,
79150
+ removeListener: removeListenerX,
79151
+ removeCopyShortcut: removeCopyShortcutX,
79152
+ removePasteShortcut: removePasteShortcutX
79153
+ } = useCopyPaste({
79154
+ xGrid,
79155
+ rowConfig: (_a2 = props.vxeGridOptions) == null ? void 0 : _a2.rowConfig,
79156
+ fieldChange: fieldValueChanged
79157
+ });
79158
+ cellArea = cellAreaX;
79159
+ leftFixedCellArea = leftFixedCellAreaX;
79160
+ rightFixedCellArea = rightFixedCellAreaX;
79161
+ addListener = addListenerX;
79162
+ removeListener = removeListenerX;
79163
+ removeCopyShortcut = removeCopyShortcutX;
79164
+ removePasteShortcut = removePasteShortcutX;
79165
+ console.log(removePasteShortcut);
79166
+ };
79158
79167
  onMounted(() => {
79168
+ initCopy();
79159
79169
  addListener();
79160
79170
  });
79161
79171
  onUnmounted(() => {
@@ -79500,7 +79510,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
79500
79510
  };
79501
79511
  }
79502
79512
  });
79503
- const ToolBarMobile = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["__scopeId", "data-v-c0feb3aa"]]);
79513
+ const ToolBarMobile = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["__scopeId", "data-v-e19155b1"]]);
79504
79514
  const _hoisted_1$6 = { class: "table-render-mobile" };
79505
79515
  const _hoisted_2$5 = { class: "table-render-mobile-search" };
79506
79516
  const _hoisted_3$2 = { class: "table-tool-button" };
@@ -81239,7 +81249,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
81239
81249
  };
81240
81250
  }
81241
81251
  });
81242
- const KeliQuerySelect = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-ce16482a"]]);
81252
+ const KeliQuerySelect = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-72fae985"]]);
81243
81253
  KeliQuerySelect.install = (app) => {
81244
81254
  app.component(KeliQuerySelect.__name, KeliQuerySelect);
81245
81255
  };