sctj-components 1.1.14 → 1.1.16

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, toRefs, resolveDynamicComponent, withKeys, pushScopeId, popScopeId, shallowRef, useSlots, 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, getCurrentInstance, reactive, 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";
@@ -2652,8 +2652,55 @@ const _sfc_main$j = {
2652
2652
  }
2653
2653
  };
2654
2654
  const SCTJTableTopActionContainer = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["__scopeId", "data-v-056cfdde"]]);
2655
- const index_vue_vue_type_style_index_0_scoped_6419b31c_lang = "";
2656
- const _withScopeId$9 = (n) => (pushScopeId("data-v-6419b31c"), n = n(), popScopeId(), n);
2655
+ const _sfc_main$i = {
2656
+ __name: "index",
2657
+ setup(__props) {
2658
+ const { isMobile } = useMobile();
2659
+ const defaultSlots = computed$1(() => {
2660
+ return useSlots().default();
2661
+ });
2662
+ return (_ctx, _cache) => {
2663
+ const _component_arrow_down = resolveComponent("arrow-down");
2664
+ const _component_el_icon = resolveComponent("el-icon");
2665
+ const _component_el_dropdown_item = resolveComponent("el-dropdown-item");
2666
+ const _component_el_dropdown_menu = resolveComponent("el-dropdown-menu");
2667
+ const _component_el_dropdown = resolveComponent("el-dropdown");
2668
+ return openBlock(), createElementBlock("div", null, [
2669
+ unref(isMobile) ? (openBlock(), createBlock(_component_el_dropdown, { key: 0 }, {
2670
+ dropdown: withCtx(() => [
2671
+ createVNode(_component_el_dropdown_menu, null, {
2672
+ default: withCtx(() => [
2673
+ (openBlock(true), createElementBlock(Fragment, null, renderList(unref(defaultSlots), (item) => {
2674
+ return openBlock(), createBlock(_component_el_dropdown_item, null, {
2675
+ default: withCtx(() => [
2676
+ (openBlock(), createBlock(resolveDynamicComponent(item)))
2677
+ ]),
2678
+ _: 2
2679
+ }, 1024);
2680
+ }), 256))
2681
+ ]),
2682
+ _: 1
2683
+ })
2684
+ ]),
2685
+ default: withCtx(() => [
2686
+ createElementVNode("span", null, [
2687
+ createTextVNode(" \u64CD\u4F5C "),
2688
+ createVNode(_component_el_icon, { class: "el-icon--right" }, {
2689
+ default: withCtx(() => [
2690
+ createVNode(_component_arrow_down)
2691
+ ]),
2692
+ _: 1
2693
+ })
2694
+ ])
2695
+ ]),
2696
+ _: 1
2697
+ })) : renderSlot(_ctx.$slots, "default", { key: 1 })
2698
+ ]);
2699
+ };
2700
+ }
2701
+ };
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);
2657
2704
  const _hoisted_1$e = {
2658
2705
  key: 0,
2659
2706
  class: "search-container"
@@ -2668,7 +2715,7 @@ const _hoisted_5$6 = /* @__PURE__ */ _withScopeId$9(() => /* @__PURE__ */ create
2668
2715
  const _hoisted_6$5 = { class: "tag-container" };
2669
2716
  const _hoisted_7$3 = { class: "tag-name" };
2670
2717
  const _hoisted_8$3 = { class: "dialog-footer" };
2671
- const _sfc_main$i = {
2718
+ const _sfc_main$h = {
2672
2719
  __name: "index",
2673
2720
  props: {
2674
2721
  mode: {
@@ -2745,6 +2792,10 @@ const _sfc_main$i = {
2745
2792
  const props = __props;
2746
2793
  const { isMobile } = useMobile();
2747
2794
  const { proxy } = getCurrentInstance();
2795
+ const actionSlots = computed$1(() => {
2796
+ var _a, _b;
2797
+ return ((_b = (_a = useSlots()).action) == null ? void 0 : _b.call(_a)) || null;
2798
+ });
2748
2799
  const dialogParams = ref$1({
2749
2800
  open: false,
2750
2801
  title: ""
@@ -3113,9 +3164,30 @@ const _sfc_main$i = {
3113
3164
  _: 2
3114
3165
  }, 1040))
3115
3166
  ], 64);
3116
- }), 128))
3167
+ }), 128)),
3168
+ unref(actionSlots) ? (openBlock(), createBlock(_component_el_table_column, {
3169
+ key: 1,
3170
+ label: "\u64CD\u4F5C",
3171
+ "min-width": "180",
3172
+ fixed: !unref(isMobile) && "right",
3173
+ align: "center",
3174
+ prop: "action"
3175
+ }, {
3176
+ default: withCtx((scope) => [
3177
+ createVNode(_sfc_main$i, null, {
3178
+ default: withCtx(() => [
3179
+ renderSlot(_ctx.$slots, "action", {
3180
+ row: scope.row,
3181
+ $index: scope.$index
3182
+ }, void 0, true)
3183
+ ]),
3184
+ _: 2
3185
+ }, 1024)
3186
+ ]),
3187
+ _: 3
3188
+ }, 8, ["fixed"])) : createCommentVNode("", true)
3117
3189
  ]),
3118
- _: 1
3190
+ _: 3
3119
3191
  }, 8, ["size", "data", "tree-props", "header-cell-class-name", "row-key"])), [
3120
3192
  [_directive_loading, loading.value]
3121
3193
  ]),
@@ -3196,14 +3268,14 @@ const _sfc_main$i = {
3196
3268
  })) : createCommentVNode("", true)
3197
3269
  ], 6)
3198
3270
  ]),
3199
- _: 1
3271
+ _: 3
3200
3272
  }, 16, ["modelValue", "title", "width", "size", "fullscreen"]);
3201
3273
  };
3202
3274
  }
3203
3275
  };
3204
- const SCTJDialogTable = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["__scopeId", "data-v-6419b31c"]]);
3276
+ const SCTJDialogTable = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["__scopeId", "data-v-d4cbda5a"]]);
3205
3277
  const index_vue_vue_type_style_index_0_scoped_15a9a632_lang = "";
3206
- const _sfc_main$h = {
3278
+ const _sfc_main$g = {
3207
3279
  __name: "index",
3208
3280
  props: {
3209
3281
  tableData: {
@@ -3550,55 +3622,7 @@ const _sfc_main$h = {
3550
3622
  };
3551
3623
  }
3552
3624
  };
3553
- const SCTJScrollTable = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["__scopeId", "data-v-15a9a632"]]);
3554
- const _sfc_main$g = {
3555
- __name: "index",
3556
- setup(__props) {
3557
- const { isMobile } = useMobile();
3558
- const defaultSlots = computed$1(() => {
3559
- console.log("useSlots().default()", useSlots().default());
3560
- return useSlots().default();
3561
- });
3562
- return (_ctx, _cache) => {
3563
- const _component_arrow_down = resolveComponent("arrow-down");
3564
- const _component_el_icon = resolveComponent("el-icon");
3565
- const _component_el_dropdown_item = resolveComponent("el-dropdown-item");
3566
- const _component_el_dropdown_menu = resolveComponent("el-dropdown-menu");
3567
- const _component_el_dropdown = resolveComponent("el-dropdown");
3568
- return openBlock(), createElementBlock("div", null, [
3569
- unref(isMobile) ? (openBlock(), createBlock(_component_el_dropdown, { key: 0 }, {
3570
- dropdown: withCtx(() => [
3571
- createVNode(_component_el_dropdown_menu, null, {
3572
- default: withCtx(() => [
3573
- (openBlock(true), createElementBlock(Fragment, null, renderList(unref(defaultSlots), (item) => {
3574
- return openBlock(), createBlock(_component_el_dropdown_item, null, {
3575
- default: withCtx(() => [
3576
- (openBlock(), createBlock(resolveDynamicComponent(item)))
3577
- ]),
3578
- _: 2
3579
- }, 1024);
3580
- }), 256))
3581
- ]),
3582
- _: 1
3583
- })
3584
- ]),
3585
- default: withCtx(() => [
3586
- createElementVNode("span", null, [
3587
- createTextVNode(" \u64CD\u4F5C "),
3588
- createVNode(_component_el_icon, { class: "el-icon--right" }, {
3589
- default: withCtx(() => [
3590
- createVNode(_component_arrow_down)
3591
- ]),
3592
- _: 1
3593
- })
3594
- ])
3595
- ]),
3596
- _: 1
3597
- })) : renderSlot(_ctx.$slots, "default", { key: 1 })
3598
- ]);
3599
- };
3600
- }
3601
- };
3625
+ const SCTJScrollTable = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["__scopeId", "data-v-15a9a632"]]);
3602
3626
  const index_vue_vue_type_style_index_0_scoped_48dc11be_lang = "";
3603
3627
  const _hoisted_1$d = { class: "table-page-container" };
3604
3628
  const _hoisted_2$b = { style: { "flex": "1", "height": "0" } };
@@ -13013,7 +13037,7 @@ const components = [
13013
13037
  { component: SCTJTablePageContainer, name: "SCTJTablePageContainer" },
13014
13038
  { component: SCTJTableTopActionContainer, name: "SCTJTableTopActionContainer" },
13015
13039
  { component: SCTJRightToolbar, name: "SCTJRightToolbar" },
13016
- { component: _sfc_main$g, name: "SCTJBtnContainer" },
13040
+ { component: _sfc_main$i, name: "SCTJBtnContainer" },
13017
13041
  { component: _sfc_main$d, name: "SCTJBaseChart" },
13018
13042
  { component: SCTJCommonChart, name: "SCTJCommonChart" },
13019
13043
  { component: SCTJPieChart, name: "SCTJPieChart" },
@@ -13055,7 +13079,7 @@ const index = {
13055
13079
  SCTJTablePageContainer,
13056
13080
  SCTJTableTopActionContainer,
13057
13081
  SCTJRightToolbar,
13058
- SCTJBtnContainer: _sfc_main$g,
13082
+ SCTJBtnContainer: _sfc_main$i,
13059
13083
  SCTJBaseChart: _sfc_main$d,
13060
13084
  SCTJCommonChart,
13061
13085
  SCTJPieChart,
@@ -13076,7 +13100,7 @@ const index = {
13076
13100
  export {
13077
13101
  _sfc_main$d as SCTJBaseChart,
13078
13102
  SCTJBimViewer,
13079
- _sfc_main$g as SCTJBtnContainer,
13103
+ _sfc_main$i as SCTJBtnContainer,
13080
13104
  SCTJBusinessMapDrawingDialog,
13081
13105
  _sfc_main$o as SCTJCheckBox,
13082
13106
  SCTJCommonChart,