提交 b16de6dd 编写于 作者: DCloud_iOS_WZT's avatar DCloud_iOS_WZT

update input.uvue

上级 9036f443
...@@ -64,6 +64,10 @@ ...@@ -64,6 +64,10 @@
<view class="input-wrapper"> <view class="input-wrapper">
<input class="uni-input" :placeholder-style="inputPlaceHolderStyle" <input class="uni-input" :placeholder-style="inputPlaceHolderStyle"
value="不设置placeholder只设置placeholder-style" /> value="不设置placeholder只设置placeholder-style" />
</view>
<view class="input-wrapper">
<input id="uni-input-placeholder2" style="font-family: AlimamaDaoLiTiOTF;font-weight: bold;text-align: right;" class="uni-input" :placeholder-style="placeholderStyle"
placeholder="占位符以及内容右对齐" />
</view> </view>
</view> </view>
...@@ -311,7 +315,8 @@ ...@@ -311,7 +315,8 @@
focus: true, focus: true,
inputPassword: true, inputPassword: true,
inputTypeTel: "tel", inputTypeTel: "tel",
inputPlaceHolderStyle: "color:red", inputPlaceHolderStyle: "color:red",
placeholderStyle: "font-family: AlimamaDaoLiTiOTF;font-weight: bold;text-align: right",
inputPlaceHolderClass: "uni-input-placeholder-class" as string.ClassString, inputPlaceHolderClass: "uni-input-placeholder-class" as string.ClassString,
inputMaxLengthValue: "", inputMaxLengthValue: "",
onMaxLengthInputValue: "", onMaxLengthInputValue: "",
...@@ -442,5 +447,10 @@ ...@@ -442,5 +447,10 @@
.uni-input-placeholder-class { .uni-input-placeholder-class {
font-size: 10px; font-size: 10px;
}
@font-face {
font-family: AlimamaDaoLiTiOTF;
src: url('/static/font/AlimamaDaoLiTi.otf');
} }
</style> </style>
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册