@ecan-bi/pivot-table 1.0.8 → 1.0.9
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 +8534 -8559
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +34 -34
- package/dist/index.umd.js.map +1 -1
- package/dist/style.css +2 -2
- package/package.json +1 -1
- package/types/pivotTable/PivotAggregate.vue.d.ts +1 -1
- package/types/pivotTable/PivotTable.vue.d.ts +27 -4
package/dist/style.css
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
/*! @ecan-bi/pivot-table@1.0.
|
|
2
|
-
.dimension-wrap[data-v-091513ff]{height:100%;border:1px solid #d5d5d5}.dimension-wrap .wrap-header[data-v-091513ff]{height:40px;display:flex;align-items:center;padding:0 10px;background-color:#f7f7f7;border-bottom:1px solid #d5d5d5}.dimension-wrap .wrap-body[data-v-091513ff]{height:calc(100% - 40px);overflow:hidden auto}.dimension-wrap .wrap-body .body-item[data-v-091513ff]{padding:10px;border-bottom:1px solid #d5d5d5}.filter-label[data-v-091513ff]{width:80px;display:inline-block;text-align:right}.content[data-v-f74bd593]{margin-right:20px}.content .condition-button[data-v-f74bd593]{margin-left:5px}.content .add-icon[data-v-f74bd593]{color:#228b22}.content .edit-icon[data-v-f74bd593]{color:#1e90ff}.content .delete-icon[data-v-f74bd593]{color:#dc143c}.content .list[data-v-f74bd593]{margin-top:10px;height:450px;width:230px;overflow:auto;border:1px solid #c0c0c0}.content .list .list-item[data-v-f74bd593]{cursor:pointer;white-space:nowrap;overflow:hidden;border-bottom:1px solid #d9d9d9;padding:0 8px;height:30px;line-height:30px}.content .list .active[data-v-f74bd593]{background:#1890ff;color:#fff}.content[data-v-cbe7ddad]{margin-right:20px}.content .condition-button[data-v-cbe7ddad]{margin-left:5px}.content .add-icon[data-v-cbe7ddad]{color:#228b22}.content .edit-icon[data-v-cbe7ddad]{color:#1e90ff}.content .delete-icon[data-v-cbe7ddad]{color:#dc143c}.content .list[data-v-cbe7ddad]{margin-top:10px;height:450px;width:230px;overflow:auto;border:1px solid #c0c0c0}.content .list .list-item[data-v-cbe7ddad]{cursor:pointer;white-space:nowrap;overflow:hidden;border-bottom:1px solid #d9d9d9;padding:0 8px;height:30px;line-height:30px}.content .list .active[data-v-cbe7ddad]{background:#1890ff;color:#fff}.color-pick[data-v-99378939]{display:flex}.input[data-v-99378939]{margin-right:10px}.content[data-v-fdb74890]{margin-right:20px}.content .list[data-v-fdb74890]{margin-top:10px;height:450px;width:400px;overflow:auto;border:1px solid #c0c0c0}.content .list .list-item[data-v-fdb74890]{padding:0 8px;margin-top:10px}.dropdown-menu[data-v-f57b6c84]{background:#fff;box-shadow:0 3px 6px -4px #0000001f,0 6px 16px #00000014,0 9px 28px 8px #0000000d}.dropdown-menu .item[data-v-f57b6c84]{margin:3px 0;cursor:pointer;padding:5px 10px}.dropdown-menu .item[data-v-f57b6c84]:hover{background:#eee}.filter-icon[data-v-f57b6c84]{margin-left:10px;cursor:pointer}.dimension-item[data-v-f57b6c84]{padding:3px 5px;border:1px solid #eee;background:#ffffcc;border-radius:3px;margin-right:10px}.dimension-item .dimension-icon[data-v-f57b6c84]{margin-right:5px;cursor:pointer}.design-template[data-v-
|
|
1
|
+
/*! @ecan-bi/pivot-table@1.0.9 */
|
|
2
|
+
.dimension-wrap[data-v-091513ff]{height:100%;border:1px solid #d5d5d5}.dimension-wrap .wrap-header[data-v-091513ff]{height:40px;display:flex;align-items:center;padding:0 10px;background-color:#f7f7f7;border-bottom:1px solid #d5d5d5}.dimension-wrap .wrap-body[data-v-091513ff]{height:calc(100% - 40px);overflow:hidden auto}.dimension-wrap .wrap-body .body-item[data-v-091513ff]{padding:10px;border-bottom:1px solid #d5d5d5}.filter-label[data-v-091513ff]{width:80px;display:inline-block;text-align:right}.content[data-v-f74bd593]{margin-right:20px}.content .condition-button[data-v-f74bd593]{margin-left:5px}.content .add-icon[data-v-f74bd593]{color:#228b22}.content .edit-icon[data-v-f74bd593]{color:#1e90ff}.content .delete-icon[data-v-f74bd593]{color:#dc143c}.content .list[data-v-f74bd593]{margin-top:10px;height:450px;width:230px;overflow:auto;border:1px solid #c0c0c0}.content .list .list-item[data-v-f74bd593]{cursor:pointer;white-space:nowrap;overflow:hidden;border-bottom:1px solid #d9d9d9;padding:0 8px;height:30px;line-height:30px}.content .list .active[data-v-f74bd593]{background:#1890ff;color:#fff}.content[data-v-cbe7ddad]{margin-right:20px}.content .condition-button[data-v-cbe7ddad]{margin-left:5px}.content .add-icon[data-v-cbe7ddad]{color:#228b22}.content .edit-icon[data-v-cbe7ddad]{color:#1e90ff}.content .delete-icon[data-v-cbe7ddad]{color:#dc143c}.content .list[data-v-cbe7ddad]{margin-top:10px;height:450px;width:230px;overflow:auto;border:1px solid #c0c0c0}.content .list .list-item[data-v-cbe7ddad]{cursor:pointer;white-space:nowrap;overflow:hidden;border-bottom:1px solid #d9d9d9;padding:0 8px;height:30px;line-height:30px}.content .list .active[data-v-cbe7ddad]{background:#1890ff;color:#fff}.color-pick[data-v-99378939]{display:flex}.input[data-v-99378939]{margin-right:10px}.content[data-v-fdb74890]{margin-right:20px}.content .list[data-v-fdb74890]{margin-top:10px;height:450px;width:400px;overflow:auto;border:1px solid #c0c0c0}.content .list .list-item[data-v-fdb74890]{padding:0 8px;margin-top:10px}.dropdown-menu[data-v-f57b6c84]{background:#fff;box-shadow:0 3px 6px -4px #0000001f,0 6px 16px #00000014,0 9px 28px 8px #0000000d}.dropdown-menu .item[data-v-f57b6c84]{margin:3px 0;cursor:pointer;padding:5px 10px}.dropdown-menu .item[data-v-f57b6c84]:hover{background:#eee}.filter-icon[data-v-f57b6c84]{margin-left:10px;cursor:pointer}.dimension-item[data-v-f57b6c84]{padding:3px 5px;border:1px solid #eee;background:#ffffcc;border-radius:3px;margin-right:10px}.dimension-item .dimension-icon[data-v-f57b6c84]{margin-right:5px;cursor:pointer}.design-template[data-v-79eba553]{width:100%;height:100%;position:absolute;top:0;left:0;background-color:#f1f1f1;font-size:30px;display:flex;align-items:center;justify-content:center;letter-spacing:10px;color:#6f6f6f}.table-instance[data-v-79eba553]{width:100%;height:100%}.pivot-loading[data-v-79eba553]{position:absolute;display:flex;align-items:center;justify-content:center;background-color:#00000034}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export default _sfc_main;
|
|
2
2
|
declare const _sfc_main: import("vue").DefineComponent<{}, {
|
|
3
3
|
visible: import("vue").Ref<boolean, boolean>;
|
|
4
|
-
aggregationType: import("vue").Ref<
|
|
4
|
+
aggregationType: import("vue").Ref<any[], any[]>;
|
|
5
5
|
options: {
|
|
6
6
|
label: string;
|
|
7
7
|
value: string;
|
|
@@ -76,6 +76,12 @@ declare const _sfc_main: import("vue").DefineComponent<import("vue").ExtractProp
|
|
|
76
76
|
type: PropType<any[]>;
|
|
77
77
|
default: () => any[];
|
|
78
78
|
};
|
|
79
|
+
styleConfig: {
|
|
80
|
+
type: PropType<{
|
|
81
|
+
[key: string]: any;
|
|
82
|
+
}>;
|
|
83
|
+
default: () => {};
|
|
84
|
+
};
|
|
79
85
|
}>, {
|
|
80
86
|
pivotTableRef: import("vue").Ref<any, any>;
|
|
81
87
|
pivotFilterRef: import("vue").Ref<any, any>;
|
|
@@ -95,7 +101,7 @@ declare const _sfc_main: import("vue").DefineComponent<import("vue").ExtractProp
|
|
|
95
101
|
}) => void;
|
|
96
102
|
handleFormat: (config: any) => void;
|
|
97
103
|
handleCondition: (indicatorKey: string, config?: any[]) => void;
|
|
98
|
-
handleAggregate: (
|
|
104
|
+
handleAggregate: (types: string[]) => void;
|
|
99
105
|
handleGetTop: (data: any) => void;
|
|
100
106
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
101
107
|
id: {
|
|
@@ -174,6 +180,12 @@ declare const _sfc_main: import("vue").DefineComponent<import("vue").ExtractProp
|
|
|
174
180
|
type: PropType<any[]>;
|
|
175
181
|
default: () => any[];
|
|
176
182
|
};
|
|
183
|
+
styleConfig: {
|
|
184
|
+
type: PropType<{
|
|
185
|
+
[key: string]: any;
|
|
186
|
+
}>;
|
|
187
|
+
default: () => {};
|
|
188
|
+
};
|
|
177
189
|
}>> & Readonly<{}>, {
|
|
178
190
|
data: unknown[];
|
|
179
191
|
type: string;
|
|
@@ -194,6 +206,9 @@ declare const _sfc_main: import("vue").DefineComponent<import("vue").ExtractProp
|
|
|
194
206
|
indicatorList: any[];
|
|
195
207
|
pageMode: string;
|
|
196
208
|
calculateList: any[];
|
|
209
|
+
styleConfig: {
|
|
210
|
+
[key: string]: any;
|
|
211
|
+
};
|
|
197
212
|
}, {}, {
|
|
198
213
|
PivotFilter: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
199
214
|
data: {
|
|
@@ -409,7 +424,11 @@ declare const _sfc_main: import("vue").DefineComponent<import("vue").ExtractProp
|
|
|
409
424
|
controls: {
|
|
410
425
|
type: PropType<boolean>;
|
|
411
426
|
default: boolean;
|
|
412
|
-
};
|
|
427
|
+
}; /**
|
|
428
|
+
* 获取指标的计算类型(计算指标的字段名:指标字段-计算类型)
|
|
429
|
+
* @param field 指标字段
|
|
430
|
+
* @param indicators 已有的指标字段 string[] | object[]
|
|
431
|
+
*/
|
|
413
432
|
readonly: {
|
|
414
433
|
type: PropType<boolean>;
|
|
415
434
|
};
|
|
@@ -1056,7 +1075,11 @@ declare const _sfc_main: import("vue").DefineComponent<import("vue").ExtractProp
|
|
|
1056
1075
|
fontStretch?: import("csstype").Property.FontStretch;
|
|
1057
1076
|
fontStyle?: import("csstype").Property.FontStyle;
|
|
1058
1077
|
fontSynthesis?: import("csstype").Property.FontSynthesis;
|
|
1059
|
-
fontSynthesisPosition?: import("csstype").Property.FontSynthesisPosition;
|
|
1078
|
+
fontSynthesisPosition?: import("csstype").Property.FontSynthesisPosition; /**
|
|
1079
|
+
* 获取指标的计算类型(计算指标的字段名:指标字段-计算类型)
|
|
1080
|
+
* @param field 指标字段
|
|
1081
|
+
* @param indicators 已有的指标字段 string[] | object[]
|
|
1082
|
+
*/
|
|
1060
1083
|
fontSynthesisSmallCaps?: import("csstype").Property.FontSynthesisSmallCaps;
|
|
1061
1084
|
fontSynthesisStyle?: import("csstype").Property.FontSynthesisStyle;
|
|
1062
1085
|
fontSynthesisWeight?: import("csstype").Property.FontSynthesisWeight;
|
|
@@ -8022,7 +8045,7 @@ declare const _sfc_main: import("vue").DefineComponent<import("vue").ExtractProp
|
|
|
8022
8045
|
}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
8023
8046
|
PivotAggregate: import("vue").DefineComponent<{}, {
|
|
8024
8047
|
visible: import("vue").Ref<boolean, boolean>;
|
|
8025
|
-
aggregationType: import("vue").Ref<
|
|
8048
|
+
aggregationType: import("vue").Ref<any[], any[]>;
|
|
8026
8049
|
options: {
|
|
8027
8050
|
label: string;
|
|
8028
8051
|
value: string;
|