@varlet/ui 2.7.3 → 2.7.4-alpha.1675694992985

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": "@varlet/ui",
3
- "version": "2.7.3",
3
+ "version": "2.7.4-alpha.1675694992985",
4
4
  "description": "A material like components library",
5
5
  "main": "lib/varlet.cjs.js",
6
6
  "module": "es/index.mjs",
@@ -50,8 +50,8 @@
50
50
  "@popperjs/core": "^2.11.6",
51
51
  "dayjs": "^1.10.4",
52
52
  "decimal.js": "^10.2.1",
53
- "@varlet/icons": "2.7.3",
54
- "@varlet/shared": "2.7.3"
53
+ "@varlet/shared": "2.7.4-alpha.1675694992985",
54
+ "@varlet/icons": "2.7.4-alpha.1675694992985"
55
55
  },
56
56
  "devDependencies": {
57
57
  "@types/jest": "^26.0.15",
@@ -66,8 +66,8 @@
66
66
  "typescript": "^4.4.4",
67
67
  "vue": "3.2.25",
68
68
  "vue-router": "4.0.12",
69
- "@varlet/cli": "2.7.3",
70
- "@varlet/touch-emulator": "2.7.3"
69
+ "@varlet/cli": "2.7.4-alpha.1675694992985",
70
+ "@varlet/touch-emulator": "2.7.4-alpha.1675694992985"
71
71
  },
72
72
  "browserslist": [
73
73
  "Chrome >= 54",
@@ -33,8 +33,7 @@ export interface ActionItem {
33
33
  }
34
34
 
35
35
  export interface ActionSheetOptions {
36
- actions: ActionItem[]
37
- show?: boolean
36
+ actions?: ActionItem[]
38
37
  title?: string
39
38
  overlay?: boolean
40
39
  overlayClass?: string
@@ -63,9 +62,14 @@ export class ActionSheetComponent extends VarComponent {
63
62
  export type ActionSheetActions = ActionItem | 'close'
64
63
 
65
64
  export interface IActionSheet {
66
- (options: ActionSheetOptions): Promise<ActionSheetActions>
65
+ (options?: ActionSheetOptions): Promise<ActionSheetActions>
66
+
67
67
  Component: typeof ActionSheetComponent
68
68
 
69
+ setDefaultOptions(options: ActionSheetOptions): void
70
+
71
+ resetDefaultOptions(): void
72
+
69
73
  close(): void
70
74
 
71
75
  install(app: App): void
package/types/dialog.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { VarComponent, BasicAttributes, ListenerProp } from './varComponent'
2
- import type { App, TeleportProps, VNode } from 'vue'
2
+ import { App, TeleportProps, VNode } from 'vue'
3
3
 
4
4
  export declare const dialogProps: Record<string, any>
5
5
 
@@ -80,9 +80,14 @@ export interface DialogOptions {
80
80
  }
81
81
 
82
82
  export interface IDialog {
83
- (options: DialogOptions | string): Promise<DialogActions>
83
+ (options?: DialogOptions | string): Promise<DialogActions>
84
+
84
85
  Component: typeof DialogComponent
85
86
 
87
+ setDefaultOptions(options: DialogOptions): void
88
+
89
+ resetDefaultOptions(): void
90
+
86
91
  close(): void
87
92
 
88
93
  install(app: App): void
@@ -67,6 +67,10 @@ export class Uploader extends VarComponent {
67
67
  resetValidation(): void
68
68
 
69
69
  reset(): void
70
+
71
+ chooseFile(): void
72
+
73
+ closePreview(): void
70
74
  }
71
75
 
72
76
  export class _UploaderComponent extends Uploader {}