mirror of
https://github.com/youzan/vant.git
synced 2025-10-21 03:11:15 +00:00
[improvement] add constant of border (#4078)
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import { createNamespace, addUnit } from '../utils';
|
||||
import { emit, inherit } from '../utils/functional';
|
||||
import { BORDER_LEFT, BORDER_SURROUND } from '../utils/constant';
|
||||
|
||||
// Types
|
||||
import { CreateElement, RenderContext } from 'vue/types';
|
||||
@@ -35,7 +36,7 @@ function PasswordInput(
|
||||
}
|
||||
|
||||
Points.push(
|
||||
<li class={{ 'van-hairline--left': showBorder }} style={style}>
|
||||
<li class={{ [BORDER_LEFT]: showBorder }} style={style}>
|
||||
{props.mask ? <i style={{ visibility: char ? 'visible' : 'hidden' }} /> : char}
|
||||
</li>
|
||||
);
|
||||
@@ -44,7 +45,7 @@ function PasswordInput(
|
||||
return (
|
||||
<div class={bem()}>
|
||||
<ul
|
||||
class={[bem('security'), { 'van-hairline--surround': !props.gutter }]}
|
||||
class={[bem('security'), { [BORDER_SURROUND]: !props.gutter }]}
|
||||
onTouchstart={(event: TouchEvent) => {
|
||||
event.stopPropagation();
|
||||
emit(ctx, 'focus', event);
|
||||
|
Reference in New Issue
Block a user