@maxax/ui 1.1.64 → 1.1.65
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.
package/dist/index.mjs
CHANGED
|
@@ -6168,16 +6168,16 @@ function useBasicDrawerModal(params = {}) {
|
|
|
6168
6168
|
const { t: t2 } = useLocale();
|
|
6169
6169
|
const visibleRef = ref(false);
|
|
6170
6170
|
const { bool: loadingRef, setTrue: showLoading, setFalse: hideLoading } = useBoolean();
|
|
6171
|
-
const
|
|
6171
|
+
const type = ref("other");
|
|
6172
6172
|
const dataRef = ref({});
|
|
6173
6173
|
const styleRef = ref({ width: "0px" });
|
|
6174
6174
|
const titleRef = computed(() => {
|
|
6175
|
-
return t2(`max.basic.${
|
|
6175
|
+
return t2(`max.basic.${type.value}`) || "";
|
|
6176
6176
|
});
|
|
6177
6177
|
function show(context) {
|
|
6178
6178
|
var _a;
|
|
6179
6179
|
visibleRef.value = true;
|
|
6180
|
-
|
|
6180
|
+
type.value = context.type;
|
|
6181
6181
|
dataRef.value = context.data || {};
|
|
6182
6182
|
styleRef.value = { width: params.width || "0px" };
|
|
6183
6183
|
(_a = params.onShow) == null ? void 0 : _a.call(params, context);
|
|
@@ -6185,7 +6185,7 @@ function useBasicDrawerModal(params = {}) {
|
|
|
6185
6185
|
function hide() {
|
|
6186
6186
|
var _a;
|
|
6187
6187
|
visibleRef.value = false;
|
|
6188
|
-
|
|
6188
|
+
type.value = "other";
|
|
6189
6189
|
dataRef.value = {};
|
|
6190
6190
|
(_a = params.onHide) == null ? void 0 : _a.call(params);
|
|
6191
6191
|
}
|
|
@@ -6195,7 +6195,7 @@ function useBasicDrawerModal(params = {}) {
|
|
|
6195
6195
|
showLoading,
|
|
6196
6196
|
hideLoading,
|
|
6197
6197
|
visible: visibleRef,
|
|
6198
|
-
type
|
|
6198
|
+
type,
|
|
6199
6199
|
data: dataRef,
|
|
6200
6200
|
title: titleRef,
|
|
6201
6201
|
style: styleRef,
|