sun-biz 0.0.3-beta.17 → 0.0.3-beta.18

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.
@@ -705,7 +705,8 @@ const _hoisted_1 = {
705
705
  },
706
706
  emits: [
707
707
  "success",
708
- "cancel"
708
+ "cancel",
709
+ "close"
709
710
  ],
710
711
  setup (__props, { expose: __expose, emit: __emit }) {
711
712
  const { visible, closeDialog, openDialog } = useDialog();
@@ -716,6 +717,7 @@ const _hoisted_1 = {
716
717
  // 纯关闭弹窗,不执行其他操作,用于左上角X
717
718
  const justCloseDialog = ()=>{
718
719
  closeDialog();
720
+ emits("close");
719
721
  };
720
722
  // 处理常规关闭,支持before-close钩子
721
723
  const handleClose = ()=>{
@@ -17,6 +17,7 @@ export type UserInfo = {
17
17
  userName: string;
18
18
  adminFlag: 0 | 1;
19
19
  userTypeCode: string;
20
+ userJobCode: string;
20
21
  };
21
22
  export type PreferenceData = {
22
23
  preferId?: string;
package/dist/index.js CHANGED
@@ -706,7 +706,8 @@ const _hoisted_1 = {
706
706
  },
707
707
  emits: [
708
708
  "success",
709
- "cancel"
709
+ "cancel",
710
+ "close"
710
711
  ],
711
712
  setup (__props, { expose: __expose, emit: __emit }) {
712
713
  const { visible, closeDialog, openDialog } = useDialog();
@@ -717,6 +718,7 @@ const _hoisted_1 = {
717
718
  // 纯关闭弹窗,不执行其他操作,用于左上角X
718
719
  const justCloseDialog = ()=>{
719
720
  closeDialog();
721
+ emits("close");
720
722
  };
721
723
  // 处理常规关闭,支持before-close钩子
722
724
  const handleClose = ()=>{
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sun-biz",
3
- "version": "0.0.3-beta.17",
3
+ "version": "0.0.3-beta.18",
4
4
  "type": "module",
5
5
  "workspaces": [
6
6
  "src/*",