-
Notifications
You must be signed in to change notification settings - Fork 292
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: complete v-model,complete api document
feat: formate code fix: fix document
- Loading branch information
Showing
5 changed files
with
178 additions
and
110 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
import { mount } from '@vue/test-utils'; | ||
import DSlider from '../src/slider' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,28 @@ | ||
import type { ExtractPropTypes } from 'vue'; | ||
export const sliderProps = { | ||
min: { | ||
type: Number, | ||
default: 0, | ||
disabled: { | ||
type: Boolean, | ||
default: false, | ||
}, | ||
max: { | ||
type: Number, | ||
default: 50, | ||
default: 100, | ||
}, | ||
step: { | ||
min: { | ||
type: Number, | ||
default: 1, | ||
default: 0, | ||
}, | ||
disabled: { | ||
type: Boolean, | ||
default: false, | ||
modelValue: { | ||
type: Number, | ||
default: 0, | ||
}, | ||
showInput: { | ||
type: Boolean, | ||
default: false, | ||
}, | ||
step: { | ||
type: Number, | ||
default: 1, | ||
}, | ||
} as const; | ||
export type SliderProps = ExtractPropTypes<typeof sliderProps>; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -42,6 +42,7 @@ export default defineComponent({ | |
|
||
::: | ||
|
||
|
||
### radio 根据条件终止切换操作 | ||
|
||
:::demo 根据条件判断,第二项禁止跳转。 | ||
|
Oops, something went wrong.