refactor: vue3.3 defineOptions

This commit is contained in:
shizhong
2023-09-22 12:49:25 +08:00
parent 6ec2ee8af4
commit 20f483f561
189 changed files with 589 additions and 187 deletions

View File

@ -23,10 +23,12 @@
</div>
</template>
<script setup lang="ts" name="WxVoicePlayer">
<script setup lang="ts">
// 因为微信语音是 amr 格式,所以需要用到 amr 解码器https://www.npmjs.com/package/benz-amr-recorder
import BenzAMRRecorder from 'benz-amr-recorder'
defineOptions({ name: 'WxVoicePlayer' })
const props = defineProps({
url: {
type: String, // 语音地址例如说https://www.iocoder.cn/xxx.amr