找回密码
 立即注册

QQ登录

只需一步,快速开始

dexteryao 讲师达人认证 悬赏达人认证 SpreadJS 开发认证

超级版主

123

主题

8927

帖子

1万

积分

超级版主

Rank: 8Rank: 8

积分
13536

讲师达人悬赏达人元老葡萄SpreadJS 认证SpreadJS 高级认证微信认证勋章

dexteryao 讲师达人认证 悬赏达人认证 SpreadJS 开发认证
超级版主   /  发表于:2020-8-4 15:14  /   查看:2388  /  回复:0
SpreadJS V13.2.0 支持了类似与移动端UI的滚动条。滚动条浮动于表格上部,更加优雅,按需显示。

通过属性:scrollbarAppearance开启功能
    spread.options.scrollbarAppearance = GC.Spread.Sheets.ScrollbarAppearance.mobile;
同时可以根据css样式,控制浮动滚动条的样式。

  1. /* The recommended styles are in the {}. */

  2. /* Scrollbar Container (Normal State) */
  3. .gc-scroll-mobile-container { border-radius, opacity, padding }          /* The common style for scrollbar */
  4. .gc-scroll-mobile-container-vertical { width }                           /* The style for vertical scrollbar */
  5. .gc-scroll-mobile-container-horizontal { height }                        /* The style for horizontal scrollbar */

  6. /* Scrollbar Thumb (Normal State) */
  7. .gc-scroll-mobile-thumb { background, border, border-radius, opacity }   /* The style for scrollbar thumb */

  8. /* Scrollbar Track (Normal State) */
  9. .gc-scroll-mobile-track { background, border, border-radius, opacity }   /* The style for scrollbar track */

  10. /* Combo class name, Add to Scrollbar Container */
  11. .gc-scroll-mobile-spread-hovering                                        /* The style for scrollbar elements when mouse enter into spread host */
  12. .gc-scroll-mobile-state-hide                                             /* The hide state style for scrollbar elements */
  13. .gc-scroll-mobile-state-hover                                            /* The hover state style for scrollbar elements */
  14. .gc-scroll-mobile-state-active                                           /* The active state style for scrollbar elements */
复制代码


0 个回复

您需要登录后才可以回帖 登录 | 立即注册
返回顶部