vsoft-ui 1.0.6 → 1.0.8

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/dist/index.d.ts CHANGED
@@ -1,10 +1,18 @@
1
1
  import { Action } from 'element-plus';
2
2
  import { App } from 'vue';
3
+ import { AppContext } from 'vue';
3
4
  import { default as default_2 } from './index.vue';
4
5
  import { Directive } from 'vue';
6
+ import { ElementLoading } from 'element-plus/es/components/loading/src/directive.mjs';
5
7
  import * as ElementPlusIconsVue from '@element-plus/icons-vue';
6
8
  import { ElMessageBoxOptions } from 'element-plus';
7
9
  import { IElMessageBox } from 'element-plus';
10
+ import { LoadingBinding } from 'element-plus/es/components/loading/src/directive.mjs';
11
+ import { LoadingInstance } from 'element-plus';
12
+ import { LoadingInstance as LoadingInstance_2 } from 'element-plus/es/components/loading/src/loading.mjs';
13
+ import { LoadingOptions } from 'element-plus';
14
+ import { LoadingOptions as LoadingOptions_2 } from 'element-plus/es/components/loading/src/types.mjs';
15
+ import { LoadingOptionsResolved } from 'element-plus';
8
16
  import { Message } from 'element-plus';
9
17
  import { MessageBoxData } from 'element-plus';
10
18
  import { MessageBoxInputData } from 'element-plus';
@@ -116,6 +124,17 @@ export { ElMessageBoxOptions }
116
124
 
117
125
  export declare const install: (app: App) => void;
118
126
 
127
+ export declare const Loading: {
128
+ (options?: LoadingOptions_2, context?: AppContext | null): LoadingInstance_2;
129
+ _context: AppContext | null;
130
+ };
131
+
132
+ export { LoadingInstance }
133
+
134
+ export { LoadingOptions }
135
+
136
+ export { LoadingOptionsResolved }
137
+
119
138
  export { MessageBoxData }
120
139
 
121
140
  export { MessageBoxInputData }
@@ -144,10 +163,33 @@ export declare function usePermission(): {
144
163
  setPermissions: (permissions: string[]) => void;
145
164
  getPermissions: () => string[];
146
165
  hasPermission: (permission: string | string[], options?: PermissionOptions) => boolean;
166
+ hasAnyPermission: (permissions: string[]) => boolean;
147
167
  hasAllPermissions: (permissions: string[]) => boolean;
148
168
  clearPermissions: () => void;
149
169
  };
150
170
 
171
+ /**
172
+ * VLoading - Element Plus Loading 的二次封装
173
+ * 提供与 ElLoading 完全一致的 API
174
+ */
175
+ export declare const VLoading: {
176
+ install(app: App): void;
177
+ directive: Directive<ElementLoading, LoadingBinding>;
178
+ service: {
179
+ (options?: LoadingOptions_2, context?: AppContext | null): LoadingInstance_2;
180
+ _context: AppContext | null;
181
+ };
182
+ };
183
+
184
+ export declare const vLoading: Directive<ElementLoading, LoadingBinding>;
185
+
186
+ export declare const VLoadingDirective: Directive<ElementLoading, LoadingBinding>;
187
+
188
+ export declare const VLoadingService: {
189
+ (options?: LoadingOptions_2, context?: AppContext | null): LoadingInstance_2;
190
+ _context: AppContext | null;
191
+ };
192
+
151
193
  export declare const VMessage: SFCInstallWithContext<Message>;
152
194
 
153
195
  export declare const VMessageBox: SFCWithInstall<IElMessageBox>;
@@ -81,6 +81,7 @@ export * from './components/VUpload';
81
81
  export * from './components/VUploadDragger';
82
82
  export * from './components/VMessageBox';
83
83
  export * from './components/VMessage';
84
+ export * from './components/VLoading';
84
85
  export * from './components/VText';
85
86
  export * from './components/VRow';
86
87
  export * from './components/VCol';