yuang-framework-ui-pc 1.1.15 → 1.1.17

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 (52) hide show
  1. package/es/core-components.js +3 -4
  2. package/es/ele-dialog/index.d.ts +2 -2
  3. package/es/ele-dialog/index.js +15 -15
  4. package/es/ele-dialog/props.d.ts +3 -3
  5. package/es/ele-dialog/props.js +4 -4
  6. package/es/ele-dialog/util.d.ts +8 -8
  7. package/es/ele-dialog/util.js +93 -101
  8. package/es/style/plus.scss +2 -0
  9. package/es/style/themes/default.scss +26 -0
  10. package/es/yu-slider-captcha-dialog/SliderCaptcha.d.ts +67 -0
  11. package/es/yu-slider-captcha-dialog/SliderCaptcha.js +528 -0
  12. package/es/yu-slider-captcha-dialog/index.d.ts +14 -0
  13. package/es/yu-slider-captcha-dialog/index.js +75 -0
  14. package/es/yu-slider-captcha-dialog/style.css +175 -0
  15. package/lib/core-components.cjs +53 -54
  16. package/lib/ele-dialog/index.cjs +13 -13
  17. package/lib/ele-dialog/index.d.ts +2 -2
  18. package/lib/ele-dialog/props.cjs +4 -4
  19. package/lib/ele-dialog/props.d.ts +3 -3
  20. package/lib/ele-dialog/util.cjs +93 -101
  21. package/lib/ele-dialog/util.d.ts +8 -8
  22. package/lib/style/plus.scss +2 -0
  23. package/lib/style/themes/default.scss +26 -0
  24. package/lib/yu-slider-captcha-dialog/SliderCaptcha.cjs +527 -0
  25. package/lib/yu-slider-captcha-dialog/SliderCaptcha.d.ts +67 -0
  26. package/lib/yu-slider-captcha-dialog/index.cjs +74 -0
  27. package/lib/yu-slider-captcha-dialog/index.d.ts +14 -0
  28. package/lib/yu-slider-captcha-dialog/style.css +175 -0
  29. package/package.json +2 -2
  30. package/typings/global.d.ts +0 -1
  31. package/es/ele-modal/index.d.ts +0 -245
  32. package/es/ele-modal/index.js +0 -342
  33. package/es/ele-modal/props.d.ts +0 -135
  34. package/es/ele-modal/props.js +0 -71
  35. package/es/ele-modal/style/css-var.scss +0 -8
  36. package/es/ele-modal/style/index.d.ts +0 -1
  37. package/es/ele-modal/style/index.js +0 -3
  38. package/es/ele-modal/style/index.scss +0 -259
  39. package/es/ele-modal/types.d.ts +0 -43
  40. package/es/ele-modal/util.d.ts +0 -52
  41. package/es/ele-modal/util.js +0 -301
  42. package/lib/ele-modal/index.cjs +0 -341
  43. package/lib/ele-modal/index.d.ts +0 -245
  44. package/lib/ele-modal/props.cjs +0 -71
  45. package/lib/ele-modal/props.d.ts +0 -135
  46. package/lib/ele-modal/style/css-var.scss +0 -8
  47. package/lib/ele-modal/style/index.cjs +0 -4
  48. package/lib/ele-modal/style/index.d.ts +0 -1
  49. package/lib/ele-modal/style/index.scss +0 -259
  50. package/lib/ele-modal/types.d.ts +0 -43
  51. package/lib/ele-modal/util.cjs +0 -301
  52. package/lib/ele-modal/util.d.ts +0 -52
@@ -8,18 +8,18 @@ const wrapperClass = "ele-dialog";
8
8
  const closedClass = "ele-dialog-closed";
9
9
  const fixTop = 0.65;
10
10
  const fixLeft = 0.65;
11
- function getModalEl(dialogRef) {
11
+ function getDialogEl(dialogRef) {
12
12
  var _a, _b;
13
13
  const el = (_b = vue.unref((_a = vue.unref(dialogRef)) == null ? void 0 : _a.dialogContentRef)) == null ? void 0 : _b.$el;
14
14
  return el;
15
15
  }
16
- function initModalStyle(modalEl) {
17
- modalEl.style.top = modalEl.offsetTop + "px";
18
- modalEl.style.left = modalEl.offsetLeft + "px";
19
- modalEl.style.right = "auto";
20
- modalEl.style.bottom = "auto";
21
- modalEl.style.position = "absolute";
22
- modalEl.style.margin = "0";
16
+ function initDialogStyle(dialogEl) {
17
+ dialogEl.style.top = dialogEl.offsetTop + "px";
18
+ dialogEl.style.left = dialogEl.offsetLeft + "px";
19
+ dialogEl.style.right = "auto";
20
+ dialogEl.style.bottom = "auto";
21
+ dialogEl.style.position = "absolute";
22
+ dialogEl.style.margin = "0";
23
23
  }
24
24
  function canMoveOut(moveOut, direction) {
25
25
  if (direction && moveOut != null && Array.isArray(moveOut)) {
@@ -27,9 +27,9 @@ function canMoveOut(moveOut, direction) {
27
27
  }
28
28
  return false;
29
29
  }
30
- function getModalContainer(inner, multiple, appendTo, modalsEl) {
30
+ function getDialogContainer(inner, multiple, appendTo, dialogsEl) {
31
31
  if (multiple) {
32
- const parent = (inner ? modalsEl : void 0) || document.body;
32
+ const parent = (inner ? dialogsEl : void 0) || document.body;
33
33
  const wrapper = core.queryChild(parent, containerClass);
34
34
  if (wrapper) {
35
35
  return wrapper;
@@ -39,37 +39,37 @@ function getModalContainer(inner, multiple, appendTo, modalsEl) {
39
39
  parent.appendChild(elem);
40
40
  return elem;
41
41
  }
42
- if (inner && modalsEl) {
43
- return modalsEl;
42
+ if (inner && dialogsEl) {
43
+ return dialogsEl;
44
44
  }
45
45
  return appendTo || "body";
46
46
  }
47
- function useModalMove(dialogRef, props, isFullscreen) {
48
- let modalEl = null;
47
+ function useDialogMove(dialogRef, props, isFullscreen) {
48
+ let dialogEl = null;
49
49
  let wrapEl = null;
50
50
  let downOL = null;
51
51
  let downOT = null;
52
52
  const { handleMousedown, handleTouchstart } = hook.useMoveEvent({
53
53
  start: () => {
54
- modalEl = getModalEl(dialogRef);
55
- wrapEl = modalEl == null ? void 0 : modalEl.parentElement;
56
- if (!modalEl || !wrapEl || !props.draggable || isFullscreen.value) {
54
+ dialogEl = getDialogEl(dialogRef);
55
+ wrapEl = dialogEl == null ? void 0 : dialogEl.parentElement;
56
+ if (!dialogEl || !wrapEl || !props.draggable || isFullscreen.value) {
57
57
  return;
58
58
  }
59
- modalEl.style.userSelect = "none";
60
- initModalStyle(modalEl);
61
- downOL = modalEl.offsetLeft;
62
- downOT = modalEl.offsetTop;
59
+ dialogEl.style.userSelect = "none";
60
+ initDialogStyle(dialogEl);
61
+ downOL = dialogEl.offsetLeft;
62
+ downOT = dialogEl.offsetTop;
63
63
  },
64
64
  move: ({ distanceX, distanceY, e }) => {
65
- if (!modalEl || !wrapEl || downOL == null || downOT == null || distanceX == null || distanceY == null) {
65
+ if (!dialogEl || !wrapEl || downOL == null || downOT == null || distanceX == null || distanceY == null) {
66
66
  return;
67
67
  }
68
68
  e.preventDefault();
69
69
  let positionLeft = distanceX + downOL;
70
70
  let positionTop = distanceY + downOT;
71
- const limitL = wrapEl.clientWidth - modalEl.clientWidth - fixLeft;
72
- const limitT = wrapEl.clientHeight - modalEl.clientHeight - fixTop;
71
+ const limitL = wrapEl.clientWidth - dialogEl.clientWidth - fixLeft;
72
+ const limitT = wrapEl.clientHeight - dialogEl.clientHeight - fixTop;
73
73
  if (!props.moveOut) {
74
74
  if (positionLeft < 0) {
75
75
  positionLeft = 0;
@@ -104,16 +104,16 @@ function useModalMove(dialogRef, props, isFullscreen) {
104
104
  positionTop = minLimitT;
105
105
  }
106
106
  }
107
- modalEl.style.left = `${Math.floor(positionLeft)}px`;
108
- modalEl.style.top = `${Math.floor(positionTop)}px`;
107
+ dialogEl.style.left = `${Math.floor(positionLeft)}px`;
108
+ dialogEl.style.top = `${Math.floor(positionTop)}px`;
109
109
  },
110
110
  end: () => {
111
- if (modalEl) {
112
- modalEl.style.userSelect = "";
111
+ if (dialogEl) {
112
+ dialogEl.style.userSelect = "";
113
113
  }
114
114
  downOL = null;
115
115
  downOT = null;
116
- modalEl = null;
116
+ dialogEl = null;
117
117
  wrapEl = null;
118
118
  },
119
119
  touchmoveOptions: { passive: false }
@@ -123,52 +123,52 @@ function useModalMove(dialogRef, props, isFullscreen) {
123
123
  handleHeaderTouchstart: handleTouchstart
124
124
  };
125
125
  }
126
- function useModalResize(dialogRef, props, isFullscreen) {
127
- let modalEl = null;
126
+ function useDialogResize(dialogRef, props, isFullscreen) {
127
+ let dialogEl = null;
128
128
  let wrapEl = null;
129
129
  let downW = null;
130
130
  let downH = null;
131
131
  const { handleMousedown, handleTouchstart } = hook.useMoveEvent({
132
132
  start: () => {
133
- modalEl = getModalEl(dialogRef);
134
- wrapEl = modalEl == null ? void 0 : modalEl.parentElement;
135
- if (!modalEl || !wrapEl || !props.resizable || isFullscreen.value) {
133
+ dialogEl = getDialogEl(dialogRef);
134
+ wrapEl = dialogEl == null ? void 0 : dialogEl.parentElement;
135
+ if (!dialogEl || !wrapEl || !props.resizable || isFullscreen.value) {
136
136
  return;
137
137
  }
138
- modalEl.style.userSelect = "none";
139
- initModalStyle(modalEl);
140
- downW = modalEl.clientWidth;
141
- downH = modalEl.clientHeight;
138
+ dialogEl.style.userSelect = "none";
139
+ initDialogStyle(dialogEl);
140
+ downW = dialogEl.clientWidth;
141
+ downH = dialogEl.clientHeight;
142
142
  },
143
143
  move: ({ distanceX, distanceY, e }) => {
144
- if (!modalEl || !wrapEl || downW == null || downH == null || distanceX == null || distanceY == null) {
144
+ if (!dialogEl || !wrapEl || downW == null || downH == null || distanceX == null || distanceY == null) {
145
145
  return;
146
146
  }
147
147
  e.preventDefault();
148
148
  if (props.resizable !== "vertical") {
149
149
  const w = distanceX + downW;
150
- const maxW = wrapEl.clientWidth - modalEl.offsetLeft - fixLeft;
150
+ const maxW = wrapEl.clientWidth - dialogEl.offsetLeft - fixLeft;
151
151
  const nw = (w < props.minWidth ? props.minWidth : !canMoveOut(props.moveOut, "right") && w > maxW ? maxW : w) + "px";
152
- modalEl.style.width = nw;
153
- modalEl.style.maxWidth = nw;
154
- modalEl.style.minWidth = nw;
152
+ dialogEl.style.width = nw;
153
+ dialogEl.style.maxWidth = nw;
154
+ dialogEl.style.minWidth = nw;
155
155
  }
156
156
  if (props.resizable !== "horizontal") {
157
157
  const h = distanceY + downH;
158
- const maxH = wrapEl.clientHeight - modalEl.offsetTop - fixTop;
158
+ const maxH = wrapEl.clientHeight - dialogEl.offsetTop - fixTop;
159
159
  const nh = (h < props.minHeight ? props.minHeight : !canMoveOut(props.moveOut, "bottom") && h > maxH ? maxH : h) + "px";
160
- modalEl.style.height = nh;
161
- modalEl.style.maxHeight = nh;
162
- modalEl.style.minHeight = nh;
160
+ dialogEl.style.height = nh;
161
+ dialogEl.style.maxHeight = nh;
162
+ dialogEl.style.minHeight = nh;
163
163
  }
164
164
  },
165
165
  end: () => {
166
- if (modalEl) {
167
- modalEl.style.userSelect = "";
166
+ if (dialogEl) {
167
+ dialogEl.style.userSelect = "";
168
168
  }
169
169
  downW = null;
170
170
  downH = null;
171
- modalEl = null;
171
+ dialogEl = null;
172
172
  wrapEl = null;
173
173
  },
174
174
  touchmoveOptions: { passive: false }
@@ -178,38 +178,30 @@ function useModalResize(dialogRef, props, isFullscreen) {
178
178
  handleResizeTouchstart: handleTouchstart
179
179
  };
180
180
  }
181
- function useModalEvent(dialogRef, props, isFullscreen) {
182
- const { handleHeaderMousedown, handleHeaderTouchstart } = useModalMove(
183
- dialogRef,
184
- props,
185
- isFullscreen
186
- );
187
- const { handleResizeMousedown, handleResizeTouchstart } = useModalResize(
188
- dialogRef,
189
- props,
190
- isFullscreen
191
- );
181
+ function useDialogEvent(dialogRef, props, isFullscreen) {
182
+ const { handleHeaderMousedown, handleHeaderTouchstart } = useDialogMove(dialogRef, props, isFullscreen);
183
+ const { handleResizeMousedown, handleResizeTouchstart } = useDialogResize(dialogRef, props, isFullscreen);
192
184
  let isInitPosition = true;
193
185
  const getZIndex = () => {
194
186
  return props.zIndex ?? 2e3;
195
187
  };
196
- const topModal = (el) => {
188
+ const topDialog = (el) => {
197
189
  var _a;
198
- const modalEl = el ?? getModalEl(dialogRef);
199
- const overlayEl = (_a = modalEl == null ? void 0 : modalEl.parentElement) == null ? void 0 : _a.parentElement;
190
+ const dialogEl = el ?? getDialogEl(dialogRef);
191
+ const overlayEl = (_a = dialogEl == null ? void 0 : dialogEl.parentElement) == null ? void 0 : _a.parentElement;
200
192
  if (!overlayEl) {
201
193
  return;
202
194
  }
203
195
  const currentIndex = core.getCurrentStyle(overlayEl).zIndex;
204
196
  const containerEl = overlayEl.parentElement;
205
197
  const cls = `.${wrapperClass}:not(.${closedClass})`;
206
- const modals = containerEl ? containerEl.querySelectorAll(cls) : void 0;
198
+ const dialogs = containerEl ? containerEl.querySelectorAll(cls) : void 0;
207
199
  let maxIndex = 0;
208
- (modals ? Array.from(modals) : []).forEach((modalEl2) => {
209
- const zIndex = core.getCurrentStyle(modalEl2).zIndex;
200
+ (dialogs ? Array.from(dialogs) : []).forEach((dialogEl2) => {
201
+ const zIndex = core.getCurrentStyle(dialogEl2).zIndex;
210
202
  if (zIndex != null) {
211
203
  const index = Number(zIndex);
212
- if (index >= maxIndex && (!overlayEl || modalEl2 !== overlayEl)) {
204
+ if (index >= maxIndex && (!overlayEl || dialogEl2 !== overlayEl)) {
213
205
  maxIndex = index + 1;
214
206
  }
215
207
  }
@@ -220,21 +212,21 @@ function useModalEvent(dialogRef, props, isFullscreen) {
220
212
  };
221
213
  const mousedownListener = (event) => {
222
214
  if (props.multiple) {
223
- topModal(event.currentTarget);
215
+ topDialog(event.currentTarget);
224
216
  }
225
217
  };
226
218
  const bindAutoTopEvent = () => {
227
- const modalEl = getModalEl(dialogRef);
228
- if (modalEl) {
229
- modalEl.addEventListener("mousedown", mousedownListener);
230
- modalEl.addEventListener("touchstart", mousedownListener);
219
+ const dialogEl = getDialogEl(dialogRef);
220
+ if (dialogEl) {
221
+ dialogEl.addEventListener("mousedown", mousedownListener);
222
+ dialogEl.addEventListener("touchstart", mousedownListener);
231
223
  }
232
224
  };
233
225
  const unbindAutoTopEvent = () => {
234
- const modalEl = getModalEl(dialogRef);
235
- if (modalEl) {
236
- modalEl.removeEventListener("mousedown", mousedownListener);
237
- modalEl.removeEventListener("touchstart", mousedownListener);
226
+ const dialogEl = getDialogEl(dialogRef);
227
+ if (dialogEl) {
228
+ dialogEl.removeEventListener("mousedown", mousedownListener);
229
+ dialogEl.removeEventListener("touchstart", mousedownListener);
238
230
  }
239
231
  };
240
232
  const getPositionMargin = (position) => {
@@ -255,29 +247,29 @@ function useModalEvent(dialogRef, props, isFullscreen) {
255
247
  const setInitPosition = () => {
256
248
  if (isInitPosition) {
257
249
  isInitPosition = false;
258
- const modalEl = getModalEl(dialogRef);
250
+ const dialogEl = getDialogEl(dialogRef);
259
251
  const margin = getPositionMargin(getPosition());
260
- if (modalEl && margin != null) {
261
- modalEl.style.margin = margin;
252
+ if (dialogEl && margin != null) {
253
+ dialogEl.style.margin = margin;
262
254
  }
263
255
  }
264
256
  };
265
- const resetModalStyle = () => {
266
- const modalEl = getModalEl(dialogRef);
267
- if (modalEl) {
257
+ const resetDialogStyle = () => {
258
+ const dialogEl = getDialogEl(dialogRef);
259
+ if (dialogEl) {
268
260
  const w = props.width;
269
- modalEl.style.margin = getPositionMargin(getPosition()) || "";
270
- modalEl.style.position = "";
271
- modalEl.style.top = "";
272
- modalEl.style.left = "";
273
- modalEl.style.right = "";
274
- modalEl.style.bottom = "";
275
- modalEl.style.height = "";
276
- modalEl.style.maxHeight = "";
277
- modalEl.style.minHeight = "";
278
- modalEl.style.width = typeof w === "number" ? `${w}px` : w ?? "";
279
- modalEl.style.maxWidth = "";
280
- modalEl.style.minWidth = "";
261
+ dialogEl.style.margin = getPositionMargin(getPosition()) || "";
262
+ dialogEl.style.position = "";
263
+ dialogEl.style.top = "";
264
+ dialogEl.style.left = "";
265
+ dialogEl.style.right = "";
266
+ dialogEl.style.bottom = "";
267
+ dialogEl.style.height = "";
268
+ dialogEl.style.maxHeight = "";
269
+ dialogEl.style.minHeight = "";
270
+ dialogEl.style.width = typeof w === "number" ? `${w}px` : w ?? "";
271
+ dialogEl.style.maxWidth = "";
272
+ dialogEl.style.minWidth = "";
281
273
  }
282
274
  };
283
275
  return {
@@ -287,15 +279,15 @@ function useModalEvent(dialogRef, props, isFullscreen) {
287
279
  handleResizeTouchstart,
288
280
  bindAutoTopEvent,
289
281
  unbindAutoTopEvent,
290
- topModal,
282
+ topDialog,
291
283
  setInitPosition,
292
- resetModalStyle
284
+ resetDialogStyle
293
285
  };
294
286
  }
295
287
  exports.closedClass = closedClass;
296
288
  exports.containerClass = containerClass;
297
- exports.getModalContainer = getModalContainer;
298
- exports.useModalEvent = useModalEvent;
299
- exports.useModalMove = useModalMove;
300
- exports.useModalResize = useModalResize;
289
+ exports.getDialogContainer = getDialogContainer;
290
+ exports.useDialogEvent = useDialogEvent;
291
+ exports.useDialogMove = useDialogMove;
292
+ exports.useDialogResize = useDialogResize;
301
293
  exports.wrapperClass = wrapperClass;
@@ -1,6 +1,6 @@
1
1
  import { Ref } from 'vue';
2
2
  import { ElDialogInstance } from '../ele-app/el';
3
- import { ModalProps } from './props';
3
+ import { DialogProps } from './props';
4
4
 
5
5
  export declare const containerClass = "ele-dialog-container";
6
6
  export declare const wrapperClass = "ele-dialog";
@@ -10,16 +10,16 @@ export declare const closedClass = "ele-dialog-closed";
10
10
  * @param inner 是否限制在主体内部
11
11
  * @param multiple 是否支持同时打开多个
12
12
  * @param appendTo 自定义插入的容器
13
- * @param modalsEl 限制在主体内部时的容器
13
+ * @param dialogsEl 限制在主体内部时的容器
14
14
  */
15
- export declare function getModalContainer(inner?: boolean, multiple?: boolean, appendTo?: string | HTMLElement, modalsEl?: HTMLElement | null): HTMLElement | string;
15
+ export declare function getDialogContainer(inner?: boolean, multiple?: boolean, appendTo?: string | HTMLElement, dialogsEl?: HTMLElement | null): HTMLElement | string;
16
16
  /**
17
17
  * 弹窗支持移动
18
18
  * @param dialogRef 弹窗实例
19
19
  * @param props 属性
20
20
  * @param isFullscreen 全屏状态
21
21
  */
22
- export declare function useModalMove(dialogRef: Ref<ElDialogInstance>, props: ModalProps, isFullscreen: Ref<boolean>): {
22
+ export declare function useDialogMove(dialogRef: Ref<ElDialogInstance>, props: DialogProps, isFullscreen: Ref<boolean>): {
23
23
  handleHeaderMousedown: (e: MouseEvent) => void;
24
24
  handleHeaderTouchstart: (e: TouchEvent) => void;
25
25
  };
@@ -29,7 +29,7 @@ export declare function useModalMove(dialogRef: Ref<ElDialogInstance>, props: Mo
29
29
  * @param props 属性
30
30
  * @param isFullscreen 全屏状态
31
31
  */
32
- export declare function useModalResize(dialogRef: Ref<ElDialogInstance>, props: ModalProps, isFullscreen: Ref<boolean>): {
32
+ export declare function useDialogResize(dialogRef: Ref<ElDialogInstance>, props: DialogProps, isFullscreen: Ref<boolean>): {
33
33
  handleResizeMousedown: (e: MouseEvent) => void;
34
34
  handleResizeTouchstart: (e: TouchEvent) => void;
35
35
  };
@@ -39,14 +39,14 @@ export declare function useModalResize(dialogRef: Ref<ElDialogInstance>, props:
39
39
  * @param props 属性
40
40
  * @param isFullscreen 全屏状态
41
41
  */
42
- export declare function useModalEvent(dialogRef: Ref<ElDialogInstance>, props: ModalProps, isFullscreen: Ref<boolean>): {
42
+ export declare function useDialogEvent(dialogRef: Ref<ElDialogInstance>, props: DialogProps, isFullscreen: Ref<boolean>): {
43
43
  handleHeaderMousedown: (e: MouseEvent) => void;
44
44
  handleHeaderTouchstart: (e: TouchEvent) => void;
45
45
  handleResizeMousedown: (e: MouseEvent) => void;
46
46
  handleResizeTouchstart: (e: TouchEvent) => void;
47
47
  bindAutoTopEvent: () => void;
48
48
  unbindAutoTopEvent: () => void;
49
- topModal: (el?: HTMLElement) => void;
49
+ topDialog: (el?: HTMLElement) => void;
50
50
  setInitPosition: () => void;
51
- resetModalStyle: () => void;
51
+ resetDialogStyle: () => void;
52
52
  };
@@ -22,7 +22,9 @@
22
22
  @use '../ele-loading/style/index.scss' as loading;
23
23
  @use '../ele-map-picker/style/index.scss' as mapPicker;
24
24
  @use '../ele-menus/style/index.scss' as menus;
25
+ // temp
25
26
  @use '../ele-dialog/style/index.scss' as modal;
27
+ @use '../ele-dialog/style/index.scss' as dialog;
26
28
  @use '../ele-page/style/index.scss' as page;
27
29
  @use '../ele-pagination/style/index.scss' as pagination;
28
30
  @use '../ele-popconfirm/style/index.scss' as popconfirm;
@@ -460,6 +460,7 @@ $ele: map.deep-merge(
460
460
  'bg-7': #7dd733,
461
461
  'bg-8': #faad14
462
462
  ),
463
+ // temp
463
464
  'modal': (
464
465
  // 弹窗
465
466
  'bg': elVar('bg-color', 'overlay'),
@@ -484,6 +485,31 @@ $ele: map.deep-merge(
484
485
  'fullscreen-border': 1px solid elVar('border-color', 'light'),
485
486
  'mobile-space': 16px
486
487
  ),
488
+
489
+ 'dialog': (
490
+ // 弹窗
491
+ 'bg': elVar('bg-color', 'overlay'),
492
+ 'radius': elVar('border-radius', 'base'),
493
+ 'header-color': elVar('text-color', 'primary'),
494
+ 'header-font-size': elVar('font-size', 'medium'),
495
+ 'header-font-weight': normal,
496
+ 'header-line-height': 24px,
497
+ 'header-padding': 14px 20px,
498
+ 'header-border': 1px solid elVar('border-color', 'light'),
499
+ 'icon-size': 22px,
500
+ 'icon-font-size': 16px,
501
+ 'icon-color': elVar('text-color', 'secondary'),
502
+ 'icon-hover-color': elVar('text-color', 'primary'),
503
+ 'icon-hover-bg': transparent,
504
+ 'icon-radius': elVar('border-radius', 'small'),
505
+ 'icon-space': 8px,
506
+ 'body-padding': 24px 22px,
507
+ 'form-body-padding': 24px 22px 12px 20px,
508
+ 'footer-padding': 10px 20px,
509
+ 'footer-border': 1px solid elVar('border-color', 'light'),
510
+ 'fullscreen-border': 1px solid elVar('border-color', 'light'),
511
+ 'mobile-space': 16px
512
+ ),
487
513
  'page': (
488
514
  // 页面容器
489
515
  'padding': 16px,