sctj-components 1.1.17 → 1.1.19
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/sctj-components.es.js +16 -9
- package/lib/sctj-components.umd.js +1 -1
- package/lib/style.css +1 -1
- package/package.json +1 -1
|
@@ -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,
|
|
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
|
|
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
|
};
|
|
@@ -3624,7 +3631,7 @@ const _sfc_main$g = {
|
|
|
3624
3631
|
}
|
|
3625
3632
|
};
|
|
3626
3633
|
const SCTJScrollTable = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["__scopeId", "data-v-15a9a632"]]);
|
|
3627
|
-
const
|
|
3634
|
+
const index_vue_vue_type_style_index_0_scoped_5ec801f2_lang = "";
|
|
3628
3635
|
const _hoisted_1$d = { class: "table-page-container" };
|
|
3629
3636
|
const _hoisted_2$b = { style: { "flex": "1", "height": "0" } };
|
|
3630
3637
|
const _sfc_main$f = {
|
|
@@ -3674,8 +3681,8 @@ const _sfc_main$f = {
|
|
|
3674
3681
|
};
|
|
3675
3682
|
}
|
|
3676
3683
|
};
|
|
3677
|
-
const SCTJTablePageContainer = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["__scopeId", "data-v-
|
|
3678
|
-
const
|
|
3684
|
+
const SCTJTablePageContainer = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["__scopeId", "data-v-5ec801f2"]]);
|
|
3685
|
+
const index_vue_vue_type_style_index_0_scoped_84dbe5af_lang = "";
|
|
3679
3686
|
const _hoisted_1$c = {
|
|
3680
3687
|
key: 0,
|
|
3681
3688
|
class: "search-container"
|
|
@@ -3726,7 +3733,7 @@ const _sfc_main$e = {
|
|
|
3726
3733
|
};
|
|
3727
3734
|
}
|
|
3728
3735
|
};
|
|
3729
|
-
const SCTJSearch = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["__scopeId", "data-v-
|
|
3736
|
+
const SCTJSearch = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["__scopeId", "data-v-84dbe5af"]]);
|
|
3730
3737
|
const _sfc_main$d = {
|
|
3731
3738
|
__name: "BaseChart",
|
|
3732
3739
|
props: {
|