mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-05-22 22:49:15 +08:00
chore: rename vShow to v-show
This commit is contained in:
parent
c0ea21dcd3
commit
91b47d64e6
@ -274,7 +274,7 @@ export default createComponent({
|
||||
return (
|
||||
<Cell
|
||||
v-slots={slots}
|
||||
vShow={!hideBottomFields.value}
|
||||
v-show={!hideBottomFields.value}
|
||||
center
|
||||
title={t('defaultAddress')}
|
||||
class={bem('default')}
|
||||
@ -338,7 +338,7 @@ export default createComponent({
|
||||
onFocus={() => onFocus('tel')}
|
||||
/>
|
||||
<Field
|
||||
vShow={props.showArea}
|
||||
v-show={props.showArea}
|
||||
readonly
|
||||
label={t('area')}
|
||||
clickable={!disableArea}
|
||||
@ -370,7 +370,7 @@ export default createComponent({
|
||||
/>
|
||||
{props.showPostal && (
|
||||
<Field
|
||||
vShow={!hideBottomFields.value}
|
||||
v-show={!hideBottomFields.value}
|
||||
vModel={data.postalCode}
|
||||
type="tel"
|
||||
maxlength="6"
|
||||
@ -383,7 +383,7 @@ export default createComponent({
|
||||
{slots.default?.()}
|
||||
</div>
|
||||
{renderSetDefaultCell()}
|
||||
<div vShow={!hideBottomFields.value} class={bem('buttons')}>
|
||||
<div v-show={!hideBottomFields.value} class={bem('buttons')}>
|
||||
<Button
|
||||
block
|
||||
round
|
||||
|
@ -120,8 +120,8 @@ export default createComponent({
|
||||
|
||||
const renderContent = lazyRender(() => (
|
||||
<div
|
||||
v-show={show.value}
|
||||
ref={wrapperRef}
|
||||
vShow={show.value}
|
||||
class={bem('wrapper')}
|
||||
onTransitionend={onTransitionEnd}
|
||||
>
|
||||
|
@ -224,7 +224,7 @@ export default createComponent({
|
||||
</Tabs>
|
||||
<div class={bem('bottom')}>
|
||||
<Button
|
||||
vShow={props.showCloseButton}
|
||||
v-show={props.showCloseButton}
|
||||
round
|
||||
block
|
||||
type="danger"
|
||||
|
@ -138,7 +138,7 @@ export default createComponent({
|
||||
|
||||
return (
|
||||
<div
|
||||
vShow={state.showWrapper}
|
||||
v-show={state.showWrapper}
|
||||
style={style}
|
||||
class={bem([direction])}
|
||||
onClick={onClickWrapper}
|
||||
|
@ -173,8 +173,8 @@ export default createComponent({
|
||||
const { color, wrapable, background } = props;
|
||||
return (
|
||||
<div
|
||||
v-show={state.show}
|
||||
role="alert"
|
||||
vShow={state.show}
|
||||
class={bem({ wrapable })}
|
||||
style={{ color, background }}
|
||||
>
|
||||
|
@ -230,8 +230,8 @@ export default createComponent({
|
||||
const Content = (
|
||||
<Transition name={props.transition ? 'van-slide-up' : ''}>
|
||||
<div
|
||||
v-show={props.show}
|
||||
ref={root}
|
||||
vShow={props.show}
|
||||
style={{ zIndex: props.zIndex }}
|
||||
class={bem({
|
||||
unfit: !props.safeAreaInsetBottom,
|
||||
|
@ -36,7 +36,7 @@ export default createComponent({
|
||||
|
||||
return (
|
||||
<div
|
||||
vShow={props.show}
|
||||
v-show={props.show}
|
||||
style={style}
|
||||
class={[bem(), props.className]}
|
||||
onTouchmove={props.lockScroll ? preventTouchMove : noop}
|
||||
|
@ -191,7 +191,7 @@ export default createComponent({
|
||||
const { round, position, safeAreaInsetBottom } = props;
|
||||
return (
|
||||
<div
|
||||
vShow={props.show}
|
||||
v-show={props.show}
|
||||
style={style.value}
|
||||
class={bem({
|
||||
round,
|
||||
|
@ -280,7 +280,7 @@ export default createComponent({
|
||||
return () => (
|
||||
<div class={bem([props.theme])}>
|
||||
<button
|
||||
vShow={props.showMinus}
|
||||
v-show={props.showMinus}
|
||||
type="button"
|
||||
style={buttonStyle.value}
|
||||
class={bem('minus', { disabled: minusDisabled.value })}
|
||||
@ -306,7 +306,7 @@ export default createComponent({
|
||||
onBlur={onBlur}
|
||||
/>
|
||||
<button
|
||||
vShow={props.showPlus}
|
||||
v-show={props.showPlus}
|
||||
type="button"
|
||||
style={buttonStyle.value}
|
||||
class={bem('plus', { disabled: plusDisabled.value })}
|
||||
|
Loading…
x
Reference in New Issue
Block a user