mali-ui-plus 1.0.112 → 1.0.113

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": "mali-ui-plus",
3
- "version": "1.0.112",
3
+ "version": "1.0.113",
4
4
  "description": "码里云PC端组件库",
5
5
  "scripts": {
6
6
  "update": "npm install --legacy-peer-deps",
package/types/index.d.ts CHANGED
@@ -3,6 +3,7 @@ import { VxeGlobalRenderer } from 'vxe-table'
3
3
  import { MaliUtils, MlUtilsCore } from './utils'
4
4
  import { MaliStorage, MlStorageCore } from './storage'
5
5
  import { MaliClipboard, MlClipboardCore } from './clipboard'
6
+ import { MaliPermission, MaliPermissionCore } from './permission'
6
7
  import { MaliModal } from './modal'
7
8
  import { MaliToast } from './toast'
8
9
  import { MaliNotify } from './notify'
@@ -157,6 +158,7 @@ export const MaliUI: {
157
158
  MaliModal: typeof MaliModal
158
159
  MaliLoading: typeof MaliLoading
159
160
  MaliStorage: MlStorageCore
161
+ MaliPermission: MaliPermissionCore
160
162
  }
161
163
 
162
164
  export {
@@ -166,7 +168,8 @@ export {
166
168
  MaliToast,
167
169
  MaliModal,
168
170
  MaliLoading,
169
- MaliStorage
171
+ MaliStorage,
172
+ MaliPermission
170
173
  }
171
174
 
172
175
  export * from './icon'
@@ -0,0 +1,8 @@
1
+ export interface MaliPermissionCore {
2
+ checkPermission(params: {
3
+ code: string
4
+ }): boolean
5
+ checkPermissionByCode (code: string): boolean
6
+ }
7
+
8
+ export const MaliPermission: MaliPermissionCore