@maxax/ui 1.1.19 → 1.1.20
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/composable/index.d.ts +1 -1
- package/dist/composable/index.d.ts.map +1 -1
- package/dist/composable/{use-drawer.d.ts → use-drawer-modal.d.ts} +1 -1
- package/dist/composable/use-drawer-modal.d.ts.map +1 -0
- package/dist/index.cjs +3 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +3 -3
- package/dist/index.mjs.map +1 -1
- package/dist/locale/lang/en.d.ts.map +1 -1
- package/dist/locale/lang/zh-cn.d.ts.map +1 -1
- package/dist/locales.cjs +3 -2
- package/dist/locales.cjs.map +1 -1
- package/dist/locales.mjs +3 -2
- package/dist/locales.mjs.map +1 -1
- package/dist/types/basic.d.ts +2 -2
- package/dist/types/basic.d.ts.map +1 -1
- package/dist/{utils-BlU-30Gl.cjs → utils-CaGh1NhT.cjs} +3 -2
- package/dist/utils-CaGh1NhT.cjs.map +1 -0
- package/dist/{utils-BTs_N8qH.js → utils-Doo526pz.js} +3 -2
- package/dist/utils-Doo526pz.js.map +1 -0
- package/package.json +3 -3
- package/dist/composable/use-drawer.d.ts.map +0 -1
- package/dist/utils-BTs_N8qH.js.map +0 -1
- package/dist/utils-BlU-30Gl.cjs.map +0 -1
package/dist/index.mjs
CHANGED
|
@@ -2,7 +2,7 @@ import { camelize, isNumber, isString, removeClass, addClass, pascalCase, isClie
|
|
|
2
2
|
import { shallowRef, shallowReadonly, onUnmounted, onMounted, nextTick, getCurrentScope, onScopeDispose, toValue, getCurrentInstance, watch, computed, unref, Fragment, isVNode, Comment, Text, watchEffect, onBeforeUnmount, inject, ref, isRef, toRaw, defineComponent, createElementBlock, openBlock, normalizeClass, createElementVNode, renderSlot, h, useAttrs, mergeProps, createBlock, createCommentVNode, withCtx, createTextVNode, toDisplayString, createVNode, useSlots, createSlots, provide, reactive, toRefs, resolveComponent, Transition, withDirectives, withModifiers, normalizeStyle, withKeys, resolveDynamicComponent, vShow, render as render$1, useTemplateRef, renderList, triggerRef, TransitionGroup, toRef, normalizeProps, guardReactiveProps, vModelText, createApp, mergeDefaults, toHandlers } from "vue";
|
|
3
3
|
import BScroll from "@better-scroll/core";
|
|
4
4
|
import { NTooltip, NButton, NInput, NButtonGroup, NDropdown, NProgress, NModal, NSwitch, NCard, NCascader, NDatePicker, NDrawer, NDrawerContent, NSelect, NInputNumber, NUpload, NAutoComplete, NDynamicTags, NTreeSelect, NTimePicker, NCheckbox, NCheckboxGroup, NRadio, NRadioButton, NRadioGroup, NSlider, NTransfer, NDivider, NColorPicker, NRate, NCol, NFormItem, NForm, NRow, NPopover, NTabs, NTabPane, NScrollbar, NEmpty, NPagination, NSpin } from "naive-ui";
|
|
5
|
-
import { b as buildLocaleContext, z as zhCN } from "./utils-
|
|
5
|
+
import { b as buildLocaleContext, z as zhCN } from "./utils-Doo526pz.js";
|
|
6
6
|
import { merge, cloneDeep as cloneDeep$1, uniqBy, partition, get, omit, has, set, unset, isNumber as isNumber$1, isPlainObject, isBoolean as isBoolean$1, isFunction as isFunction$1, isArray as isArray$1, isString as isString$1, isEqual, concat } from "lodash-es";
|
|
7
7
|
import { useBoolean, useMergedState as useMergedState$1, useEventListener as useEventListener$1, useBreakpoint } from "@maxax/hooks";
|
|
8
8
|
import { format } from "date-fns";
|
|
@@ -813,7 +813,7 @@ function useBasicDrawerModal(params = {}) {
|
|
|
813
813
|
const { t } = useLocale();
|
|
814
814
|
const visibleRef = ref(false);
|
|
815
815
|
const { bool: loadingRef, setTrue: showLoading, setFalse: hideLoading } = useBoolean();
|
|
816
|
-
const typeRef = ref("
|
|
816
|
+
const typeRef = ref("other");
|
|
817
817
|
const dataRef = ref({});
|
|
818
818
|
const titleRef = computed(() => {
|
|
819
819
|
return t(`max.basic.${typeRef.value}`) || "";
|
|
@@ -828,7 +828,7 @@ function useBasicDrawerModal(params = {}) {
|
|
|
828
828
|
function hide() {
|
|
829
829
|
var _a;
|
|
830
830
|
visibleRef.value = false;
|
|
831
|
-
typeRef.value = "
|
|
831
|
+
typeRef.value = "other";
|
|
832
832
|
dataRef.value = {};
|
|
833
833
|
(_a = params.onHide) == null ? void 0 : _a.call(params);
|
|
834
834
|
}
|