@yqg/permission 1.0.7-beta.0 → 1.0.8-beta.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yqg/permission",
3
- "version": "1.0.7-beta.0",
3
+ "version": "1.0.8-beta.0",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/index.js",
6
6
  "type": "module",
package/src/App.vue CHANGED
@@ -37,7 +37,7 @@ const changeLocale = () => {
37
37
  businessCode="CRANE"
38
38
  :color="color"
39
39
  :locale="locale"
40
- @success="() => {console.log('成功')}"
40
+ @onSuccess="() => {console.log('成功')}"
41
41
  >
42
42
  </yqg-permission>
43
43
  </div>
@@ -113,7 +113,7 @@
113
113
  },
114
114
 
115
115
  });
116
- const emit = defineEmits(['onSuccess']);
116
+ const emit = defineEmits(['onSubmit', 'onSuccess']);
117
117
  const open = defineModel({
118
118
  required: true,
119
119
  default: false,
@@ -156,8 +156,8 @@
156
156
  const url = res?.body?.oaFlowUrl;
157
157
  open.value = false;
158
158
  loading.value = false;
159
-
160
- successModal.value?.countDown(url, () => emit('onSuccess'));
159
+ emit('onSubmit');
160
+ successModal.value?.countDown(url, () => emit('onSuccess'));
161
161
  })
162
162
  };
163
163
 
@@ -76,7 +76,8 @@
76
76
  :permissionList="permissionList"
77
77
  :workNumber="workNumber"
78
78
  :businessCode="businessCode"
79
- @onSuccess="getPermissions">
79
+ @onSuccess="() => emit('onSuccess')"
80
+ @onSubmit="getPermissions">
80
81
  </ApplyModal>
81
82
 
82
83
  </ConfigProvider>