@ecan-bi/datav 1.1.5 → 1.1.6

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/dist/index.es.js CHANGED
@@ -1,4 +1,4 @@
1
- /*! @ecan-bi/datav@1.1.5 */
1
+ /*! @ecan-bi/datav@1.1.6 */
2
2
  var _a, _b, _c, _d;
3
3
  import { watch, inject, computed, unref, watchEffect, defineComponent, shallowRef, toRefs, onMounted, onUnmounted, h, nextTick, createVNode, resolveComponent, openBlock, createElementBlock, createBlock, renderSlot, withCtx, ref, normalizeStyle, createCommentVNode, provide, onBeforeUnmount, toDisplayString, Fragment, renderList, createElementVNode, normalizeClass, pushScopeId, popScopeId, createSlots, resolveDynamicComponent, mergeProps, withModifiers, reactive, createTextVNode, withDirectives, vShow } from "vue";
4
4
  import { throttle, init, use, registerMap } from "echarts/core";
@@ -2824,7 +2824,6 @@ const _sfc_main$n = defineComponent({
2824
2824
  let usedVariable = data[v];
2825
2825
  if (usedVariable != null) {
2826
2826
  const format = props2.format;
2827
- console.log("format", format);
2828
2827
  if (format === "percentage") {
2829
2828
  usedVariable = +usedVariable;
2830
2829
  if (!isNaN(usedVariable)) {
@@ -2838,7 +2837,6 @@ const _sfc_main$n = defineComponent({
2838
2837
  text = text.replace(variable, `<span style="color:${props2.variableColor};font-size:${props2.variableFontSize}">${0}%</span>`);
2839
2838
  }
2840
2839
  } else if (format === "percent") {
2841
- console.log("format", format);
2842
2840
  usedVariable = +usedVariable;
2843
2841
  if (!isNaN(usedVariable)) {
2844
2842
  usedVariable = (usedVariable * 100).toFixed(2);
@@ -2926,7 +2924,7 @@ const _sfc_main$n = defineComponent({
2926
2924
  };
2927
2925
  }
2928
2926
  });
2929
- const Text_vue_vue_type_style_index_0_scoped_0a5690c3_lang = "";
2927
+ const Text_vue_vue_type_style_index_0_scoped_445a06d8_lang = "";
2930
2928
  const _hoisted_1$8 = ["innerHTML"];
2931
2929
  function _sfc_render$n(_ctx, _cache, $props, $setup, $data, $options) {
2932
2930
  const _component_skeleton = resolveComponent("skeleton");
@@ -2944,7 +2942,7 @@ function _sfc_render$n(_ctx, _cache, $props, $setup, $data, $options) {
2944
2942
  onClick: _cache[0] || (_cache[0] = (...args) => _ctx.click && _ctx.click(...args))
2945
2943
  }, null, 12, _hoisted_1$8));
2946
2944
  }
2947
- const Text = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["render", _sfc_render$n], ["__scopeId", "data-v-0a5690c3"]]);
2945
+ const Text = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["render", _sfc_render$n], ["__scopeId", "data-v-445a06d8"]]);
2948
2946
  const EcanText = withInstall(Text);
2949
2947
  const _sfc_main$m = defineComponent({
2950
2948
  name: "EcanScrollText",
@@ -3166,7 +3164,7 @@ const _hoisted_4$2 = {
3166
3164
  class: "ranking"
3167
3165
  };
3168
3166
  const _hoisted_5$2 = /* @__PURE__ */ _withScopeId$1(() => /* @__PURE__ */ createElementVNode("div", { class: "icon" }, null, -1));
3169
- const _hoisted_6$2 = { class: "sort" };
3167
+ const _hoisted_6$1 = { class: "sort" };
3170
3168
  const _hoisted_7$1 = {
3171
3169
  key: 2,
3172
3170
  class: "empty"
@@ -3228,7 +3226,7 @@ function _sfc_render$k(_ctx, _cache, $props, $setup, $data, $options) {
3228
3226
  }, [
3229
3227
  _ctx.useRanking ? (openBlock(), createElementBlock("div", _hoisted_4$2, [
3230
3228
  _hoisted_5$2,
3231
- createElementVNode("div", _hoisted_6$2, " Top " + toDisplayString(i + 1), 1)
3229
+ createElementVNode("div", _hoisted_6$1, " Top " + toDisplayString(i + 1), 1)
3232
3230
  ])) : createCommentVNode("", true),
3233
3231
  (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.columns, (column) => {
3234
3232
  return openBlock(), createElementBlock("div", {
@@ -6223,7 +6221,7 @@ const _hoisted_2$1 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createEl
6223
6221
  const _hoisted_3$1 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("div", { class: "bottom-left border-item" }, null, -1));
6224
6222
  const _hoisted_4$1 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("div", { class: "bottom-right border-item" }, null, -1));
6225
6223
  const _hoisted_5$1 = { class: "title-item-wrapper" };
6226
- const _hoisted_6$1 = { class: "title-item" };
6224
+ const _hoisted_6 = { class: "title-item" };
6227
6225
  const _hoisted_7 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("img", {
6228
6226
  class: "title-decoration-left",
6229
6227
  src: _imports_0
@@ -6266,7 +6264,7 @@ function _sfc_render$6(_ctx, _cache, $props, $setup, $data, $options) {
6266
6264
  style: normalizeStyle(_ctx.borderStyle)
6267
6265
  }, [
6268
6266
  createElementVNode("div", _hoisted_5$1, [
6269
- createElementVNode("div", _hoisted_6$1, [
6267
+ createElementVNode("div", _hoisted_6, [
6270
6268
  _hoisted_7,
6271
6269
  createElementVNode("div", _hoisted_8, toDisplayString(_ctx.title), 1),
6272
6270
  _hoisted_9
@@ -6736,6 +6734,7 @@ const tableProps = {
6736
6734
  paginationPageSize: 10,
6737
6735
  isUseAction: false,
6738
6736
  clickHighlight: false,
6737
+ filterDropdownHeight: "200px",
6739
6738
  actionList: [{
6740
6739
  title: "",
6741
6740
  href: "",
@@ -7267,20 +7266,16 @@ const _sfc_main$1 = defineComponent({
7267
7266
  };
7268
7267
  }
7269
7268
  });
7270
- const Table_vue_vue_type_style_index_0_scoped_43db63c3_lang = "";
7269
+ const Table_vue_vue_type_style_index_0_scoped_915e7876_lang = "";
7271
7270
  const Table_vue_vue_type_style_index_1_lang = "";
7272
- const _hoisted_1$1 = {
7273
- class: "ecan-table-filter",
7274
- style: { "padding": "8px" }
7275
- };
7276
- const _hoisted_2 = /* @__PURE__ */ createTextVNode(" \u641C\u7D22 ");
7277
- const _hoisted_3 = /* @__PURE__ */ createTextVNode(" \u91CD\u7F6E ");
7278
- const _hoisted_4 = { key: 0 };
7279
- const _hoisted_5 = {
7271
+ const _hoisted_1$1 = /* @__PURE__ */ createTextVNode(" \u641C\u7D22 ");
7272
+ const _hoisted_2 = /* @__PURE__ */ createTextVNode(" \u91CD\u7F6E ");
7273
+ const _hoisted_3 = { key: 0 };
7274
+ const _hoisted_4 = {
7280
7275
  key: 1,
7281
7276
  class: "action-list"
7282
7277
  };
7283
- const _hoisted_6 = ["href", "target", "onClick"];
7278
+ const _hoisted_5 = ["href", "target", "onClick"];
7284
7279
  function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
7285
7280
  const _component_a_input = resolveComponent("a-input");
7286
7281
  const _component_a_checkbox_group = resolveComponent("a-checkbox-group");
@@ -7324,7 +7319,12 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
7324
7319
  }, toDisplayString(column.title), 5)
7325
7320
  ]),
7326
7321
  customFilterDropdown: withCtx(({ column, selectedKeys, setSelectedKeys, confirm, clearFilters }) => [
7327
- createElementVNode("div", _hoisted_1$1, [
7322
+ createElementVNode("div", {
7323
+ class: "ecan-table-filter",
7324
+ style: normalizeStyle({
7325
+ height: _ctx.filterDropdownHeight
7326
+ })
7327
+ }, [
7328
7328
  createVNode(_component_a_input, {
7329
7329
  value: column.filterOptionsInputValue,
7330
7330
  "onUpdate:value": ($event) => column.filterOptionsInputValue = $event,
@@ -7339,32 +7339,34 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
7339
7339
  options: _ctx.useFilterOptions(column),
7340
7340
  onChange: ($event) => _ctx.useSetSelectedKeys(setSelectedKeys, column)
7341
7341
  }, null, 8, ["value", "onUpdate:value", "options", "onChange"]),
7342
- createVNode(_component_a_button, {
7343
- type: "primary",
7344
- size: "small",
7345
- style: { "width": "90px", "margin-right": "8px" },
7346
- onClick: () => confirm()
7347
- }, {
7348
- default: withCtx(() => [
7349
- _hoisted_2
7350
- ]),
7351
- _: 2
7352
- }, 1032, ["onClick"]),
7353
- createVNode(_component_a_button, {
7354
- size: "small",
7355
- style: { "width": "90px" },
7356
- onClick: ($event) => _ctx.onResetFilter(clearFilters)
7357
- }, {
7358
- default: withCtx(() => [
7359
- _hoisted_3
7360
- ]),
7361
- _: 2
7362
- }, 1032, ["onClick"])
7363
- ])
7342
+ createElementVNode("div", null, [
7343
+ createVNode(_component_a_button, {
7344
+ type: "primary",
7345
+ size: "small",
7346
+ style: { "width": "90px", "margin-right": "8px" },
7347
+ onClick: () => confirm()
7348
+ }, {
7349
+ default: withCtx(() => [
7350
+ _hoisted_1$1
7351
+ ]),
7352
+ _: 2
7353
+ }, 1032, ["onClick"]),
7354
+ createVNode(_component_a_button, {
7355
+ size: "small",
7356
+ style: { "width": "90px" },
7357
+ onClick: ($event) => _ctx.onResetFilter(clearFilters)
7358
+ }, {
7359
+ default: withCtx(() => [
7360
+ _hoisted_2
7361
+ ]),
7362
+ _: 2
7363
+ }, 1032, ["onClick"])
7364
+ ])
7365
+ ], 4)
7364
7366
  ]),
7365
7367
  bodyCell: withCtx(({ column, index: index2, text, record }) => [
7366
- column.dataIndex === "SEQ" ? (openBlock(), createElementBlock("span", _hoisted_4, toDisplayString(index2 + 1), 1)) : createCommentVNode("", true),
7367
- column.dataIndex === "ACTION" ? (openBlock(), createElementBlock("div", _hoisted_5, [
7368
+ column.dataIndex === "SEQ" ? (openBlock(), createElementBlock("span", _hoisted_3, toDisplayString(index2 + 1), 1)) : createCommentVNode("", true),
7369
+ column.dataIndex === "ACTION" ? (openBlock(), createElementBlock("div", _hoisted_4, [
7368
7370
  (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.actionList, (action, index22) => {
7369
7371
  return openBlock(), createElementBlock("div", {
7370
7372
  class: "action",
@@ -7379,7 +7381,7 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
7379
7381
  fontWeight: _ctx.fontWeight
7380
7382
  }),
7381
7383
  onClick: ($event) => _ctx.onTouchHrefEvent(action.target, _ctx.handleHref(action.href, record))
7382
- }, toDisplayString(action.title), 13, _hoisted_6)
7384
+ }, toDisplayString(action.title), 13, _hoisted_5)
7383
7385
  ]);
7384
7386
  }), 128))
7385
7387
  ])) : (openBlock(), createElementBlock("div", {
@@ -7433,7 +7435,7 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
7433
7435
  }, 8, ["loading"])
7434
7436
  ], 4);
7435
7437
  }
7436
- const Table = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_render$1], ["__scopeId", "data-v-43db63c3"]]);
7438
+ const Table = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_render$1], ["__scopeId", "data-v-915e7876"]]);
7437
7439
  const EcanTable = withInstall(Table);
7438
7440
  const mapProps = {
7439
7441
  ...props,