1234567891011121314151617181920212223242526272829303132333435 |
- <script setup>
- const chartWaterImgs=ref([])
- async function handleUploadImg(e){
- const file=e.raw
- }
- </script>
- <template>
- <div class="bg-white common-set-page">
- <h3>设置图表水印</h3>
- <t-upload
- v-model="chartWaterImgs"
- theme="image"
- tips="上传格式:png、jpg"
- accept="image/png,image/jpeg"
- :request-method="handleUploadImg"
- :locale="{
- triggerUploadText: {
- image: '点击上传图片',
- },
- }"
- />
- <t-button style="margin-top:30px">应用到全部社区图表</t-button>
- </div>
- </template>
- <style lang="scss" scoped>
- .common-set-page{
- padding: 20px;
- border-radius: 4px;
- height: calc(100vh - 160px);
- }
- </style>
|