tianheng-ui 0.1.81 → 0.1.84
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +72 -15
- package/lib/theme-chalk/fonts/formMaking-iconfont.svg +155 -155
- package/lib/theme-chalk/fonts/th-iconfont.css +2402 -2402
- package/lib/theme-chalk/js/axios.js +87 -87
- package/lib/tianheng-ui.js +13 -13
- package/package.json +87 -86
- package/packages/CodeEditor/index.vue +3 -2
- package/packages/FormMaking/GenerateForm.vue +392 -392
- package/packages/FormMaking/Upload/index.vue +571 -571
- package/packages/FormMaking/WidgetFooter.vue +16 -0
- package/packages/FormMaking/WidgetForm.vue +145 -146
- package/packages/FormMaking/WidgetTools.vue +21 -16
- package/packages/FormMaking/custom/config.js +120 -2
- package/packages/FormMaking/custom/configs/number.vue +0 -5
- package/packages/FormMaking/custom/configs/page-table.vue +146 -0
- package/packages/FormMaking/custom/index.js +1 -1
- package/packages/FormMaking/custom/items/page-table.vue +250 -0
- package/packages/FormMaking/custom/register.js +43 -43
- package/packages/FormMaking/iconfont/demo.css +539 -539
- package/packages/FormMaking/iconfont/demo_index.html +1159 -1159
- package/packages/FormMaking/iconfont/formMaking-iconfont.css +189 -189
- package/packages/FormMaking/iconfont/formMaking-iconfont.svg +155 -155
- package/packages/FormMaking/index.js +33 -33
- package/packages/FormMaking/index.vue +6 -1
- package/packages/FormMaking/lang/en-US.js +187 -187
- package/packages/FormMaking/lang/zh-CN.js +187 -187
- package/packages/FormMaking/network/axios.js +88 -88
- package/packages/FormMaking/styles/index.scss +216 -216
- package/packages/FormMaking/util/generateCode.js +427 -157
- package/packages/FormMaking/util/index.js +98 -98
- package/packages/TableMaking/network/axios.js +88 -88
- package/packages/TableMaking/widgetConfig.vue +1 -1
@@ -1,216 +1,216 @@
|
|
1
|
-
@import "../../../lib/theme-chalk/styles/variable.scss";
|
2
|
-
|
3
|
-
.th-formMaking {
|
4
|
-
// 组件拖拽区的操作样式
|
5
|
-
.widget-actions {
|
6
|
-
.actions {
|
7
|
-
position: absolute;
|
8
|
-
right: -2px;
|
9
|
-
bottom: -2px;
|
10
|
-
display: flex;
|
11
|
-
z-index: 9;
|
12
|
-
|
13
|
-
> div {
|
14
|
-
display: inline-block;
|
15
|
-
width: 20px;
|
16
|
-
height: 20px;
|
17
|
-
line-height: 20px;
|
18
|
-
text-align: center;
|
19
|
-
background: $color-parimary-active;
|
20
|
-
}
|
21
|
-
i {
|
22
|
-
font-size: 12px;
|
23
|
-
color: #fff;
|
24
|
-
cursor: pointer;
|
25
|
-
}
|
26
|
-
}
|
27
|
-
|
28
|
-
.drag {
|
29
|
-
position: absolute;
|
30
|
-
left: -2px;
|
31
|
-
bottom: -2px;
|
32
|
-
width: 20px;
|
33
|
-
height: 20px;
|
34
|
-
line-height: 20px;
|
35
|
-
text-align: center;
|
36
|
-
background: $color-parimary-active;
|
37
|
-
z-index: 9;
|
38
|
-
|
39
|
-
i {
|
40
|
-
font-size: 14px;
|
41
|
-
color: #fff;
|
42
|
-
cursor: move;
|
43
|
-
}
|
44
|
-
}
|
45
|
-
|
46
|
-
&.widget-actions-col {
|
47
|
-
.clone {
|
48
|
-
background: $color-warning-active !important;
|
49
|
-
}
|
50
|
-
.trash {
|
51
|
-
background: $color-warning-active !important;
|
52
|
-
}
|
53
|
-
.drag {
|
54
|
-
background: $color-warning-active !important;
|
55
|
-
}
|
56
|
-
}
|
57
|
-
}
|
58
|
-
|
59
|
-
// draggable 拖拽时的占位样式
|
60
|
-
.draggable-ghost {
|
61
|
-
padding: 0px;
|
62
|
-
height: 52px;
|
63
|
-
font-size: 0;
|
64
|
-
background-color: $color-danger-hover;
|
65
|
-
box-sizing: border-box;
|
66
|
-
overflow: hidden;
|
67
|
-
content: "";
|
68
|
-
// 隐藏内容
|
69
|
-
i {
|
70
|
-
display: none;
|
71
|
-
}
|
72
|
-
}
|
73
|
-
|
74
|
-
// draggable 拖拽列表样式
|
75
|
-
.draggable-list {
|
76
|
-
min-height: 52px;
|
77
|
-
background-color: #fff;
|
78
|
-
border: 1px dashed rgba(170, 170, 170, 0.7);
|
79
|
-
}
|
80
|
-
|
81
|
-
.widgetForm {
|
82
|
-
.isHideFormLabel {
|
83
|
-
.el-form-item__label {
|
84
|
-
display: none;
|
85
|
-
}
|
86
|
-
.el-form-item__content {
|
87
|
-
margin-left: 0 !important;
|
88
|
-
}
|
89
|
-
}
|
90
|
-
|
91
|
-
.widgetFormItem {
|
92
|
-
margin: 2px;
|
93
|
-
padding-bottom: 18px;
|
94
|
-
min-width: 120px;
|
95
|
-
position: relative;
|
96
|
-
background-color: rgba($color-parimary-lighter, 0.3);
|
97
|
-
border: 1px dashed rgba(170, 170, 170, 0.7);
|
98
|
-
|
99
|
-
// 解决复制、删除、移动按钮的位置问题
|
100
|
-
.el-form-item__content {
|
101
|
-
position: unset;
|
102
|
-
}
|
103
|
-
|
104
|
-
&.isActive {
|
105
|
-
outline: 2px solid $color-parimary-active;
|
106
|
-
border: 1px solid $color-parimary-active;
|
107
|
-
}
|
108
|
-
|
109
|
-
&.isLayout {
|
110
|
-
padding-bottom: 0;
|
111
|
-
padding: 5px;
|
112
|
-
margin-left: 2px !important;
|
113
|
-
margin-right: 2px !important;
|
114
|
-
background-color: rgba($color-warning-lighter, 0.3);
|
115
|
-
|
116
|
-
&.isActive {
|
117
|
-
outline: 2px solid $color-warning-active !important;
|
118
|
-
border: 1px solid $color-warning-active !important;
|
119
|
-
}
|
120
|
-
|
121
|
-
&:hover {
|
122
|
-
background-color: $color-warning-lighter;
|
123
|
-
outline: 1px solid $color-warning-active;
|
124
|
-
outline-offset: 0px;
|
125
|
-
}
|
126
|
-
}
|
127
|
-
|
128
|
-
&:hover {
|
129
|
-
background-color: $color-parimary-lighter;
|
130
|
-
outline: 1px solid $color-parimary-active;
|
131
|
-
outline-offset: 0px;
|
132
|
-
|
133
|
-
&.isActive {
|
134
|
-
outline: 2px solid $color-parimary-active;
|
135
|
-
border: 1px solid $color-parimary-active;
|
136
|
-
outline-offset: 0;
|
137
|
-
}
|
138
|
-
}
|
139
|
-
}
|
140
|
-
}
|
141
|
-
|
142
|
-
// 组件config配置视图样式
|
143
|
-
.component-config {
|
144
|
-
.config-header {
|
145
|
-
display: flex;
|
146
|
-
align-items: center;
|
147
|
-
justify-content: space-between;
|
148
|
-
|
149
|
-
.title {
|
150
|
-
}
|
151
|
-
|
152
|
-
.value {
|
153
|
-
color: $color-parimary;
|
154
|
-
cursor: pointer;
|
155
|
-
}
|
156
|
-
}
|
157
|
-
|
158
|
-
.eventsCollapse {
|
159
|
-
border: 1px solid #ebeef5;
|
160
|
-
border-bottom-color: #e1e1e1;
|
161
|
-
|
162
|
-
&-item {
|
163
|
-
display: flex;
|
164
|
-
align-items: center;
|
165
|
-
|
166
|
-
.el-select {
|
167
|
-
flex: 1;
|
168
|
-
margin-right: 5px;
|
169
|
-
}
|
170
|
-
|
171
|
-
> i {
|
172
|
-
padding: 5px;
|
173
|
-
cursor: pointer;
|
174
|
-
}
|
175
|
-
}
|
176
|
-
|
177
|
-
.el-collapse-item__header {
|
178
|
-
padding: 5px;
|
179
|
-
height: 30px;
|
180
|
-
line-height: 30px;
|
181
|
-
font-size: 12px;
|
182
|
-
background: #f5f7fa;
|
183
|
-
}
|
184
|
-
|
185
|
-
.el-collapse-item__content {
|
186
|
-
padding: 5px;
|
187
|
-
}
|
188
|
-
}
|
189
|
-
|
190
|
-
.el-form-item__label {
|
191
|
-
width: 100%;
|
192
|
-
}
|
193
|
-
|
194
|
-
.flexView {
|
195
|
-
display: flex;
|
196
|
-
margin-bottom: 5px;
|
197
|
-
}
|
198
|
-
}
|
199
|
-
}
|
200
|
-
|
201
|
-
// 组件内联样式
|
202
|
-
.component-table {
|
203
|
-
.el-form-item__label {
|
204
|
-
float: none !important;
|
205
|
-
}
|
206
|
-
.el-form-item__content {
|
207
|
-
margin-left: 0 !important;
|
208
|
-
}
|
209
|
-
}
|
210
|
-
|
211
|
-
// 组件头部标题统一样式
|
212
|
-
.component-header_title {
|
213
|
-
margin-bottom: 5px;
|
214
|
-
font-size: 16px;
|
215
|
-
font-weight: bold;
|
216
|
-
}
|
1
|
+
@import "../../../lib/theme-chalk/styles/variable.scss";
|
2
|
+
|
3
|
+
.th-formMaking {
|
4
|
+
// 组件拖拽区的操作样式
|
5
|
+
.widget-actions {
|
6
|
+
.actions {
|
7
|
+
position: absolute;
|
8
|
+
right: -2px;
|
9
|
+
bottom: -2px;
|
10
|
+
display: flex;
|
11
|
+
z-index: 9;
|
12
|
+
|
13
|
+
> div {
|
14
|
+
display: inline-block;
|
15
|
+
width: 20px;
|
16
|
+
height: 20px;
|
17
|
+
line-height: 20px;
|
18
|
+
text-align: center;
|
19
|
+
background: $color-parimary-active;
|
20
|
+
}
|
21
|
+
i {
|
22
|
+
font-size: 12px;
|
23
|
+
color: #fff;
|
24
|
+
cursor: pointer;
|
25
|
+
}
|
26
|
+
}
|
27
|
+
|
28
|
+
.drag {
|
29
|
+
position: absolute;
|
30
|
+
left: -2px;
|
31
|
+
bottom: -2px;
|
32
|
+
width: 20px;
|
33
|
+
height: 20px;
|
34
|
+
line-height: 20px;
|
35
|
+
text-align: center;
|
36
|
+
background: $color-parimary-active;
|
37
|
+
z-index: 9;
|
38
|
+
|
39
|
+
i {
|
40
|
+
font-size: 14px;
|
41
|
+
color: #fff;
|
42
|
+
cursor: move;
|
43
|
+
}
|
44
|
+
}
|
45
|
+
|
46
|
+
&.widget-actions-col {
|
47
|
+
.clone {
|
48
|
+
background: $color-warning-active !important;
|
49
|
+
}
|
50
|
+
.trash {
|
51
|
+
background: $color-warning-active !important;
|
52
|
+
}
|
53
|
+
.drag {
|
54
|
+
background: $color-warning-active !important;
|
55
|
+
}
|
56
|
+
}
|
57
|
+
}
|
58
|
+
|
59
|
+
// draggable 拖拽时的占位样式
|
60
|
+
.draggable-ghost {
|
61
|
+
padding: 0px;
|
62
|
+
height: 52px;
|
63
|
+
font-size: 0;
|
64
|
+
background-color: $color-danger-hover;
|
65
|
+
box-sizing: border-box;
|
66
|
+
overflow: hidden;
|
67
|
+
content: "";
|
68
|
+
// 隐藏内容
|
69
|
+
i {
|
70
|
+
display: none;
|
71
|
+
}
|
72
|
+
}
|
73
|
+
|
74
|
+
// draggable 拖拽列表样式
|
75
|
+
.draggable-list {
|
76
|
+
min-height: 52px;
|
77
|
+
background-color: #fff;
|
78
|
+
border: 1px dashed rgba(170, 170, 170, 0.7);
|
79
|
+
}
|
80
|
+
|
81
|
+
.widgetForm {
|
82
|
+
.isHideFormLabel {
|
83
|
+
.el-form-item__label {
|
84
|
+
display: none;
|
85
|
+
}
|
86
|
+
.el-form-item__content {
|
87
|
+
margin-left: 0 !important;
|
88
|
+
}
|
89
|
+
}
|
90
|
+
|
91
|
+
.widgetFormItem {
|
92
|
+
margin: 2px;
|
93
|
+
padding-bottom: 18px;
|
94
|
+
min-width: 120px;
|
95
|
+
position: relative;
|
96
|
+
background-color: rgba($color-parimary-lighter, 0.3);
|
97
|
+
border: 1px dashed rgba(170, 170, 170, 0.7);
|
98
|
+
|
99
|
+
// 解决复制、删除、移动按钮的位置问题
|
100
|
+
.el-form-item__content {
|
101
|
+
position: unset;
|
102
|
+
}
|
103
|
+
|
104
|
+
&.isActive {
|
105
|
+
outline: 2px solid $color-parimary-active;
|
106
|
+
border: 1px solid $color-parimary-active;
|
107
|
+
}
|
108
|
+
|
109
|
+
&.isLayout {
|
110
|
+
padding-bottom: 0;
|
111
|
+
padding: 5px;
|
112
|
+
margin-left: 2px !important;
|
113
|
+
margin-right: 2px !important;
|
114
|
+
background-color: rgba($color-warning-lighter, 0.3);
|
115
|
+
|
116
|
+
&.isActive {
|
117
|
+
outline: 2px solid $color-warning-active !important;
|
118
|
+
border: 1px solid $color-warning-active !important;
|
119
|
+
}
|
120
|
+
|
121
|
+
&:hover {
|
122
|
+
background-color: $color-warning-lighter;
|
123
|
+
outline: 1px solid $color-warning-active;
|
124
|
+
outline-offset: 0px;
|
125
|
+
}
|
126
|
+
}
|
127
|
+
|
128
|
+
&:hover {
|
129
|
+
background-color: $color-parimary-lighter;
|
130
|
+
outline: 1px solid $color-parimary-active;
|
131
|
+
outline-offset: 0px;
|
132
|
+
|
133
|
+
&.isActive {
|
134
|
+
outline: 2px solid $color-parimary-active;
|
135
|
+
border: 1px solid $color-parimary-active;
|
136
|
+
outline-offset: 0;
|
137
|
+
}
|
138
|
+
}
|
139
|
+
}
|
140
|
+
}
|
141
|
+
|
142
|
+
// 组件config配置视图样式
|
143
|
+
.component-config {
|
144
|
+
.config-header {
|
145
|
+
display: flex;
|
146
|
+
align-items: center;
|
147
|
+
justify-content: space-between;
|
148
|
+
|
149
|
+
.title {
|
150
|
+
}
|
151
|
+
|
152
|
+
.value {
|
153
|
+
color: $color-parimary;
|
154
|
+
cursor: pointer;
|
155
|
+
}
|
156
|
+
}
|
157
|
+
|
158
|
+
.eventsCollapse {
|
159
|
+
border: 1px solid #ebeef5;
|
160
|
+
border-bottom-color: #e1e1e1;
|
161
|
+
|
162
|
+
&-item {
|
163
|
+
display: flex;
|
164
|
+
align-items: center;
|
165
|
+
|
166
|
+
.el-select {
|
167
|
+
flex: 1;
|
168
|
+
margin-right: 5px;
|
169
|
+
}
|
170
|
+
|
171
|
+
> i {
|
172
|
+
padding: 5px;
|
173
|
+
cursor: pointer;
|
174
|
+
}
|
175
|
+
}
|
176
|
+
|
177
|
+
.el-collapse-item__header {
|
178
|
+
padding: 5px;
|
179
|
+
height: 30px;
|
180
|
+
line-height: 30px;
|
181
|
+
font-size: 12px;
|
182
|
+
background: #f5f7fa;
|
183
|
+
}
|
184
|
+
|
185
|
+
.el-collapse-item__content {
|
186
|
+
padding: 5px;
|
187
|
+
}
|
188
|
+
}
|
189
|
+
|
190
|
+
.el-form-item__label {
|
191
|
+
width: 100%;
|
192
|
+
}
|
193
|
+
|
194
|
+
.flexView {
|
195
|
+
display: flex;
|
196
|
+
margin-bottom: 5px;
|
197
|
+
}
|
198
|
+
}
|
199
|
+
}
|
200
|
+
|
201
|
+
// 组件内联样式
|
202
|
+
.component-table {
|
203
|
+
.el-form-item__label {
|
204
|
+
float: none !important;
|
205
|
+
}
|
206
|
+
.el-form-item__content {
|
207
|
+
margin-left: 0 !important;
|
208
|
+
}
|
209
|
+
}
|
210
|
+
|
211
|
+
// 组件头部标题统一样式
|
212
|
+
.component-header_title {
|
213
|
+
margin-bottom: 5px;
|
214
|
+
font-size: 16px;
|
215
|
+
font-weight: bold;
|
216
|
+
}
|