sctj-components 1.0.47 → 1.0.48

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.
@@ -40,7 +40,7 @@ const _export_sfc = (sfc, props) => {
40
40
  };
41
41
  const _hoisted_1$l = { class: "dict-tag-container" };
42
42
  const _hoisted_2$c = ["index"];
43
- const _sfc_main$s = {
43
+ const _sfc_main$t = {
44
44
  __name: "index",
45
45
  props: {
46
46
  options: {
@@ -87,10 +87,10 @@ const _sfc_main$s = {
87
87
  };
88
88
  }
89
89
  };
90
- const SCTJDictTag = /* @__PURE__ */ _export_sfc(_sfc_main$s, [["__scopeId", "data-v-659e1d01"]]);
90
+ const SCTJDictTag = /* @__PURE__ */ _export_sfc(_sfc_main$t, [["__scopeId", "data-v-659e1d01"]]);
91
91
  const index_vue_vue_type_style_index_0_scope_true_lang = "";
92
92
  const _hoisted_1$k = ["xlink:href", "fill"];
93
- const _sfc_main$r = {
93
+ const _sfc_main$s = {
94
94
  __name: "index",
95
95
  props: {
96
96
  iconClass: {
@@ -139,7 +139,7 @@ const _hoisted_4$7 = { style: { "color": "#f56c6c" } };
139
139
  const _hoisted_5$6 = ["title"];
140
140
  const _hoisted_6$3 = { class: "ele-upload-list__item-content-action" };
141
141
  const _hoisted_7$3 = { style: { "width": "100%", "height": "100%", "overflow": "auto" } };
142
- const _sfc_main$q = {
142
+ const _sfc_main$r = {
143
143
  __name: "index",
144
144
  props: {
145
145
  modelValue: [String, Object, Array],
@@ -517,7 +517,7 @@ const _sfc_main$q = {
517
517
  };
518
518
  }
519
519
  };
520
- const SCTJFileUpload = /* @__PURE__ */ _export_sfc(_sfc_main$q, [["__scopeId", "data-v-006fbc77"]]);
520
+ const SCTJFileUpload = /* @__PURE__ */ _export_sfc(_sfc_main$r, [["__scopeId", "data-v-006fbc77"]]);
521
521
  const index_vue_vue_type_style_index_0_scoped_672e5149_lang = "";
522
522
  const _hoisted_1$i = { class: "component-upload-image" };
523
523
  const _hoisted_2$a = {
@@ -527,7 +527,7 @@ const _hoisted_2$a = {
527
527
  const _hoisted_3$8 = { style: { "color": "#f56c6c" } };
528
528
  const _hoisted_4$6 = { style: { "color": "#f56c6c" } };
529
529
  const _hoisted_5$5 = ["src"];
530
- const _sfc_main$p = {
530
+ const _sfc_main$q = {
531
531
  __name: "index",
532
532
  props: {
533
533
  modelValue: {
@@ -791,10 +791,10 @@ const _sfc_main$p = {
791
791
  };
792
792
  }
793
793
  };
794
- const SCTJImageUpload = /* @__PURE__ */ _export_sfc(_sfc_main$p, [["__scopeId", "data-v-672e5149"]]);
794
+ const SCTJImageUpload = /* @__PURE__ */ _export_sfc(_sfc_main$q, [["__scopeId", "data-v-672e5149"]]);
795
795
  const index_vue_vue_type_style_index_0_scoped_e91fd2ba_lang = "";
796
796
  const _hoisted_1$h = { class: "image-slot" };
797
- const _sfc_main$o = {
797
+ const _sfc_main$p = {
798
798
  __name: "index",
799
799
  props: {
800
800
  enableDelete: {
@@ -925,7 +925,7 @@ const _sfc_main$o = {
925
925
  };
926
926
  }
927
927
  };
928
- const SCTJImagePreview = /* @__PURE__ */ _export_sfc(_sfc_main$o, [["__scopeId", "data-v-e91fd2ba"]]);
928
+ const SCTJImagePreview = /* @__PURE__ */ _export_sfc(_sfc_main$p, [["__scopeId", "data-v-e91fd2ba"]]);
929
929
  const icons = [
930
930
  "404",
931
931
  "asset",
@@ -1020,7 +1020,7 @@ const index_vue_vue_type_style_index_0_scoped_37029e19_lang = "";
1020
1020
  const _hoisted_1$g = { class: "icon-content" };
1021
1021
  const _hoisted_2$9 = { class: "icon-list" };
1022
1022
  const _hoisted_3$7 = ["onClick"];
1023
- const _sfc_main$n = {
1023
+ const _sfc_main$o = {
1024
1024
  __name: "index",
1025
1025
  props: {
1026
1026
  modelValue: {
@@ -1111,7 +1111,7 @@ const _sfc_main$n = {
1111
1111
  unref(iconName) ? {
1112
1112
  name: "prefix",
1113
1113
  fn: withCtx(() => [
1114
- createVNode(_sfc_main$r, { "icon-class": unref(iconName) }, null, 8, ["icon-class"])
1114
+ createVNode(_sfc_main$s, { "icon-class": unref(iconName) }, null, 8, ["icon-class"])
1115
1115
  ]),
1116
1116
  key: "0"
1117
1117
  } : void 0
@@ -1144,7 +1144,7 @@ const _sfc_main$n = {
1144
1144
  key: index2,
1145
1145
  onClick: ($event) => selectedIcon(item)
1146
1146
  }, [
1147
- createVNode(_sfc_main$r, {
1147
+ createVNode(_sfc_main$s, {
1148
1148
  "icon-class": item,
1149
1149
  style: { "height": "30px", "width": "16px", "flex-shrink": "0" }
1150
1150
  }, null, 8, ["icon-class"]),
@@ -1159,7 +1159,7 @@ const _sfc_main$n = {
1159
1159
  };
1160
1160
  }
1161
1161
  };
1162
- const SCTJIconSelect = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["__scopeId", "data-v-37029e19"]]);
1162
+ const SCTJIconSelect = /* @__PURE__ */ _export_sfc(_sfc_main$o, [["__scopeId", "data-v-37029e19"]]);
1163
1163
  function useMobile() {
1164
1164
  const isMobile = ref$1(false);
1165
1165
  const checkIsMobile = () => {
@@ -1186,7 +1186,7 @@ function useMobile() {
1186
1186
  checkIsMobile
1187
1187
  };
1188
1188
  }
1189
- const _sfc_main$m = {
1189
+ const _sfc_main$n = {
1190
1190
  __name: "index",
1191
1191
  props: {
1192
1192
  modelValue: {
@@ -1292,7 +1292,7 @@ const _sfc_main$m = {
1292
1292
  };
1293
1293
  const index_vue_vue_type_style_index_0_scoped_a2fe1763_lang = "";
1294
1294
  const _hoisted_1$f = { class: "el-tree-select" };
1295
- const _sfc_main$l = {
1295
+ const _sfc_main$m = {
1296
1296
  __name: "index",
1297
1297
  props: {
1298
1298
  objMap: {
@@ -1426,8 +1426,8 @@ const _sfc_main$l = {
1426
1426
  };
1427
1427
  }
1428
1428
  };
1429
- const SCTJTreeSelect = /* @__PURE__ */ _export_sfc(_sfc_main$l, [["__scopeId", "data-v-a2fe1763"]]);
1430
- const _sfc_main$k = {
1429
+ const SCTJTreeSelect = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["__scopeId", "data-v-a2fe1763"]]);
1430
+ const _sfc_main$l = {
1431
1431
  __name: "index",
1432
1432
  props: {
1433
1433
  modelValue: {
@@ -1457,7 +1457,7 @@ const _sfc_main$k = {
1457
1457
  const selectValue = computed$1({
1458
1458
  get() {
1459
1459
  if (props.multiple) {
1460
- return Array.isArray(props.modelValue) ? props.modelValue : props.modelValue.split(",");
1460
+ return Array.isArray(props.modelValue) ? props.modelValue : props.modelValue.split(",").filter((item) => item !== "");
1461
1461
  } else {
1462
1462
  return props.modelValue;
1463
1463
  }
@@ -1472,7 +1472,7 @@ const _sfc_main$k = {
1472
1472
  return openBlock(), createBlock(_component_el_select, mergeProps({
1473
1473
  modelValue: unref(selectValue),
1474
1474
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef(selectValue) ? selectValue.value = $event : null),
1475
- placeholder: "\u8BF7\u9009\u62E9\u4E0B\u62C9\u6846\u590D\u9009",
1475
+ placeholder: "\u8BF7\u9009\u62E9",
1476
1476
  multiple: __props.multiple,
1477
1477
  filterable: "",
1478
1478
  clearable: ""
@@ -1491,6 +1491,63 @@ const _sfc_main$k = {
1491
1491
  };
1492
1492
  }
1493
1493
  };
1494
+ const _sfc_main$k = {
1495
+ __name: "index",
1496
+ props: {
1497
+ modelValue: {
1498
+ type: [String, Array],
1499
+ default: ""
1500
+ },
1501
+ options: {
1502
+ type: Array,
1503
+ default: () => []
1504
+ },
1505
+ valueProp: {
1506
+ type: String,
1507
+ default: "value"
1508
+ },
1509
+ labelProp: {
1510
+ type: String,
1511
+ default: "label"
1512
+ }
1513
+ },
1514
+ emits: ["update:modelValue"],
1515
+ setup(__props, { emit }) {
1516
+ const props = __props;
1517
+ const checkBoxValue = computed$1({
1518
+ get() {
1519
+ return Array.isArray(props.modelValue) ? props.modelValue : props.modelValue.split(",").filter((item) => item !== "");
1520
+ },
1521
+ set(val) {
1522
+ emit("update:modelValue", Array.isArray(val) ? val.join(",") : val);
1523
+ }
1524
+ });
1525
+ return (_ctx, _cache) => {
1526
+ const _component_el_checkbox = resolveComponent("el-checkbox");
1527
+ const _component_el_checkbox_group = resolveComponent("el-checkbox-group");
1528
+ return openBlock(), createBlock(_component_el_checkbox_group, mergeProps({
1529
+ modelValue: unref(checkBoxValue),
1530
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef(checkBoxValue) ? checkBoxValue.value = $event : null)
1531
+ }, _ctx.$attrs), {
1532
+ default: withCtx(() => [
1533
+ (openBlock(true), createElementBlock(Fragment, null, renderList(__props.options, (dict) => {
1534
+ return openBlock(), createBlock(_component_el_checkbox, {
1535
+ key: dict[__props.valueProp],
1536
+ label: dict[__props.valueProp],
1537
+ disabled: dict.disabled
1538
+ }, {
1539
+ default: withCtx(() => [
1540
+ createTextVNode(toDisplayString(dict[__props.labelProp]), 1)
1541
+ ]),
1542
+ _: 2
1543
+ }, 1032, ["label", "disabled"]);
1544
+ }), 128))
1545
+ ]),
1546
+ _: 1
1547
+ }, 16, ["modelValue"]);
1548
+ };
1549
+ }
1550
+ };
1494
1551
  const index_vue_vue_type_style_index_0_scoped_0e809a5c_lang = "";
1495
1552
  const _hoisted_1$e = { class: "table-container" };
1496
1553
  const _sfc_main$j = {
@@ -9548,14 +9605,15 @@ const SCTJDwgViewer = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "dat
9548
9605
  const components = [
9549
9606
  { component: SCTJDictTag, name: "SCTJDictTag" },
9550
9607
  { component: SCTJTreeSelect, name: "SCTJTreeSelect" },
9551
- { component: _sfc_main$k, name: "SCTJSelect" },
9552
- { component: _sfc_main$r, name: "SCTJIcon" },
9608
+ { component: _sfc_main$l, name: "SCTJSelect" },
9609
+ { component: _sfc_main$k, name: "SCTJCheckBox" },
9610
+ { component: _sfc_main$s, name: "SCTJIcon" },
9553
9611
  { component: SCTJFileUpload, name: "SCTJFileUpload" },
9554
9612
  { component: SCTJImageUpload, name: "SCTJImageUpload" },
9555
9613
  { component: SCTJImagePreview, name: "SCTJImagePreview" },
9556
9614
  { component: SCTJIconSelect, name: "SCTJIconSelect" },
9557
9615
  { component: SCTJSearch, name: "SCTJSearch" },
9558
- { component: _sfc_main$m, name: "SCTJDateRangePicker" },
9616
+ { component: _sfc_main$n, name: "SCTJDateRangePicker" },
9559
9617
  { component: SCTJTable, name: "SCTJTable" },
9560
9618
  { component: SCTJTableContainer, name: "SCTJTableContainer" },
9561
9619
  { component: SCTJTablePageContainer, name: "SCTJTablePageContainer" },
@@ -9585,14 +9643,15 @@ const index = {
9585
9643
  install,
9586
9644
  SCTJDictTag,
9587
9645
  SCTJTreeSelect,
9588
- SCTJSelect: _sfc_main$k,
9589
- SCTJIcon: _sfc_main$r,
9646
+ SCTJSelect: _sfc_main$l,
9647
+ SCTJCheckBox: _sfc_main$k,
9648
+ SCTJIcon: _sfc_main$s,
9590
9649
  SCTJFileUpload,
9591
9650
  SCTJImageUpload,
9592
9651
  SCTJImagePreview,
9593
9652
  SCTJIconSelect,
9594
9653
  SCTJSearch,
9595
- SCTJDateRangePicker: _sfc_main$m,
9654
+ SCTJDateRangePicker: _sfc_main$n,
9596
9655
  SCTJTable,
9597
9656
  SCTJTableContainer,
9598
9657
  SCTJTablePageContainer,
@@ -9618,14 +9677,15 @@ export {
9618
9677
  SCTJBimViewer,
9619
9678
  _sfc_main$d as SCTJBtnContainer,
9620
9679
  SCTJBusinessMapDrawingDialog,
9680
+ _sfc_main$k as SCTJCheckBox,
9621
9681
  SCTJCommonChart,
9622
- _sfc_main$m as SCTJDateRangePicker,
9682
+ _sfc_main$n as SCTJDateRangePicker,
9623
9683
  SCTJDialogTable,
9624
9684
  SCTJDictTag,
9625
9685
  SCTJDwgViewer,
9626
9686
  SCTJFileUpload,
9627
9687
  SCTJFlvPlayer,
9628
- _sfc_main$r as SCTJIcon,
9688
+ _sfc_main$s as SCTJIcon,
9629
9689
  SCTJIconSelect,
9630
9690
  _sfc_main$6 as SCTJIframe,
9631
9691
  SCTJImagePreview,
@@ -9637,7 +9697,7 @@ export {
9637
9697
  SCTJRightToolbar,
9638
9698
  SCTJScrollTable,
9639
9699
  SCTJSearch,
9640
- _sfc_main$k as SCTJSelect,
9700
+ _sfc_main$l as SCTJSelect,
9641
9701
  SCTJTable,
9642
9702
  SCTJTableContainer,
9643
9703
  SCTJTablePageContainer,