fix(Stepper): use alwaysEmbed

This commit is contained in:
nemo-shen 2021-12-15 01:03:39 +08:00 committed by neverland
parent afb240f737
commit ed36096494
2 changed files with 11 additions and 0 deletions

View File

@ -16,6 +16,7 @@
<slot name="minus" /> <slot name="minus" />
</view> </view>
<input <input
always-embed="{{ false }}"
type="{{ integer ? 'number' : 'digit' }}" type="{{ integer ? 'number' : 'digit' }}"
class="input-class {{ utils.bem('stepper__input', { disabled: disabled || disableInput }) }}" class="input-class {{ utils.bem('stepper__input', { disabled: disabled || disableInput }) }}"
style="{{ computed.inputStyle({ buttonSize, inputWidth }) }}" style="{{ computed.inputStyle({ buttonSize, inputWidth }) }}"

View File

@ -34,6 +34,7 @@ exports[`should render demo and match snapshot 1`] = `
bind:touchstart="onTouchStart" bind:touchstart="onTouchStart"
/> />
<wx-input <wx-input
alwaysEmbed="{{false}}"
class="input-class van-stepper__input" class="input-class van-stepper__input"
disabled="{{false}}" disabled="{{false}}"
focus="" focus=""
@ -91,6 +92,7 @@ exports[`should render demo and match snapshot 1`] = `
bind:touchstart="onTouchStart" bind:touchstart="onTouchStart"
/> />
<wx-input <wx-input
alwaysEmbed="{{false}}"
class="input-class van-stepper__input" class="input-class van-stepper__input"
disabled="{{false}}" disabled="{{false}}"
focus="" focus=""
@ -148,6 +150,7 @@ exports[`should render demo and match snapshot 1`] = `
bind:touchstart="onTouchStart" bind:touchstart="onTouchStart"
/> />
<wx-input <wx-input
alwaysEmbed="{{false}}"
class="input-class van-stepper__input" class="input-class van-stepper__input"
disabled="{{false}}" disabled="{{false}}"
focus="" focus=""
@ -205,6 +208,7 @@ exports[`should render demo and match snapshot 1`] = `
bind:touchstart="onTouchStart" bind:touchstart="onTouchStart"
/> />
<wx-input <wx-input
alwaysEmbed="{{false}}"
class="input-class van-stepper__input" class="input-class van-stepper__input"
disabled="{{false}}" disabled="{{false}}"
focus="" focus=""
@ -262,6 +266,7 @@ exports[`should render demo and match snapshot 1`] = `
bind:touchstart="onTouchStart" bind:touchstart="onTouchStart"
/> />
<wx-input <wx-input
alwaysEmbed="{{false}}"
class="input-class van-stepper__input van-stepper__input--disabled" class="input-class van-stepper__input van-stepper__input--disabled"
disabled="{{true}}" disabled="{{true}}"
focus="" focus=""
@ -319,6 +324,7 @@ exports[`should render demo and match snapshot 1`] = `
bind:touchstart="onTouchStart" bind:touchstart="onTouchStart"
/> />
<wx-input <wx-input
alwaysEmbed="{{false}}"
class="input-class van-stepper__input" class="input-class van-stepper__input"
disabled="{{false}}" disabled="{{false}}"
focus="" focus=""
@ -376,6 +382,7 @@ exports[`should render demo and match snapshot 1`] = `
bind:touchstart="onTouchStart" bind:touchstart="onTouchStart"
/> />
<wx-input <wx-input
alwaysEmbed="{{false}}"
class="input-class van-stepper__input" class="input-class van-stepper__input"
disabled="{{false}}" disabled="{{false}}"
focus="" focus=""
@ -435,6 +442,7 @@ exports[`should render demo and match snapshot 1`] = `
bind:touchstart="onTouchStart" bind:touchstart="onTouchStart"
/> />
<wx-input <wx-input
alwaysEmbed="{{false}}"
class="input-class van-stepper__input" class="input-class van-stepper__input"
disabled="{{false}}" disabled="{{false}}"
focus="" focus=""
@ -492,6 +500,7 @@ exports[`should render demo and match snapshot 1`] = `
bind:touchstart="onTouchStart" bind:touchstart="onTouchStart"
/> />
<wx-input <wx-input
alwaysEmbed="{{false}}"
class="input-class van-stepper__input" class="input-class van-stepper__input"
disabled="{{false}}" disabled="{{false}}"
focus="" focus=""
@ -549,6 +558,7 @@ exports[`should render demo and match snapshot 1`] = `
bind:touchstart="onTouchStart" bind:touchstart="onTouchStart"
/> />
<wx-input <wx-input
alwaysEmbed="{{false}}"
class="input-class van-stepper__input" class="input-class van-stepper__input"
disabled="{{false}}" disabled="{{false}}"
focus="" focus=""