|
|
@ -4,7 +4,7 @@ |
|
|
|
<div class="tableNavLeftBtns"> |
|
|
|
<ButtonBase |
|
|
|
:Butttondata="buttonsLeft" |
|
|
|
@buttonBaseClick="buttonBaseClick" |
|
|
|
@button-base-click="buttonBaseClick" |
|
|
|
/> |
|
|
|
</div> |
|
|
|
<div class="tableNavRightBtns"> |
|
|
@ -18,7 +18,7 @@ |
|
|
|
style="margin-right: 15px;" |
|
|
|
></SearchNormal> --> |
|
|
|
<!-- 右侧按钮 --> |
|
|
|
<ButtonBase :Butttondata="buttonsRight" @buttonBaseClick="buttonBaseClick" /> |
|
|
|
<ButtonBase :Butttondata="buttonsRight" @button-base-click="buttonBaseClick" /> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<slot></slot> |
|
|
@ -26,6 +26,7 @@ |
|
|
|
</template> |
|
|
|
<script setup> |
|
|
|
import ButtonBase from '@/components/XButton/src/ButtonBase.vue' |
|
|
|
import * as defaultButtons from '@/utils/disposition/defaultButtons' |
|
|
|
// import SearchNormal from '@/components/SearchNormal/index.vue' |
|
|
|
// import * as highSearch from '@/utils/search/highSearch' |
|
|
|
// import * as primarySearch from '@/utils/search/primarySearch' |
|
|
@ -63,7 +64,12 @@ import ButtonBase from '@/components/XButton/src/ButtonBase.vue' |
|
|
|
// buttonsRight.value.push(defaultButtons.defaultFilterBtn()) |
|
|
|
// } |
|
|
|
// 父级传参处理左右 |
|
|
|
props.HeadButttondata.forEach(item=>{ |
|
|
|
const buttonData = ref([]) |
|
|
|
// 默认按钮 刷新 和 设置 |
|
|
|
buttonData.value.push(defaultButtons.defaultFreshBtn(null)) |
|
|
|
buttonData.value.push(defaultButtons.defaultSetBtn(null)) |
|
|
|
buttonData.value = [...buttonData.value,...props.HeadButttondata] |
|
|
|
buttonData.value.forEach(item=>{ |
|
|
|
if(item.float && item.float == 'right'){ |
|
|
|
buttonsRight.value.push(item) |
|
|
|
}else{ |
|
|
|