agilebuilder-ui 1.1.13 → 1.1.14

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.
@@ -32,3 +32,255 @@
32
32
  box-shadow: 0px 1px 8px 0px #00000019;
33
33
  }
34
34
  }
35
+
36
+ [overflow-wrap] {
37
+ word-wrap: break-word;
38
+ overflow-wrap: break-word;
39
+ }
40
+
41
+ .yx-flex-wrap {
42
+ display: flex;
43
+ justify-content: flex-start;
44
+ &[vertical] {
45
+ flex-direction: column;
46
+ }
47
+ &[justify='space-between'] {
48
+ justify-content: space-between;
49
+ }
50
+ &[align='center'] {
51
+ align-items: center;
52
+ }
53
+ &[wrap] {
54
+ flex-wrap: wrap;
55
+ }
56
+ }
57
+
58
+ .el-descriptions {
59
+ &[layout='form'] {
60
+ .el-descriptions__cell {
61
+ display: flex;
62
+ gap: 10px;
63
+ .el-descriptions__label {
64
+ margin: 0;
65
+ max-width: 40%;
66
+ flex: 0 0 auto;
67
+ }
68
+ .el-descriptions__content {
69
+ flex: 1 1 auto;
70
+ word-wrap: break-word;
71
+ overflow-wrap: break-word;
72
+
73
+ .ellipsis {
74
+ word-wrap: break-word !important;
75
+ overflow-wrap: break-word !important;
76
+ width: auto !important;
77
+ white-space: inherit !important;
78
+ }
79
+ }
80
+ @media (max-width: 450px) {
81
+ & {
82
+ flex-direction: column;
83
+ }
84
+ .el-descriptions__label {
85
+ width: 100% !important;
86
+ max-width: 100%;
87
+ }
88
+ }
89
+ }
90
+ }
91
+ }
92
+
93
+ .yx-card-main {
94
+ &.is-checked {
95
+ border-color: #409eff;
96
+ background-color: #ecf5ff;
97
+ }
98
+ &[header-padding] {
99
+ & > .el-card__header {
100
+ display: flex;
101
+ flex-direction: column;
102
+ justify-content: center;
103
+ align-items: stretch;
104
+ padding: 0 !important;
105
+ overflow: hidden;
106
+ min-height: 50px;
107
+
108
+ @media (max-width: 450px) {
109
+ min-height: 40px;
110
+ }
111
+
112
+ & > .yx-flex-wrap {
113
+ gap: 10px;
114
+ height: 100%;
115
+ padding: 5px var(--el-card-padding);
116
+ }
117
+ }
118
+ }
119
+ &[body-padding] {
120
+ & > .el-card__body {
121
+ padding: 0 !important;
122
+ }
123
+ }
124
+ .el-card__header {
125
+
126
+ & > .yx-flex-wrap {
127
+ flex: 1 1 auto;
128
+
129
+ [layout-title] {
130
+ max-width: calc(100% - 40px);
131
+
132
+ a, div, span {
133
+ display: block !important;
134
+ }
135
+ .ellipsis {
136
+ width: auto !important;
137
+ text-align: left !important;
138
+ }
139
+ }
140
+ }
141
+ }
142
+ .yx-card-body {
143
+ padding: var(--el-card-padding);
144
+ background-color: var(--el-fill-color-blank);
145
+ }
146
+ @media (max-width: 450px) {
147
+ &[header-padding] {
148
+ & > .el-card__header {
149
+ & > .yx-flex-wrap {
150
+ padding: 5px 10px;
151
+ }
152
+ }
153
+ }
154
+ & > .el-card__footer {
155
+ padding: 5px 10px;
156
+ }
157
+ .yx-card-body {
158
+ padding: 10px;
159
+ }
160
+ }
161
+ }
162
+
163
+ [scrollable-main] {
164
+ position: relative;
165
+ &:has(.el-scrollbar__wrap:has(::-webkit-scrollbar-thumb:vertical)):not(:has(.el-scrollbar__wrap:has(:first-child:has(+ *))))::before {
166
+ content: " ";
167
+ position: absolute;
168
+ top: 0;
169
+ left: 0;
170
+ right: 0;
171
+ height: 10px;
172
+ background: linear-gradient(to bottom, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0));
173
+ pointer-events: none;
174
+ }
175
+
176
+ /* 底部阴影 */
177
+ &:has(.el-scrollbar__wrap:has(::-webkit-scrollbar-thumb:vertical)):not(:has(.el-scrollbar__wrap:has(:last-child:has(+ *))))::after {
178
+ content: " ";
179
+ position: absolute;
180
+ bottom: 0;
181
+ left: 0;
182
+ right: 0;
183
+ height: 10px;
184
+ background: linear-gradient(to top, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0));
185
+ pointer-events: none;
186
+ }
187
+ }
188
+
189
+ [loading-rotate] {
190
+ animation: loading-rotate 2s linear infinite;
191
+ }
192
+
193
+ @keyframes loading-rotate {
194
+ to {
195
+ transform:rotate(360deg)
196
+ }
197
+ }
198
+
199
+ .isHideTable {
200
+ opacity: 0 !important;
201
+ z-index: -99 !important;
202
+ width: 0px !important;
203
+ height: 0px !important;
204
+ overflow: hidden !important;
205
+ }
206
+
207
+ .xs-hidden-opacity-only {
208
+ @media (max-width: 768px) {
209
+ opacity: 0 !important;
210
+ z-index: -99 !important;
211
+ width: 0px !important;
212
+ height: 0px !important;
213
+ overflow: hidden !important;
214
+ }
215
+ }
216
+
217
+ @media (max-width: 450px) {
218
+ // 该样式临时处理移动端展示结构问题,如果冲突请清理
219
+ .app-wrapper {
220
+ .tab-main-container {
221
+ & > .app-main {
222
+
223
+ & > [style*='min-height'] {
224
+ min-height: calc(100vh - 20px) !important;
225
+
226
+ & .app-container {
227
+ min-height: calc(100vh - 20px) !important;
228
+
229
+ & > [style*='padding'] {
230
+ padding: 0 !important;
231
+ }
232
+ }
233
+ }
234
+ }
235
+ }
236
+ }
237
+ }
238
+
239
+ .yx-drawer {
240
+ .el-drawer {
241
+ .el-drawer__header {
242
+ padding: var(--el-drawer-padding-primary);
243
+ margin: 0;
244
+ display: flex;
245
+ justify-content: space-between;
246
+ align-items: center;
247
+ gap: var(--el-drawer-padding-primary);
248
+ }
249
+
250
+ .el-drawer__body {
251
+ & > .yx-flex-wrap {
252
+ height: 100%;
253
+
254
+ }
255
+ & > .el-scrollbar {
256
+ height: 100%;
257
+ }
258
+ }
259
+ }
260
+
261
+ &.yx-scrollbar-body {
262
+ .el-drawer__body {
263
+ padding: 0;
264
+ & > .el-scrollbar {
265
+ & > .el-scrollbar__wrap {
266
+ & > .el-scrollbar__view {
267
+ padding: var(--el-drawer-padding-primary);
268
+ }
269
+ }
270
+ }
271
+ }
272
+ }
273
+ }
274
+
275
+ .el-dialog {
276
+ @media (max-width: 768px) {
277
+ &[layout-mobile='bottom'] {
278
+ position: absolute;
279
+ bottom: 0;
280
+ left: 0;
281
+ right: 0;
282
+ width: 100%;
283
+ margin: 0;
284
+ }
285
+ }
286
+ }
@@ -19,6 +19,7 @@
19
19
  @import "./table.scss";
20
20
  @import './theme/tiffany-blue-mobile/index.scss';
21
21
  @import './theme/tiffany-blue-mobile/sidebar.scss';
22
+ @import 'element-plus/theme-chalk/display.css';
22
23
 
23
24
  body {
24
25
  overflow: hidden;
@@ -0,0 +1,13 @@
1
+ /**
2
+ * 获取4位随机数
3
+ */
4
+ export function getS4(a, b, c, d) {
5
+ return (((1 + Math.random()) * 0x10000) | 0).toString(16).substring(1)
6
+ }
7
+
8
+ /**
9
+ * 生成GuId
10
+ */
11
+ export function getGuId(data = `{s}{s}-{s}-{s}-{s}-{s}{s}{s}`) {
12
+ return data.replace(/{(y|m|d|h|i|s|a)+}/g, getS4)
13
+ }
@@ -69,7 +69,7 @@ export default {
69
69
  </script>
70
70
 
71
71
  <style lang="scss" rel="stylesheet/scss" scoped>
72
- @import 'agilebuilder-ui/src/styles/mixin.scss';
72
+ @import '../../styles/mixin.scss';
73
73
  @include clearfix;
74
74
  .app-wrapper {
75
75
  position: relative;
package/vite.config.js CHANGED
@@ -2,14 +2,17 @@ import { defineConfig } from "vite";
2
2
  import vue from "@vitejs/plugin-vue";
3
3
  import path from "path";
4
4
  import { terser } from 'rollup-plugin-terser'
5
+ import vueJsx from '@vitejs/plugin-vue-jsx';
6
+
5
7
  // https://vitejs.dev/config/
6
- export default defineConfig({
8
+ export default defineConfig(({ mode }) => ({
7
9
  plugins: [
8
- vue(),
10
+ vue(),
11
+ vueJsx(),
9
12
  terser({
10
13
  compress: {
11
- drop_console: true,
12
- drop_debugger: true
14
+ drop_console: ['production'].includes(mode),
15
+ drop_debugger: ['production'].includes(mode),
13
16
  },
14
17
  output: {
15
18
  // 对于console.error,不做任何处理
@@ -26,7 +29,7 @@ export default defineConfig({
26
29
  }, //库编译模式配置
27
30
  rollupOptions: {
28
31
  // 确保外部化处理那些你不想打包进库的依赖
29
- external: ["vue"],
32
+ external: ["vue", "jsx"],
30
33
  output: {
31
34
  // 在 UMD 构建模式下为这些外部化的依赖提供一个全局变量
32
35
  globals: {
@@ -40,11 +43,12 @@ export default defineConfig({
40
43
  },
41
44
  },
42
45
  }, // rollup打包配置
46
+ sourcemap: mode === 'development'
43
47
  },
44
48
  // ...其他配置项
45
49
  resolve: {
46
50
  // 忽略后缀名的配置选项, 添加 .vue 选项时要记得原本默认忽略的选项也要手动写入
47
51
  extensions: ['.mjs', '.js', '.ts', '.jsx', '.tsx', '.json', '.vue']
48
52
  }
49
- });
53
+ }));
50
54