vue3-components-plus 3.0.23 → 3.0.25
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.
|
@@ -56,9 +56,6 @@ function openDialog(data = {}) {
|
|
|
56
56
|
width: '800px', // 宽度, 整个弹出框的高度,非内容高度
|
|
57
57
|
height: '450px', // 高度, 不配置则默认为内容高度
|
|
58
58
|
dialogPadding: [10, 20], // 弹窗内padding
|
|
59
|
-
// 弹窗绝对定位
|
|
60
|
-
x: 250 + openIndex.value * 20,
|
|
61
|
-
y: 100 + openIndex.value * 20,
|
|
62
59
|
// 设置函数时,则有放大和还原按钮,且按返回的对象设置弹出框。(会关闭拖动功能)
|
|
63
60
|
// maxSize: function () {
|
|
64
61
|
// return { width: '100%', height: '800px', x: 0, y: 100 }
|
|
@@ -68,6 +65,16 @@ function openDialog(data = {}) {
|
|
|
68
65
|
showFooter: true, // 默认显示底部按钮
|
|
69
66
|
immediately: false, // true立即取消弹出框, false异步请求后取消弹出框,默认false
|
|
70
67
|
draggable: true, // 是否可拖拽,默认false
|
|
68
|
+
// 最大化方法
|
|
69
|
+
maxSize: () => ({
|
|
70
|
+
width: '100%',
|
|
71
|
+
height: '100%',
|
|
72
|
+
x: 0,
|
|
73
|
+
y: 0
|
|
74
|
+
}),
|
|
75
|
+
// 弹窗绝对定位
|
|
76
|
+
x: 'calc(50% - 400px)',
|
|
77
|
+
y: 'calc(50% - 225px)',
|
|
71
78
|
// 底部确认按钮回调事件
|
|
72
79
|
confirm: async (closeFn: any, componentRef: any, footerLoading: any) => {
|
|
73
80
|
// 2.componentRef可以调用内部函数,前提需要defineExpose
|