vue3-components-plus 3.0.21 → 3.0.23
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.
|
@@ -44931,7 +44931,6 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
44931
44931
|
type: Function,
|
|
44932
44932
|
default: null
|
|
44933
44933
|
},
|
|
44934
|
-
// 有放大按钮时不允许拖动,避免位置偏差
|
|
44935
44934
|
draggable: {
|
|
44936
44935
|
type: Boolean,
|
|
44937
44936
|
default: false
|
|
@@ -44949,7 +44948,6 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
44949
44948
|
type: [Number, String],
|
|
44950
44949
|
default: null
|
|
44951
44950
|
},
|
|
44952
|
-
// 有放大按钮时不允许拖动,避免位置偏差
|
|
44953
44951
|
maxSize: {
|
|
44954
44952
|
type: Function,
|
|
44955
44953
|
default: null
|
|
@@ -44966,13 +44964,13 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
44966
44964
|
},
|
|
44967
44965
|
setup(__props) {
|
|
44968
44966
|
useCssVars((_ctx) => ({
|
|
44969
|
-
"
|
|
44970
|
-
"
|
|
44971
|
-
"
|
|
44972
|
-
"
|
|
44973
|
-
"
|
|
44974
|
-
"
|
|
44975
|
-
"
|
|
44967
|
+
"v77f2af18": __props.modalColor,
|
|
44968
|
+
"v7a8999b8": _height.value,
|
|
44969
|
+
"d0083dbc": dialogPosition.value.left,
|
|
44970
|
+
"bc631e4c": dialogPosition.value.top,
|
|
44971
|
+
"v565b3321": tbPadding.value,
|
|
44972
|
+
"v324a8909": lrPadding.value,
|
|
44973
|
+
"v437133ce": _centerHeight.value
|
|
44976
44974
|
}));
|
|
44977
44975
|
const asyncDom = computed(() => {
|
|
44978
44976
|
var _a3;
|
|
@@ -45129,11 +45127,17 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
45129
45127
|
watch(
|
|
45130
45128
|
() => currentHeight.value,
|
|
45131
45129
|
(newVal) => {
|
|
45132
|
-
if (newVal) {
|
|
45130
|
+
if (newVal !== null && newVal !== void 0 && newVal !== "") {
|
|
45133
45131
|
try {
|
|
45134
|
-
const topBottom = tbPadding.value.replace("px", "");
|
|
45135
|
-
|
|
45136
|
-
|
|
45132
|
+
const topBottom = parseFloat((tbPadding.value || "0").toString().replace("px", "")) || 0;
|
|
45133
|
+
const heightValue = String(newVal).trim();
|
|
45134
|
+
if (typeof newVal === "number" || /^\d+(\.\d+)?(px)?$/.test(heightValue)) {
|
|
45135
|
+
const baseHeight = parseFloat(heightValue);
|
|
45136
|
+
_height.value = `${baseHeight - topBottom}px`;
|
|
45137
|
+
} else {
|
|
45138
|
+
_height.value = `calc(${heightValue} - ${topBottom}px)`;
|
|
45139
|
+
}
|
|
45140
|
+
_centerHeight.value = `calc(100% - ${topBottom * 2}px)`;
|
|
45137
45141
|
return;
|
|
45138
45142
|
} catch (error) {
|
|
45139
45143
|
console.log(error);
|
|
@@ -45239,11 +45243,11 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
45239
45243
|
const _component_el_button = resolveComponent("el-button");
|
|
45240
45244
|
const _component_el_dialog = resolveComponent("el-dialog");
|
|
45241
45245
|
return openBlock(), createBlock(_component_el_dialog, {
|
|
45242
|
-
class: normalizeClass(["dialog-plus", props.class, { "dialog-absolute-position": isAbsolutePosition.value }]),
|
|
45246
|
+
class: normalizeClass(["dialog-plus", props.class, { "dialog-absolute-position": isAbsolutePosition.value, "dialog-maximized": isMaximized.value }]),
|
|
45243
45247
|
"modal-class": ["dialog-plus-modal", props.class ? props.class + "-modal" : ""],
|
|
45244
45248
|
modal: props.modal,
|
|
45245
45249
|
"modal-penetrable": props.modal + "" === "false",
|
|
45246
|
-
draggable: props.draggable
|
|
45250
|
+
draggable: props.draggable,
|
|
45247
45251
|
"close-on-click-modal": props.closeOnClickModal,
|
|
45248
45252
|
"align-center": "",
|
|
45249
45253
|
modelValue: visible.value,
|