sun-biz 0.0.3-beta.16 → 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 = ()=>{
@@ -5783,7 +5785,7 @@ const access_info_exports_ = access_infovue_type_script_setup_true_lang_ts_name_
5783
5785
  },
5784
5786
  disabled: {
5785
5787
  type: Boolean,
5786
- default: true
5788
+ default: ()=>void 0
5787
5789
  },
5788
5790
  title: {
5789
5791
  default: 'MDL'
@@ -5808,8 +5810,9 @@ const access_info_exports_ = access_infovue_type_script_setup_true_lang_ts_name_
5808
5810
  return dmlList;
5809
5811
  }
5810
5812
  const disabledLoad = (0, __WEBPACK_EXTERNAL_MODULE_vue__.computed)(()=>{
5811
- if (!__props.disabled) return __props.disabled;
5812
- return 0 === __props.bizData.length || !isCloudEnv;
5813
+ if (0 === __props.bizData.length) return true;
5814
+ if (void 0 === __props.disabled) return !isCloudEnv;
5815
+ return __props.disabled;
5813
5816
  });
5814
5817
  const dmlList = useGetDMLList();
5815
5818
  async function clickDropdown(item) {
@@ -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 = ()=>{
@@ -5661,7 +5663,7 @@ const access_info_exports_ = access_infovue_type_script_setup_true_lang_ts_name_
5661
5663
  },
5662
5664
  disabled: {
5663
5665
  type: Boolean,
5664
- default: true
5666
+ default: ()=>void 0
5665
5667
  },
5666
5668
  title: {
5667
5669
  default: 'MDL'
@@ -5686,8 +5688,9 @@ const access_info_exports_ = access_infovue_type_script_setup_true_lang_ts_name_
5686
5688
  return dmlList;
5687
5689
  }
5688
5690
  const disabledLoad = (0, __WEBPACK_EXTERNAL_MODULE_vue__.computed)(()=>{
5689
- if (!__props.disabled) return __props.disabled;
5690
- return 0 === __props.bizData.length || !isCloudEnv;
5691
+ if (0 === __props.bizData.length) return true;
5692
+ if (void 0 === __props.disabled) return !isCloudEnv;
5693
+ return __props.disabled;
5691
5694
  });
5692
5695
  const dmlList = useGetDMLList();
5693
5696
  async function clickDropdown(item) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sun-biz",
3
- "version": "0.0.3-beta.16",
3
+ "version": "0.0.3-beta.18",
4
4
  "type": "module",
5
5
  "workspaces": [
6
6
  "src/*",