@varlet/ui 1.27.17 → 1.27.18
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/es/collapse-item/CollapseItem.js +15 -1
- package/es/date-picker/date-picker.css +1 -1
- package/es/date-picker/date-picker.less +7 -1
- package/es/date-picker/style/index.js +1 -0
- package/es/date-picker/style/less.js +1 -0
- package/es/pull-refresh/PullRefresh.js +2 -2
- package/es/pull-refresh/props.js +1 -1
- package/es/style.css +1 -1
- package/es/themes/dark/timePicker.js +1 -1
- package/es/time-picker/timePicker.css +1 -1
- package/es/time-picker/timePicker.less +1 -1
- package/es/varlet.esm.js +16 -2
- package/highlight/web-types.json +1 -1
- package/lib/collapse-item/CollapseItem.js +14 -0
- package/lib/date-picker/date-picker.css +1 -1
- package/lib/date-picker/date-picker.less +7 -1
- package/lib/date-picker/style/index.js +1 -0
- package/lib/date-picker/style/less.js +1 -0
- package/lib/pull-refresh/PullRefresh.js +2 -2
- package/lib/pull-refresh/props.js +1 -1
- package/lib/style.css +1 -1
- package/lib/themes/dark/timePicker.js +1 -1
- package/lib/time-picker/timePicker.css +1 -1
- package/lib/time-picker/timePicker.less +1 -1
- package/package.json +5 -5
- package/types/actionSheet.d.ts +2 -1
- package/types/appBar.d.ts +2 -1
- package/types/backTop.d.ts +2 -1
- package/types/badge.d.ts +2 -1
- package/types/bottomNavigation.d.ts +2 -1
- package/types/bottomNavigationItem.d.ts +2 -1
- package/types/button.d.ts +2 -1
- package/types/card.d.ts +2 -1
- package/types/cell.d.ts +2 -1
- package/types/checkbox.d.ts +2 -1
- package/types/checkboxGroup.d.ts +2 -1
- package/types/chip.d.ts +2 -1
- package/types/col.d.ts +2 -1
- package/types/collapse.d.ts +2 -1
- package/types/collapseItem.d.ts +2 -1
- package/types/countdown.d.ts +2 -1
- package/types/counter.d.ts +2 -1
- package/types/datePicker.d.ts +2 -1
- package/types/dialog.d.ts +2 -1
- package/types/divider.d.ts +2 -1
- package/types/form.d.ts +2 -1
- package/types/icon.d.ts +2 -1
- package/types/image.d.ts +2 -1
- package/types/imagePreview.d.ts +2 -1
- package/types/indexAnchor.d.ts +2 -1
- package/types/indexBar.d.ts +2 -1
- package/types/input.d.ts +2 -1
- package/types/list.d.ts +2 -1
- package/types/loading.d.ts +2 -1
- package/types/menu.d.ts +2 -1
- package/types/option.d.ts +2 -1
- package/types/pagination.d.ts +2 -1
- package/types/picker.d.ts +2 -1
- package/types/popup.d.ts +2 -1
- package/types/progress.d.ts +2 -1
- package/types/pullRefresh.d.ts +2 -1
- package/types/radio.d.ts +2 -1
- package/types/radioGroup.d.ts +2 -1
- package/types/rate.d.ts +2 -1
- package/types/row.d.ts +2 -1
- package/types/select.d.ts +2 -1
- package/types/skeleton.d.ts +2 -1
- package/types/slider.d.ts +2 -1
- package/types/snackbar.d.ts +2 -1
- package/types/space.d.ts +2 -1
- package/types/step.d.ts +2 -1
- package/types/steps.d.ts +2 -1
- package/types/sticky.d.ts +2 -1
- package/types/styleProvider.d.ts +2 -1
- package/types/swipe.d.ts +2 -1
- package/types/swipeItem.d.ts +2 -1
- package/types/switch.d.ts +2 -1
- package/types/tab.d.ts +2 -1
- package/types/tabItem.d.ts +2 -1
- package/types/table.d.ts +2 -1
- package/types/tabs.d.ts +2 -1
- package/types/tabsItems.d.ts +2 -1
- package/types/timePicker.d.ts +2 -1
- package/types/uploader.d.ts +2 -1
- package/umd/varlet.js +4 -4
|
@@ -4,7 +4,7 @@ exports.__esModule = true;
|
|
|
4
4
|
exports.default = void 0;
|
|
5
5
|
var _default = {
|
|
6
6
|
'--time-picker-clock-container-background': '#545454',
|
|
7
|
-
'--time-picker-body-background': '#
|
|
7
|
+
'--time-picker-body-background': '#303030',
|
|
8
8
|
'--time-picker-clock-item-disable-color': '#aaaaaa'
|
|
9
9
|
};
|
|
10
10
|
exports.default = _default;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
:root { --time-picker-border-radius: 4px; --time-picker-font-size: var(--font-size-md); --time-picker-min-width: 290px; --time-picker-height: 385px; --time-picker-title-padding: 16px; --time-picker-title-color: #fff; --time-picker-title-background: var(--color-primary); --time-picker-title-time-font-size: 50px; --time-picker-title-time-margin: 0 5px; --time-picker-title-ampm-margin-left: 5px; --time-picker-clock-left: 27px; --time-picker-clock-right: 27px; --time-picker-clock-top: 27px; --time-picker-clock-bottom: 27px; --time-picker-clock-container-width: 270px; --time-picker-clock-container-height: 270px; --time-picker-clock-container-background: #e0e0e0; --time-picker-clock-hand-height: calc(50% - 4px); --time-picker-clock-hand-width: 2px; --time-picker-clock-hand-bottom: 50%; --time-picker-clock-hand-left: calc(50% - 1px); --time-picker-clock-hand-background: var(--color-primary); --time-picker-clock-hand-border-color: var(--color-primary); --time-picker-clock-hand-before-width: 10px; --time-picker-clock-hand-before-height: 10px; --time-picker-clock-hand-before-border-width: 2px; --time-picker-clock-hand-after-width: 4px; --time-picker-clock-hand-after-height: 4px; --time-picker-clock-item-height: 32px; --time-picker-clock-item-width: 32px; --time-picker-clock-item-active-background: var(--color-primary); --time-picker-clock-item-active-color: #fff; --time-picker-clock-item-disable-color: rgba(0, 0, 0, 0.26); --time-picker-inner-left: 36px; --time-picker-inner-right: 36px; --time-picker-inner-top: 36px; --time-picker-inner-bottom: 36px; --time-picker-body-background:
|
|
1
|
+
:root { --time-picker-border-radius: 4px; --time-picker-font-size: var(--font-size-md); --time-picker-min-width: 290px; --time-picker-height: 385px; --time-picker-title-padding: 16px; --time-picker-title-color: #fff; --time-picker-title-background: var(--color-primary); --time-picker-title-time-font-size: 50px; --time-picker-title-time-margin: 0 5px; --time-picker-title-ampm-margin-left: 5px; --time-picker-clock-left: 27px; --time-picker-clock-right: 27px; --time-picker-clock-top: 27px; --time-picker-clock-bottom: 27px; --time-picker-clock-container-width: 270px; --time-picker-clock-container-height: 270px; --time-picker-clock-container-background: #e0e0e0; --time-picker-clock-hand-height: calc(50% - 4px); --time-picker-clock-hand-width: 2px; --time-picker-clock-hand-bottom: 50%; --time-picker-clock-hand-left: calc(50% - 1px); --time-picker-clock-hand-background: var(--color-primary); --time-picker-clock-hand-border-color: var(--color-primary); --time-picker-clock-hand-before-width: 10px; --time-picker-clock-hand-before-height: 10px; --time-picker-clock-hand-before-border-width: 2px; --time-picker-clock-hand-after-width: 4px; --time-picker-clock-hand-after-height: 4px; --time-picker-clock-item-height: 32px; --time-picker-clock-item-width: 32px; --time-picker-clock-item-active-background: var(--color-primary); --time-picker-clock-item-active-color: #fff; --time-picker-clock-item-disable-color: rgba(0, 0, 0, 0.26); --time-picker-inner-left: 36px; --time-picker-inner-right: 36px; --time-picker-inner-top: 36px; --time-picker-inner-bottom: 36px; --time-picker-body-background: transparent;}.after-before-basic { content: ''; position: absolute; border-radius: 100%; left: 50%; transform: translate(-50%, -50%);}.var-time-picker { border-radius: var(--time-picker-border-radius); contain: layout style; display: flex; width: 100%; flex-direction: column; font-size: var(--time-picker-font-size); position: relative; min-width: var(--time-picker-min-width); height: var(--time-picker-height); overflow: hidden; -webkit-tap-highlight-color: rgba(0, 0, 0, 0);}.var-time-picker__title { padding: var(--time-picker-title-padding); color: var(--time-picker-title-color); background: var(--time-picker-title-background); display: flex; align-items: flex-end; justify-content: flex-end;}.var-time-picker__title-btn { opacity: 0.6; cursor: pointer; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); transition: 0.3s var(--cubic-bezier); white-space: nowrap;}.var-time-picker__title-btn--active { opacity: 1;}.var-time-picker__title-time { display: flex; justify-content: flex-end; font-size: var(--time-picker-title-time-font-size);}.var-time-picker__title-time .var-time-picker__title-btn { align-items: center; margin: var(--time-picker-title-time-margin);}.var-time-picker__title-ampm { margin-left: var(--time-picker-title-ampm-margin-left);}.var-time-picker__body { flex: 1; display: flex; align-items: center; justify-content: center; background-color: var(--time-picker-body-background);}.var-time-picker__clock { position: absolute; bottom: var(--time-picker-clock-bottom); left: var(--time-picker-clock-left); right: var(--time-picker-clock-right); top: var(--time-picker-clock-top);}.var-time-picker__clock-container { width: var(--time-picker-clock-container-width); height: var(--time-picker-clock-container-height); background: var(--time-picker-clock-container-background); border-radius: 50%; position: relative;}.var-time-picker__clock-hand { height: var(--time-picker-clock-hand-height); width: var(--time-picker-clock-hand-width); bottom: var(--time-picker-clock-hand-bottom); left: var(--time-picker-clock-hand-left); transform-origin: center bottom; position: absolute; will-change: transform; z-index: 1; background-color: var(--time-picker-clock-hand-background); border-color: var(--time-picker-clock-hand-border-color);}.var-time-picker__clock-hand::before { content: ''; position: absolute; border-radius: 100%; left: 50%; transform: translate(-50%, -50%); background: transparent; border: var(--time-picker-clock-hand-before-border-width) solid; width: var(--time-picker-clock-hand-before-width); height: var(--time-picker-clock-hand-before-height); top: -5px; border-color: inherit;}.var-time-picker__clock-hand::after { content: ''; position: absolute; border-radius: 100%; left: 50%; transform: translate(-50%, -50%); border-color: inherit; height: var(--time-picker-clock-hand-after-height); width: var(--time-picker-clock-hand-after-width); top: 100%; border-style: solid; background-color: inherit;}.var-time-picker__clock-item { align-items: center; border-radius: 100%; display: flex; justify-content: center; height: var(--time-picker-clock-item-height); position: absolute; width: var(--time-picker-clock-item-width); user-select: none; transform: translate(-50%, -50%);}.var-time-picker__clock-item--active { background: var(--time-picker-clock-item-active-background); z-index: 2; color: var(--time-picker-clock-item-active-color);}.var-time-picker__clock-item--disable { color: var(--time-picker-clock-item-disable-color);}.var-time-picker__clock-inner { position: absolute; bottom: var(--time-picker-inner-bottom); left: var(--time-picker-inner-left); right: var(--time-picker-inner-right); top: var(--time-picker-inner-top);}.var-time-picker-panel-fade-enter-from,.var-time-picker-panel-fade-leave-to { transition: 0.3s var(--cubic-bezier); opacity: 0;}.var-time-picker-panel-fade-leave-active { position: absolute;}
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
@time-picker-clock-item-active-background: var(--color-primary);
|
|
32
32
|
@time-picker-clock-item-active-color: #fff;
|
|
33
33
|
@time-picker-clock-item-disable-color: rgba(0, 0, 0, 0.26);
|
|
34
|
-
@time-picker-body-background:
|
|
34
|
+
@time-picker-body-background: transparent;
|
|
35
35
|
@time-picker-inner-left: 36px;
|
|
36
36
|
@time-picker-inner-right: 36px;
|
|
37
37
|
@time-picker-inner-top: 36px;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@varlet/ui",
|
|
3
|
-
"version": "1.27.
|
|
3
|
+
"version": "1.27.18",
|
|
4
4
|
"description": "A material like components library",
|
|
5
5
|
"module": "es/index.js",
|
|
6
6
|
"main": "lib/index.js",
|
|
@@ -44,14 +44,14 @@
|
|
|
44
44
|
"vue": "^3.2.0"
|
|
45
45
|
},
|
|
46
46
|
"dependencies": {
|
|
47
|
-
"@varlet/icons": "1.27.
|
|
48
|
-
"@varlet/shared": "1.27.
|
|
47
|
+
"@varlet/icons": "1.27.18",
|
|
48
|
+
"@varlet/shared": "1.27.18",
|
|
49
49
|
"dayjs": "^1.10.4",
|
|
50
50
|
"decimal.js": "^10.2.1"
|
|
51
51
|
},
|
|
52
52
|
"devDependencies": {
|
|
53
|
-
"@varlet/cli": "1.27.
|
|
54
|
-
"@varlet/touch-emulator": "1.27.
|
|
53
|
+
"@varlet/cli": "1.27.18",
|
|
54
|
+
"@varlet/touch-emulator": "1.27.18",
|
|
55
55
|
"@vue/runtime-core": "3.2.25",
|
|
56
56
|
"@vue/test-utils": "2.0.0-rc.6",
|
|
57
57
|
"clipboard": "^2.0.6",
|
package/types/actionSheet.d.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import type { App, TeleportProps } from 'vue'
|
|
2
2
|
import { VarComponent } from './varComponent'
|
|
3
|
+
import type { BasicAttributes } from './varComponent'
|
|
3
4
|
|
|
4
|
-
export interface ActionSheetProps {
|
|
5
|
+
export interface ActionSheetProps extends BasicAttributes {
|
|
5
6
|
actions?: ActionItem[]
|
|
6
7
|
show?: boolean
|
|
7
8
|
title?: string
|
package/types/appBar.d.ts
CHANGED
package/types/backTop.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { VarComponent } from './varComponent'
|
|
2
|
+
import type { BasicAttributes } from './varComponent'
|
|
2
3
|
|
|
3
|
-
export interface BackTopProps {
|
|
4
|
+
export interface BackTopProps extends BasicAttributes {
|
|
4
5
|
visibilityHeight?: number | string
|
|
5
6
|
duration?: number
|
|
6
7
|
target?: string | HTMLElement
|
package/types/badge.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { VarComponent } from './varComponent'
|
|
2
|
+
import type { BasicAttributes } from './varComponent'
|
|
2
3
|
|
|
3
|
-
export interface BadgeProps {
|
|
4
|
+
export interface BadgeProps extends BasicAttributes {
|
|
4
5
|
type?: 'default' | 'primary' | 'info' | 'success' | 'warning' | 'danger'
|
|
5
6
|
hidden?: boolean
|
|
6
7
|
dot?: boolean
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { VarComponent } from './varComponent'
|
|
2
|
+
import type { BasicAttributes } from './varComponent'
|
|
2
3
|
import { ButtonProps } from './button'
|
|
3
4
|
|
|
4
|
-
export interface BottomNavigationProps {
|
|
5
|
+
export interface BottomNavigationProps extends BasicAttributes {
|
|
5
6
|
active?: number | string
|
|
6
7
|
fixed?: boolean
|
|
7
8
|
border?: boolean
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { VarComponent } from './varComponent'
|
|
2
|
+
import type { BasicAttributes } from './varComponent'
|
|
2
3
|
import { BadgeProps } from './badge'
|
|
3
4
|
|
|
4
|
-
export interface BottomNavigationItemProps {
|
|
5
|
+
export interface BottomNavigationItemProps extends BasicAttributes {
|
|
5
6
|
name?: string
|
|
6
7
|
icon?: string
|
|
7
8
|
label?: string
|
package/types/button.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { VarComponent } from './varComponent'
|
|
2
|
+
import type { BasicAttributes } from './varComponent'
|
|
2
3
|
|
|
3
4
|
export interface ButtonProps extends BasicAttributes {
|
|
4
5
|
type?: 'default' | 'primary' | 'info' | 'success' | 'warning' | 'danger'
|
package/types/card.d.ts
CHANGED
package/types/cell.d.ts
CHANGED
package/types/checkbox.d.ts
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { VarComponent } from './varComponent'
|
|
2
|
+
import type { BasicAttributes } from './varComponent'
|
|
2
3
|
|
|
3
4
|
export type CheckboxValidateTriggers = 'onChange'
|
|
4
5
|
|
|
5
|
-
export interface CheckboxProps {
|
|
6
|
+
export interface CheckboxProps extends BasicAttributes {
|
|
6
7
|
modelValue?: any
|
|
7
8
|
checkedValue?: any
|
|
8
9
|
uncheckedValue?: any
|
package/types/checkboxGroup.d.ts
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { VarComponent } from './varComponent'
|
|
2
|
+
import type { BasicAttributes } from './varComponent'
|
|
2
3
|
|
|
3
4
|
export type CheckboxGroupValidateTriggers = 'onChange'
|
|
4
5
|
|
|
5
|
-
export interface CheckboxGroupProps {
|
|
6
|
+
export interface CheckboxGroupProps extends BasicAttributes {
|
|
6
7
|
modelValue?: any[]
|
|
7
8
|
max?: string | number
|
|
8
9
|
direction?: 'horizontal' | 'vertical'
|
package/types/chip.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { VarComponent } from './varComponent'
|
|
2
|
+
import type { BasicAttributes } from './varComponent'
|
|
2
3
|
|
|
3
|
-
export interface ChipProps {
|
|
4
|
+
export interface ChipProps extends BasicAttributes {
|
|
4
5
|
type?: 'default' | 'primary' | 'info' | 'success' | 'warning' | 'danger'
|
|
5
6
|
size?: 'normal' | 'mini' | 'small' | 'large'
|
|
6
7
|
color?: string
|
package/types/col.d.ts
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { VarComponent } from './varComponent'
|
|
2
|
+
import type { BasicAttributes } from './varComponent'
|
|
2
3
|
|
|
3
4
|
export type SizeDescriptor = {
|
|
4
5
|
span?: number | string
|
|
5
6
|
offset?: number | string
|
|
6
7
|
}
|
|
7
8
|
|
|
8
|
-
export interface ColProps {
|
|
9
|
+
export interface ColProps extends BasicAttributes {
|
|
9
10
|
span?: string | number
|
|
10
11
|
offset?: string | number
|
|
11
12
|
xs?: string | number | SizeDescriptor | undefined
|
package/types/collapse.d.ts
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { VarComponent } from './varComponent'
|
|
2
|
+
import type { BasicAttributes } from './varComponent'
|
|
2
3
|
|
|
3
4
|
export type CollapseModelValue = null | string | number | Array<string | number>
|
|
4
5
|
|
|
5
|
-
export interface CollapseProps {
|
|
6
|
+
export interface CollapseProps extends BasicAttributes {
|
|
6
7
|
modelValue?: CollapseModelValue
|
|
7
8
|
accordion?: boolean
|
|
8
9
|
offset?: boolean
|
package/types/collapseItem.d.ts
CHANGED
package/types/countdown.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { VarComponent } from './varComponent'
|
|
2
|
+
import type { BasicAttributes } from './varComponent'
|
|
2
3
|
|
|
3
4
|
export type TimeData = {
|
|
4
5
|
days: number
|
|
@@ -8,7 +9,7 @@ export type TimeData = {
|
|
|
8
9
|
milliseconds: number
|
|
9
10
|
}
|
|
10
11
|
|
|
11
|
-
export interface CountdownProps {
|
|
12
|
+
export interface CountdownProps extends BasicAttributes {
|
|
12
13
|
time?: string | number
|
|
13
14
|
format?: string
|
|
14
15
|
autoStart?: boolean
|
package/types/counter.d.ts
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { VarComponent } from './varComponent'
|
|
2
|
+
import type { BasicAttributes } from './varComponent'
|
|
2
3
|
|
|
3
4
|
export type CounterValidateTriggers = 'onIncrement' | 'onDecrement' | 'onInputChange' | 'onLazyChange'
|
|
4
5
|
|
|
5
|
-
export interface CounterProps {
|
|
6
|
+
export interface CounterProps extends BasicAttributes {
|
|
6
7
|
modelValue?: string | number
|
|
7
8
|
min?: string | number
|
|
8
9
|
max?: string | number
|
package/types/datePicker.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { VarComponent } from './varComponent'
|
|
2
|
+
import type { BasicAttributes } from './varComponent'
|
|
2
3
|
|
|
3
|
-
export interface DatePickerProps {
|
|
4
|
+
export interface DatePickerProps extends BasicAttributes {
|
|
4
5
|
modelValue: string | Array<string>
|
|
5
6
|
type?: 'date' | 'month'
|
|
6
7
|
allowedDates?: (val: string) => boolean
|
package/types/dialog.d.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { VarComponent } from './varComponent'
|
|
2
|
+
import type { BasicAttributes } from './varComponent'
|
|
2
3
|
import type { App, TeleportProps } from 'vue'
|
|
3
4
|
|
|
4
|
-
export interface DialogProps {
|
|
5
|
+
export interface DialogProps extends BasicAttributes {
|
|
5
6
|
show?: boolean
|
|
6
7
|
title?: string
|
|
7
8
|
message?: string
|
package/types/divider.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { VarComponent } from './varComponent'
|
|
2
|
+
import type { BasicAttributes } from './varComponent'
|
|
2
3
|
|
|
3
|
-
export interface DividerProps {
|
|
4
|
+
export interface DividerProps extends BasicAttributes {
|
|
4
5
|
inset?: boolean | number
|
|
5
6
|
vertical?: boolean
|
|
6
7
|
description?: string
|
package/types/form.d.ts
CHANGED
package/types/icon.d.ts
CHANGED
package/types/image.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { VarComponent } from './varComponent'
|
|
2
|
+
import type { BasicAttributes } from './varComponent'
|
|
2
3
|
|
|
3
|
-
export interface ImageProps {
|
|
4
|
+
export interface ImageProps extends BasicAttributes {
|
|
4
5
|
src?: string
|
|
5
6
|
fit?: 'fill' | 'contain' | 'cover' | 'none' | 'scale-down'
|
|
6
7
|
alt?: string
|
package/types/imagePreview.d.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { VarComponent } from './varComponent'
|
|
2
|
+
import type { BasicAttributes } from './varComponent'
|
|
2
3
|
import type { App, TeleportProps } from 'vue'
|
|
3
4
|
|
|
4
|
-
export interface ImagePreviewProps {
|
|
5
|
+
export interface ImagePreviewProps extends BasicAttributes {
|
|
5
6
|
show?: boolean
|
|
6
7
|
current?: string
|
|
7
8
|
images?: string[]
|
package/types/indexAnchor.d.ts
CHANGED
package/types/indexBar.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { VarComponent } from './varComponent'
|
|
2
|
+
import type { BasicAttributes } from './varComponent'
|
|
2
3
|
|
|
3
|
-
export interface IndexBarProps {
|
|
4
|
+
export interface IndexBarProps extends BasicAttributes {
|
|
4
5
|
sticky?: boolean
|
|
5
6
|
stickyOffsetTop?: number | string
|
|
6
7
|
hideList?: boolean
|
package/types/input.d.ts
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { VarComponent } from './varComponent'
|
|
2
|
+
import type { BasicAttributes } from './varComponent'
|
|
2
3
|
|
|
3
4
|
export type InputValidateTriggers = 'onFocus' | 'onBlur' | 'onChange' | 'onClick' | 'onClear' | 'onInput'
|
|
4
5
|
|
|
5
|
-
export interface InputProps {
|
|
6
|
+
export interface InputProps extends BasicAttributes {
|
|
6
7
|
modelValue?: string
|
|
7
8
|
type?: 'text' | 'password' | 'number' | 'tel' | 'email'
|
|
8
9
|
textarea?: boolean
|
package/types/list.d.ts
CHANGED
package/types/loading.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { VarComponent } from './varComponent'
|
|
2
|
+
import type { BasicAttributes } from './varComponent'
|
|
2
3
|
|
|
3
|
-
export interface LoadingProps {
|
|
4
|
+
export interface LoadingProps extends BasicAttributes {
|
|
4
5
|
type?: 'circle' | 'wave' | 'cube' | 'rect' | 'disappear'
|
|
5
6
|
radius?: string | number
|
|
6
7
|
size?: 'normal' | 'mini' | 'small' | 'large'
|
package/types/menu.d.ts
CHANGED
package/types/option.d.ts
CHANGED
package/types/pagination.d.ts
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { VarComponent } from './varComponent'
|
|
2
|
+
import type { BasicAttributes } from './varComponent'
|
|
2
3
|
|
|
3
4
|
type Range = [number, number]
|
|
4
5
|
|
|
5
|
-
export interface PaginationProps {
|
|
6
|
+
export interface PaginationProps extends BasicAttributes {
|
|
6
7
|
current?: string | number
|
|
7
8
|
size?: string | number
|
|
8
9
|
total?: string | number
|
package/types/picker.d.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import type { App } from 'vue'
|
|
2
2
|
import { VarComponent } from './varComponent'
|
|
3
|
+
import type { BasicAttributes } from './varComponent'
|
|
3
4
|
|
|
4
|
-
export interface NormalColumn {
|
|
5
|
+
export interface NormalColumn extends BasicAttributes {
|
|
5
6
|
texts: Texts
|
|
6
7
|
initialIndex?: number
|
|
7
8
|
}
|
package/types/popup.d.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { VarComponent } from './varComponent'
|
|
2
|
+
import type { BasicAttributes } from './varComponent'
|
|
2
3
|
import type { TeleportProps } from 'vue'
|
|
3
4
|
|
|
4
|
-
export interface PopupProps {
|
|
5
|
+
export interface PopupProps extends BasicAttributes {
|
|
5
6
|
show?: boolean
|
|
6
7
|
position?: 'top' | 'bottom' | 'right' | 'left' | 'center'
|
|
7
8
|
overlay?: boolean
|
package/types/progress.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { VarComponent } from './varComponent'
|
|
2
|
+
import type { BasicAttributes } from './varComponent'
|
|
2
3
|
|
|
3
|
-
export interface ProgressProps {
|
|
4
|
+
export interface ProgressProps extends BasicAttributes {
|
|
4
5
|
mode?: 'linear' | 'circle'
|
|
5
6
|
lineWidth?: string | number
|
|
6
7
|
color?: string
|
package/types/pullRefresh.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { VarComponent } from './varComponent'
|
|
2
|
+
import type { BasicAttributes } from './varComponent'
|
|
2
3
|
|
|
3
|
-
export interface PullRefreshProps {
|
|
4
|
+
export interface PullRefreshProps extends BasicAttributes {
|
|
4
5
|
modelValue?: boolean
|
|
5
6
|
disabled?: boolean
|
|
6
7
|
animationDuration?: number | string
|
package/types/radio.d.ts
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { VarComponent } from './varComponent'
|
|
2
|
+
import type { BasicAttributes } from './varComponent'
|
|
2
3
|
|
|
3
4
|
export type RadioValidateTriggers = 'onChange'
|
|
4
5
|
|
|
5
|
-
export interface RadioProps {
|
|
6
|
+
export interface RadioProps extends BasicAttributes {
|
|
6
7
|
modelValue?: any
|
|
7
8
|
checkedValue?: any
|
|
8
9
|
uncheckedValue?: any
|
package/types/radioGroup.d.ts
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { VarComponent } from './varComponent'
|
|
2
|
+
import type { BasicAttributes } from './varComponent'
|
|
2
3
|
|
|
3
4
|
export type RadioGroupValidateTriggers = 'onChange'
|
|
4
5
|
|
|
5
|
-
export interface RadioGroupProps {
|
|
6
|
+
export interface RadioGroupProps extends BasicAttributes {
|
|
6
7
|
modelValue?: any
|
|
7
8
|
direction?: 'horizontal' | 'vertical'
|
|
8
9
|
validateTrigger?: Array<RadioGroupValidateTriggers>
|
package/types/rate.d.ts
CHANGED
package/types/row.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { VarComponent } from './varComponent'
|
|
2
|
+
import type { BasicAttributes } from './varComponent'
|
|
2
3
|
|
|
3
|
-
export interface RowProps {
|
|
4
|
+
export interface RowProps extends BasicAttributes {
|
|
4
5
|
gutter?: string | number
|
|
5
6
|
justify?: 'flex-start' | 'flex-end' | 'center' | 'space-between' | 'space-around'
|
|
6
7
|
align?: 'flex-start' | 'center' | 'flex-end'
|
package/types/select.d.ts
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { VarComponent } from './varComponent'
|
|
2
|
+
import type { BasicAttributes } from './varComponent'
|
|
2
3
|
|
|
3
4
|
export type SelectValidateTriggers = 'onFocus' | 'onBlur' | 'onChange' | 'onClick' | 'onClear' | 'onClose'
|
|
4
5
|
|
|
5
|
-
export interface SelectProps {
|
|
6
|
+
export interface SelectProps extends BasicAttributes {
|
|
6
7
|
modelValue?: any
|
|
7
8
|
placeholder?: string
|
|
8
9
|
multiple?: boolean
|
package/types/skeleton.d.ts
CHANGED
package/types/slider.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { VarComponent } from './varComponent'
|
|
2
|
+
import type { BasicAttributes } from './varComponent'
|
|
2
3
|
|
|
3
|
-
export interface SliderProps {
|
|
4
|
+
export interface SliderProps extends BasicAttributes {
|
|
4
5
|
modelValue?: number | Array<number>
|
|
5
6
|
step?: number | string
|
|
6
7
|
range?: boolean
|
package/types/snackbar.d.ts
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { VarComponent } from './varComponent'
|
|
2
|
+
import type { BasicAttributes } from './varComponent'
|
|
2
3
|
import type { App, TeleportProps } from 'vue'
|
|
3
4
|
|
|
4
5
|
export type LoadingType = 'circle' | 'wave' | 'cube' | 'rect' | 'disappear'
|
|
5
6
|
|
|
6
7
|
export type LoadingSize = 'normal' | 'mini' | 'small' | 'large'
|
|
7
8
|
|
|
8
|
-
export interface SnackbarProps {
|
|
9
|
+
export interface SnackbarProps extends BasicAttributes {
|
|
9
10
|
type?: SnackbarType
|
|
10
11
|
content?: string
|
|
11
12
|
position?: 'top' | 'center' | 'bottom'
|
package/types/space.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { VarComponent } from './varComponent'
|
|
2
|
+
import type { BasicAttributes } from './varComponent'
|
|
2
3
|
|
|
3
4
|
export type SpaceAlign = 'stretch' | 'center' | 'start' | 'end' | 'baseline' | 'initial' | 'inherit'
|
|
4
5
|
|
|
@@ -10,7 +11,7 @@ export type SpaceInternalSize = 'mini' | 'small' | 'normal' | 'large'
|
|
|
10
11
|
|
|
11
12
|
export type SpaceSize = SpaceInternalSize | number | string | [number | string, number | string]
|
|
12
13
|
|
|
13
|
-
export interface SpaceProps {
|
|
14
|
+
export interface SpaceProps extends BasicAttributes {
|
|
14
15
|
align?: SpaceAlign
|
|
15
16
|
size?: SpaceSize
|
|
16
17
|
warp?: boolean
|
package/types/step.d.ts
CHANGED
package/types/steps.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { VarComponent } from './varComponent'
|
|
2
|
+
import type { BasicAttributes } from './varComponent'
|
|
2
3
|
|
|
3
|
-
export interface StepsProps {
|
|
4
|
+
export interface StepsProps extends BasicAttributes {
|
|
4
5
|
active?: string | number
|
|
5
6
|
direction?: 'horizontal' | 'vertical'
|
|
6
7
|
activeColor?: string
|
package/types/sticky.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { VarComponent } from './varComponent'
|
|
2
|
+
import type { BasicAttributes } from './varComponent'
|
|
2
3
|
|
|
3
|
-
export interface StickyProps {
|
|
4
|
+
export interface StickyProps extends BasicAttributes {
|
|
4
5
|
offsetTop?: string | number
|
|
5
6
|
zIndex?: string | number
|
|
6
7
|
cssMode?: boolean
|
package/types/styleProvider.d.ts
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import type { App } from 'vue'
|
|
2
2
|
import { VarComponent } from './varComponent'
|
|
3
|
+
import type { BasicAttributes } from './varComponent'
|
|
3
4
|
|
|
4
5
|
export type StyleVars = Record<string, string>
|
|
5
6
|
|
|
6
|
-
export interface StyleProviderProps {
|
|
7
|
+
export interface StyleProviderProps extends BasicAttributes {
|
|
7
8
|
styleVars?: StyleVars
|
|
8
9
|
}
|
|
9
10
|
|
package/types/swipe.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { VarComponent } from './varComponent'
|
|
2
|
+
import type { BasicAttributes } from './varComponent'
|
|
2
3
|
|
|
3
|
-
export interface SwipeProps {
|
|
4
|
+
export interface SwipeProps extends BasicAttributes {
|
|
4
5
|
loop?: boolean
|
|
5
6
|
autoplay?: string | number
|
|
6
7
|
duration?: string | number
|
package/types/swipeItem.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { VarComponent } from './varComponent'
|
|
2
|
+
import type { BasicAttributes } from './varComponent'
|
|
2
3
|
|
|
3
|
-
export interface SwipeItemProps {}
|
|
4
|
+
export interface SwipeItemProps extends BasicAttributes {}
|
|
4
5
|
|
|
5
6
|
export class SwipeItem extends VarComponent {
|
|
6
7
|
$props: SwipeItemProps
|