| | |
| | | <div :class="bem()" class="flex px-2 py-1.5 items-center"> |
| | | <slot name="headerTitle" v-if="slots.headerTitle"></slot> |
| | | <button type="primary" v-if="add" style="background-color: transparent;" @click="Add"> |
| | | <Icon icon="add|svg" /> |
| | | <Icon icon="add_01|svg" /> |
| | | </button> |
| | | <BasicTitle :helpMessage="helpMessage" v-if="!slots.headerTitle && title"> |
| | | {{ title }} |
| | |
| | | type: Function, |
| | | default: undefined, |
| | | }, |
| | | addHouse: { |
| | | type: Function, |
| | | default: undefined, |
| | | }, |
| | | } as const); |
| | | const emit = defineEmits(['strictly-change', 'search']); |
| | | const emit = defineEmits(['strictly-change', 'search', 'handleAdd']); |
| | | |
| | | const slots = useSlots(); |
| | | const { t } = useI18n(); |
| | |
| | | |
| | | function Add(e: { key: ToolbarEnum }) { |
| | | // alert(999) |
| | | props.addHouse?.(false); |
| | | emit('handleAdd'); |
| | | } |
| | | |
| | | function emitChange(value?: string): void { |