<template>
  <BaseSameLayer
      :hosSameLayerArgs="hosSameLayerArgs"
      embedType="native/textarea"
      :defaultWidth="300"
      :defaultHeight="120"
  ></BaseSameLayer>
</template>

<script>
import BaseSameLayer from "./baseSameLayer.vue";

export default {
  name: "HlTextarea",
  components: {
    BaseSameLayer,
  },
  props: {
    hosUniqueProps: {
      type: Object,
      required: true,
    },
    placeholder: {
      type: String,
      required: true,
    },
  },
  computed: {
    hosSameLayerArgs() {
      return {
        ...this.hosUniqueProps, // 鸿蒙原生组件独有属性
        placeholder: this.placeholder, // 多端支持公共属性
      };
    },
  },
  methods: {
    // 自定义拓展其它逻辑
  },
};
</script>
