rayyy-vue-table-components 1.0.27 → 1.0.28

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -40,11 +40,7 @@ const clearableClick = () => {
40
40
  @keydown.enter="doSearch"
41
41
  @update:clearValue="clearableClick"
42
42
  class="search-input_inner"
43
- >
44
- <template #prefix>
45
- <el-icon><Search /></el-icon>
46
- </template>
47
- </base-input>
43
+ />
48
44
  </div>
49
45
 
50
46
  <div class="filter-customer" v-if="showFilter">
@@ -12,15 +12,15 @@
12
12
  clearable
13
13
  @clear="handlerClear"
14
14
  >
15
- <template v-if="slots.prefix" #prefix>
16
- <slot name="prefix" class="h-4" />
15
+ <template #prefix>
16
+ <el-icon><Search /></el-icon>
17
17
  </template>
18
- <template v-if="slots.append" #append><slot name="append" /></template>
19
18
  </el-input>
20
19
  </template>
21
20
 
22
21
  <script lang="ts" setup>
23
- import { computed, useSlots } from 'vue'
22
+ import { computed } from 'vue'
23
+ import { Search } from '@element-plus/icons-vue'
24
24
 
25
25
  const props = defineProps<{
26
26
  modelValue?: string | number | null
@@ -40,8 +40,6 @@ const emits = defineEmits<{
40
40
  (e: 'update:clearValue'): void
41
41
  }>()
42
42
 
43
- const slots = useSlots()
44
-
45
43
  const v = computed({
46
44
  get: () => props.modelValue,
47
45
  set: (val: string | number | null | undefined) => emits('update:modelValue', val),