sctj-components 1.0.46 → 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$r = {
43
+ const _sfc_main$t = {
44
44
  __name: "index",
45
45
  props: {
46
46
  options: {
@@ -87,10 +87,10 @@ const _sfc_main$r = {
87
87
  };
88
88
  }
89
89
  };
90
- const SCTJDictTag = /* @__PURE__ */ _export_sfc(_sfc_main$r, [["__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$q = {
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$p = {
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$p = {
517
517
  };
518
518
  }
519
519
  };
520
- const SCTJFileUpload = /* @__PURE__ */ _export_sfc(_sfc_main$p, [["__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$o = {
530
+ const _sfc_main$q = {
531
531
  __name: "index",
532
532
  props: {
533
533
  modelValue: {
@@ -791,10 +791,10 @@ const _sfc_main$o = {
791
791
  };
792
792
  }
793
793
  };
794
- const SCTJImageUpload = /* @__PURE__ */ _export_sfc(_sfc_main$o, [["__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$n = {
797
+ const _sfc_main$p = {
798
798
  __name: "index",
799
799
  props: {
800
800
  enableDelete: {
@@ -925,7 +925,7 @@ const _sfc_main$n = {
925
925
  };
926
926
  }
927
927
  };
928
- const SCTJImagePreview = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["__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$m = {
1023
+ const _sfc_main$o = {
1024
1024
  __name: "index",
1025
1025
  props: {
1026
1026
  modelValue: {
@@ -1111,7 +1111,7 @@ const _sfc_main$m = {
1111
1111
  unref(iconName) ? {
1112
1112
  name: "prefix",
1113
1113
  fn: withCtx(() => [
1114
- createVNode(_sfc_main$q, { "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$m = {
1144
1144
  key: index2,
1145
1145
  onClick: ($event) => selectedIcon(item)
1146
1146
  }, [
1147
- createVNode(_sfc_main$q, {
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$m = {
1159
1159
  };
1160
1160
  }
1161
1161
  };
1162
- const SCTJIconSelect = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["__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$l = {
1189
+ const _sfc_main$n = {
1190
1190
  __name: "index",
1191
1191
  props: {
1192
1192
  modelValue: {
@@ -1292,7 +1292,7 @@ const _sfc_main$l = {
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$k = {
1295
+ const _sfc_main$m = {
1296
1296
  __name: "index",
1297
1297
  props: {
1298
1298
  objMap: {
@@ -1426,7 +1426,128 @@ const _sfc_main$k = {
1426
1426
  };
1427
1427
  }
1428
1428
  };
1429
- const SCTJTreeSelect = /* @__PURE__ */ _export_sfc(_sfc_main$k, [["__scopeId", "data-v-a2fe1763"]]);
1429
+ const SCTJTreeSelect = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["__scopeId", "data-v-a2fe1763"]]);
1430
+ const _sfc_main$l = {
1431
+ __name: "index",
1432
+ props: {
1433
+ modelValue: {
1434
+ type: [String, Array],
1435
+ default: ""
1436
+ },
1437
+ options: {
1438
+ type: Array,
1439
+ default: () => []
1440
+ },
1441
+ multiple: {
1442
+ type: Boolean,
1443
+ default: false
1444
+ },
1445
+ valueProp: {
1446
+ type: String,
1447
+ default: "value"
1448
+ },
1449
+ labelProp: {
1450
+ type: String,
1451
+ default: "label"
1452
+ }
1453
+ },
1454
+ emits: ["update:modelValue"],
1455
+ setup(__props, { emit }) {
1456
+ const props = __props;
1457
+ const selectValue = computed$1({
1458
+ get() {
1459
+ if (props.multiple) {
1460
+ return Array.isArray(props.modelValue) ? props.modelValue : props.modelValue.split(",").filter((item) => item !== "");
1461
+ } else {
1462
+ return props.modelValue;
1463
+ }
1464
+ },
1465
+ set(val) {
1466
+ emit("update:modelValue", Array.isArray(val) ? val.join(",") : val);
1467
+ }
1468
+ });
1469
+ return (_ctx, _cache) => {
1470
+ const _component_el_option = resolveComponent("el-option");
1471
+ const _component_el_select = resolveComponent("el-select");
1472
+ return openBlock(), createBlock(_component_el_select, mergeProps({
1473
+ modelValue: unref(selectValue),
1474
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef(selectValue) ? selectValue.value = $event : null),
1475
+ placeholder: "\u8BF7\u9009\u62E9",
1476
+ multiple: __props.multiple,
1477
+ filterable: "",
1478
+ clearable: ""
1479
+ }, _ctx.$attrs), {
1480
+ default: withCtx(() => [
1481
+ (openBlock(true), createElementBlock(Fragment, null, renderList(__props.options, (dict) => {
1482
+ return openBlock(), createBlock(_component_el_option, {
1483
+ key: dict[__props.valueProp],
1484
+ label: dict[__props.labelProp],
1485
+ value: dict[__props.valueProp]
1486
+ }, null, 8, ["label", "value"]);
1487
+ }), 128))
1488
+ ]),
1489
+ _: 1
1490
+ }, 16, ["modelValue", "multiple"]);
1491
+ };
1492
+ }
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
+ };
1430
1551
  const index_vue_vue_type_style_index_0_scoped_0e809a5c_lang = "";
1431
1552
  const _hoisted_1$e = { class: "table-container" };
1432
1553
  const _sfc_main$j = {
@@ -9484,13 +9605,15 @@ const SCTJDwgViewer = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "dat
9484
9605
  const components = [
9485
9606
  { component: SCTJDictTag, name: "SCTJDictTag" },
9486
9607
  { component: SCTJTreeSelect, name: "SCTJTreeSelect" },
9487
- { component: _sfc_main$q, name: "SCTJIcon" },
9608
+ { component: _sfc_main$l, name: "SCTJSelect" },
9609
+ { component: _sfc_main$k, name: "SCTJCheckBox" },
9610
+ { component: _sfc_main$s, name: "SCTJIcon" },
9488
9611
  { component: SCTJFileUpload, name: "SCTJFileUpload" },
9489
9612
  { component: SCTJImageUpload, name: "SCTJImageUpload" },
9490
9613
  { component: SCTJImagePreview, name: "SCTJImagePreview" },
9491
9614
  { component: SCTJIconSelect, name: "SCTJIconSelect" },
9492
9615
  { component: SCTJSearch, name: "SCTJSearch" },
9493
- { component: _sfc_main$l, name: "SCTJDateRangePicker" },
9616
+ { component: _sfc_main$n, name: "SCTJDateRangePicker" },
9494
9617
  { component: SCTJTable, name: "SCTJTable" },
9495
9618
  { component: SCTJTableContainer, name: "SCTJTableContainer" },
9496
9619
  { component: SCTJTablePageContainer, name: "SCTJTablePageContainer" },
@@ -9520,13 +9643,15 @@ const index = {
9520
9643
  install,
9521
9644
  SCTJDictTag,
9522
9645
  SCTJTreeSelect,
9523
- SCTJIcon: _sfc_main$q,
9646
+ SCTJSelect: _sfc_main$l,
9647
+ SCTJCheckBox: _sfc_main$k,
9648
+ SCTJIcon: _sfc_main$s,
9524
9649
  SCTJFileUpload,
9525
9650
  SCTJImageUpload,
9526
9651
  SCTJImagePreview,
9527
9652
  SCTJIconSelect,
9528
9653
  SCTJSearch,
9529
- SCTJDateRangePicker: _sfc_main$l,
9654
+ SCTJDateRangePicker: _sfc_main$n,
9530
9655
  SCTJTable,
9531
9656
  SCTJTableContainer,
9532
9657
  SCTJTablePageContainer,
@@ -9552,14 +9677,15 @@ export {
9552
9677
  SCTJBimViewer,
9553
9678
  _sfc_main$d as SCTJBtnContainer,
9554
9679
  SCTJBusinessMapDrawingDialog,
9680
+ _sfc_main$k as SCTJCheckBox,
9555
9681
  SCTJCommonChart,
9556
- _sfc_main$l as SCTJDateRangePicker,
9682
+ _sfc_main$n as SCTJDateRangePicker,
9557
9683
  SCTJDialogTable,
9558
9684
  SCTJDictTag,
9559
9685
  SCTJDwgViewer,
9560
9686
  SCTJFileUpload,
9561
9687
  SCTJFlvPlayer,
9562
- _sfc_main$q as SCTJIcon,
9688
+ _sfc_main$s as SCTJIcon,
9563
9689
  SCTJIconSelect,
9564
9690
  _sfc_main$6 as SCTJIframe,
9565
9691
  SCTJImagePreview,
@@ -9571,6 +9697,7 @@ export {
9571
9697
  SCTJRightToolbar,
9572
9698
  SCTJScrollTable,
9573
9699
  SCTJSearch,
9700
+ _sfc_main$l as SCTJSelect,
9574
9701
  SCTJTable,
9575
9702
  SCTJTableContainer,
9576
9703
  SCTJTablePageContainer,