diff --git a/src/components/taro-cropper/index.scss b/src/components/taro-cropper/index.scss index e69de29..28fb71d 100644 --- a/src/components/taro-cropper/index.scss +++ b/src/components/taro-cropper/index.scss @@ -0,0 +1,25 @@ +.canvas-item { + background: rgba(0,0,0,0.8); + position: relative; +} +.canvas-fullscreen { + width: 100%; + height: 100%; +} +.cut-canvas-item { + position: absolute; +} +.taro-cropper { + position: relative; +} +.taro-cropper-fullscreen { + position: fixed; + left: 0; + top: 0; + width: 100%; + height: 100%; +} +html .taro-tabbar__container .taro-cropper-fullscreen { + height: calc(100% - 100rpx); +} + diff --git a/src/components/taro-cropper/index.tsx b/src/components/taro-cropper/index.tsx index 5e2c513..bf07616 100644 --- a/src/components/taro-cropper/index.tsx +++ b/src/components/taro-cropper/index.tsx @@ -46,6 +46,7 @@ class TaroCropperComponent extends Taro.PureComponent } return ( - +