wupengfei
2025-02-13 c369c4e2f7ad0d4cc5581bba762ad0494973c092
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
39
<template>
  <div class="common-input-field-wrapper">
    <div class="common-input-field">
      <slot></slot>
    </div>
    <RectRight :size="12" class="common-input-field-icon" />
  </div>
</template>
 
<script setup lang="ts">
import { RectRight } from '@nutui/icons-vue-taro';
 
defineOptions({
  name: 'CommonInputField',
});
 
// type Props = {};
 
// const props = withDefaults(defineProps<Props>(), {});
</script>
 
<style lang="scss">
@import '@/styles/common.scss';
 
.common-input-field-wrapper {
  display: flex;
  width: 100%;
 
  .common-input-field {
    flex: 1;
    min-width: 0;
  }
 
  .common-input-field-icon {
    margin-left: 18px;
    color: boleGetCssVar('text-color', 'primary');
  }
}
</style>