vxe-design 0.0.1 → 3.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (219) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +48 -0
  3. package/es/components.js +28 -0
  4. package/es/flow-design/index.js +15 -0
  5. package/es/flow-design/src/flow-design.js +50 -0
  6. package/es/flow-design/src/flow-view.js +50 -0
  7. package/es/flow-design/style.css +0 -0
  8. package/es/flow-design/style.min.css +0 -0
  9. package/es/flow-view/index.js +15 -0
  10. package/es/flow-view/style.css +0 -0
  11. package/es/flow-view/style.min.css +0 -0
  12. package/es/form-design/index.js +15 -0
  13. package/es/form-design/src/form-design.js +96 -0
  14. package/es/form-design/src/form-view.js +54 -0
  15. package/es/form-design/style.css +831 -0
  16. package/es/form-design/style.min.css +1 -0
  17. package/es/form-view/index.js +15 -0
  18. package/es/form-view/style.css +3 -0
  19. package/es/form-view/style.min.css +1 -0
  20. package/es/index.esm.js +6 -0
  21. package/es/list-design/index.js +15 -0
  22. package/es/list-design/src/list-design.js +55 -0
  23. package/es/list-design/src/list-view.js +59 -0
  24. package/es/list-design/style.css +332 -0
  25. package/es/list-design/style.min.css +1 -0
  26. package/es/list-view/index.js +15 -0
  27. package/es/list-view/style.css +15 -0
  28. package/es/list-view/style.min.css +1 -0
  29. package/es/style.css +1 -0
  30. package/es/style.min.css +1 -0
  31. package/es/ui/index.js +40 -0
  32. package/es/ui/src/comp.js +1 -0
  33. package/es/ui/src/depend.js +14 -0
  34. package/es/ui/src/dom.js +221 -0
  35. package/es/ui/src/log.js +15 -0
  36. package/es/ui/src/utils.js +41 -0
  37. package/es/ui/src/vn.js +45 -0
  38. package/es/ui/style.css +0 -0
  39. package/es/ui/style.min.css +0 -0
  40. package/es/vxe-flow-design/index.js +3 -0
  41. package/es/vxe-flow-design/style.css +0 -0
  42. package/es/vxe-flow-design/style.min.css +0 -0
  43. package/es/vxe-flow-view/index.js +3 -0
  44. package/es/vxe-flow-view/style.css +0 -0
  45. package/es/vxe-flow-view/style.min.css +0 -0
  46. package/es/vxe-form-design/index.js +3 -0
  47. package/es/vxe-form-design/style.css +831 -0
  48. package/es/vxe-form-design/style.min.css +1 -0
  49. package/es/vxe-form-view/index.js +3 -0
  50. package/es/vxe-form-view/style.css +3 -0
  51. package/es/vxe-form-view/style.min.css +1 -0
  52. package/es/vxe-list-design/index.js +3 -0
  53. package/es/vxe-list-design/style.css +332 -0
  54. package/es/vxe-list-design/style.min.css +1 -0
  55. package/es/vxe-list-view/index.js +3 -0
  56. package/es/vxe-list-view/style.css +15 -0
  57. package/es/vxe-list-view/style.min.css +1 -0
  58. package/es/vxe-ui/index.js +3 -0
  59. package/es/vxe-ui/style.css +0 -0
  60. package/es/vxe-ui/style.min.css +0 -0
  61. package/helper/vetur/attributes.json +1 -0
  62. package/helper/vetur/tags.json +1 -0
  63. package/lib/components.js +102 -0
  64. package/lib/components.min.js +1 -0
  65. package/lib/flow-design/index.js +22 -0
  66. package/lib/flow-design/index.min.js +1 -0
  67. package/lib/flow-design/src/flow-design.js +59 -0
  68. package/lib/flow-design/src/flow-design.min.js +1 -0
  69. package/lib/flow-design/src/flow-view.js +59 -0
  70. package/lib/flow-design/src/flow-view.min.js +1 -0
  71. package/lib/flow-design/style/index.js +1 -0
  72. package/lib/flow-design/style/style.css +0 -0
  73. package/lib/flow-design/style/style.min.css +0 -0
  74. package/lib/flow-view/index.js +22 -0
  75. package/lib/flow-view/index.min.js +1 -0
  76. package/lib/flow-view/style/index.js +1 -0
  77. package/lib/flow-view/style/style.css +0 -0
  78. package/lib/flow-view/style/style.min.css +0 -0
  79. package/lib/form-design/index.js +22 -0
  80. package/lib/form-design/index.min.js +1 -0
  81. package/lib/form-design/src/form-design.js +120 -0
  82. package/lib/form-design/src/form-design.min.js +1 -0
  83. package/lib/form-design/src/form-view.js +63 -0
  84. package/lib/form-design/src/form-view.min.js +1 -0
  85. package/lib/form-design/style/index.js +1 -0
  86. package/lib/form-design/style/style.css +831 -0
  87. package/lib/form-design/style/style.min.css +1 -0
  88. package/lib/form-view/index.js +22 -0
  89. package/lib/form-view/index.min.js +1 -0
  90. package/lib/form-view/style/index.js +1 -0
  91. package/lib/form-view/style/style.css +3 -0
  92. package/lib/form-view/style/style.min.css +1 -0
  93. package/lib/index.common.js +25 -0
  94. package/lib/index.umd.js +6236 -0
  95. package/lib/index.umd.min.js +1 -0
  96. package/lib/list-design/index.js +22 -0
  97. package/lib/list-design/index.min.js +1 -0
  98. package/lib/list-design/src/list-design.js +64 -0
  99. package/lib/list-design/src/list-design.min.js +1 -0
  100. package/lib/list-design/src/list-view.js +67 -0
  101. package/lib/list-design/src/list-view.min.js +1 -0
  102. package/lib/list-design/style/index.js +1 -0
  103. package/lib/list-design/style/style.css +332 -0
  104. package/lib/list-design/style/style.min.css +1 -0
  105. package/lib/list-view/index.js +22 -0
  106. package/lib/list-view/index.min.js +1 -0
  107. package/lib/list-view/style/index.js +1 -0
  108. package/lib/list-view/style/style.css +15 -0
  109. package/lib/list-view/style/style.min.css +1 -0
  110. package/lib/style.css +1 -0
  111. package/lib/style.min.css +1 -0
  112. package/lib/ui/index.js +52 -0
  113. package/lib/ui/index.min.js +1 -0
  114. package/lib/ui/src/comp.js +9 -0
  115. package/lib/ui/src/comp.min.js +1 -0
  116. package/lib/ui/src/depend.js +19 -0
  117. package/lib/ui/src/depend.min.js +1 -0
  118. package/lib/ui/src/dom.js +266 -0
  119. package/lib/ui/src/dom.min.js +1 -0
  120. package/lib/ui/src/log.js +22 -0
  121. package/lib/ui/src/log.min.js +1 -0
  122. package/lib/ui/src/utils.js +56 -0
  123. package/lib/ui/src/utils.min.js +1 -0
  124. package/lib/ui/src/vn.js +57 -0
  125. package/lib/ui/src/vn.min.js +1 -0
  126. package/lib/ui/style/index.js +1 -0
  127. package/lib/ui/style/style.css +0 -0
  128. package/lib/ui/style/style.min.css +0 -0
  129. package/lib/vxe-flow-design/index.js +22 -0
  130. package/lib/vxe-flow-design/index.min.js +1 -0
  131. package/lib/vxe-flow-design/style/index.js +1 -0
  132. package/lib/vxe-flow-design/style/style.css +0 -0
  133. package/lib/vxe-flow-design/style/style.min.css +0 -0
  134. package/lib/vxe-flow-view/index.js +22 -0
  135. package/lib/vxe-flow-view/index.min.js +1 -0
  136. package/lib/vxe-flow-view/style/index.js +1 -0
  137. package/lib/vxe-flow-view/style/style.css +0 -0
  138. package/lib/vxe-flow-view/style/style.min.css +0 -0
  139. package/lib/vxe-form-design/index.js +22 -0
  140. package/lib/vxe-form-design/index.min.js +1 -0
  141. package/lib/vxe-form-design/style/index.js +1 -0
  142. package/lib/vxe-form-design/style/style.css +831 -0
  143. package/lib/vxe-form-design/style/style.min.css +1 -0
  144. package/lib/vxe-form-view/index.js +22 -0
  145. package/lib/vxe-form-view/index.min.js +1 -0
  146. package/lib/vxe-form-view/style/index.js +1 -0
  147. package/lib/vxe-form-view/style/style.css +3 -0
  148. package/lib/vxe-form-view/style/style.min.css +1 -0
  149. package/lib/vxe-list-design/index.js +22 -0
  150. package/lib/vxe-list-design/index.min.js +1 -0
  151. package/lib/vxe-list-design/style/index.js +1 -0
  152. package/lib/vxe-list-design/style/style.css +332 -0
  153. package/lib/vxe-list-design/style/style.min.css +1 -0
  154. package/lib/vxe-list-view/index.js +22 -0
  155. package/lib/vxe-list-view/index.min.js +1 -0
  156. package/lib/vxe-list-view/style/index.js +1 -0
  157. package/lib/vxe-list-view/style/style.css +15 -0
  158. package/lib/vxe-list-view/style/style.min.css +1 -0
  159. package/lib/vxe-ui/index.js +22 -0
  160. package/lib/vxe-ui/index.min.js +1 -0
  161. package/lib/vxe-ui/style/index.js +1 -0
  162. package/lib/vxe-ui/style/style.css +0 -0
  163. package/lib/vxe-ui/style/style.min.css +0 -0
  164. package/package.json +57 -25
  165. package/packages/components.ts +38 -0
  166. package/packages/flow-design/index.ts +19 -0
  167. package/packages/flow-design/src/flow-design.ts +60 -0
  168. package/packages/flow-design/src/flow-view.ts +60 -0
  169. package/packages/flow-view/index.ts +19 -0
  170. package/packages/form-design/index.ts +19 -0
  171. package/packages/form-design/src/form-design.ts +105 -0
  172. package/packages/form-design/src/form-view.ts +63 -0
  173. package/packages/form-view/index.ts +19 -0
  174. package/packages/index.ts +8 -0
  175. package/packages/list-design/index.ts +19 -0
  176. package/packages/list-design/src/list-design.ts +64 -0
  177. package/packages/list-design/src/list-view.ts +68 -0
  178. package/packages/list-view/index.ts +19 -0
  179. package/packages/ui/index.ts +49 -0
  180. package/packages/ui/src/comp.ts +3 -0
  181. package/packages/ui/src/depend.ts +14 -0
  182. package/packages/ui/src/dom.ts +243 -0
  183. package/packages/ui/src/log.ts +19 -0
  184. package/packages/ui/src/utils.ts +51 -0
  185. package/packages/ui/src/vn.ts +53 -0
  186. package/styles/all.scss +8 -0
  187. package/styles/base.scss +2 -0
  188. package/styles/components/flow-design.scss +0 -0
  189. package/styles/components/flow-view.scss +0 -0
  190. package/styles/components/form-design.scss +302 -0
  191. package/styles/components/form-view.scss +3 -0
  192. package/styles/components/list-design.scss +116 -0
  193. package/styles/components/list-item/list-item-all.scss +3 -0
  194. package/styles/components/list-item/list-item-field-column.scss +19 -0
  195. package/styles/components/list-item/list-item-field-configs.scss +43 -0
  196. package/styles/components/list-item/list-item-field-search.scss +81 -0
  197. package/styles/components/list-view.scss +16 -0
  198. package/styles/components/ui.scss +0 -0
  199. package/styles/components/widget-form/widget-form-all.scss +6 -0
  200. package/styles/components/widget-form/widget-form-empty.scss +7 -0
  201. package/styles/components/widget-form/widget-form-input.scss +0 -0
  202. package/styles/components/widget-form/widget-form-row.scss +88 -0
  203. package/styles/components/widget-form/widget-form-select.scss +0 -0
  204. package/styles/components/widget-form/widget-form-subtable.scss +204 -0
  205. package/styles/components/widget-form/widget-form-textarea.scss +0 -0
  206. package/styles/components/widget-item/widget-item-all.scss +4 -0
  207. package/styles/components/widget-item/widget-item-data-source.scss +110 -0
  208. package/styles/components/widget-item/widget-item-devices.scss +4 -0
  209. package/styles/components/widget-item/widget-item-layout.scss +87 -0
  210. package/styles/components/widget-item/widget-item-prop-list.scss +49 -0
  211. package/styles/cssvar.scss +0 -0
  212. package/styles/helpers/baseMixin.scss +105 -0
  213. package/styles/helpers/baseVar.scss +4 -0
  214. package/styles/helpers/placement.scss +39 -0
  215. package/styles/theme/dark.scss +9 -0
  216. package/styles/theme/light.scss +11 -0
  217. package/styles/variable.scss +9 -0
  218. package/types/all.d.ts +59 -0
  219. package/types/index.d.ts +4 -0
@@ -0,0 +1,831 @@
1
+ .vxe-form-design--widget-form-empty-data {
2
+ text-align: center;
3
+ color: var(--vxe-ui-input-placeholder-color);
4
+ border: 1px solid var(--vxe-ui-input-border-color);
5
+ border-radius: var(--vxe-ui-base-border-radius);
6
+ padding: var(--vxe-ui-layout-padding-double);
7
+ }
8
+
9
+ .vxe-form-design--widget-row-form-row {
10
+ border: 1px solid var(--vxe-ui-input-border-color);
11
+ margin-bottom: var(--vxe-ui-layout-padding-default);
12
+ border-radius: var(--vxe-ui-base-border-radius);
13
+ cursor: pointer;
14
+ }
15
+ .vxe-form-design--widget-row-form-row:hover {
16
+ border-color: var(--vxe-ui-font-primary-color);
17
+ }
18
+ .vxe-form-design--widget-row-form-row.is--active {
19
+ border-color: var(--vxe-ui-font-primary-color);
20
+ color: var(--vxe-ui-layout-background-color);
21
+ }
22
+ .vxe-form-design--widget-row-form-row.is--active .vxe-form-design--widget-row-form-col div {
23
+ background: var(--vxe-ui-font-primary-color);
24
+ }
25
+
26
+ .vxe-form-design--widget-row-form-col {
27
+ padding: var(--vxe-ui-layout-padding-default);
28
+ }
29
+ .vxe-form-design--widget-row-form-col > div {
30
+ line-height: 24px;
31
+ background: var(--vxe-ui-font-tinge-color);
32
+ text-align: center;
33
+ border-radius: var(--vxe-ui-base-border-radius);
34
+ }
35
+
36
+ .vxe-form-design--widget-row-view {
37
+ position: relative;
38
+ height: 100%;
39
+ padding: var(--vxe-ui-layout-padding-default);
40
+ }
41
+
42
+ .vxe-form-design--widget-row-view-item-inner {
43
+ position: relative;
44
+ height: 100%;
45
+ min-height: 78px;
46
+ padding: 0;
47
+ border: 1px solid transparent;
48
+ cursor: grabbing;
49
+ }
50
+ .vxe-form-design--widget-row-view-item-inner::before {
51
+ content: "";
52
+ position: absolute;
53
+ top: 0;
54
+ left: 0;
55
+ width: 100%;
56
+ height: 100%;
57
+ z-index: 1;
58
+ }
59
+ .vxe-form-design--widget-row-view-item-inner:not(.is--empty):hover {
60
+ background-color: var(--vxe-ui-form-design-sub-widget-hover-background-color);
61
+ }
62
+ .vxe-form-design--widget-row-view-item-inner:not(.is--empty):hover .vxe-form-design--widget-row-view-empty {
63
+ background-color: transparent;
64
+ }
65
+ .vxe-form-design--widget-row-view-item-inner.is--active {
66
+ border: 1px dashed var(--vxe-ui-font-primary-color);
67
+ background-color: var(--vxe-ui-base-active-background-color);
68
+ }
69
+ .vxe-form-design--widget-row-view-item-inner.is--drag, .vxe-form-design--widget-row-view-item-inner.is--sort {
70
+ background-color: var(--vxe-ui-base-drag-background-color);
71
+ }
72
+
73
+ .vxe-form-design--widget-row-view-empty {
74
+ display: flex;
75
+ flex-direction: row;
76
+ align-items: center;
77
+ justify-content: center;
78
+ height: 100%;
79
+ width: 100%;
80
+ padding: var(--vxe-ui-layout-padding-default);
81
+ color: var(--vxe-ui-font-placeholder-color);
82
+ border: 2px dashed var(--vxe-ui-input-border-color);
83
+ font-size: 0.95em;
84
+ background-color: var(--vxe-ui-layout-background-color);
85
+ }
86
+
87
+ .vxe-form-design--preview-item.widget-row {
88
+ padding: 0 var(--vxe-ui-layout-padding-default);
89
+ }
90
+ .vxe-form-design--preview-item.widget-row::after {
91
+ display: none;
92
+ }
93
+
94
+ .vxe-form-design--widget-subtable-view {
95
+ display: flex;
96
+ flex-direction: row;
97
+ max-width: 100%;
98
+ border-radius: var(--vxe-ui-base-border-radius);
99
+ overflow-y: hidden;
100
+ overflow-x: auto;
101
+ }
102
+
103
+ .vxe-form-design--widget-subtable-view-box {
104
+ border: 1px solid var(--vxe-ui-input-border-color);
105
+ border-width: 1px 1px 1px 0;
106
+ display: inline-flex;
107
+ flex-direction: row;
108
+ flex-wrap: nowrap;
109
+ }
110
+
111
+ .vxe-form-design--widget-subtable-view-left {
112
+ position: sticky;
113
+ left: 0;
114
+ top: 0;
115
+ display: flex;
116
+ flex-shrink: 0;
117
+ box-shadow: 8px 0px 10px -5px rgba(0, 0, 0, 0.12);
118
+ border-radius: var(--vxe-ui-base-border-radius) 0 0 var(--vxe-ui-base-border-radius);
119
+ z-index: 5;
120
+ }
121
+
122
+ .vxe-form-design--widget-subtable-view-right {
123
+ flex-grow: 1;
124
+ }
125
+
126
+ .vxe-form-design--widget-subtable-col {
127
+ position: relative;
128
+ display: flex;
129
+ flex-direction: column;
130
+ align-items: center;
131
+ justify-content: center;
132
+ flex-shrink: 0;
133
+ min-width: 54px;
134
+ text-align: center;
135
+ border-top: 1px solid var(--vxe-ui-input-border-color);
136
+ border-right: 1px solid var(--vxe-ui-input-border-color);
137
+ border-bottom: 1px solid var(--vxe-ui-input-border-color);
138
+ background-color: var(--vxe-ui-layout-background-color);
139
+ }
140
+ .vxe-form-design--widget-subtable-col:first-child {
141
+ border-left: 1px solid var(--vxe-ui-input-border-color);
142
+ border-radius: var(--vxe-ui-base-border-radius) 0 0 var(--vxe-ui-base-border-radius);
143
+ }
144
+ .vxe-form-design--widget-subtable-col::after {
145
+ content: "";
146
+ position: absolute;
147
+ top: 0;
148
+ left: 0;
149
+ width: 100%;
150
+ height: 100%;
151
+ z-index: 1;
152
+ }
153
+
154
+ .vxe-form-design--widget-subtable-head {
155
+ flex-shrink: 0;
156
+ height: 2.8em;
157
+ line-height: 2.8em;
158
+ overflow: hidden;
159
+ text-overflow: ellipsis;
160
+ white-space: nowrap;
161
+ padding: 0 var(--vxe-ui-layout-padding-default);
162
+ border-bottom: 1px solid var(--vxe-ui-input-border-color);
163
+ }
164
+
165
+ .vxe-form-design--widget-subtable-body {
166
+ flex-grow: 1;
167
+ padding: var(--vxe-ui-layout-padding-default);
168
+ }
169
+
170
+ .vxe-form-design--widget-subtable-head,
171
+ .vxe-form-design--widget-subtable-body {
172
+ width: 100%;
173
+ }
174
+
175
+ .vxe-form-design--widget-subtable-body,
176
+ .vxe-form-design--widget-subtable-view-empty {
177
+ display: flex;
178
+ flex-direction: row;
179
+ align-items: center;
180
+ justify-content: center;
181
+ }
182
+
183
+ .vxe-form-design--widget-subtable-view-wrapper {
184
+ position: relative;
185
+ display: flex;
186
+ flex-direction: row;
187
+ background-color: var(--vxe-ui-layout-background-color);
188
+ border-radius: 0 var(--vxe-ui-base-border-radius) var(--vxe-ui-base-border-radius) 0;
189
+ }
190
+ .vxe-form-design--widget-subtable-view-wrapper::before {
191
+ content: "";
192
+ position: absolute;
193
+ top: 0;
194
+ left: 0;
195
+ width: 100%;
196
+ height: 100%;
197
+ border: 1px solid var(--vxe-ui-input-border-color);
198
+ z-index: 1;
199
+ pointer-events: none;
200
+ }
201
+
202
+ .vxe-form-design--widget-subtable-view-list {
203
+ display: flex;
204
+ flex-direction: row;
205
+ flex-wrap: nowrap;
206
+ }
207
+ .vxe-form-design--widget-subtable-view-list > .vxe-form-design--widget-subtable-view-item {
208
+ border-right: 1px solid var(--vxe-ui-input-border-color);
209
+ }
210
+ .vxe-form-design--widget-subtable-view-list > .vxe-form-design--widget-subtable-view-item .vxe-form-design--preview-item-operate {
211
+ top: 0.4em;
212
+ }
213
+
214
+ .vxe-form-design--widget-subtable-view-list-move {
215
+ transition: transform 0.35s ease-in-out;
216
+ }
217
+
218
+ .vxe-form-design--widget-subtable-view-item {
219
+ position: relative;
220
+ min-width: 200px;
221
+ cursor: grabbing;
222
+ }
223
+ .vxe-form-design--widget-subtable-view-item:hover {
224
+ background-color: var(--vxe-ui-form-design-sub-widget-hover-background-color);
225
+ }
226
+ .vxe-form-design--widget-subtable-view-item.is--active {
227
+ background: var(--vxe-ui-base-active-background-color);
228
+ }
229
+ .vxe-form-design--widget-subtable-view-item.is--active::before {
230
+ content: "";
231
+ position: absolute;
232
+ top: 0;
233
+ left: 0;
234
+ width: 100%;
235
+ height: 100%;
236
+ border: 1px dashed var(--vxe-ui-font-primary-color);
237
+ pointer-events: none;
238
+ z-index: 2;
239
+ }
240
+
241
+ .vxe-form-design--widget-subtable-view-item-box {
242
+ height: 100%;
243
+ }
244
+ .vxe-form-design--widget-subtable-view-item-box::after {
245
+ content: "";
246
+ position: absolute;
247
+ top: 0;
248
+ left: 0;
249
+ width: 100%;
250
+ height: 100%;
251
+ z-index: 1;
252
+ }
253
+
254
+ .vxe-form-design--widget-subtable-view-empty {
255
+ flex-grow: 1;
256
+ color: var(--vxe-ui-font-placeholder-color);
257
+ padding: 0 var(--vxe-ui-layout-padding-threefold);
258
+ min-height: 78px;
259
+ min-width: 200px;
260
+ cursor: default;
261
+ }
262
+
263
+ .vxe-form-design--widget-subtable-form-item {
264
+ overflow: hidden;
265
+ }
266
+
267
+ .vxe-form-design--widget-subtable-view-item-wrapper {
268
+ height: 100%;
269
+ }
270
+ .vxe-form-design--widget-subtable-view-item-wrapper .vxe-form--item.is--vertical {
271
+ padding: 0;
272
+ }
273
+ .vxe-form-design--widget-subtable-view-item-wrapper .vxe-form--item.is--vertical .vxe-form--item-title {
274
+ height: 2.8em;
275
+ line-height: 2.8em;
276
+ padding: 0 var(--vxe-ui-layout-padding-default);
277
+ }
278
+ .vxe-form-design--widget-subtable-view-item-wrapper .vxe-form--item.is--vertical .vxe-form--item-content {
279
+ display: flex;
280
+ flex-direction: row;
281
+ align-items: center;
282
+ padding: 0 var(--vxe-ui-layout-padding-default);
283
+ }
284
+ .vxe-form-design--widget-subtable-view-item-wrapper .vxe-form--item-title {
285
+ border-bottom: 1px solid var(--vxe-ui-input-border-color);
286
+ }
287
+
288
+ .vxe-form-design--preview-item.widget-subtable {
289
+ padding: 0 var(--vxe-ui-layout-padding-double);
290
+ }
291
+ .vxe-form-design--preview-item.widget-subtable::after {
292
+ display: none;
293
+ }
294
+ .vxe-form-design--preview-item .vxe-form-design--preview-item-view .vxe-form-design--widget-subtable-form-item > .vxe-form--item-content {
295
+ padding: 0;
296
+ }
297
+ .vxe-form-design--preview-item .vxe-form-design--preview-item-view .vxe-form--group-content {
298
+ align-items: unset;
299
+ }
300
+
301
+ .vxe-form-design--widget-form-item-devices {
302
+ display: flex;
303
+ flex-direction: column;
304
+ }
305
+
306
+ .vxe-form-design--widget-form-item-layout {
307
+ display: flex;
308
+ flex-direction: row;
309
+ }
310
+
311
+ .vxe-form-design--widget-form-item-option {
312
+ width: 50%;
313
+ text-align: center;
314
+ padding: var(--vxe-ui-layout-padding-default);
315
+ margin: 0 var(--vxe-ui-layout-padding-default);
316
+ border: 1px solid var(--vxe-ui-input-border-color);
317
+ border-radius: var(--vxe-ui-base-border-radius);
318
+ cursor: pointer;
319
+ }
320
+ .vxe-form-design--widget-form-item-option.is--vertical .vxe-form-design--widget-form-item-option-row {
321
+ display: flex;
322
+ flex-direction: column;
323
+ }
324
+ .vxe-form-design--widget-form-item-option.is--vertical .vxe-form-design--widget-form-item-option-row:nth-child(1)::before {
325
+ content: "";
326
+ display: block;
327
+ width: 30%;
328
+ height: 1.2em;
329
+ margin: 2px;
330
+ background-color: var(--vxe-ui-font-tinge-color);
331
+ border-radius: var(--vxe-ui-base-border-radius);
332
+ }
333
+ .vxe-form-design--widget-form-item-option.is--vertical .vxe-form-design--widget-form-item-option-row:nth-child(2)::before {
334
+ content: "";
335
+ display: block;
336
+ width: 100%;
337
+ height: 1.2em;
338
+ margin: 2px;
339
+ background-color: var(--vxe-ui-font-tinge-color);
340
+ border-radius: var(--vxe-ui-base-border-radius);
341
+ }
342
+ .vxe-form-design--widget-form-item-option.is--horizontal .vxe-form-design--widget-form-item-option-row {
343
+ display: flex;
344
+ flex-direction: row;
345
+ }
346
+ .vxe-form-design--widget-form-item-option.is--horizontal .vxe-form-design--widget-form-item-option-row:nth-child(1)::before, .vxe-form-design--widget-form-item-option.is--horizontal .vxe-form-design--widget-form-item-option-row:nth-child(2)::before {
347
+ content: "";
348
+ display: block;
349
+ width: 30%;
350
+ height: 1.2em;
351
+ margin: 2px;
352
+ background-color: var(--vxe-ui-font-tinge-color);
353
+ border-radius: var(--vxe-ui-base-border-radius);
354
+ }
355
+ .vxe-form-design--widget-form-item-option.is--horizontal .vxe-form-design--widget-form-item-option-row:nth-child(1)::after, .vxe-form-design--widget-form-item-option.is--horizontal .vxe-form-design--widget-form-item-option-row:nth-child(2)::after {
356
+ content: "";
357
+ display: block;
358
+ width: 70%;
359
+ height: 1.2em;
360
+ margin: 2px;
361
+ background-color: var(--vxe-ui-font-tinge-color);
362
+ border-radius: var(--vxe-ui-base-border-radius);
363
+ }
364
+ .vxe-form-design--widget-form-item-option:hover {
365
+ border-color: var(--vxe-ui-font-primary-color);
366
+ }
367
+ .vxe-form-design--widget-form-item-option.is--active {
368
+ color: var(--vxe-ui-font-primary-color);
369
+ border-color: var(--vxe-ui-font-primary-color);
370
+ }
371
+ .vxe-form-design--widget-form-item-option.is--active .vxe-form-design--widget-form-item-option-row:nth-child(1)::before, .vxe-form-design--widget-form-item-option.is--active .vxe-form-design--widget-form-item-option-row:nth-child(1)::after, .vxe-form-design--widget-form-item-option.is--active .vxe-form-design--widget-form-item-option-row:nth-child(2)::before, .vxe-form-design--widget-form-item-option.is--active .vxe-form-design--widget-form-item-option-row:nth-child(2)::after {
372
+ background-color: var(--vxe-ui-font-primary-color);
373
+ }
374
+
375
+ .vxe-form-design--widget-form-item-option-row {
376
+ margin-bottom: 0.2em;
377
+ }
378
+
379
+ .vxe-form-design--widget-form-item-data-source-wrapper {
380
+ max-height: 30vh;
381
+ min-height: 140px;
382
+ overflow: auto;
383
+ }
384
+
385
+ .vxe-form-design--widget-form-item-data-source-type {
386
+ margin-bottom: 16px;
387
+ }
388
+
389
+ .vxe-form-design--widget-form-item-data-source-option {
390
+ position: relative;
391
+ display: flex;
392
+ flex-direction: row;
393
+ padding: var(--vxe-ui-layout-padding-half) 0;
394
+ }
395
+ .vxe-form-design--widget-form-item-data-source-option::before {
396
+ content: "";
397
+ position: absolute;
398
+ top: 0;
399
+ left: var(--vxe-ui-layout-padding-half);
400
+ width: var(--vxe-ui-layout-padding-default);
401
+ height: 100%;
402
+ border: 1px dotted var(--vxe-ui-base-popup-border-color);
403
+ border-width: 0 0 0 1px;
404
+ }
405
+ .vxe-form-design--widget-form-item-data-source-option::after {
406
+ content: "";
407
+ position: absolute;
408
+ top: 50%;
409
+ left: var(--vxe-ui-layout-padding-half);
410
+ width: var(--vxe-ui-layout-padding-default);
411
+ height: 0;
412
+ border-top: 1px dotted var(--vxe-ui-base-popup-border-color);
413
+ }
414
+ .vxe-form-design--widget-form-item-data-source-option.is--first::before {
415
+ top: 50%;
416
+ height: 50%;
417
+ }
418
+ .vxe-form-design--widget-form-item-data-source-option.is--last::before {
419
+ height: 50%;
420
+ }
421
+ .vxe-form-design--widget-form-item-data-source-option .vxe-button {
422
+ flex-shrink: 0;
423
+ }
424
+ .vxe-form-design--widget-form-item-data-source-option .vxe-form-design--widget-expand-btn {
425
+ display: flex;
426
+ flex-direction: row;
427
+ align-items: center;
428
+ width: 2em;
429
+ }
430
+ .vxe-form-design--widget-form-item-data-source-option .vxe-form-design--widget-expand-btn i {
431
+ cursor: pointer;
432
+ background-color: var(--vxe-ui-layout-background-color);
433
+ transition: transform 0.1s ease-in-out;
434
+ z-index: 2;
435
+ }
436
+
437
+ .vxe-form-design--widget-form-item-data-source-sub-option {
438
+ position: relative;
439
+ }
440
+ .vxe-form-design--widget-form-item-data-source-sub-option::before {
441
+ content: "";
442
+ position: absolute;
443
+ top: 0;
444
+ left: var(--vxe-ui-layout-padding-half);
445
+ width: var(--vxe-ui-layout-padding-default);
446
+ height: 100%;
447
+ border: 1px dotted var(--vxe-ui-base-popup-border-color);
448
+ border-width: 0 0 0 1px;
449
+ }
450
+ .vxe-form-design--widget-form-item-data-source-sub-option:last-child::before {
451
+ display: none;
452
+ }
453
+ .vxe-form-design--widget-form-item-data-source-sub-option .vxe-form-design--widget-form-item-data-source-option {
454
+ padding-left: var(--vxe-ui-layout-padding-double);
455
+ }
456
+ .vxe-form-design--widget-form-item-data-source-sub-option .vxe-form-design--widget-form-item-data-source-option:first-child::before {
457
+ top: 0;
458
+ height: 50%;
459
+ }
460
+ .vxe-form-design--widget-form-item-data-source-sub-option .vxe-form-design--widget-form-item-data-source-option::before {
461
+ top: -50%;
462
+ left: calc(var(--vxe-ui-layout-padding-double) + 0.5em);
463
+ width: var(--vxe-ui-layout-padding-default);
464
+ height: 100%;
465
+ }
466
+ .vxe-form-design--widget-form-item-data-source-sub-option .vxe-form-design--widget-form-item-data-source-option::after {
467
+ left: calc(var(--vxe-ui-layout-padding-double) + 0.5em);
468
+ }
469
+
470
+ .vxe-form-design--widget-form-item-data-source-popup {
471
+ height: 100%;
472
+ display: flex;
473
+ flex-direction: column;
474
+ overflow: auto;
475
+ }
476
+ .vxe-form-design--widget-form-item-data-source-popup > .vxe-textarea {
477
+ flex-grow: 1;
478
+ }
479
+ .vxe-form-design--widget-form-item-data-source-popup > .vxe-textarea .vxe-textarea--inner {
480
+ height: 100%;
481
+ }
482
+
483
+ .vxe-form-design--widget-form-item-prop-list {
484
+ margin-bottom: var(--vxe-ui-layout-padding-double);
485
+ padding: 0 var(--vxe-ui-layout-padding-default);
486
+ }
487
+ .vxe-form-design--widget-form-item-prop-list:first-child {
488
+ margin-top: var(--vxe-ui-layout-padding-default);
489
+ }
490
+ .vxe-form-design--widget-form-item-prop-list > span {
491
+ padding: 0 0.5em;
492
+ }
493
+ .vxe-form-design--widget-form-item-prop-list > span:first-child {
494
+ padding: 0;
495
+ padding-right: var(--vxe-ui-layout-padding-default);
496
+ }
497
+ .vxe-form-design--widget-form-item-prop-list > span:first-child,
498
+ .vxe-form-design--widget-form-item-prop-list .vxe-form-design--widget-form-item-prop-width,
499
+ .vxe-form-design--widget-form-item-prop-list .vxe-form-design--widget-form-item-prop-unit {
500
+ display: inline-flex;
501
+ vertical-align: middle;
502
+ }
503
+
504
+ .vxe-form .vxe-form-design--widget-form-item-prop-list > .vxe-form-design--widget-form-item-prop-width {
505
+ width: 90px;
506
+ }
507
+ .vxe-form .vxe-form-design--widget-form-item-prop-list > .vxe-form-design--widget-form-item-prop-unit {
508
+ width: 90px;
509
+ }
510
+
511
+ .vxe-list-design--widget-form-item-prop-list {
512
+ margin-bottom: var(--vxe-ui-layout-padding-double);
513
+ padding: 0 var(--vxe-ui-layout-padding-default);
514
+ }
515
+ .vxe-list-design--widget-form-item-prop-list:first-child {
516
+ margin-top: var(--vxe-ui-layout-padding-default);
517
+ }
518
+ .vxe-list-design--widget-form-item-prop-list:last-child {
519
+ margin-bottom: 0;
520
+ }
521
+ .vxe-list-design--widget-form-item-prop-list > span {
522
+ padding: 0 0.5em;
523
+ }
524
+ .vxe-list-design--widget-form-item-prop-list > span:first-child {
525
+ padding: 0;
526
+ padding-right: var(--vxe-ui-layout-padding-default);
527
+ }
528
+
529
+ .vxe-form-design {
530
+ display: flex;
531
+ flex-direction: column;
532
+ color: var(--vxe-ui-font-color);
533
+ font-family: var(--vxe-ui-font-family);
534
+ }
535
+
536
+ .vxe-form-design {
537
+ font-size: var(--vxe-ui-font-size-default);
538
+ }
539
+ .vxe-form-design.size--medium {
540
+ font-size: var(--vxe-ui-font-size-medium);
541
+ }
542
+ .vxe-form-design.size--small {
543
+ font-size: var(--vxe-ui-font-size-small);
544
+ }
545
+ .vxe-form-design.size--mini {
546
+ font-size: var(--vxe-ui-font-size-mini);
547
+ }
548
+
549
+ .vxe-form-design--body {
550
+ display: flex;
551
+ flex-direction: row;
552
+ flex-grow: 1;
553
+ overflow: hidden;
554
+ }
555
+
556
+ .vxe-form-design--header {
557
+ flex-shrink: 0;
558
+ padding: 0 var(--vxe-ui-layout-padding-default);
559
+ }
560
+
561
+ .vxe-form-design--header-wrapper {
562
+ display: flex;
563
+ flex-direction: row;
564
+ align-items: center;
565
+ width: 100%;
566
+ min-height: 3em;
567
+ border: 1px solid var(--vxe-ui-input-border-color);
568
+ border-radius: var(--vxe-ui-base-border-radius);
569
+ overflow: hidden;
570
+ }
571
+
572
+ .vxe-form-design--header-left,
573
+ .vxe-form-design--header-right {
574
+ flex-shrink: 0;
575
+ }
576
+
577
+ .vxe-form-design--header-middle {
578
+ flex-grow: 1;
579
+ overflow: auto;
580
+ }
581
+
582
+ .vxe-form-design--header-right {
583
+ display: flex;
584
+ flex-direction: row;
585
+ align-items: center;
586
+ }
587
+ .vxe-form-design--header-right .vxe-form-design--header-extra,
588
+ .vxe-form-design--header-right .vxe-form-design--header-setting {
589
+ flex-shrink: 0;
590
+ }
591
+
592
+ .vxe-form-design--layout-style {
593
+ display: flex;
594
+ flex-direction: row;
595
+ height: 100%;
596
+ overflow: hidden;
597
+ }
598
+
599
+ .vxe-form-design--layout-style-preview {
600
+ flex-grow: 1;
601
+ padding-right: var(--vxe-ui-layout-padding-default);
602
+ overflow: hidden;
603
+ }
604
+ .vxe-form-design--layout-style-preview > .vxe-form-view {
605
+ height: 100%;
606
+ width: 100%;
607
+ border: 1px solid var(--vxe-ui-input-border-color);
608
+ border-radius: var(--vxe-ui-base-border-radius);
609
+ overflow: auto;
610
+ }
611
+ .vxe-form-design--layout-style-preview.is--mobile > .vxe-form-view {
612
+ width: 400px;
613
+ margin: 0 auto;
614
+ }
615
+ .vxe-form-design--layout-style-preview .vxe-form-design--widget-render-form-item.widget-subtable > .vxe-form--item-content::after {
616
+ display: none;
617
+ }
618
+ .vxe-form-design--layout-style-preview .vxe-form-design--widget-render-form-item.widget-subtable .vxe-body--column .vxe-cell::after {
619
+ content: "";
620
+ position: absolute;
621
+ top: 0;
622
+ left: 0;
623
+ width: 100%;
624
+ height: 100%;
625
+ z-index: 3;
626
+ }
627
+ .vxe-form-design--layout-style-preview .vxe-form-design--widget-render-form-item > .vxe-form--item-content::after {
628
+ content: "";
629
+ position: absolute;
630
+ top: 0;
631
+ left: 0;
632
+ width: 100%;
633
+ height: 100%;
634
+ z-index: 1;
635
+ }
636
+
637
+ .vxe-form-design--layout-style-setting {
638
+ flex-shrink: 0;
639
+ width: 300px;
640
+ border: 1px solid var(--vxe-ui-input-border-color);
641
+ border-radius: var(--vxe-ui-base-border-radius);
642
+ background-color: var(--vxe-ui-layout-background-color);
643
+ z-index: 1;
644
+ overflow: auto;
645
+ }
646
+
647
+ .vxe-form-design--widget {
648
+ width: 280px;
649
+ flex-shrink: 0;
650
+ overflow: auto;
651
+ }
652
+
653
+ .vxe-form-design--widget,
654
+ .vxe-form-design--setting {
655
+ padding: var(--vxe-ui-layout-padding-default);
656
+ border-radius: var(--vxe-ui-base-border-radius);
657
+ }
658
+
659
+ .vxe-form-design--setting {
660
+ width: 300px;
661
+ flex-shrink: 0;
662
+ overflow: auto;
663
+ }
664
+
665
+ .vxe-form-design--preview {
666
+ flex-grow: 1;
667
+ overflow: auto;
668
+ padding: var(--vxe-ui-layout-padding-default) var(--vxe-ui-layout-padding-half);
669
+ -webkit-user-select: none;
670
+ -moz-user-select: none;
671
+ -ms-user-select: none;
672
+ user-select: none;
673
+ }
674
+
675
+ .vxe-form-design--preview-wrapper {
676
+ width: 100%;
677
+ height: 100%;
678
+ overflow: auto;
679
+ background-color: var(--vxe-ui-layout-background-color);
680
+ border-radius: var(--vxe-ui-base-border-radius);
681
+ border: 1px solid var(--vxe-ui-input-border-color);
682
+ }
683
+
684
+ .vxe-form-design--preview-place-widget {
685
+ height: 1em;
686
+ }
687
+
688
+ .vxe-form-design--widget-list {
689
+ display: flex;
690
+ flex-direction: row;
691
+ flex-wrap: wrap;
692
+ }
693
+
694
+ .vxe-form-design--widget-title {
695
+ font-weight: 700;
696
+ padding: var(--vxe-ui-layout-padding-half) 0 var(--vxe-ui-layout-padding-half) var(--vxe-ui-layout-padding-half);
697
+ }
698
+
699
+ .vxe-form-design--widget-group {
700
+ border-radius: var(--vxe-ui-base-border-radius);
701
+ padding: var(--vxe-ui-layout-padding-default);
702
+ margin-bottom: var(--vxe-ui-layout-padding-default);
703
+ background-color: var(--vxe-ui-layout-background-color);
704
+ border: 1px solid var(--vxe-ui-input-border-color);
705
+ }
706
+
707
+ .vxe-form-design--widget-item {
708
+ width: 50%;
709
+ padding: var(--vxe-ui-layout-padding-half);
710
+ }
711
+
712
+ .vxe-form-design--widget-box {
713
+ position: relative;
714
+ display: flex;
715
+ flex-direction: row;
716
+ align-items: center;
717
+ height: 32px;
718
+ line-height: 32px;
719
+ font-size: var(--vxe-ui-form-design-widget-item-font-size);
720
+ padding: 0 var(--vxe-ui-layout-padding-half);
721
+ border-radius: var(--vxe-ui-base-border-radius);
722
+ border: 1px solid var(--vxe-ui-input-border-color);
723
+ background-color: var(--vxe-ui-layout-background-color);
724
+ overflow: hidden;
725
+ cursor: grabbing;
726
+ -webkit-user-select: none;
727
+ -moz-user-select: none;
728
+ -ms-user-select: none;
729
+ user-select: none;
730
+ }
731
+ .vxe-form-design--widget-box:hover {
732
+ border-color: var(--vxe-ui-font-primary-lighten-color);
733
+ background-color: var(--vxe-ui-base-active-background-color);
734
+ }
735
+ .vxe-form-design--widget-box:hover .vxe-form-design--widget-item-add {
736
+ display: block;
737
+ }
738
+
739
+ .vxe-form-design--widget-item-icon {
740
+ flex-shrink: 0;
741
+ padding: 0 0.2em;
742
+ }
743
+
744
+ .vxe-form-design--widget-item-name {
745
+ padding: 0 var(--vxe-ui-layout-padding-half);
746
+ overflow: hidden;
747
+ text-overflow: ellipsis;
748
+ white-space: nowrap;
749
+ }
750
+
751
+ .vxe-form-design--widget-item-add {
752
+ display: none;
753
+ position: absolute;
754
+ top: 0;
755
+ right: var(--vxe-ui-layout-padding-default);
756
+ width: 1.2em;
757
+ height: 100%;
758
+ text-align: center;
759
+ cursor: pointer;
760
+ }
761
+ .vxe-form-design--widget-item-add:hover {
762
+ color: var(--vxe-ui-font-primary-color);
763
+ }
764
+
765
+ .vxe-form-design--preview-list {
766
+ width: 100%;
767
+ }
768
+
769
+ .vxe-form-design--preview-list-move {
770
+ transition: transform 0.35s ease-in-out;
771
+ }
772
+
773
+ .vxe-form-design--preview-item {
774
+ position: relative;
775
+ display: block;
776
+ padding: var(--vxe-ui-layout-padding-default) var(--vxe-ui-layout-padding-double);
777
+ border: 1px solid transparent;
778
+ cursor: grabbing;
779
+ }
780
+ .vxe-form-design--preview-item::after {
781
+ content: "";
782
+ position: absolute;
783
+ top: 0;
784
+ left: 0;
785
+ width: 100%;
786
+ height: 100%;
787
+ z-index: 1;
788
+ }
789
+ .vxe-form-design--preview-item:hover {
790
+ background-color: var(--vxe-ui-form-design-widget-hover-background-color);
791
+ }
792
+ .vxe-form-design--preview-item.is--active {
793
+ border: 1px dashed var(--vxe-ui-font-primary-color);
794
+ background-color: var(--vxe-ui-base-active-background-color);
795
+ }
796
+ .vxe-form-design--preview-item.is--drag, .vxe-form-design--preview-item.is--sort {
797
+ background-color: var(--vxe-ui-base-drag-background-color);
798
+ }
799
+
800
+ .vxe-form-design--preview-item-view {
801
+ width: 100%;
802
+ }
803
+
804
+ .vxe-form-design--preview-item-operate {
805
+ position: absolute;
806
+ top: calc(var(--vxe-ui-layout-padding-default) * -1);
807
+ right: var(--vxe-ui-layout-padding-default);
808
+ z-index: 3;
809
+ }
810
+
811
+ .vxe-form-design--setting-form {
812
+ height: 100%;
813
+ background-color: var(--vxe-ui-layout-background-color);
814
+ border: 1px solid var(--vxe-ui-input-border-color);
815
+ }
816
+
817
+ .vxe-form-design--setting-form-tabs {
818
+ height: 100%;
819
+ }
820
+
821
+ .vxe-form-design .vxe-form--item.vxe-form-design--widget-render-form-item {
822
+ padding: 0;
823
+ }
824
+ .vxe-form-design .vxe-form--item-inner {
825
+ height: 100%;
826
+ }
827
+ .vxe-form-design .vxe-form--item-title-content {
828
+ overflow: hidden;
829
+ text-overflow: ellipsis;
830
+ white-space: nowrap;
831
+ }