@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 +48 -46
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +48 -46
- package/dist/index.umd.js.map +1 -1
- package/dist/style.css +20 -12
- package/package.json +1 -1
- package/types/table/table/Table.vue.d.ts +40 -0
- package/types/table/table/index.d.ts +40 -0
- package/types/table/table/props.d.ts +21 -0
package/dist/index.umd.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @ecan-bi/datav@1.1.
|
|
1
|
+
/*! @ecan-bi/datav@1.1.6 */
|
|
2
2
|
(function(global, factory) {
|
|
3
3
|
typeof exports === "object" && typeof module !== "undefined" ? factory(exports, require("vue"), require("echarts/core"), require("resize-detector"), require("ant-design-vue"), require("ant-design-vue/es/spin/style"), require("ant-design-vue/es/skeleton/style"), require("lodash-es"), require("axios"), require("mitt"), require("dayjs"), require("ant-design-vue/es/progress/style"), require("ant-design-vue/es/input/style"), require("ant-design-vue/es/date-picker/style"), require("ant-design-vue/es/date-picker/locale/zh_CN"), require("ant-design-vue/es/select/style"), require("ant-design-vue/es/button/style"), require("ant-design-vue/es/checkbox/style"), require("echarts/renderers"), require("echarts/charts"), require("echarts/components"), require("echarts"), require("ant-design-vue/es/modal/style"), require("ant-design-vue/es/table/style")) : typeof define === "function" && define.amd ? define(["exports", "vue", "echarts/core", "resize-detector", "ant-design-vue", "ant-design-vue/es/spin/style", "ant-design-vue/es/skeleton/style", "lodash-es", "axios", "mitt", "dayjs", "ant-design-vue/es/progress/style", "ant-design-vue/es/input/style", "ant-design-vue/es/date-picker/style", "ant-design-vue/es/date-picker/locale/zh_CN", "ant-design-vue/es/select/style", "ant-design-vue/es/button/style", "ant-design-vue/es/checkbox/style", "echarts/renderers", "echarts/charts", "echarts/components", "echarts", "ant-design-vue/es/modal/style", "ant-design-vue/es/table/style"], factory) : (global = typeof globalThis !== "undefined" ? globalThis : global || self, factory(global["@ecan/bi-datav"] = {}, global.vue, global["echarts/core"], global["resize-detector"], global["ant-design-vue"], null, null, global["lodash-es"], global.axios, global.mitt, global.dayjs, null, null, null, global["ant-design-vue/es/date-picker/locale/zh_CN"], null, null, null, global["echarts/renderers"], global["echarts/charts"], global["echarts/components"], global.echarts));
|
|
4
4
|
})(this, function(exports2, vue, core, resizeDetector, antDesignVue, style$1, style$2, lodashEs, axios, mitt, dayjs, style$3, style$4, style$5, locale, style$6, style$7, style$8, renderers, charts, components$1, echarts) {
|
|
@@ -2829,7 +2829,6 @@
|
|
|
2829
2829
|
let usedVariable = data[v];
|
|
2830
2830
|
if (usedVariable != null) {
|
|
2831
2831
|
const format = props2.format;
|
|
2832
|
-
console.log("format", format);
|
|
2833
2832
|
if (format === "percentage") {
|
|
2834
2833
|
usedVariable = +usedVariable;
|
|
2835
2834
|
if (!isNaN(usedVariable)) {
|
|
@@ -2843,7 +2842,6 @@
|
|
|
2843
2842
|
text = text.replace(variable, `<span style="color:${props2.variableColor};font-size:${props2.variableFontSize}">${0}%</span>`);
|
|
2844
2843
|
}
|
|
2845
2844
|
} else if (format === "percent") {
|
|
2846
|
-
console.log("format", format);
|
|
2847
2845
|
usedVariable = +usedVariable;
|
|
2848
2846
|
if (!isNaN(usedVariable)) {
|
|
2849
2847
|
usedVariable = (usedVariable * 100).toFixed(2);
|
|
@@ -2931,7 +2929,7 @@
|
|
|
2931
2929
|
};
|
|
2932
2930
|
}
|
|
2933
2931
|
});
|
|
2934
|
-
const
|
|
2932
|
+
const Text_vue_vue_type_style_index_0_scoped_445a06d8_lang = "";
|
|
2935
2933
|
const _hoisted_1$8 = ["innerHTML"];
|
|
2936
2934
|
function _sfc_render$n(_ctx, _cache, $props, $setup, $data, $options) {
|
|
2937
2935
|
const _component_skeleton = vue.resolveComponent("skeleton");
|
|
@@ -2949,7 +2947,7 @@
|
|
|
2949
2947
|
onClick: _cache[0] || (_cache[0] = (...args) => _ctx.click && _ctx.click(...args))
|
|
2950
2948
|
}, null, 12, _hoisted_1$8));
|
|
2951
2949
|
}
|
|
2952
|
-
const Text = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["render", _sfc_render$n], ["__scopeId", "data-v-
|
|
2950
|
+
const Text = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["render", _sfc_render$n], ["__scopeId", "data-v-445a06d8"]]);
|
|
2953
2951
|
const EcanText = withInstall(Text);
|
|
2954
2952
|
const _sfc_main$m = vue.defineComponent({
|
|
2955
2953
|
name: "EcanScrollText",
|
|
@@ -3171,7 +3169,7 @@
|
|
|
3171
3169
|
class: "ranking"
|
|
3172
3170
|
};
|
|
3173
3171
|
const _hoisted_5$2 = /* @__PURE__ */ _withScopeId$1(() => /* @__PURE__ */ vue.createElementVNode("div", { class: "icon" }, null, -1));
|
|
3174
|
-
const _hoisted_6$
|
|
3172
|
+
const _hoisted_6$1 = { class: "sort" };
|
|
3175
3173
|
const _hoisted_7$1 = {
|
|
3176
3174
|
key: 2,
|
|
3177
3175
|
class: "empty"
|
|
@@ -3233,7 +3231,7 @@
|
|
|
3233
3231
|
}, [
|
|
3234
3232
|
_ctx.useRanking ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_4$2, [
|
|
3235
3233
|
_hoisted_5$2,
|
|
3236
|
-
vue.createElementVNode("div", _hoisted_6$
|
|
3234
|
+
vue.createElementVNode("div", _hoisted_6$1, " Top " + vue.toDisplayString(i + 1), 1)
|
|
3237
3235
|
])) : vue.createCommentVNode("", true),
|
|
3238
3236
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.columns, (column) => {
|
|
3239
3237
|
return vue.openBlock(), vue.createElementBlock("div", {
|
|
@@ -6228,7 +6226,7 @@
|
|
|
6228
6226
|
const _hoisted_3$1 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ vue.createElementVNode("div", { class: "bottom-left border-item" }, null, -1));
|
|
6229
6227
|
const _hoisted_4$1 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ vue.createElementVNode("div", { class: "bottom-right border-item" }, null, -1));
|
|
6230
6228
|
const _hoisted_5$1 = { class: "title-item-wrapper" };
|
|
6231
|
-
const _hoisted_6
|
|
6229
|
+
const _hoisted_6 = { class: "title-item" };
|
|
6232
6230
|
const _hoisted_7 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ vue.createElementVNode("img", {
|
|
6233
6231
|
class: "title-decoration-left",
|
|
6234
6232
|
src: _imports_0
|
|
@@ -6271,7 +6269,7 @@
|
|
|
6271
6269
|
style: vue.normalizeStyle(_ctx.borderStyle)
|
|
6272
6270
|
}, [
|
|
6273
6271
|
vue.createElementVNode("div", _hoisted_5$1, [
|
|
6274
|
-
vue.createElementVNode("div", _hoisted_6
|
|
6272
|
+
vue.createElementVNode("div", _hoisted_6, [
|
|
6275
6273
|
_hoisted_7,
|
|
6276
6274
|
vue.createElementVNode("div", _hoisted_8, vue.toDisplayString(_ctx.title), 1),
|
|
6277
6275
|
_hoisted_9
|
|
@@ -6741,6 +6739,7 @@
|
|
|
6741
6739
|
paginationPageSize: 10,
|
|
6742
6740
|
isUseAction: false,
|
|
6743
6741
|
clickHighlight: false,
|
|
6742
|
+
filterDropdownHeight: "200px",
|
|
6744
6743
|
actionList: [{
|
|
6745
6744
|
title: "",
|
|
6746
6745
|
href: "",
|
|
@@ -7272,20 +7271,16 @@
|
|
|
7272
7271
|
};
|
|
7273
7272
|
}
|
|
7274
7273
|
});
|
|
7275
|
-
const
|
|
7274
|
+
const Table_vue_vue_type_style_index_0_scoped_915e7876_lang = "";
|
|
7276
7275
|
const Table_vue_vue_type_style_index_1_lang = "";
|
|
7277
|
-
const _hoisted_1$1 =
|
|
7278
|
-
|
|
7279
|
-
|
|
7280
|
-
|
|
7281
|
-
const _hoisted_2 = /* @__PURE__ */ vue.createTextVNode(" \u641C\u7D22 ");
|
|
7282
|
-
const _hoisted_3 = /* @__PURE__ */ vue.createTextVNode(" \u91CD\u7F6E ");
|
|
7283
|
-
const _hoisted_4 = { key: 0 };
|
|
7284
|
-
const _hoisted_5 = {
|
|
7276
|
+
const _hoisted_1$1 = /* @__PURE__ */ vue.createTextVNode(" \u641C\u7D22 ");
|
|
7277
|
+
const _hoisted_2 = /* @__PURE__ */ vue.createTextVNode(" \u91CD\u7F6E ");
|
|
7278
|
+
const _hoisted_3 = { key: 0 };
|
|
7279
|
+
const _hoisted_4 = {
|
|
7285
7280
|
key: 1,
|
|
7286
7281
|
class: "action-list"
|
|
7287
7282
|
};
|
|
7288
|
-
const
|
|
7283
|
+
const _hoisted_5 = ["href", "target", "onClick"];
|
|
7289
7284
|
function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
7290
7285
|
const _component_a_input = vue.resolveComponent("a-input");
|
|
7291
7286
|
const _component_a_checkbox_group = vue.resolveComponent("a-checkbox-group");
|
|
@@ -7329,7 +7324,12 @@
|
|
|
7329
7324
|
}, vue.toDisplayString(column.title), 5)
|
|
7330
7325
|
]),
|
|
7331
7326
|
customFilterDropdown: vue.withCtx(({ column, selectedKeys, setSelectedKeys, confirm, clearFilters }) => [
|
|
7332
|
-
vue.createElementVNode("div",
|
|
7327
|
+
vue.createElementVNode("div", {
|
|
7328
|
+
class: "ecan-table-filter",
|
|
7329
|
+
style: vue.normalizeStyle({
|
|
7330
|
+
height: _ctx.filterDropdownHeight
|
|
7331
|
+
})
|
|
7332
|
+
}, [
|
|
7333
7333
|
vue.createVNode(_component_a_input, {
|
|
7334
7334
|
value: column.filterOptionsInputValue,
|
|
7335
7335
|
"onUpdate:value": ($event) => column.filterOptionsInputValue = $event,
|
|
@@ -7344,32 +7344,34 @@
|
|
|
7344
7344
|
options: _ctx.useFilterOptions(column),
|
|
7345
7345
|
onChange: ($event) => _ctx.useSetSelectedKeys(setSelectedKeys, column)
|
|
7346
7346
|
}, null, 8, ["value", "onUpdate:value", "options", "onChange"]),
|
|
7347
|
-
vue.
|
|
7348
|
-
|
|
7349
|
-
|
|
7350
|
-
|
|
7351
|
-
|
|
7352
|
-
|
|
7353
|
-
|
|
7354
|
-
|
|
7355
|
-
|
|
7356
|
-
|
|
7357
|
-
|
|
7358
|
-
|
|
7359
|
-
|
|
7360
|
-
|
|
7361
|
-
|
|
7362
|
-
|
|
7363
|
-
|
|
7364
|
-
|
|
7365
|
-
|
|
7366
|
-
|
|
7367
|
-
|
|
7368
|
-
|
|
7347
|
+
vue.createElementVNode("div", null, [
|
|
7348
|
+
vue.createVNode(_component_a_button, {
|
|
7349
|
+
type: "primary",
|
|
7350
|
+
size: "small",
|
|
7351
|
+
style: { "width": "90px", "margin-right": "8px" },
|
|
7352
|
+
onClick: () => confirm()
|
|
7353
|
+
}, {
|
|
7354
|
+
default: vue.withCtx(() => [
|
|
7355
|
+
_hoisted_1$1
|
|
7356
|
+
]),
|
|
7357
|
+
_: 2
|
|
7358
|
+
}, 1032, ["onClick"]),
|
|
7359
|
+
vue.createVNode(_component_a_button, {
|
|
7360
|
+
size: "small",
|
|
7361
|
+
style: { "width": "90px" },
|
|
7362
|
+
onClick: ($event) => _ctx.onResetFilter(clearFilters)
|
|
7363
|
+
}, {
|
|
7364
|
+
default: vue.withCtx(() => [
|
|
7365
|
+
_hoisted_2
|
|
7366
|
+
]),
|
|
7367
|
+
_: 2
|
|
7368
|
+
}, 1032, ["onClick"])
|
|
7369
|
+
])
|
|
7370
|
+
], 4)
|
|
7369
7371
|
]),
|
|
7370
7372
|
bodyCell: vue.withCtx(({ column, index: index2, text, record }) => [
|
|
7371
|
-
column.dataIndex === "SEQ" ? (vue.openBlock(), vue.createElementBlock("span",
|
|
7372
|
-
column.dataIndex === "ACTION" ? (vue.openBlock(), vue.createElementBlock("div",
|
|
7373
|
+
column.dataIndex === "SEQ" ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_3, vue.toDisplayString(index2 + 1), 1)) : vue.createCommentVNode("", true),
|
|
7374
|
+
column.dataIndex === "ACTION" ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_4, [
|
|
7373
7375
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.actionList, (action, index22) => {
|
|
7374
7376
|
return vue.openBlock(), vue.createElementBlock("div", {
|
|
7375
7377
|
class: "action",
|
|
@@ -7384,7 +7386,7 @@
|
|
|
7384
7386
|
fontWeight: _ctx.fontWeight
|
|
7385
7387
|
}),
|
|
7386
7388
|
onClick: ($event) => _ctx.onTouchHrefEvent(action.target, _ctx.handleHref(action.href, record))
|
|
7387
|
-
}, vue.toDisplayString(action.title), 13,
|
|
7389
|
+
}, vue.toDisplayString(action.title), 13, _hoisted_5)
|
|
7388
7390
|
]);
|
|
7389
7391
|
}), 128))
|
|
7390
7392
|
])) : (vue.openBlock(), vue.createElementBlock("div", {
|
|
@@ -7438,7 +7440,7 @@
|
|
|
7438
7440
|
}, 8, ["loading"])
|
|
7439
7441
|
], 4);
|
|
7440
7442
|
}
|
|
7441
|
-
const Table = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_render$1], ["__scopeId", "data-v-
|
|
7443
|
+
const Table = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_render$1], ["__scopeId", "data-v-915e7876"]]);
|
|
7442
7444
|
const EcanTable = withInstall(Table);
|
|
7443
7445
|
const mapProps = {
|
|
7444
7446
|
...props,
|