@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.
@@ -1,5 +1,5 @@
1
1
  export * from './use-dragable';
2
- export * from './use-drawer';
2
+ export * from './use-drawer-modal';
3
3
  export * from './use-flex-gap-support';
4
4
  export * from './use-local-icon';
5
5
  export * from './use-locale';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/composable/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAA;AAC9B,cAAc,cAAc,CAAA;AAC5B,cAAc,wBAAwB,CAAA;AACtC,cAAc,kBAAkB,CAAA;AAChC,cAAc,cAAc,CAAA;AAC5B,cAAc,kBAAkB,CAAA;AAChC,cAAc,oBAAoB,CAAA;AAClC,cAAc,iBAAiB,CAAA;AAC/B,cAAc,0BAA0B,CAAA;AACxC,cAAc,mBAAmB,CAAA;AACjC,cAAc,uBAAuB,CAAA;AACrC,cAAc,eAAe,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/composable/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAA;AAC9B,cAAc,oBAAoB,CAAA;AAClC,cAAc,wBAAwB,CAAA;AACtC,cAAc,kBAAkB,CAAA;AAChC,cAAc,cAAc,CAAA;AAC5B,cAAc,kBAAkB,CAAA;AAChC,cAAc,oBAAoB,CAAA;AAClC,cAAc,iBAAiB,CAAA;AAC/B,cAAc,0BAA0B,CAAA;AACxC,cAAc,mBAAmB,CAAA;AACjC,cAAc,uBAAuB,CAAA;AACrC,cAAc,eAAe,CAAA"}
@@ -11,4 +11,4 @@ export declare function useBasicDrawerModal(params?: BasicDrawerModalHooks): {
11
11
  loading: import('vue').Ref<boolean, boolean>;
12
12
  };
13
13
  export type { BasicDrawerModalContext, BasicDrawerModalHooks, BasicDrawerModalType };
14
- //# sourceMappingURL=use-drawer.d.ts.map
14
+ //# sourceMappingURL=use-drawer-modal.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-drawer-modal.d.ts","sourceRoot":"","sources":["../../src/composable/use-drawer-modal.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,uBAAuB,EAAE,qBAAqB,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAA;AAG1G,wBAAgB,mBAAmB,CAAC,MAAM,GAAE,qBAA0B;oBAe7C,uBAAuB;;;;;;;;;EAyB/C;AAED,YAAY,EAAE,uBAAuB,EAAE,qBAAqB,EAAE,oBAAoB,EAAE,CAAA"}
package/dist/index.cjs CHANGED
@@ -4,7 +4,7 @@ const utils = require("@maxax/utils");
4
4
  const vue = require("vue");
5
5
  const BScroll = require("@better-scroll/core");
6
6
  const naiveUi = require("naive-ui");
7
- const utils$1 = require("./utils-BlU-30Gl.cjs");
7
+ const utils$1 = require("./utils-CaGh1NhT.cjs");
8
8
  const lodashEs = require("lodash-es");
9
9
  const hooks = require("@maxax/hooks");
10
10
  const dateFns = require("date-fns");
@@ -813,7 +813,7 @@ function useBasicDrawerModal(params = {}) {
813
813
  const { t } = useLocale();
814
814
  const visibleRef = vue.ref(false);
815
815
  const { bool: loadingRef, setTrue: showLoading, setFalse: hideLoading } = hooks.useBoolean();
816
- const typeRef = vue.ref("add");
816
+ const typeRef = vue.ref("other");
817
817
  const dataRef = vue.ref({});
818
818
  const titleRef = vue.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 = "add";
831
+ typeRef.value = "other";
832
832
  dataRef.value = {};
833
833
  (_a = params.onHide) == null ? void 0 : _a.call(params);
834
834
  }