Appearance
缩放控件
调用方法
addControlZoom(option)
返回值res.data
为唯一标识tag
option
名称 | 类型 | 说明 | 默认 |
---|---|---|---|
position | POSITION_TYPE | 控件位置 | T_ANCHOR_TOP_RIGHT |
zoomInText | string | 放大层级按钮的文字显示。 | '+' |
zoomOutText | string | 缩小层级按钮的文字显示。 | '-' |
zoomInTitle | string | 放大层级按钮的标题显示。 | '放大' |
zoomOutTitle | string | 缩小层级按钮的标题显示。 | '缩小' |
success | function | 调用成功回调 | - |
fail | function | 调用失败回调 | - |
示例代码
javascript
// mosowe-tdt
TDTRenderRef.value.addControlZoom();
// mosowe-tdt-x
TDTRenderRef.value?.addControlZoom?.();
贡献者
mosowe