1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
| <template>
| <a-textarea class="mars-textarea" v-bind="attrs">
| <template v-for="(comp, name) in slots" :key="name" v-slot:[name]>
| <component :is="comp" />
| </template>
| </a-textarea>
| </template>
| <script lang="ts">
| import { useAttrs, useSlots, defineComponent } from "vue"
| export default defineComponent({
| name: "mars-textarea",
| inheritAttrs: false,
| setup() {
| const attrs = useAttrs()
| const slots = useSlots()
| return {
| attrs,
| slots
| }
| }
| })
| </script>
| <style lang="less" scoped>
| .mars-textarea {
| color: @mars-base-color;
| background-color: @mars-bg-base !important;
| :deep(.ant-input) {
| background-color: @mars-bg-base !important;
| color: @mars-base-color;
| }
| :deep(.ant-input-suffix .anticon) {
| color: @mars-base-color;
| }
| }
| .mars-textarea[disabled]{
| color: @mars-disable-btn-bg;
| }
| </style>
|
|