mali-ui-plus 1.0.111 → 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.111",
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'
@@ -138,6 +139,10 @@ export interface ConfigOptions {
138
139
  },
139
140
  colorPicker?: {
140
141
  predefineColors?: string[]
142
+ },
143
+ notData?:{
144
+ emptyUrl?: string
145
+ emptyText?: string
141
146
  }
142
147
  }
143
148
 
@@ -153,6 +158,7 @@ export const MaliUI: {
153
158
  MaliModal: typeof MaliModal
154
159
  MaliLoading: typeof MaliLoading
155
160
  MaliStorage: MlStorageCore
161
+ MaliPermission: MaliPermissionCore
156
162
  }
157
163
 
158
164
  export {
@@ -162,7 +168,8 @@ export {
162
168
  MaliToast,
163
169
  MaliModal,
164
170
  MaliLoading,
165
- MaliStorage
171
+ MaliStorage,
172
+ MaliPermission
166
173
  }
167
174
 
168
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