Browse Source

YT-703库存余额,打印标签,现刚进入页面这样(如图),选择后变成如图,应一直保持选择后的样式,大小页面一致

intex_online20241111
张立 3 months ago
parent
commit
9ec4813ffc
  1. 27
      src/directives/permission/clientTable.ts

27
src/directives/permission/clientTable.ts

@ -27,18 +27,21 @@ export function clientTable(app: App<Element>) {
app.directive('clientSearchTable', (el, binding) => { app.directive('clientSearchTable', (el, binding) => {
nextTick(() => { nextTick(() => {
const top = el.getBoundingClientRect().top
const qustionHeight = 150 setTimeout(() => {
let paginationHeight = 0 const top = el.getBoundingClientRect().top
if(el.children&&el.children.length>1){ const qustionHeight = 260
paginationHeight = 70 let paginationHeight = 0
} if (el.children && el.children.length > 1) {
const height = window.innerHeight - top - paginationHeight - qustionHeight paginationHeight = 70
if(el.getBoundingClientRect().height>height){ }
console.log('高度',el.getBoundingClientRect().height) const height = window.innerHeight - paginationHeight - qustionHeight
el.style.height = height + 'px' if (el.getBoundingClientRect().height > height) {
el.firstChild.style.height = '100%' el.style.height = height + 'px'
} el.firstChild.style.height = '100%'
}
})
}) })
}) })
app.directive('clientTableForm', (el, binding) => { app.directive('clientTableForm', (el, binding) => {

Loading…
Cancel
Save