shouJiCeJu.vue 734 B

123456789101112131415161718192021222324252627
  1. <template>
  2. <view class="content" :style="{ paddingTop: statusBarHeight + 'px' }">
  3. <vertical-rule style="position: absolute;right: 10rpx;" min="0" max="150" height="600" @change="change"></vertical-rule>
  4. </view>
  5. </template>
  6. <script setup>
  7. import { ref, onMounted } from "vue";
  8. import { onShow } from "@dcloudio/uni-app";
  9. import verticalRule from '@/components/horizontal-rule/vertical-rule.vue'
  10. var statusBarHeight = uni.getStorageSync('statusBarHeight')
  11. const dfVal = ref(0)
  12. const change = (e)=>{
  13. dfVal.value = Math.round(e)
  14. }
  15. </script>
  16. <style lang="scss" scoped>
  17. .content{
  18. height: 100vh;
  19. padding: 28rpx;
  20. background: linear-gradient(to bottom, #a9d4ff, #cce6ff);
  21. }
  22. .calliper{
  23. transform: translate(90deg);
  24. }
  25. </style>