yinbiaoTxt.vue 357 B

12345678910111213141516171819202122
  1. <template>
  2. <text v-for="item in yinbiaoArr">{{item}}</text>
  3. </template>
  4. <script setup>
  5. import {computed} from "vue"
  6. const props = defineProps({
  7. yinbiao: {
  8. type: String,
  9. required: true
  10. }
  11. })
  12. const yinbiaoArr = computed(() => {
  13. const result = props.yinbiao.split(/(\/)/).filter(Boolean);
  14. return result
  15. })
  16. </script>
  17. <style scoped>
  18. </style>