移动端
表格移动端目前有小黑条/工具栏/底部sheet栏三个插件
以下为通用插件:
- BasicPlugins (移动端仅支持高亮选中项)
- Common
- Chart
- Collaboration
- Collaborators
- ConditionalFormat
- DataValidation
- Editor
- FilterViewport
- Form
- Lock
- PivotTable
以下插件为电脑端专用:
- ContextMenu
- Fill
- FormulaSidebar
- Toolbar
- HistorySidebar
- Shortcut
以下插件为移动端专用:
- MobileContextmenu
- MobileSheetTab
- MobileToolbar
构造函数
- 用法
const editor = new window.shimo.sdk.sheet.Editor()
// 通用插件
new window.shimo.sdk.sheet.plugins.BasicPlugins({
editor,
disableHighlightPosition: false,
disableSplitColumns: isMobile,
disableNumberText: isMobile,
disableZoomScale: isMobile,
disableFullscreen: isMobile,
disableStatusBar: isMobile
})
new window.shimo.sdk.sheet.plugins.Common(...)
...
if (isMobile) {
// mobile 小黑条/右键菜单
new window.shimo.sdk.sheet.plugins.MobileContextmenu({ editor })
// mobile 工具栏
new window.shimo.sdk.sheet.plugins.MobileToolbar({
editor: editor,
container: container
})
// mobile底部sheet栏
new window.shimo.sdk.sheet.plugins.MobileSheetTab({
editor: editor,
container: container
})
} else {
new window.shimo.sdk.sheet.plugins.ContextMenu(...)
new window.shimo.sdk.sheet.plugins.Fill(...)
new window.shimo.sdk.sheet.plugins.Print(...)
new window.shimo.sdk.sheet.plugins.FormulaSidebar(...)
new window.shimo.sdk.sheet.plugins.Toolbar(...)
new window.shimo.sdk.sheet.plugins.HistorySidebar(...)
new window.shimo.sdk.sheet.plugins.Shortcut(...)
}