|
|
|
|
@ -65,7 +65,7 @@ let dynamicTable = resource => {
|
|
|
|
|
`;
|
|
|
|
|
//Css样式集
|
|
|
|
|
const boxCSS = {
|
|
|
|
|
overflow: 'hidden',
|
|
|
|
|
// overflow: 'hidden',
|
|
|
|
|
background: headerBGC
|
|
|
|
|
};
|
|
|
|
|
const tableCSS = {
|
|
|
|
|
@ -92,7 +92,8 @@ let dynamicTable = resource => {
|
|
|
|
|
const tbodyCSS = {
|
|
|
|
|
width: "100%",
|
|
|
|
|
height: '80%',
|
|
|
|
|
boxSizing: 'border-box'
|
|
|
|
|
boxSizing: 'border-box',
|
|
|
|
|
overflow:'hidden'
|
|
|
|
|
};
|
|
|
|
|
const tbody_trCSS = {
|
|
|
|
|
flexWrap: "nowrap",
|
|
|
|
|
@ -257,9 +258,9 @@ const tableAnimation = (el) => {
|
|
|
|
|
}, 2000);
|
|
|
|
|
}
|
|
|
|
|
const flip = (el, time = 2000) => {
|
|
|
|
|
console.log($(el + '>.table>.tbody').scrollTop())
|
|
|
|
|
console.log($(el + '>.table>.tbody').outerHeight(true))
|
|
|
|
|
setInterval(function () {
|
|
|
|
|
console.log($(el + '>.table>.tbody').scrollTop())
|
|
|
|
|
console.log($(el + '>.table>.tbody').outerHeight(true))
|
|
|
|
|
$(el + '>.table>.tbody').animate({
|
|
|
|
|
scrollTop: $(el + '>.table>.tbody').scrollTop() + $(el + '>.table>.tbody').outerHeight(true)
|
|
|
|
|
}, 2000)
|
|
|
|
|
|