@antv/s2-vue 2.0.0-next.10 → 2.0.0-next.11
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.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/dist/style.min.css +1 -1
- package/esm/index.d.ts +71 -41
- package/esm/index.js +5 -6
- package/esm/index.js.map +1 -1
- package/esm/style.css +1 -0
- package/lib/index.js +5 -6
- package/lib/index.js.map +1 -1
- package/lib/style.css +1 -0
- package/package.json +1 -1
package/esm/style.css
CHANGED
package/lib/index.js
CHANGED
|
@@ -2776,7 +2776,7 @@ function useSpreadSheet(props, emit) {
|
|
|
2776
2776
|
themeCfg,
|
|
2777
2777
|
loading: loadingProps,
|
|
2778
2778
|
sheetType,
|
|
2779
|
-
|
|
2779
|
+
spreadsheet: customSpreadSheet,
|
|
2780
2780
|
onMounted: onS2Mounted
|
|
2781
2781
|
} = props;
|
|
2782
2782
|
const wrapperRef = vue.ref();
|
|
@@ -2788,8 +2788,8 @@ function useSpreadSheet(props, emit) {
|
|
|
2788
2788
|
const rawDataCfg = vue.toRaw(dataCfg);
|
|
2789
2789
|
const rawOptions = vue.toRaw(options);
|
|
2790
2790
|
const s2Options = getSheetComponentOptions(rawOptions);
|
|
2791
|
-
if (
|
|
2792
|
-
return
|
|
2791
|
+
if (customSpreadSheet) {
|
|
2792
|
+
return customSpreadSheet(container, rawDataCfg, s2Options);
|
|
2793
2793
|
}
|
|
2794
2794
|
if (sheetType === "table") {
|
|
2795
2795
|
return new s2.TableSheet(container, rawDataCfg, s2Options);
|
|
@@ -2831,7 +2831,6 @@ const initBaseSheetProps = () => {
|
|
|
2831
2831
|
default: false
|
|
2832
2832
|
},
|
|
2833
2833
|
loading: Boolean,
|
|
2834
|
-
// TODO: 待后续完善
|
|
2835
2834
|
partDrillDown: Object,
|
|
2836
2835
|
header: Object,
|
|
2837
2836
|
options: {
|
|
@@ -2842,7 +2841,7 @@ const initBaseSheetProps = () => {
|
|
|
2842
2841
|
type: [Object, Boolean],
|
|
2843
2842
|
default: false
|
|
2844
2843
|
},
|
|
2845
|
-
|
|
2844
|
+
spreadsheet: Function,
|
|
2846
2845
|
onMounted: Function
|
|
2847
2846
|
};
|
|
2848
2847
|
};
|
|
@@ -3355,7 +3354,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3355
3354
|
return vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(_ctx.sheetType), { ref: "s2Ref" }, null, 512);
|
|
3356
3355
|
}
|
|
3357
3356
|
const index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
3358
|
-
const version = "@antv/s2-vue-v2.0.0-next.
|
|
3357
|
+
const version = "@antv/s2-vue-v2.0.0-next.11";
|
|
3359
3358
|
exports.BaseSheet = BaseSheet;
|
|
3360
3359
|
exports.CustomTooltip = CustomTooltip;
|
|
3361
3360
|
exports.PivotSheet = PivotSheet;
|