<template>
  <view class="form-richtext">
    <view class="richtext-trigger" @click="goEdit">
      <text class="richtext-value">{{ value ? '已设置' : '去设置' }}</text>
    </view>
  </view>
</template>

<script>
export default {
  name: 'FormItemRichtext',
  props: {
    value: { type: String, default: '' }
  },
  methods: {
    goEdit: function () {
      uni.navigateTo({
        url: '/pages/shop/add-img-text?list=' + this.value
      });
    }
  }
};
</script>

<style scoped>
.form-richtext {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.richtext-trigger {
  display: flex;
  align-items: center;
}

.richtext-value {
  font-size: 28rpx;
  color: #333333;
  text-align: right;
}
</style>
