CommonSet.vue 710 B

1234567891011121314151617181920212223242526272829303132333435
  1. <script setup>
  2. const chartWaterImgs=ref([])
  3. async function handleUploadImg(e){
  4. const file=e.raw
  5. }
  6. </script>
  7. <template>
  8. <div class="bg-white common-set-page">
  9. <h3>设置图表水印</h3>
  10. <t-upload
  11. v-model="chartWaterImgs"
  12. theme="image"
  13. tips="上传格式:png、jpg"
  14. accept="image/png,image/jpeg"
  15. :request-method="handleUploadImg"
  16. :locale="{
  17. triggerUploadText: {
  18. image: '点击上传图片',
  19. },
  20. }"
  21. />
  22. <t-button style="margin-top:30px">应用到全部社区图表</t-button>
  23. </div>
  24. </template>
  25. <style lang="scss" scoped>
  26. .common-set-page{
  27. padding: 20px;
  28. border-radius: 4px;
  29. height: calc(100vh - 160px);
  30. }
  31. </style>