z-ui-pc 0.3.3 → 0.3.5

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.d.ts CHANGED
@@ -727,17 +727,18 @@ export declare enum EBaseFormEvent {
727
727
  /**
728
728
  * 全屏弹框事件
729
729
  * NOTICE: 注意如果子组件有相同的事件分发上来也是可以直接关闭弹框的。
730
+ * XXX:不使用enum,否者类型会报错
730
731
  */
731
- export declare enum EDialogEvent {
732
+ export declare const EDialogEvent: {
732
733
  /**
733
734
  * 确认
734
735
  */
735
- CONFIRM = "dialog:confirm",
736
+ CONFIRM: string;
736
737
  /**
737
738
  * 取消
738
739
  */
739
- CANCEL = "dialog:cancel"
740
- }
740
+ CANCEL: string;
741
+ };
741
742
 
742
743
  export declare enum EFormComponentType {
743
744
  /**
package/dist/index.js CHANGED
@@ -6247,7 +6247,7 @@ const getInstallConfig = (config) => ({
6247
6247
  ...defaultConfig,
6248
6248
  ...config ?? {}
6249
6249
  });
6250
- const version = "0.3.3";
6250
+ const version = "0.3.5";
6251
6251
  const pkg = {
6252
6252
  version
6253
6253
  };
@@ -6307,11 +6307,16 @@ const formatGroupSelectInputToObject = (selectKey, valueKey) => (values) => {
6307
6307
  }
6308
6308
  return result;
6309
6309
  };
6310
- var EDialogEvent = /* @__PURE__ */ ((EDialogEvent2) => {
6311
- EDialogEvent2["CONFIRM"] = "dialog:confirm";
6312
- EDialogEvent2["CANCEL"] = "dialog:cancel";
6313
- return EDialogEvent2;
6314
- })(EDialogEvent || {});
6310
+ const EDialogEvent = {
6311
+ /**
6312
+ * 确认
6313
+ */
6314
+ CONFIRM: "dialog:confirm",
6315
+ /**
6316
+ * 取消
6317
+ */
6318
+ CANCEL: "dialog:cancel"
6319
+ };
6315
6320
  const DIALOG_ROOT_ID = "__dialog_root__";
6316
6321
  const getRoot = () => {
6317
6322
  let root = document.getElementById(DIALOG_ROOT_ID);
@@ -6407,17 +6412,11 @@ const useOpenDialog = () => {
6407
6412
  });
6408
6413
  }
6409
6414
  },
6410
- [getListenerName(
6411
- "dialog:confirm"
6412
- /* CONFIRM */
6413
- )]: (data) => {
6415
+ [getListenerName(EDialogEvent.CONFIRM)]: (data) => {
6414
6416
  resolve(data);
6415
6417
  closeDialog();
6416
6418
  },
6417
- [getListenerName(
6418
- "dialog:cancel"
6419
- /* CANCEL */
6420
- )]: (data) => {
6419
+ [getListenerName(EDialogEvent.CANCEL)]: (data) => {
6421
6420
  reject(data);
6422
6421
  closeDialog();
6423
6422
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "z-ui-pc",
3
- "version": "0.3.3",
3
+ "version": "0.3.5",
4
4
  "description": "适用于pc端的前端组件库",
5
5
  "module": "dist/index.js",
6
6
  "types": "dist/index.d.ts",