sctj-components 1.0.73 → 1.0.75

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/README.md CHANGED
@@ -1199,5 +1199,5 @@ MIT
1199
1199
 
1200
1200
  ## 👥 作者
1201
1201
 
1202
- 铁建
1202
+ 四川铁建
1203
1203
 
@@ -2547,8 +2547,8 @@ const _sfc_main$i = {
2547
2547
  }
2548
2548
  };
2549
2549
  const SCTJTableTopActionContainer = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["__scopeId", "data-v-056cfdde"]]);
2550
- const index_vue_vue_type_style_index_0_scoped_26db7104_lang = "";
2551
- const _withScopeId$6 = (n) => (pushScopeId("data-v-26db7104"), n = n(), popScopeId(), n);
2550
+ const index_vue_vue_type_style_index_0_scoped_946a1b5d_lang = "";
2551
+ const _withScopeId$6 = (n) => (pushScopeId("data-v-946a1b5d"), n = n(), popScopeId(), n);
2552
2552
  const _hoisted_1$e = {
2553
2553
  key: 0,
2554
2554
  class: "search-container"
@@ -2799,6 +2799,7 @@ const _sfc_main$h = {
2799
2799
  const _component_el_input = resolveComponent("el-input");
2800
2800
  const _component_el_option = resolveComponent("el-option");
2801
2801
  const _component_el_select = resolveComponent("el-select");
2802
+ const _component_el_date_picker = resolveComponent("el-date-picker");
2802
2803
  const _component_el_form_item = resolveComponent("el-form-item");
2803
2804
  const _component_el_button = resolveComponent("el-button");
2804
2805
  const _component_el_form = resolveComponent("el-form");
@@ -2890,8 +2891,17 @@ const _sfc_main$h = {
2890
2891
  }), 128))
2891
2892
  ]),
2892
2893
  _: 2
2893
- }, 1032, ["clearable", "filterable", "modelValue", "onUpdate:modelValue", "placeholder"])) : (openBlock(), createBlock(_component_el_input, {
2894
+ }, 1032, ["clearable", "filterable", "modelValue", "onUpdate:modelValue", "placeholder"])) : item.query.type === "date" ? (openBlock(), createBlock(_component_el_date_picker, {
2894
2895
  key: 2,
2896
+ clearable: item.query.clearable !== false,
2897
+ onChange: handleQuery,
2898
+ modelValue: unref(queryParams)[item.query.queryKey || item.prop],
2899
+ "onUpdate:modelValue": ($event) => unref(queryParams)[item.query.queryKey || item.prop] = $event,
2900
+ "value-format": item.query.valueFormat || "YYYY-MM-DD",
2901
+ type: item.query.dateType || "date",
2902
+ placeholder: "\u8BF7\u9009\u62E9"
2903
+ }, null, 8, ["clearable", "modelValue", "onUpdate:modelValue", "value-format", "type"])) : (openBlock(), createBlock(_component_el_input, {
2904
+ key: 3,
2895
2905
  modelValue: unref(queryParams)[item.query.queryKey || item.prop],
2896
2906
  "onUpdate:modelValue": ($event) => unref(queryParams)[item.query.queryKey || item.prop] = $event,
2897
2907
  placeholder: item.query.placeholder || "\u8BF7\u8F93\u5165",
@@ -3073,7 +3083,7 @@ const _sfc_main$h = {
3073
3083
  };
3074
3084
  }
3075
3085
  };
3076
- const SCTJDialogTable = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["__scopeId", "data-v-26db7104"]]);
3086
+ const SCTJDialogTable = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["__scopeId", "data-v-946a1b5d"]]);
3077
3087
  const index_vue_vue_type_style_index_0_scoped_80cb4921_lang = "";
3078
3088
  const _hoisted_1$d = { style: { "background": "#fff" } };
3079
3089
  const _sfc_main$g = {
@@ -4253,7 +4263,7 @@ const _sfc_main$b = {
4253
4263
  }
4254
4264
  };
4255
4265
  const SCTJCommonChart = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["__scopeId", "data-v-2f3b9e13"]]);
4256
- const PieChart_vue_vue_type_style_index_0_scoped_747db0fa_lang = "";
4266
+ const PieChart_vue_vue_type_style_index_0_scoped_c3a3e060_lang = "";
4257
4267
  const _hoisted_1$9 = ["element-loading-background"];
4258
4268
  const _sfc_main$a = {
4259
4269
  __name: "PieChart",
@@ -4308,7 +4318,8 @@ const _sfc_main$a = {
4308
4318
  default: () => []
4309
4319
  }
4310
4320
  },
4311
- setup(__props) {
4321
+ emits: ["chartClick"],
4322
+ setup(__props, { emit }) {
4312
4323
  const props = __props;
4313
4324
  const baseChart = ref$1(null);
4314
4325
  const resizeObserver = ref$1(null);
@@ -4363,6 +4374,9 @@ const _sfc_main$a = {
4363
4374
  color: "#000"
4364
4375
  };
4365
4376
  });
4377
+ const handleChartClick = (params) => {
4378
+ emit("chartClick", params);
4379
+ };
4366
4380
  const loadingColor = computed$1(() => {
4367
4381
  return props.mode === "dark" ? "rgba(25, 70, 144, .9)" : "rgba(255, 255, 255, .9)";
4368
4382
  });
@@ -4481,6 +4495,7 @@ const _sfc_main$a = {
4481
4495
  class: "card-body"
4482
4496
  }, [
4483
4497
  createVNode(_sfc_main$c, {
4498
+ onChartClick: handleChartClick,
4484
4499
  ref_key: "baseChart",
4485
4500
  ref: baseChart,
4486
4501
  option: unref(chartOption),
@@ -4495,7 +4510,7 @@ const _sfc_main$a = {
4495
4510
  };
4496
4511
  }
4497
4512
  };
4498
- const SCTJPieChart = /* @__PURE__ */ _export_sfc(_sfc_main$a, [["__scopeId", "data-v-747db0fa"]]);
4513
+ const SCTJPieChart = /* @__PURE__ */ _export_sfc(_sfc_main$a, [["__scopeId", "data-v-c3a3e060"]]);
4499
4514
  const generateShortId = () => {
4500
4515
  return Math.random().toString(36).substring(2, 8);
4501
4516
  };