vr-shopxo-uniapp/pages/plugins/video/components/comment-more.vue

51 lines
1.1 KiB
Vue
Raw Normal View History

2025-09-19 08:24:52 +00:00
<template>
<view class="more-title flex-row align-c" @tap="comment_more_event">
2026-03-09 10:34:25 +00:00
<text class="more-title">{{ propText || $t('common.expand') }}</text>
<view class="ml-5">
2026-03-10 09:03:39 +00:00
<u-icon :propName="propIconName" propColor="#999" propSize="20rpx"></u-icon>
2025-09-19 08:24:52 +00:00
</view>
</view>
</template>
<script>
2026-03-06 03:16:01 +00:00
//#ifdef APP-NVUE
2026-03-06 07:25:09 +00:00
import i18n from '@/locale/index.js';
2026-03-06 03:16:01 +00:00
//#endif
2025-09-19 08:24:52 +00:00
export default {
2026-03-06 07:25:09 +00:00
//#ifdef APP-NVUE
i18n,
//#endif
2025-09-19 08:24:52 +00:00
props: {
2025-09-22 07:20:50 +00:00
propId: {
2025-09-19 08:24:52 +00:00
type: [String, Number],
default: '',
},
2025-09-22 07:20:50 +00:00
propText: {
2025-09-19 08:24:52 +00:00
type: String,
default: ''
2025-09-19 08:24:52 +00:00
},
propIsLevel: {
type: Number,
default: 1
},
2025-09-22 07:20:50 +00:00
propIconName: {
2025-09-19 08:24:52 +00:00
type: String,
2026-03-10 09:03:39 +00:00
default: 'arrow-down'
2025-09-19 08:24:52 +00:00
},
},
methods: {
comment_more_event() {
this.$emit('comment_more_event', this.propId, this.propIsLevel);
2025-09-19 08:24:52 +00:00
}
}
}
</script>
<style lang="scss" scoped>
.more-title {
font-size: 24rpx;
color: #999999;
line-height: 34rpx;
white-space: nowrap;
}
</style>