mrr.sj.front/components/dynamic-form/FormItemRichtext.vue

44 lines
743 B
Vue
Raw Normal View History

2026-06-09 17:49:15 +08:00
<template>
<view class="form-richtext">
2026-06-10 10:15:10 +08:00
<view class="richtext-trigger" @click="goEdit">
<text class="richtext-value">{{ value ? '已设置' : '去设置' }}</text>
2026-06-09 17:49:15 +08:00
</view>
</view>
</template>
<script>
export default {
2026-06-10 10:15:10 +08:00
name: 'FormItemRichtext',
2026-06-09 17:49:15 +08:00
props: {
2026-06-10 10:15:10 +08:00
value: { type: String, default: '' }
2026-06-09 17:49:15 +08:00
},
methods: {
2026-06-10 10:15:10 +08:00
goEdit: function () {
uni.navigateTo({
url: '/pages/shop/add-img-text?list=' + this.value
2026-06-09 17:49:15 +08:00
});
2026-06-10 10:15:10 +08:00
}
}
2026-06-09 17:49:15 +08:00
};
</script>
<style scoped>
.form-richtext {
2026-06-10 10:15:10 +08:00
flex: 1;
2026-06-09 17:49:15 +08:00
display: flex;
2026-06-10 10:15:10 +08:00
align-items: center;
justify-content: flex-end;
2026-06-09 17:49:15 +08:00
}
2026-06-10 10:15:10 +08:00
.richtext-trigger {
display: flex;
align-items: center;
2026-06-09 17:49:15 +08:00
}
2026-06-10 10:15:10 +08:00
.richtext-value {
2026-06-09 17:49:15 +08:00
font-size: 28rpx;
color: #333333;
2026-06-10 10:15:10 +08:00
text-align: right;
2026-06-09 17:49:15 +08:00
}
</style>