zhuoyuan.wang
2024-06-19 15ebe96f28cadec6a726c5324593a40bbf56205f
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
<template>
  <div class="app-field-input-dialog">
    <app-text-ellipsis
      class="context"
      :value="props.value"
    />
    <el-button type="primary" class="button" @click="subClick">...
    </el-button>
  </div>
</template>
 
<script setup>
 
const props = defineProps({
  value: {
    type: String,
    default: ''
  },
  subClick: {
    type: Function,
    default: () => {
    }
  }
});
 
const subClick = () => {
  props.subClick();
};
 
</script>
 
<style lang="scss">
.app-field-input-dialog {
  width: 100%;
  position: relative;
 
  .context {
    position: absolute;
    bottom: -15px;
    left: 0;
    right: 50px;;
    border-bottom: 1px solid var(--el-border-color);
  }
 
  .button {
    background-color: var(--el-color-primary) !important;
    color: white !important;
    position: absolute;
    right: 0;
    top: -15px;
  }
}
</style>