@studio-west/component-sw 1.0.3 → 1.0.4

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/types/index.d.ts CHANGED
@@ -128,6 +128,7 @@ export interface SwBackTopProps {
128
128
  visibilityHeight?: number
129
129
  right?: string
130
130
  bottom?: string
131
+ target?: string | HTMLElement
131
132
  }
132
133
 
133
134
  export interface SwAffixProps {
@@ -136,6 +137,7 @@ export interface SwAffixProps {
136
137
  offsetBottom?: number
137
138
  boundary?: string
138
139
  boundaryEdge?: 'top' | 'bottom'
140
+ target?: string | HTMLElement
139
141
  }
140
142
 
141
143
  export interface SwTagProps {
@@ -172,6 +174,67 @@ export interface SwPaginationProps {
172
174
  modelValue?: number
173
175
  }
174
176
 
177
+ export interface SwProgressProps {
178
+ class?: string
179
+ percentage?: number
180
+ type?: 'primary' | 'success' | 'info' | 'warning' | 'danger' | ''
181
+ circle?: boolean
182
+ width?: number
183
+ strokeWidth?: number
184
+ showText?: boolean
185
+ text?: string
186
+ indeterminate?: boolean
187
+ }
188
+
189
+ export interface SwEmptyProps {
190
+ class?: string
191
+ description?: string
192
+ before?: string
193
+ imageSize?: number
194
+ }
195
+
196
+ export interface SwBreadcrumbItem {
197
+ label: string
198
+ href?: string
199
+ disabled?: boolean
200
+ }
201
+
202
+ export interface SwBreadcrumbProps {
203
+ class?: string
204
+ items?: SwBreadcrumbItem[]
205
+ separator?: string
206
+ }
207
+
208
+ export interface SwRateProps {
209
+ class?: string
210
+ modelValue?: number
211
+ max?: number
212
+ allowHalf?: boolean
213
+ disabled?: boolean
214
+ readonly?: boolean
215
+ clearable?: boolean
216
+ showScore?: boolean
217
+ size?: 'large' | 'small' | ''
218
+ voidIcon?: string
219
+ icon?: string
220
+ }
221
+
222
+ export interface SwSegmentedOption {
223
+ label: string
224
+ value: string | number
225
+ disabled?: boolean
226
+ before?: string
227
+ }
228
+
229
+ export interface SwSegmentedProps {
230
+ class?: string
231
+ modelValue?: string | number
232
+ options?: SwSegmentedOption[]
233
+ size?: 'large' | 'small' | ''
234
+ disabled?: boolean
235
+ block?: boolean
236
+ }
237
+
175
238
  export interface SwMenuProps {
176
239
  menuItems: Record<string, any> | Array<{ [componentName: string]: any }>
177
240
  class?: string
@@ -206,6 +269,11 @@ export type SwAffix = DefineComponent<SwAffixProps>
206
269
  export type SwTag = DefineComponent<SwTagProps>
207
270
  export type SwBadge = DefineComponent<SwBadgeProps>
208
271
  export type SwPagination = DefineComponent<SwPaginationProps>
272
+ export type SwProgress = DefineComponent<SwProgressProps>
273
+ export type SwEmpty = DefineComponent<SwEmptyProps>
274
+ export type SwBreadcrumb = DefineComponent<SwBreadcrumbProps>
275
+ export type SwRate = DefineComponent<SwRateProps>
276
+ export type SwSegmented = DefineComponent<SwSegmentedProps>
209
277
  export type SwMenu = DefineComponent<SwMenuProps>
210
278
  export type SwFile = DefineComponent<SwFileProps>
211
279
 
@@ -223,6 +291,11 @@ declare module 'vue' {
223
291
  SwTag: SwTag
224
292
  SwBadge: SwBadge
225
293
  SwPagination: SwPagination
294
+ SwProgress: SwProgress
295
+ SwEmpty: SwEmpty
296
+ SwBreadcrumb: SwBreadcrumb
297
+ SwRate: SwRate
298
+ SwSegmented: SwSegmented
226
299
  // Add other components as needed
227
300
  SwAlert: DefineComponent
228
301
  SwButtonGroup: DefineComponent