<!--
 * @Author: 文贝
 * @Date: 2022-03-22 18:22:43
 * @LastEditors: 文贝
 * @LastEditTime: 2022-04-24 14:10:31
 * @Description:
 * @FilePath: \src\views\test-demo2\components\TestComponent2\index.vue
-->
<template>
  <div>
    <ics-input v-model="value" />
    <ics-button @click="handleClick">{{ text }}</ics-button>
  </div>
</template>

<script>
import { getDictDesign } from '@/api/app'
export default {
  name: 'TestComponent2',
  props: {
    text: {
      type: String,
      required: true,
      default: null
    }
  },
  data() {
    return {
      value: '123'
    }
  },
  methods: {
    async handleClick() {
      const data = await getDictDesign()
      console.log(data)
    }
  }
}
</script>
<style lang="scss">
</style>
