sctj-components 1.0.26 → 1.0.28

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, onMounted as onMounted$1, onUpdated, nextTick, withModifiers, normalizeStyle, pushScopeId, popScopeId, onBeforeMount, onUnmounted, isRef, getCurrentInstance, reactive, resolveDirective, withDirectives, toRefs, resolveDynamicComponent, withKeys, useSlots, vShow, onBeforeUnmount, markRaw, useCssVars, shallowRef } 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, onMounted as onMounted$1, onUpdated, nextTick, withModifiers, normalizeStyle, isRef, pushScopeId, popScopeId, onBeforeMount, onUnmounted, getCurrentInstance, reactive, resolveDirective, withDirectives, toRefs, resolveDynamicComponent, withKeys, useSlots, vShow, onBeforeUnmount, markRaw, useCssVars, shallowRef } 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";
@@ -1023,17 +1023,31 @@ const icons = [
1023
1023
  "wechat",
1024
1024
  "zip"
1025
1025
  ];
1026
- const index_vue_vue_type_style_index_0_scoped_7611a463_lang = "";
1027
- const _withScopeId$5 = (n) => (pushScopeId("data-v-7611a463"), n = n(), popScopeId(), n);
1026
+ const index_vue_vue_type_style_index_0_scoped_cf88a853_lang = "";
1027
+ const _withScopeId$5 = (n) => (pushScopeId("data-v-cf88a853"), n = n(), popScopeId(), n);
1028
1028
  const _hoisted_1$f = { class: "icon-body" };
1029
1029
  const _hoisted_2$9 = /* @__PURE__ */ _withScopeId$5(() => /* @__PURE__ */ createElementVNode("i", { class: "el-icon-search el-input__icon" }, null, -1));
1030
1030
  const _hoisted_3$7 = { class: "icon-list" };
1031
1031
  const _hoisted_4$6 = ["onClick"];
1032
1032
  const _sfc_main$l = {
1033
1033
  __name: "index",
1034
- emits: ["selected"],
1034
+ props: {
1035
+ modalValue: {
1036
+ type: String,
1037
+ default: ""
1038
+ }
1039
+ },
1040
+ emits: ["selected", "update:modalValue"],
1035
1041
  setup(__props, { expose, emit }) {
1036
- const iconName = ref$1("");
1042
+ const props = __props;
1043
+ const iconName = computed$1({
1044
+ get() {
1045
+ return props.modalValue;
1046
+ },
1047
+ set(val) {
1048
+ emit("update:modalValue", val);
1049
+ }
1050
+ });
1037
1051
  const iconList = ref$1(icons);
1038
1052
  function filterIcons() {
1039
1053
  iconList.value = icons;
@@ -1042,6 +1056,7 @@ const _sfc_main$l = {
1042
1056
  }
1043
1057
  }
1044
1058
  function selectedIcon(name) {
1059
+ iconName.value = name;
1045
1060
  emit("selected", name);
1046
1061
  document.body.click();
1047
1062
  }
@@ -1056,13 +1071,14 @@ const _sfc_main$l = {
1056
1071
  const _component_el_input = resolveComponent("el-input");
1057
1072
  return openBlock(), createElementBlock("div", _hoisted_1$f, [
1058
1073
  createVNode(_component_el_input, {
1059
- modelValue: iconName.value,
1060
- "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => iconName.value = $event),
1074
+ modelValue: unref(iconName),
1075
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef(iconName) ? iconName.value = $event : null),
1076
+ modelModifiers: { trim: true },
1061
1077
  style: { "position": "relative" },
1062
1078
  clearable: "",
1063
1079
  placeholder: "\u8BF7\u8F93\u5165\u56FE\u6807\u540D\u79F0",
1064
1080
  onClear: filterIcons,
1065
- onInput: filterIcons
1081
+ onChange: filterIcons
1066
1082
  }, {
1067
1083
  suffix: withCtx(() => [
1068
1084
  _hoisted_2$9
@@ -1087,7 +1103,7 @@ const _sfc_main$l = {
1087
1103
  };
1088
1104
  }
1089
1105
  };
1090
- const SCTJIconSelect = /* @__PURE__ */ _export_sfc(_sfc_main$l, [["__scopeId", "data-v-7611a463"]]);
1106
+ const SCTJIconSelect = /* @__PURE__ */ _export_sfc(_sfc_main$l, [["__scopeId", "data-v-cf88a853"]]);
1091
1107
  function useMobile() {
1092
1108
  const isMobile = ref$1(false);
1093
1109
  const checkIsMobile = () => {
@@ -1877,8 +1893,8 @@ const _sfc_main$f = {
1877
1893
  }
1878
1894
  };
1879
1895
  const SCTJTableTopActionContainer = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["__scopeId", "data-v-056cfdde"]]);
1880
- const index_vue_vue_type_style_index_0_scoped_1fa4f04c_lang = "";
1881
- const _withScopeId$4 = (n) => (pushScopeId("data-v-1fa4f04c"), n = n(), popScopeId(), n);
1896
+ const index_vue_vue_type_style_index_0_scoped_d913f5c9_lang = "";
1897
+ const _withScopeId$4 = (n) => (pushScopeId("data-v-d913f5c9"), n = n(), popScopeId(), n);
1882
1898
  const _hoisted_1$a = {
1883
1899
  key: 0,
1884
1900
  class: "search-container"
@@ -1982,7 +1998,7 @@ const _sfc_main$e = {
1982
1998
  const handleClick = (type, prop, scope) => {
1983
1999
  if (!type)
1984
2000
  return;
1985
- emit(prop, scope);
2001
+ emit("action", prop, scope);
1986
2002
  };
1987
2003
  const handleQuery = () => {
1988
2004
  queryParams.value.pageNum = 1;
@@ -2385,7 +2401,7 @@ const _sfc_main$e = {
2385
2401
  };
2386
2402
  }
2387
2403
  };
2388
- const SCTJDialogTable = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["__scopeId", "data-v-1fa4f04c"]]);
2404
+ const SCTJDialogTable = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["__scopeId", "data-v-d913f5c9"]]);
2389
2405
  const _sfc_main$d = {
2390
2406
  __name: "index",
2391
2407
  setup(__props) {