@antv/s2-vue 2.0.0-next.11 → 2.0.0-next.13
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 +110 -28
- package/esm/index.js +331 -184
- package/esm/index.js.map +1 -1
- package/lib/index.js +330 -183
- package/lib/index.js.map +1 -1
- package/package.json +3 -3
package/dist/style.min.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.antv-s2-tooltip-operator{color:var(--antv-s2-font, rgba(0, 0, 0, .65));background:var(--antv-s2-tooltip-operator-background, #f9f9f9);font-size:12px;line-height:36px;border:0;cursor:pointer}.antv-s2-tooltip-operator .ant-menu-horizontal:not(.ant-menu-dark){background:transparent;line-height:36px}.antv-s2-tooltip-operator .ant-dropdown-trigger,.antv-s2-tooltip-operator-dropdown{padding:0 6px 0 0}.antv-s2-tooltip-operator-menus.ant-menu-vertical.ant-menu{font-size:12px;color:var(--antv-s2-font, rgba(0, 0, 0, .65));border:0;-webkit-user-select:none;user-select:none;padding:4px;width:100%}.antv-s2-tooltip-operator-menus.ant-menu-vertical.ant-menu .ant-menu-item{height:36px}.antv-s2-tooltip-operator-menus.ant-menu-vertical.ant-menu .ant-menu-submenu>.ant-menu-submenu-title{height:36px;width:100%}.antv-s2-tooltip-operator-menus.ant-menu-vertical.ant-menu .ant-menu-submenu>.ant-menu-submenu-title .ant-menu-submenu-arrow{color:var(--antv-s2-font, rgba(0, 0, 0, .65))}.antv-s2-tooltip-operator-menus.ant-dropdown-menu-vertical .ant-dropdown-menu-item,.antv-s2-tooltip-operator-menus.ant-menu-vertical .ant-dropdown-menu-item,.antv-s2-tooltip-operator-menus.ant-dropdown-menu-vertical .ant-menu-item,.antv-s2-tooltip-operator-menus.ant-menu-vertical .ant-menu-item{font-size:12px;line-height:36px;padding:0 12px;border:0}.antv-s2-tooltip-operator-menus.ant-dropdown-menu-vertical .ant-dropdown-menu-item:not(.ant-menu-item-active),.antv-s2-tooltip-operator-menus.ant-menu-vertical .ant-dropdown-menu-item:not(.ant-menu-item-active),.antv-s2-tooltip-operator-menus.ant-dropdown-menu-vertical .ant-menu-item:not(.ant-menu-item-active),.antv-s2-tooltip-operator-menus.ant-menu-vertical .ant-menu-item:not(.ant-menu-item-active){color:var(--antv-s2-font, rgba(0, 0, 0, .65))}.antv-s2-tooltip-operator-menus.ant-dropdown-menu-vertical .ant-dropdown-menu-submenu .ant-menu-submenu-title,.antv-s2-tooltip-operator-menus.ant-menu-vertical .ant-dropdown-menu-submenu .ant-menu-submenu-title,.antv-s2-tooltip-operator-menus.ant-dropdown-menu-vertical .ant-dropdown-menu-submenu-vertical .ant-menu-submenu-title,.antv-s2-tooltip-operator-menus.ant-menu-vertical .ant-dropdown-menu-submenu-vertical .ant-menu-submenu-title,.antv-s2-tooltip-operator-menus.ant-dropdown-menu-vertical .ant-menu-submenu .ant-menu-submenu-title,.antv-s2-tooltip-operator-menus.ant-menu-vertical .ant-menu-submenu .ant-menu-submenu-title,.antv-s2-tooltip-operator-menus.ant-dropdown-menu-vertical .ant-menu-submenu-vertical .ant-menu-submenu-title,.antv-s2-tooltip-operator-menus.ant-menu-vertical .ant-menu-submenu-vertical .ant-menu-submenu-title{padding:0 0 0 12px;font-size:12px;line-height:36px;margin:0}.antv-s2-tooltip-operator-menus.ant-dropdown-menu-vertical .ant-dropdown-menu-submenu .ant-menu-submenu-title:not(.ant-menu-item-active),.antv-s2-tooltip-operator-menus.ant-menu-vertical .ant-dropdown-menu-submenu .ant-menu-submenu-title:not(.ant-menu-item-active),.antv-s2-tooltip-operator-menus.ant-dropdown-menu-vertical .ant-dropdown-menu-submenu-vertical .ant-menu-submenu-title:not(.ant-menu-item-active),.antv-s2-tooltip-operator-menus.ant-menu-vertical .ant-dropdown-menu-submenu-vertical .ant-menu-submenu-title:not(.ant-menu-item-active),.antv-s2-tooltip-operator-menus.ant-dropdown-menu-vertical .ant-menu-submenu .ant-menu-submenu-title:not(.ant-menu-item-active),.antv-s2-tooltip-operator-menus.ant-menu-vertical .ant-menu-submenu .ant-menu-submenu-title:not(.ant-menu-item-active),.antv-s2-tooltip-operator-menus.ant-dropdown-menu-vertical .ant-menu-submenu-vertical .ant-menu-submenu-title:not(.ant-menu-item-active),.antv-s2-tooltip-operator-menus.ant-menu-vertical .ant-menu-submenu-vertical .ant-menu-submenu-title:not(.ant-menu-item-active){color:var(--antv-s2-font, rgba(0, 0, 0, .65))}.antv-s2-tooltip-operator-menus.ant-dropdown-menu-vertical .ant-dropdown-menu-submenu .ant-menu-submenu-title .ant-dropdown-menu-title-content,.antv-s2-tooltip-operator-menus.ant-menu-vertical .ant-dropdown-menu-submenu .ant-menu-submenu-title .ant-dropdown-menu-title-content,.antv-s2-tooltip-operator-menus.ant-dropdown-menu-vertical .ant-dropdown-menu-submenu-vertical .ant-menu-submenu-title .ant-dropdown-menu-title-content,.antv-s2-tooltip-operator-menus.ant-menu-vertical .ant-dropdown-menu-submenu-vertical .ant-menu-submenu-title .ant-dropdown-menu-title-content,.antv-s2-tooltip-operator-menus.ant-dropdown-menu-vertical .ant-menu-submenu .ant-menu-submenu-title .ant-dropdown-menu-title-content,.antv-s2-tooltip-operator-menus.ant-menu-vertical .ant-menu-submenu .ant-menu-submenu-title .ant-dropdown-menu-title-content,.antv-s2-tooltip-operator-menus.ant-dropdown-menu-vertical .ant-menu-submenu-vertical .ant-menu-submenu-title .ant-dropdown-menu-title-content,.antv-s2-tooltip-operator-menus.ant-menu-vertical .ant-menu-submenu-vertical .ant-menu-submenu-title .ant-dropdown-menu-title-content,.antv-s2-tooltip-operator-menus.ant-dropdown-menu-vertical .ant-dropdown-menu-submenu .ant-menu-submenu-title .ant-menu-title-content,.antv-s2-tooltip-operator-menus.ant-menu-vertical .ant-dropdown-menu-submenu .ant-menu-submenu-title .ant-menu-title-content,.antv-s2-tooltip-operator-menus.ant-dropdown-menu-vertical .ant-dropdown-menu-submenu-vertical .ant-menu-submenu-title .ant-menu-title-content,.antv-s2-tooltip-operator-menus.ant-menu-vertical .ant-dropdown-menu-submenu-vertical .ant-menu-submenu-title .ant-menu-title-content,.antv-s2-tooltip-operator-menus.ant-dropdown-menu-vertical .ant-menu-submenu .ant-menu-submenu-title .ant-menu-title-content,.antv-s2-tooltip-operator-menus.ant-menu-vertical .ant-menu-submenu .ant-menu-submenu-title .ant-menu-title-content,.antv-s2-tooltip-operator-menus.ant-dropdown-menu-vertical .ant-menu-submenu-vertical .ant-menu-submenu-title .ant-menu-title-content,.antv-s2-tooltip-operator-menus.ant-menu-vertical .ant-menu-submenu-vertical .ant-menu-submenu-title .ant-menu-title-content{margin-right:12px}.antv-s2-tooltip-operator-submenu-popup .ant-dropdown-menu-item,.antv-s2-tooltip-operator-submenu-popup .ant-menu-item{font-size:12px;line-height:36px;padding:0 12px}.antv-s2-tooltip-operator-submenu-popup .ant-dropdown-menu-item:not(.ant-menu-item-active),.antv-s2-tooltip-operator-submenu-popup .ant-menu-item:not(.ant-menu-item-active){color:var(--antv-s2-font, rgba(0, 0, 0, .65))}.antv-s2-tooltip-operator-submenu-popup .ant-menu-vertical .ant-menu-item{margin:0;height:36px;line-height:36px;width:100%}.antv-s2-tooltip-operator-submenu-popup .ant-menu-vertical .ant-menu-item:not(:last-child){margin:0}.antv-s2-tooltip-operator-icon{vertical-align:middle}.antv-s2-tooltip-operator-icon svg{width:12px;height:12px;fill:var(--antv-s2-font)}@media only screen and (max-device-width: 480px){.antv-s2-tooltip-operator-menus.ant-menu-vertical.ant-menu{font-size:12px}.antv-s2-tooltip-operator-menus.ant-menu-vertical.ant-menu .ant-menu-item{height:36px}.antv-s2-tooltip-operator-menus.ant-dropdown-menu-vertical .ant-dropdown-menu-item,.antv-s2-tooltip-operator-menus.ant-menu-vertical .ant-dropdown-menu-item,.antv-s2-tooltip-operator-menus.ant-dropdown-menu-vertical .ant-menu-item,.antv-s2-tooltip-operator-menus.ant-menu-vertical .ant-menu-item{line-height:36px}.antv-s2-tooltip-operator-menus.ant-dropdown-menu-vertical .ant-dropdown-menu-submenu .ant-menu-submenu-title,.antv-s2-tooltip-operator-menus.ant-menu-vertical .ant-dropdown-menu-submenu .ant-menu-submenu-title,.antv-s2-tooltip-operator-menus.ant-dropdown-menu-vertical .ant-dropdown-menu-submenu-vertical .ant-menu-submenu-title,.antv-s2-tooltip-operator-menus.ant-menu-vertical .ant-dropdown-menu-submenu-vertical .ant-menu-submenu-title,.antv-s2-tooltip-operator-menus.ant-dropdown-menu-vertical .ant-menu-submenu .ant-menu-submenu-title,.antv-s2-tooltip-operator-menus.ant-menu-vertical .ant-menu-submenu .ant-menu-submenu-title,.antv-s2-tooltip-operator-menus.ant-dropdown-menu-vertical .ant-menu-submenu-vertical .ant-menu-submenu-title,.antv-s2-tooltip-operator-menus.ant-menu-vertical .ant-menu-submenu-vertical .ant-menu-submenu-title{font-size:12px}.antv-s2-tooltip-operator-menus.ant-dropdown-menu-vertical .ant-dropdown-menu-submenu .ant-menu-submenu-title:not(.ant-menu-item-active),.antv-s2-tooltip-operator-menus.ant-menu-vertical .ant-dropdown-menu-submenu .ant-menu-submenu-title:not(.ant-menu-item-active),.antv-s2-tooltip-operator-menus.ant-dropdown-menu-vertical .ant-dropdown-menu-submenu-vertical .ant-menu-submenu-title:not(.ant-menu-item-active),.antv-s2-tooltip-operator-menus.ant-menu-vertical .ant-dropdown-menu-submenu-vertical .ant-menu-submenu-title:not(.ant-menu-item-active),.antv-s2-tooltip-operator-menus.ant-dropdown-menu-vertical .ant-menu-submenu .ant-menu-submenu-title:not(.ant-menu-item-active),.antv-s2-tooltip-operator-menus.ant-menu-vertical .ant-menu-submenu .ant-menu-submenu-title:not(.ant-menu-item-active),.antv-s2-tooltip-operator-menus.ant-dropdown-menu-vertical .ant-menu-submenu-vertical .ant-menu-submenu-title:not(.ant-menu-item-active),.antv-s2-tooltip-operator-menus.ant-menu-vertical .ant-menu-submenu-vertical .ant-menu-submenu-title:not(.ant-menu-item-active){color:var(--antv-s2-font, rgba(0, 0, 0, .65))}.antv-s2-tooltip-operator-submenu-popup .ant-dropdown-menu-item,.antv-s2-tooltip-operator-submenu-popup .ant-menu-item{font-size:12px}.antv-s2-tooltip-operator-submenu-popup .ant-dropdown-menu-item:not(.ant-menu-item-active),.antv-s2-tooltip-operator-submenu-popup .ant-menu-item:not(.ant-menu-item-active){color:var(--antv-s2-font, rgba(0, 0, 0, .65))}.antv-s2-tooltip-operator-icon svg{width:12px;height:12px}}.antv-s2-tooltip-container{position:fixed;-webkit-user-select:text;user-select:text;min-width:200px;max-width:640px;max-height:100vh;overflow:auto;z-index:1024;display:inline-block;background:var(--antv-s2-tooltip-background, rgba(255, 255, 255, .95));border-radius:4px;box-shadow:0 1px 4px #0003;font-size:12px;font-family:Roboto,PingFang SC,Chinese Quote,BlinkMacSystemFont,Segoe UI,Hiragino Sans GB,Microsoft YaHei,Helvetica Neue,Helvetica,Arial,sans-serif}.antv-s2-tooltip-container-hide{opacity:0;visibility:hidden;pointer-events:none}.antv-s2-tooltip-container-hide *{transition:none}.antv-s2-tooltip-container-show{opacity:1;visibility:visible;pointer-events:all}.antv-s2-tooltip-tips,.antv-s2-tooltip-name{padding:12px;line-height:16px;overflow-wrap:break-word;color:var(--antv-s2-font-85, rgba(0, 0, 0, .85))}.antv-s2-tooltip-description{padding:0 12px 12px;line-height:16px;overflow-wrap:break-word;color:var(--antv-s2-font-45, rgba(0, 0, 0, .45))}.antv-s2-tooltip-tips{padding:4px 12px;color:var(--antv-s2-font-45, rgba(0, 0, 0, .45))}.antv-s2-tooltip-infos{padding:4px 12px;line-height:20px;color:var(--antv-s2-font-45, rgba(0, 0, 0, .45));overflow:hidden;text-overflow:ellipsis;-webkit-line-clamp:2;display:-webkit-box;-webkit-box-orient:vertical;overflow-wrap:break-word;background:rgba(249,249,249,.96);border-radius:0 0 2px 2px;background-color:#f9f9f9}.antv-s2-tooltip-summary{line-height:20px;color:var(--antv-s2-font-65, rgba(0, 0, 0, .65));overflow:hidden;padding:12px}.antv-s2-tooltip-summary-item{display:flex}.antv-s2-tooltip-summary-key{margin-right:20px}.antv-s2-tooltip-summary-val{flex:1;text-align:right;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.antv-s2-tooltip-interpretation{color:#000000a6;overflow:hidden;padding:12px}.antv-s2-tooltip-interpretation+.antv-s2-tooltip-head-info-list{border-top:1px solid var(--antv-s2-border, #e9e9e9)}.antv-s2-tooltip-interpretation .antv-s2-tooltip-interpretation-head{margin-bottom:12px}.antv-s2-tooltip-interpretation .antv-s2-tooltip-interpretation-head .antv-s2-tooltip-interpretation-icon{width:14px;height:14px}.antv-s2-tooltip-interpretation .antv-s2-tooltip-interpretation-head .antv-s2-tooltip-interpretation-name{color:var(--antv-s2-font, #000)}.antv-s2-tooltip-head-info-list{color:var(--antv-s2-font-65, #a2a2a2);padding:12px 12px 4px;line-height:24px;word-break:break-word}.antv-s2-tooltip-bold,.antv-s2-tooltip-selected{font-weight:700}.antv-s2-tooltip-selected{margin-right:5px}.antv-s2-tooltip-highlight{color:var(--antv-s2-font-85, rgba(0, 0, 0, .85))}.antv-s2-tooltip-detail-list{padding:2px 12px 8px}.antv-s2-tooltip-detail-list .antv-s2-tooltip-detail-item{color:var(--antv-s2-font-65, rgba(0, 0, 0, .65));overflow:hidden;margin:4px 0;display:flex;justify-content:space-around;align-items:center}.antv-s2-tooltip-detail-list .antv-s2-tooltip-detail-item-key{margin-right:20px}.antv-s2-tooltip-detail-list .antv-s2-tooltip-detail-item-val{flex:1;text-align:right;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.ant-dropdown-menu-item.operation-item{font-size:12px}.antv-s2-spin.ant-spin-nested-loading,.antv-s2-spin>.ant-spin-container{height:100%}.antv-s2-wrapper{padding:0;margin:0;display:flex;flex-direction:column;height:100%}.antv-s2-container{overflow:auto;flex:1 1 auto}.antv-s2-container canvas{display:block}.antv-s2-pagination{display:flex;align-items:center;z-index:1024}.antv-s2-pagination-count{margin-left:12px;text-overflow:ellipsis;white-space:nowrap;max-width:64px}.antv-s2-drill-down[data-v-8dd920ec]{width:260px;min-height:20px;position:relative;color:var(--antv-s2-font-70, #fff)}.antv-s2-drill-down-header[data-v-8dd920ec]{display:flex;height:32px;font-size:14px;padding:0 16px;margin-top:16px}.antv-s2-drill-down-header button[data-v-8dd920ec]{position:absolute;right:0;top:-4px;font-size:12px;color:#1890ff;letter-spacing:-.2px;line-height:20px}.antv-s2-drill-down-search[data-v-8dd920ec]{height:24px;width:228px!important;margin:0 16px;border:1px solid rgba(0,0,0,.15);border-radius:2px}.antv-s2-drill-down-search input[data-v-8dd920ec],.antv-s2-drill-down-search span[data-v-8dd920ec]{font-size:12px}.antv-s2-drill-down-search[data-v-8dd920ec],.antv-s2-drill-down-search .ant-input[data-v-8dd920ec]::placeholder{background-color:var(--antv-s2-block-background, #fff)}.antv-s2-drill-down-extra[data-v-8dd920ec]{margin:4px 16px}.antv-s2-drill-down-menu[data-v-8dd920ec]{max-height:314px;overflow:hidden auto}.antv-s2-drill-down-menu.ant-menu[data-v-8dd920ec]{background:var(--antv-s2-tooltip-background, #fff)}.antv-s2-drill-down-menu.ant-menu:not(.ant-menu-horizontal) .ant-menu-item-selected[data-v-8dd920ec]{background-color:var(--antv-s2-block-background, #e6f7ff)}.antv-s2-drill-down-menu-item[data-v-8dd920ec]{height:32px!important;line-height:32px!important;font-size:12px;opacity:.65}.antv-s2-drill-down-menu-item span[data-v-8dd920ec]:last-child{line-height:32px}.antv-s2-drill-down-menu-item svg[data-v-8dd920ec]{margin-right:8px}.antv-s2-drill-down-empty[data-v-8dd920ec]{padding:12px;font-size:12px}
|
|
1
|
+
.antv-s2-tooltip-operator{color:var(--antv-s2-font, rgba(0, 0, 0, .65));background:var(--antv-s2-tooltip-operator-background, #f9f9f9);font-size:12px;line-height:36px;border:0;cursor:pointer}.antv-s2-tooltip-operator .ant-menu-horizontal:not(.ant-menu-dark){background:transparent;line-height:36px}.antv-s2-tooltip-operator .ant-dropdown-trigger,.antv-s2-tooltip-operator-dropdown{padding:0 6px 0 0}.antv-s2-tooltip-operator-menus.ant-menu-vertical.ant-menu{font-size:12px;color:var(--antv-s2-font, rgba(0, 0, 0, .65));border:0;user-select:none;padding:4px;width:100%}.antv-s2-tooltip-operator-menus.ant-menu-vertical.ant-menu .ant-menu-item{height:36px}.antv-s2-tooltip-operator-menus.ant-menu-vertical.ant-menu .ant-menu-submenu>.ant-menu-submenu-title{height:36px;width:100%}.antv-s2-tooltip-operator-menus.ant-menu-vertical.ant-menu .ant-menu-submenu>.ant-menu-submenu-title .ant-menu-submenu-arrow{color:var(--antv-s2-font, rgba(0, 0, 0, .65))}.antv-s2-tooltip-operator-menus.ant-dropdown-menu-vertical .ant-dropdown-menu-item,.antv-s2-tooltip-operator-menus.ant-menu-vertical .ant-dropdown-menu-item,.antv-s2-tooltip-operator-menus.ant-dropdown-menu-vertical .ant-menu-item,.antv-s2-tooltip-operator-menus.ant-menu-vertical .ant-menu-item{font-size:12px;line-height:36px;padding:0 12px;border:0}.antv-s2-tooltip-operator-menus.ant-dropdown-menu-vertical .ant-dropdown-menu-item:not(.ant-menu-item-active),.antv-s2-tooltip-operator-menus.ant-menu-vertical .ant-dropdown-menu-item:not(.ant-menu-item-active),.antv-s2-tooltip-operator-menus.ant-dropdown-menu-vertical .ant-menu-item:not(.ant-menu-item-active),.antv-s2-tooltip-operator-menus.ant-menu-vertical .ant-menu-item:not(.ant-menu-item-active){color:var(--antv-s2-font, rgba(0, 0, 0, .65))}.antv-s2-tooltip-operator-menus.ant-dropdown-menu-vertical .ant-dropdown-menu-submenu .ant-menu-submenu-title,.antv-s2-tooltip-operator-menus.ant-menu-vertical .ant-dropdown-menu-submenu .ant-menu-submenu-title,.antv-s2-tooltip-operator-menus.ant-dropdown-menu-vertical .ant-dropdown-menu-submenu-vertical .ant-menu-submenu-title,.antv-s2-tooltip-operator-menus.ant-menu-vertical .ant-dropdown-menu-submenu-vertical .ant-menu-submenu-title,.antv-s2-tooltip-operator-menus.ant-dropdown-menu-vertical .ant-menu-submenu .ant-menu-submenu-title,.antv-s2-tooltip-operator-menus.ant-menu-vertical .ant-menu-submenu .ant-menu-submenu-title,.antv-s2-tooltip-operator-menus.ant-dropdown-menu-vertical .ant-menu-submenu-vertical .ant-menu-submenu-title,.antv-s2-tooltip-operator-menus.ant-menu-vertical .ant-menu-submenu-vertical .ant-menu-submenu-title{padding:0 0 0 12px;font-size:12px;line-height:36px;margin:0}.antv-s2-tooltip-operator-menus.ant-dropdown-menu-vertical .ant-dropdown-menu-submenu .ant-menu-submenu-title:not(.ant-menu-item-active),.antv-s2-tooltip-operator-menus.ant-menu-vertical .ant-dropdown-menu-submenu .ant-menu-submenu-title:not(.ant-menu-item-active),.antv-s2-tooltip-operator-menus.ant-dropdown-menu-vertical .ant-dropdown-menu-submenu-vertical .ant-menu-submenu-title:not(.ant-menu-item-active),.antv-s2-tooltip-operator-menus.ant-menu-vertical .ant-dropdown-menu-submenu-vertical .ant-menu-submenu-title:not(.ant-menu-item-active),.antv-s2-tooltip-operator-menus.ant-dropdown-menu-vertical .ant-menu-submenu .ant-menu-submenu-title:not(.ant-menu-item-active),.antv-s2-tooltip-operator-menus.ant-menu-vertical .ant-menu-submenu .ant-menu-submenu-title:not(.ant-menu-item-active),.antv-s2-tooltip-operator-menus.ant-dropdown-menu-vertical .ant-menu-submenu-vertical .ant-menu-submenu-title:not(.ant-menu-item-active),.antv-s2-tooltip-operator-menus.ant-menu-vertical .ant-menu-submenu-vertical .ant-menu-submenu-title:not(.ant-menu-item-active){color:var(--antv-s2-font, rgba(0, 0, 0, .65))}.antv-s2-tooltip-operator-menus.ant-dropdown-menu-vertical .ant-dropdown-menu-submenu .ant-menu-submenu-title .ant-dropdown-menu-title-content,.antv-s2-tooltip-operator-menus.ant-menu-vertical .ant-dropdown-menu-submenu .ant-menu-submenu-title .ant-dropdown-menu-title-content,.antv-s2-tooltip-operator-menus.ant-dropdown-menu-vertical .ant-dropdown-menu-submenu-vertical .ant-menu-submenu-title .ant-dropdown-menu-title-content,.antv-s2-tooltip-operator-menus.ant-menu-vertical .ant-dropdown-menu-submenu-vertical .ant-menu-submenu-title .ant-dropdown-menu-title-content,.antv-s2-tooltip-operator-menus.ant-dropdown-menu-vertical .ant-menu-submenu .ant-menu-submenu-title .ant-dropdown-menu-title-content,.antv-s2-tooltip-operator-menus.ant-menu-vertical .ant-menu-submenu .ant-menu-submenu-title .ant-dropdown-menu-title-content,.antv-s2-tooltip-operator-menus.ant-dropdown-menu-vertical .ant-menu-submenu-vertical .ant-menu-submenu-title .ant-dropdown-menu-title-content,.antv-s2-tooltip-operator-menus.ant-menu-vertical .ant-menu-submenu-vertical .ant-menu-submenu-title .ant-dropdown-menu-title-content,.antv-s2-tooltip-operator-menus.ant-dropdown-menu-vertical .ant-dropdown-menu-submenu .ant-menu-submenu-title .ant-menu-title-content,.antv-s2-tooltip-operator-menus.ant-menu-vertical .ant-dropdown-menu-submenu .ant-menu-submenu-title .ant-menu-title-content,.antv-s2-tooltip-operator-menus.ant-dropdown-menu-vertical .ant-dropdown-menu-submenu-vertical .ant-menu-submenu-title .ant-menu-title-content,.antv-s2-tooltip-operator-menus.ant-menu-vertical .ant-dropdown-menu-submenu-vertical .ant-menu-submenu-title .ant-menu-title-content,.antv-s2-tooltip-operator-menus.ant-dropdown-menu-vertical .ant-menu-submenu .ant-menu-submenu-title .ant-menu-title-content,.antv-s2-tooltip-operator-menus.ant-menu-vertical .ant-menu-submenu .ant-menu-submenu-title .ant-menu-title-content,.antv-s2-tooltip-operator-menus.ant-dropdown-menu-vertical .ant-menu-submenu-vertical .ant-menu-submenu-title .ant-menu-title-content,.antv-s2-tooltip-operator-menus.ant-menu-vertical .ant-menu-submenu-vertical .ant-menu-submenu-title .ant-menu-title-content{margin-right:12px}.antv-s2-tooltip-operator-submenu-popup .ant-dropdown-menu-item,.antv-s2-tooltip-operator-submenu-popup .ant-menu-item{font-size:12px;line-height:36px;padding:0 12px}.antv-s2-tooltip-operator-submenu-popup .ant-dropdown-menu-item:not(.ant-menu-item-active),.antv-s2-tooltip-operator-submenu-popup .ant-menu-item:not(.ant-menu-item-active){color:var(--antv-s2-font, rgba(0, 0, 0, .65))}.antv-s2-tooltip-operator-submenu-popup .ant-menu-vertical .ant-menu-item{margin:0;height:36px;line-height:36px;width:100%}.antv-s2-tooltip-operator-submenu-popup .ant-menu-vertical .ant-menu-item:not(:last-child){margin:0}.antv-s2-tooltip-operator-icon{vertical-align:middle}.antv-s2-tooltip-operator-icon svg{width:12px;height:12px;fill:var(--antv-s2-font)}@media only screen and (max-device-width: 480px){.antv-s2-tooltip-operator-menus.ant-menu-vertical.ant-menu{font-size:12px}.antv-s2-tooltip-operator-menus.ant-menu-vertical.ant-menu .ant-menu-item{height:36px}.antv-s2-tooltip-operator-menus.ant-dropdown-menu-vertical .ant-dropdown-menu-item,.antv-s2-tooltip-operator-menus.ant-menu-vertical .ant-dropdown-menu-item,.antv-s2-tooltip-operator-menus.ant-dropdown-menu-vertical .ant-menu-item,.antv-s2-tooltip-operator-menus.ant-menu-vertical .ant-menu-item{line-height:36px}.antv-s2-tooltip-operator-menus.ant-dropdown-menu-vertical .ant-dropdown-menu-submenu .ant-menu-submenu-title,.antv-s2-tooltip-operator-menus.ant-menu-vertical .ant-dropdown-menu-submenu .ant-menu-submenu-title,.antv-s2-tooltip-operator-menus.ant-dropdown-menu-vertical .ant-dropdown-menu-submenu-vertical .ant-menu-submenu-title,.antv-s2-tooltip-operator-menus.ant-menu-vertical .ant-dropdown-menu-submenu-vertical .ant-menu-submenu-title,.antv-s2-tooltip-operator-menus.ant-dropdown-menu-vertical .ant-menu-submenu .ant-menu-submenu-title,.antv-s2-tooltip-operator-menus.ant-menu-vertical .ant-menu-submenu .ant-menu-submenu-title,.antv-s2-tooltip-operator-menus.ant-dropdown-menu-vertical .ant-menu-submenu-vertical .ant-menu-submenu-title,.antv-s2-tooltip-operator-menus.ant-menu-vertical .ant-menu-submenu-vertical .ant-menu-submenu-title{font-size:12px}.antv-s2-tooltip-operator-menus.ant-dropdown-menu-vertical .ant-dropdown-menu-submenu .ant-menu-submenu-title:not(.ant-menu-item-active),.antv-s2-tooltip-operator-menus.ant-menu-vertical .ant-dropdown-menu-submenu .ant-menu-submenu-title:not(.ant-menu-item-active),.antv-s2-tooltip-operator-menus.ant-dropdown-menu-vertical .ant-dropdown-menu-submenu-vertical .ant-menu-submenu-title:not(.ant-menu-item-active),.antv-s2-tooltip-operator-menus.ant-menu-vertical .ant-dropdown-menu-submenu-vertical .ant-menu-submenu-title:not(.ant-menu-item-active),.antv-s2-tooltip-operator-menus.ant-dropdown-menu-vertical .ant-menu-submenu .ant-menu-submenu-title:not(.ant-menu-item-active),.antv-s2-tooltip-operator-menus.ant-menu-vertical .ant-menu-submenu .ant-menu-submenu-title:not(.ant-menu-item-active),.antv-s2-tooltip-operator-menus.ant-dropdown-menu-vertical .ant-menu-submenu-vertical .ant-menu-submenu-title:not(.ant-menu-item-active),.antv-s2-tooltip-operator-menus.ant-menu-vertical .ant-menu-submenu-vertical .ant-menu-submenu-title:not(.ant-menu-item-active){color:var(--antv-s2-font, rgba(0, 0, 0, .65))}.antv-s2-tooltip-operator-submenu-popup .ant-dropdown-menu-item,.antv-s2-tooltip-operator-submenu-popup .ant-menu-item{font-size:12px}.antv-s2-tooltip-operator-submenu-popup .ant-dropdown-menu-item:not(.ant-menu-item-active),.antv-s2-tooltip-operator-submenu-popup .ant-menu-item:not(.ant-menu-item-active){color:var(--antv-s2-font, rgba(0, 0, 0, .65))}.antv-s2-tooltip-operator-icon svg{width:12px;height:12px}}.antv-s2-tooltip-container{position:fixed;user-select:text;min-width:200px;max-width:640px;max-height:100vh;overflow:auto;z-index:1024;display:inline-block;background:var(--antv-s2-tooltip-background, rgba(255, 255, 255, .95));border-radius:4px;box-shadow:0 1px 4px #0003;font-size:12px;font-family:Roboto,PingFang SC,Chinese Quote,BlinkMacSystemFont,Segoe UI,Hiragino Sans GB,Microsoft YaHei,Helvetica Neue,Helvetica,Arial,sans-serif}.antv-s2-tooltip-container-hide{opacity:0;visibility:hidden;pointer-events:none}.antv-s2-tooltip-container-hide *{transition:none}.antv-s2-tooltip-container-show{opacity:1;visibility:visible;pointer-events:all}.antv-s2-tooltip-tips,.antv-s2-tooltip-name{padding:12px;line-height:16px;overflow-wrap:break-word;color:var(--antv-s2-font-85, rgba(0, 0, 0, .85))}.antv-s2-tooltip-description{padding:0 12px 12px;line-height:16px;overflow-wrap:break-word;color:var(--antv-s2-font-45, rgba(0, 0, 0, .45))}.antv-s2-tooltip-tips{padding:4px 12px;color:var(--antv-s2-font-45, rgba(0, 0, 0, .45))}.antv-s2-tooltip-infos{padding:4px 12px;line-height:20px;color:var(--antv-s2-font-45, rgba(0, 0, 0, .45));overflow:hidden;text-overflow:ellipsis;-webkit-line-clamp:2;display:-webkit-box;-webkit-box-orient:vertical;overflow-wrap:break-word;background:#f9f9f9f5;border-radius:0 0 2px 2px;background-color:#f9f9f9}.antv-s2-tooltip-summary{line-height:20px;color:var(--antv-s2-font-65, rgba(0, 0, 0, .65));overflow:hidden;padding:12px}.antv-s2-tooltip-summary-item{display:flex}.antv-s2-tooltip-summary-key{margin-right:20px}.antv-s2-tooltip-summary-val{flex:1;text-align:right;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.antv-s2-tooltip-interpretation{color:#000000a6;overflow:hidden;padding:12px}.antv-s2-tooltip-interpretation+.antv-s2-tooltip-head-info-list{border-top:1px solid var(--antv-s2-border, #e9e9e9)}.antv-s2-tooltip-interpretation .antv-s2-tooltip-interpretation-head{margin-bottom:12px}.antv-s2-tooltip-interpretation .antv-s2-tooltip-interpretation-head .antv-s2-tooltip-interpretation-icon{width:14px;height:14px}.antv-s2-tooltip-interpretation .antv-s2-tooltip-interpretation-head .antv-s2-tooltip-interpretation-name{color:var(--antv-s2-font, #000)}.antv-s2-tooltip-head-info-list{color:var(--antv-s2-font-65, #a2a2a2);padding:12px 12px 4px;line-height:24px;word-break:break-word}.antv-s2-tooltip-bold,.antv-s2-tooltip-selected{font-weight:700}.antv-s2-tooltip-selected{margin-right:5px}.antv-s2-tooltip-highlight{color:var(--antv-s2-font-85, rgba(0, 0, 0, .85))}.antv-s2-tooltip-detail-list{padding:2px 12px 8px}.antv-s2-tooltip-detail-list .antv-s2-tooltip-detail-item{color:var(--antv-s2-font-65, rgba(0, 0, 0, .65));overflow:hidden;margin:4px 0;display:flex;justify-content:space-around;align-items:center}.antv-s2-tooltip-detail-list .antv-s2-tooltip-detail-item-key{margin-right:20px}.antv-s2-tooltip-detail-list .antv-s2-tooltip-detail-item-val{flex:1;text-align:right;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.ant-dropdown-menu-item.operation-item{font-size:12px}.antv-s2-spin.ant-spin-nested-loading,.antv-s2-spin>.ant-spin-container{height:100%}.antv-s2-wrapper{padding:0;margin:0;display:flex;flex-direction:column;height:100%}.antv-s2-container{overflow:auto;flex:1 1 auto}.antv-s2-container canvas{display:block}.antv-s2-pagination{display:flex;align-items:center;z-index:1024}.antv-s2-pagination-count{margin-left:12px;text-overflow:ellipsis;white-space:nowrap;max-width:64px}.antv-s2-drill-down[data-v-8dd920ec]{width:260px;min-height:20px;position:relative;color:var(--antv-s2-font-70, #fff)}.antv-s2-drill-down-header[data-v-8dd920ec]{display:flex;height:32px;font-size:14px;padding:0 16px;margin-top:16px}.antv-s2-drill-down-header button[data-v-8dd920ec]{position:absolute;right:0;top:-4px;font-size:12px;color:#1890ff;letter-spacing:-.2px;line-height:20px}.antv-s2-drill-down-search[data-v-8dd920ec]{height:24px;width:228px!important;margin:0 16px;border:1px solid rgba(0,0,0,.15);border-radius:2px}.antv-s2-drill-down-search input[data-v-8dd920ec],.antv-s2-drill-down-search span[data-v-8dd920ec]{font-size:12px}.antv-s2-drill-down-search[data-v-8dd920ec],.antv-s2-drill-down-search .ant-input[data-v-8dd920ec]::placeholder{background-color:var(--antv-s2-block-background, #fff)}.antv-s2-drill-down-extra[data-v-8dd920ec]{margin:4px 16px}.antv-s2-drill-down-menu[data-v-8dd920ec]{max-height:314px;overflow:hidden auto}.antv-s2-drill-down-menu.ant-menu[data-v-8dd920ec]{background:var(--antv-s2-tooltip-background, #fff)}.antv-s2-drill-down-menu.ant-menu:not(.ant-menu-horizontal) .ant-menu-item-selected[data-v-8dd920ec]{background-color:var(--antv-s2-block-background, #e6f7ff)}.antv-s2-drill-down-menu-item[data-v-8dd920ec]{height:32px!important;line-height:32px!important;font-size:12px;opacity:.65}.antv-s2-drill-down-menu-item span[data-v-8dd920ec]:last-child{line-height:32px}.antv-s2-drill-down-menu-item svg[data-v-8dd920ec]{margin-right:8px}.antv-s2-drill-down-empty[data-v-8dd920ec]{padding:12px;font-size:12px}
|
package/esm/index.d.ts
CHANGED
|
@@ -35,6 +35,7 @@ import { LineStyleProps } from '@antv/g';
|
|
|
35
35
|
import { MemoizedFunction } from 'lodash';
|
|
36
36
|
import { MergedCell } from '@antv/s2';
|
|
37
37
|
import { Node as Node_2 } from '@antv/s2';
|
|
38
|
+
import { Omit as Omit_2 } from 'lodash';
|
|
38
39
|
import { Pagination } from '@antv/s2';
|
|
39
40
|
import type { PaginationProps } from 'ant-design-vue';
|
|
40
41
|
import { PointLike } from '@antv/g';
|
|
@@ -563,7 +564,6 @@ declare abstract class BaseFacet {
|
|
|
563
564
|
abstract getViewCellHeights(): ViewCellHeights;
|
|
564
565
|
abstract addDataCell(cell: DataCell_2): void;
|
|
565
566
|
abstract getCellMeta(rowIndex: number, colIndex: number): ViewMeta_2 | null;
|
|
566
|
-
protected abstract getColNodeHeight(colNode: Node_2_2, colsHierarchy: Hierarchy): number;
|
|
567
567
|
protected scrollFrameId: ReturnType<typeof requestAnimationFrame> | null;
|
|
568
568
|
protected scrollDirection: ScrollDirection;
|
|
569
569
|
get scrollBarTheme(): DeepRequired<ScrollBarTheme>;
|
|
@@ -576,11 +576,14 @@ declare abstract class BaseFacet {
|
|
|
576
576
|
protected getCellCustomSize(node: Node_2_2 | null, size: CellCustomSize): number | null | undefined;
|
|
577
577
|
protected getRowCellDraggedWidth(node: Node_2_2): number | undefined;
|
|
578
578
|
protected getRowCellDraggedHeight(node: Node_2_2): number | undefined;
|
|
579
|
-
protected
|
|
579
|
+
protected isCustomRowCellHeight(node: Node_2_2): boolean;
|
|
580
|
+
protected getCustomRowCellHeight(node: Node_2_2): number | null | undefined;
|
|
581
|
+
protected getRowCellHeight(node: Node_2_2): number | undefined;
|
|
580
582
|
protected getColCellDraggedWidth(node: Node_2_2): number | undefined;
|
|
581
583
|
protected getColCellDraggedHeight(node: Node_2_2): number | undefined;
|
|
584
|
+
protected getColNodeHeight(colNode: Node_2_2, colsHierarchy: Hierarchy): any;
|
|
582
585
|
protected getDefaultColNodeHeight(colNode: Node_2_2, colsHierarchy: Hierarchy): number;
|
|
583
|
-
protected getCellAdaptiveHeight(cell:
|
|
586
|
+
protected getCellAdaptiveHeight(cell: S2CellType_2, defaultHeight?: number): any;
|
|
584
587
|
/**
|
|
585
588
|
* 将每一层级的采样节点更新为高度最大的节点 (未隐藏, 非汇总节点)
|
|
586
589
|
*/
|
|
@@ -1083,6 +1086,63 @@ containerRef: Ref<HTMLDivElement>;
|
|
|
1083
1086
|
s2Ref: ShallowRef<SpreadSheet>;
|
|
1084
1087
|
loading: Ref<boolean>;
|
|
1085
1088
|
pagination: {
|
|
1089
|
+
customOptions: Omit_2<Pagination & Partial<ExtractPropTypes< {
|
|
1090
|
+
total: NumberConstructor;
|
|
1091
|
+
defaultCurrent: NumberConstructor;
|
|
1092
|
+
disabled: {
|
|
1093
|
+
type: BooleanConstructor;
|
|
1094
|
+
default: any;
|
|
1095
|
+
};
|
|
1096
|
+
current: NumberConstructor;
|
|
1097
|
+
defaultPageSize: NumberConstructor;
|
|
1098
|
+
pageSize: NumberConstructor;
|
|
1099
|
+
hideOnSinglePage: {
|
|
1100
|
+
type: BooleanConstructor;
|
|
1101
|
+
default: any;
|
|
1102
|
+
};
|
|
1103
|
+
showSizeChanger: {
|
|
1104
|
+
type: BooleanConstructor;
|
|
1105
|
+
default: any;
|
|
1106
|
+
};
|
|
1107
|
+
pageSizeOptions: PropType<(string | number)[]>;
|
|
1108
|
+
buildOptionText: PropType<(opt: {
|
|
1109
|
+
value: any;
|
|
1110
|
+
}) => any>;
|
|
1111
|
+
showQuickJumper: {
|
|
1112
|
+
type: PropType<boolean | {
|
|
1113
|
+
goButton?: any;
|
|
1114
|
+
}>;
|
|
1115
|
+
default: boolean | {
|
|
1116
|
+
goButton?: any;
|
|
1117
|
+
};
|
|
1118
|
+
};
|
|
1119
|
+
showTotal: PropType<(total: number, range: [number, number]) => any>;
|
|
1120
|
+
size: PropType<"small" | "default">;
|
|
1121
|
+
simple: {
|
|
1122
|
+
type: BooleanConstructor;
|
|
1123
|
+
default: any;
|
|
1124
|
+
};
|
|
1125
|
+
locale: ObjectConstructor;
|
|
1126
|
+
prefixCls: StringConstructor;
|
|
1127
|
+
selectPrefixCls: StringConstructor;
|
|
1128
|
+
totalBoundaryShowSizeChanger: NumberConstructor;
|
|
1129
|
+
selectComponentClass: StringConstructor;
|
|
1130
|
+
itemRender: PropType<(opt: {
|
|
1131
|
+
page: number;
|
|
1132
|
+
type: "page" | "prev" | "next" | "jump-prev" | "jump-next";
|
|
1133
|
+
originalElement: any;
|
|
1134
|
+
}) => any>;
|
|
1135
|
+
role: StringConstructor;
|
|
1136
|
+
responsive: BooleanConstructor;
|
|
1137
|
+
showLessItems: {
|
|
1138
|
+
type: BooleanConstructor;
|
|
1139
|
+
default: any;
|
|
1140
|
+
};
|
|
1141
|
+
onChange: PropType<(page: number, pageSize: number) => void>;
|
|
1142
|
+
onShowSizeChange: PropType<(current: number, size: number) => void>;
|
|
1143
|
+
'onUpdate:current': PropType<(current: number) => void>;
|
|
1144
|
+
'onUpdate:pageSize': PropType<(size: number) => void>;
|
|
1145
|
+
}>>, "total" | "current" | "pageSize">;
|
|
1086
1146
|
visible: ComputedRef<boolean>;
|
|
1087
1147
|
current: Ref<number>;
|
|
1088
1148
|
pageSize: Ref<number>;
|
|
@@ -1700,6 +1760,8 @@ declare interface CellMeta {
|
|
|
1700
1760
|
rowIndex: number;
|
|
1701
1761
|
type: CellType;
|
|
1702
1762
|
rowQuery?: Record<string, any>;
|
|
1763
|
+
rowId?: string;
|
|
1764
|
+
colId?: string;
|
|
1703
1765
|
[key: string]: unknown;
|
|
1704
1766
|
}
|
|
1705
1767
|
|
|
@@ -1890,7 +1952,7 @@ declare class CornerCell_2 extends HeaderCell<CornerHeaderConfig> {
|
|
|
1890
1952
|
protected getBorderPositions(): CellBorderPosition[];
|
|
1891
1953
|
protected initCell(): void;
|
|
1892
1954
|
/**
|
|
1893
|
-
* 绘制折叠展开的icon
|
|
1955
|
+
* 绘制折叠展开的 icon
|
|
1894
1956
|
*/
|
|
1895
1957
|
protected drawTreeIcon(): void;
|
|
1896
1958
|
protected isLastRowCornerCell(): boolean;
|
|
@@ -2073,6 +2135,7 @@ declare class DataCell_2 extends BaseCell<ViewMeta_2> {
|
|
|
2073
2135
|
protected handleByStateName(cells: CellMeta[], stateName: InteractionStateName): void;
|
|
2074
2136
|
protected handleSearchResult(cells: CellMeta[]): void;
|
|
2075
2137
|
protected handleSelect(cells: CellMeta[]): void;
|
|
2138
|
+
protected isDisableHover(cellMeta: CellMeta): boolean;
|
|
2076
2139
|
protected handleHover(cells: CellMeta[]): void;
|
|
2077
2140
|
update(): void;
|
|
2078
2141
|
setMeta(viewMeta: Partial<ViewMeta_2>): void;
|
|
@@ -3277,7 +3340,6 @@ declare class Node_2_2 {
|
|
|
3277
3340
|
*/
|
|
3278
3341
|
static getAllChildrenNodes(node: Node_2_2): Node_2_2[];
|
|
3279
3342
|
/**
|
|
3280
|
-
* Get all children branch in this node branch, eg:
|
|
3281
3343
|
* c1
|
|
3282
3344
|
* b1〈
|
|
3283
3345
|
* c2
|
|
@@ -3285,10 +3347,10 @@ declare class Node_2_2 {
|
|
|
3285
3347
|
* c3
|
|
3286
3348
|
* b2〈
|
|
3287
3349
|
* c4
|
|
3288
|
-
*
|
|
3289
|
-
* @param
|
|
3350
|
+
* c1 => (a, b1, c1)
|
|
3351
|
+
* @param node
|
|
3290
3352
|
*/
|
|
3291
|
-
static
|
|
3353
|
+
static getBranchNodes(node: Node_2_2): Node_2_2[];
|
|
3292
3354
|
static blankNode(): Node_2_2;
|
|
3293
3355
|
static rootNode(): Node_2_2;
|
|
3294
3356
|
getHeadLeafChild(): Node_2_2 | undefined;
|
|
@@ -3805,9 +3867,13 @@ declare enum ResizeAreaEffect {
|
|
|
3805
3867
|
}
|
|
3806
3868
|
|
|
3807
3869
|
declare enum ResizeDirectionType {
|
|
3808
|
-
/**
|
|
3870
|
+
/**
|
|
3871
|
+
* 水平方向 resize
|
|
3872
|
+
*/
|
|
3809
3873
|
Horizontal = "col",
|
|
3810
|
-
/**
|
|
3874
|
+
/**
|
|
3875
|
+
* 垂直方向 resize
|
|
3876
|
+
*/
|
|
3811
3877
|
Vertical = "row"
|
|
3812
3878
|
}
|
|
3813
3879
|
|
|
@@ -3866,8 +3932,18 @@ declare interface ResizeParams_2 {
|
|
|
3866
3932
|
}
|
|
3867
3933
|
|
|
3868
3934
|
declare enum ResizeType {
|
|
3935
|
+
/**
|
|
3936
|
+
* 对所有单元格生效
|
|
3937
|
+
*/
|
|
3869
3938
|
ALL = "all",
|
|
3870
|
-
|
|
3939
|
+
/**
|
|
3940
|
+
* 对当前单元格生效
|
|
3941
|
+
*/
|
|
3942
|
+
CURRENT = "current",
|
|
3943
|
+
/**
|
|
3944
|
+
* 对当前单元格生效, 如果单元格是多选状态, 调整任意选中单元格, 对所有选中的生效
|
|
3945
|
+
*/
|
|
3946
|
+
SELECTED = "selected"
|
|
3871
3947
|
}
|
|
3872
3948
|
|
|
3873
3949
|
declare class RootInteraction {
|
|
@@ -3897,6 +3973,9 @@ declare class RootInteraction {
|
|
|
3897
3973
|
isSelectedCell(cell: S2CellType_2): boolean;
|
|
3898
3974
|
getCells(cellType?: CellType[]): CellMeta[];
|
|
3899
3975
|
getActiveCells(): S2CellType_2[];
|
|
3976
|
+
getActiveDataCells(): S2CellType_2[];
|
|
3977
|
+
getActiveRowCells(): S2CellType_2[];
|
|
3978
|
+
getActiveColCells(): S2CellType_2[];
|
|
3900
3979
|
clearStyleIndependent(): void;
|
|
3901
3980
|
getUnSelectedDataCells(): DataCell_2[];
|
|
3902
3981
|
selectAll: () => void;
|
|
@@ -3924,6 +4003,9 @@ declare class RootInteraction {
|
|
|
3924
4003
|
getHoverAfterScroll(): boolean;
|
|
3925
4004
|
getHoverHighlight(): InteractionCellHighlightOptions;
|
|
3926
4005
|
getBrushSelection(): BrushSelectionOptions;
|
|
4006
|
+
updateDataCellRelevantHeaderCells(stateName: InteractionStateName, meta: ViewMeta_2): void;
|
|
4007
|
+
updateDataCellRelevantRowCells(stateName: InteractionStateName, meta: ViewMeta_2): void;
|
|
4008
|
+
updateDataCellRelevantColCells(stateName: InteractionStateName, meta: ViewMeta_2): void;
|
|
3927
4009
|
}
|
|
3928
4010
|
|
|
3929
4011
|
declare class RowCell extends HeaderCell<RowHeaderConfig> {
|
|
@@ -4564,19 +4646,15 @@ declare interface SelectHeaderCellInfo {
|
|
|
4564
4646
|
isMultiSelection?: boolean;
|
|
4565
4647
|
}
|
|
4566
4648
|
|
|
4567
|
-
declare class SeriesNumberCell_2 extends
|
|
4568
|
-
protected headerConfig: BaseHeaderConfig;
|
|
4569
|
-
protected handleRestOptions(...[headerConfig]: [BaseHeaderConfig]): void;
|
|
4570
|
-
getHeaderConfig(): BaseHeaderConfig;
|
|
4649
|
+
declare class SeriesNumberCell_2 extends HeaderCell {
|
|
4571
4650
|
get cellType(): CellType;
|
|
4572
4651
|
protected getBorderPositions(): CellBorderPosition[];
|
|
4573
4652
|
protected initCell(): void;
|
|
4574
|
-
|
|
4653
|
+
getBackgroundColor(): {
|
|
4575
4654
|
backgroundColor: string;
|
|
4576
4655
|
backgroundColorOpacity: number;
|
|
4577
4656
|
intelligentReverseTextColor: boolean;
|
|
4578
4657
|
};
|
|
4579
|
-
update(): void;
|
|
4580
4658
|
protected getTextStyle(): {
|
|
4581
4659
|
fontSize: number;
|
|
4582
4660
|
fill: string;
|
|
@@ -4596,9 +4674,10 @@ declare class SeriesNumberCell_2 extends BaseCell<Node_2_2> {
|
|
|
4596
4674
|
protected getFormattedFieldValue(): FormatResult;
|
|
4597
4675
|
protected getMaxTextWidth(): number;
|
|
4598
4676
|
protected getTextPosition(): PointLike;
|
|
4599
|
-
protected
|
|
4600
|
-
|
|
4601
|
-
|
|
4677
|
+
protected isBolderText(): boolean;
|
|
4678
|
+
findFieldCondition(): undefined;
|
|
4679
|
+
mappingValue(): undefined;
|
|
4680
|
+
getIconPosition(): PointLike;
|
|
4602
4681
|
}
|
|
4603
4682
|
|
|
4604
4683
|
declare interface SeriesNumberCellStyle extends CellTextWordWrapStyle {
|
|
@@ -5509,10 +5588,6 @@ declare abstract class SpreadSheet_2 extends EE {
|
|
|
5509
5588
|
* 表格是否已销毁
|
|
5510
5589
|
*/
|
|
5511
5590
|
private destroyed;
|
|
5512
|
-
private untypedOn;
|
|
5513
|
-
private untypedEmit;
|
|
5514
|
-
on: <K extends keyof EmitterType>(event: K, listener: EmitterType[K]) => this;
|
|
5515
|
-
emit: <K extends keyof EmitterType>(event: K, ...args: Parameters<EmitterType[K]>) => boolean;
|
|
5516
5591
|
protected abstract bindEvents(): void;
|
|
5517
5592
|
abstract getDataSet(): BaseDataSet_2;
|
|
5518
5593
|
abstract enableFrozenHeaders(): boolean;
|
|
@@ -5597,6 +5672,8 @@ declare abstract class SpreadSheet_2 extends EE {
|
|
|
5597
5672
|
})
|
|
5598
5673
|
*/
|
|
5599
5674
|
render(options?: S2RenderOptions_2 | boolean): Promise<void>;
|
|
5675
|
+
private mountSheetInstance;
|
|
5676
|
+
private unmountSheetInstance;
|
|
5600
5677
|
/**
|
|
5601
5678
|
* 卸载表格
|
|
5602
5679
|
* @example s2.destroy()
|
|
@@ -5622,6 +5699,8 @@ declare abstract class SpreadSheet_2 extends EE {
|
|
|
5622
5699
|
* @param height
|
|
5623
5700
|
*/
|
|
5624
5701
|
changeSheetSize(width?: number, height?: number): void;
|
|
5702
|
+
on<K extends keyof EmitterType>(event: K, listener: EmitterType[K]): this;
|
|
5703
|
+
emit<K extends keyof EmitterType>(event: K, ...args: Parameters<EmitterType[K]>): void;
|
|
5625
5704
|
/**
|
|
5626
5705
|
* 获取 G Canvas 实例
|
|
5627
5706
|
* @see https://g.antv.antgroup.com/api/renderer/canvas
|
|
@@ -5635,7 +5714,9 @@ declare abstract class SpreadSheet_2 extends EE {
|
|
|
5635
5714
|
/**
|
|
5636
5715
|
* 获取 <canvas/> HTML 元素
|
|
5637
5716
|
*/
|
|
5638
|
-
getCanvasElement(): HTMLCanvasElement
|
|
5717
|
+
getCanvasElement(): HTMLCanvasElement & {
|
|
5718
|
+
__s2_instance__: SpreadSheet_2;
|
|
5719
|
+
};
|
|
5639
5720
|
getLayoutWidthType(): LayoutWidthType;
|
|
5640
5721
|
/**
|
|
5641
5722
|
* Update scroll's offset, the value can be undefined,
|
|
@@ -5843,6 +5924,7 @@ declare class TableDataCell_2 extends DataCell_2 {
|
|
|
5843
5924
|
drawBorders(): void;
|
|
5844
5925
|
protected shouldDrawResizeArea(): boolean;
|
|
5845
5926
|
drawResizeArea(): void;
|
|
5927
|
+
protected isDisableHover(cellMeta: CellMeta): boolean;
|
|
5846
5928
|
}
|
|
5847
5929
|
|
|
5848
5930
|
declare class TableSeriesNumberCell extends TableDataCell_2 {
|
|
@@ -6380,9 +6462,9 @@ declare interface Totals {
|
|
|
6380
6462
|
}
|
|
6381
6463
|
|
|
6382
6464
|
declare interface TotalStatus {
|
|
6383
|
-
|
|
6465
|
+
isRowGrandTotal: boolean;
|
|
6384
6466
|
isRowSubTotal: boolean;
|
|
6385
|
-
|
|
6467
|
+
isColGrandTotal: boolean;
|
|
6386
6468
|
isColSubTotal: boolean;
|
|
6387
6469
|
}
|
|
6388
6470
|
|
|
@@ -6402,7 +6484,7 @@ declare interface ValueRange {
|
|
|
6402
6484
|
|
|
6403
6485
|
declare type ValueRanges = Record<string, ValueRange>;
|
|
6404
6486
|
|
|
6405
|
-
export declare const version = "@antv/s2-vue-v2.0.0-next.
|
|
6487
|
+
export declare const version = "@antv/s2-vue-v2.0.0-next.13";
|
|
6406
6488
|
|
|
6407
6489
|
declare interface ViewCellHeights {
|
|
6408
6490
|
getCellOffsetY: (index: number) => number;
|