|
@@ -1,13 +1,8 @@
|
|
|
import Renders from '../utils/RenderUtils.js';
|
|
import Renders from '../utils/RenderUtils.js';
|
|
|
|
|
|
|
|
function converter(data) {
|
|
function converter(data) {
|
|
|
- let { title, content } = data;
|
|
|
|
|
- // title = {
|
|
|
|
|
- // config: {
|
|
|
|
|
- // render: 'titleRender'
|
|
|
|
|
- // }
|
|
|
|
|
- // }
|
|
|
|
|
- let { items } = content;
|
|
|
|
|
|
|
+ let { content } = data;
|
|
|
|
|
+ let { title, items } = content;
|
|
|
let itemsarr = items instanceof Array ? items : [items];
|
|
let itemsarr = items instanceof Array ? items : [items];
|
|
|
|
|
|
|
|
let me = this;
|
|
let me = this;
|
|
@@ -69,7 +64,6 @@ function formConfig(model) {
|
|
|
function tableConfig(model) {
|
|
function tableConfig(model) {
|
|
|
let { type, config, layout } = model;
|
|
let { type, config, layout } = model;
|
|
|
let { fontSize, title, cls, render, columns, data, rowHeight} = config;
|
|
let { fontSize, title, cls, render, columns, data, rowHeight} = config;
|
|
|
-
|
|
|
|
|
return {
|
|
return {
|
|
|
type: 'table',
|
|
type: 'table',
|
|
|
config: {
|
|
config: {
|
|
@@ -393,7 +387,6 @@ function getScreenSize() {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
function getFontSize(layout) {
|
|
function getFontSize(layout) {
|
|
|
- const MAX_FONT_SIZE = 25;
|
|
|
|
|
let {screenHeight, screenWidth} = getScreenSize();
|
|
let {screenHeight, screenWidth} = getScreenSize();
|
|
|
if(screenWidth > 800) {
|
|
if(screenWidth > 800) {
|
|
|
return 22;
|
|
return 22;
|