sctj-components 1.1.16 → 1.1.18

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.
@@ -1,4 +1,4 @@
1
- import { computed as computed$1, resolveComponent, openBlock, createElementBlock, Fragment, renderList, unref, normalizeClass, toDisplayString, createBlock, withCtx, createTextVNode, createCommentVNode, createElementVNode, ref as ref$1, watch, mergeProps, createSlots, renderSlot, createVNode, TransitionGroup, useCssVars, withModifiers, normalizeStyle, nextTick, onMounted as onMounted$1, onUnmounted, isRef, withDirectives, vShow, onBeforeMount, getCurrentInstance, reactive, resolveDirective, useSlots, resolveDynamicComponent, toRefs, withKeys, pushScopeId, popScopeId, shallowRef, onBeforeUnmount, markRaw } from "vue";
1
+ import { computed as computed$1, resolveComponent, openBlock, createElementBlock, Fragment, renderList, unref, normalizeClass, toDisplayString, createBlock, withCtx, createTextVNode, createCommentVNode, createElementVNode, ref as ref$1, watch, mergeProps, createSlots, renderSlot, createVNode, TransitionGroup, useCssVars, withModifiers, normalizeStyle, nextTick, onMounted as onMounted$1, onUnmounted, isRef, withDirectives, vShow, onBeforeMount, reactive, getCurrentInstance, resolveDirective, useSlots, resolveDynamicComponent, toRefs, withKeys, pushScopeId, popScopeId, shallowRef, onBeforeUnmount, markRaw } from "vue";
2
2
  import VueOfficePdf from "@vue-office/pdf";
3
3
  import VueOfficeDocx from "@vue-office/docx";
4
4
  import VueOfficeExcel from "@vue-office/excel";
@@ -1310,13 +1310,17 @@ const _sfc_main$r = {
1310
1310
  clearable: {
1311
1311
  type: Boolean,
1312
1312
  default: true
1313
+ },
1314
+ shortcuts: {
1315
+ type: Array,
1316
+ default: () => []
1313
1317
  }
1314
1318
  },
1315
1319
  emits: ["update:modelValue", "change"],
1316
1320
  setup(__props, { emit }) {
1317
1321
  const props = __props;
1318
1322
  const { isMobile } = useMobile();
1319
- const shortcuts = [
1323
+ const defaultShortcuts = reactive([
1320
1324
  {
1321
1325
  text: "\u8FC7\u53BB7\u5929",
1322
1326
  value: () => {
@@ -1365,7 +1369,10 @@ const _sfc_main$r = {
1365
1369
  return [startOfLastYear, endOfLastYear];
1366
1370
  }
1367
1371
  }
1368
- ];
1372
+ ]);
1373
+ const computedShortcuts = computed$1(() => {
1374
+ return [...defaultShortcuts, ...props.shortcuts];
1375
+ });
1369
1376
  const timeRange = computed$1({
1370
1377
  get() {
1371
1378
  return props.modelValue;
@@ -1388,11 +1395,11 @@ const _sfc_main$r = {
1388
1395
  "value-format": __props.valueFormat,
1389
1396
  "disabled-date": __props.disabledDate,
1390
1397
  "range-separator": "\u5230",
1391
- shortcuts,
1398
+ shortcuts: unref(computedShortcuts),
1392
1399
  "start-placeholder": "\u5F00\u59CB\u65F6\u95F4",
1393
1400
  "end-placeholder": "\u7ED3\u675F\u65F6\u95F4",
1394
1401
  onChange: handleDateChange
1395
- }, _ctx.$attrs), null, 16, ["size", "clearable", "modelValue", "value-format", "disabled-date"]);
1402
+ }, _ctx.$attrs), null, 16, ["size", "clearable", "modelValue", "value-format", "disabled-date", "shortcuts"]);
1396
1403
  };
1397
1404
  }
1398
1405
  };
@@ -2699,8 +2706,8 @@ const _sfc_main$i = {
2699
2706
  };
2700
2707
  }
2701
2708
  };
2702
- const index_vue_vue_type_style_index_0_scoped_d4cbda5a_lang = "";
2703
- const _withScopeId$9 = (n) => (pushScopeId("data-v-d4cbda5a"), n = n(), popScopeId(), n);
2709
+ const index_vue_vue_type_style_index_0_scoped_62ef6d34_lang = "";
2710
+ const _withScopeId$9 = (n) => (pushScopeId("data-v-62ef6d34"), n = n(), popScopeId(), n);
2704
2711
  const _hoisted_1$e = {
2705
2712
  key: 0,
2706
2713
  class: "search-container"
@@ -2961,7 +2968,8 @@ const _sfc_main$h = {
2961
2968
  programSelection.value = false;
2962
2969
  };
2963
2970
  expose({
2964
- open
2971
+ open,
2972
+ close
2965
2973
  });
2966
2974
  return (_ctx, _cache) => {
2967
2975
  const _component_el_input = resolveComponent("el-input");
@@ -3273,7 +3281,7 @@ const _sfc_main$h = {
3273
3281
  };
3274
3282
  }
3275
3283
  };
3276
- const SCTJDialogTable = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["__scopeId", "data-v-d4cbda5a"]]);
3284
+ const SCTJDialogTable = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["__scopeId", "data-v-62ef6d34"]]);
3277
3285
  const index_vue_vue_type_style_index_0_scoped_15a9a632_lang = "";
3278
3286
  const _sfc_main$g = {
3279
3287
  __name: "index",