configSamples.js
4.68 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
export default {
valid: [
{
columns: {
0: {
alignment: 'left',
// minWidth: 10,
width: 10
},
1: {
alignment: 'center',
// minWidth: 10,
width: 10
},
2: {
alignment: 'right',
// minWidth: 10,
width: 10
}
}
},
{
border: {
topBody: `─`,
topJoin: `┬`,
topLeft: `┌`,
topRight: `┐`,
bottomBody: `─`,
bottomJoin: `┴`,
bottomLeft: `└`,
bottomRight: `┘`,
bodyLeft: `│`,
bodyRight: `│`,
bodyJoin: `│`,
joinBody: `─`,
joinLeft: `├`,
joinRight: `┤`,
joinJoin: `┼`
}
},
{
columns: {
0: {
paddingLeft: 3
},
1: {
width: 2,
paddingRight: 3
}
}
},
{
border: {},
columnDefault: {
paddingLeft: 0,
paddingRight: 1
},
// drawJoin: () => {
// return false
// }
},
{
columnDefault: {
width: 50
},
// columnCount: 3,
columns: {
0: {
width: 10,
alignment: 'right'
},
1: {
alignment: 'center',
},
2: {
width: 10
}
}
},
{ border: { topBody: '-' } },
{ border: { topJoin: '-' } },
{ border: { topLeft: '-' } },
{ border: { topRight: '-' } },
{ border: { bottomBody: '-' } },
{ border: { bottomJoin: '-' } },
{ border: { bottomLeft: '-' } },
{ border: { bottomRight: '-' } },
{ border: { bodyLeft: '-' } },
{ border: { bodyRight: '-' } },
{ border: { bodyJoin: '-' } },
{ border: { joinBody: '-' } },
{ border: { joinLeft: '-' } },
{ border: { joinRight: '-' } },
{ border: { joinJoin: '-' } },
{ columns: { '1': { alignment: 'left' } } },
{ columns: { '1': { width: 5 } } },
{ columns: { '1': { wrapWord: true } } },
{ columns: { '1': { truncate: 1 } } },
{ columns: { '1': { paddingLeft: 1 } } },
{ columns: { '1': { paddingRight: 1 } } },
{ columnDefault: { alignment: 'left' } },
{ columnDefault: { width: 5 } },
{ columnDefault: { wrapWord: true } },
{ columnDefault: { truncate: 1 } },
{ columnDefault: { paddingLeft: 1 } },
{ columnDefault: { paddingRight: 1 } },
{ drawHorizontalLine: function(){} }
],
invalid: [
{ border: 1 },
{ border: { unknown: '-' } },
{ border: { topBody: 1 } },
{ border: { topJoin: 1 } },
{ border: { topLeft: 1 } },
{ border: { topRight: 1 } },
{ border: { bottomBody: 1 } },
{ border: { bottomJoin: 1 } },
{ border: { bottomLeft: 1 } },
{ border: { bottomRight: 1 } },
{ border: { bodyLeft: 1 } },
{ border: { bodyRight: 1 } },
{ border: { bodyJoin: 1 } },
{ border: { joinBody: 1 } },
{ border: { joinLeft: 1 } },
{ border: { joinRight: 1 } },
{ border: { joinJoin: 1 } },
{ columns: 1 },
{ columns: { a: { width: 5 } } },
{ columns: { '1': 1 } },
{ columns: { '1': { unknown: 1 } } },
{ columns: { '1': { alignment: 1 } } },
{ columns: { '1': { alignment: '1' } } },
{ columns: { '1': { width: '5' } } },
{ columns: { '1': { wrapWord: 1 } } },
{ columns: { '1': { truncate: '1' } } },
{ columns: { '1': { paddingLeft: '1' } } },
{ columns: { '1': { paddingRight: '1' } } },
{ columnDefault: 1 },
{ columnDefault: { unknown: 1 } },
{ columnDefault: { alignment: 1 } },
{ columnDefault: { alignment: '1' } },
{ columnDefault: { width: '5' } },
{ columnDefault: { wrapWord: 1 } },
{ columnDefault: { truncate: '1' } },
{ columnDefault: { paddingLeft: '1' } },
{ columnDefault: { paddingRight: '1' } },
{ drawHorizontalLine: 1 },
{ unknown: 1 }
]
};