Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
梦里逆天
uni-app
提交
12d3c687
U
uni-app
项目概览
梦里逆天
/
uni-app
与 Fork 源项目一致
Fork自
DCloud / uni-app
通知
22
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
U
uni-app
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
12d3c687
编写于
11月 12, 2018
作者:
蓝色的小猫咪
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
更新numberbox示例结构
上级
cc698324
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
15 addition
and
59 deletion
+15
-59
examples/hello-uniapp/common/uni.css
examples/hello-uniapp/common/uni.css
+2
-5
examples/hello-uniapp/pages/template/number-box/number-box.vue
...les/hello-uniapp/pages/template/number-box/number-box.vue
+13
-54
未找到文件。
examples/hello-uniapp/common/uni.css
浏览文件 @
12d3c687
...
...
@@ -779,6 +779,8 @@ radio-group label, checkbox-group label{
display
:
flex
;
flex-direction
:
row
;
font-size
:
28
upx
;
padding
:
22
upx
30
upx
;
justify-content
:
space-between
;
}
.uni-input-group
.uni-input-row
:after
{
...
...
@@ -792,11 +794,6 @@ radio-group label, checkbox-group label{
background-color
:
#c8c7cc
;
}
.uni-input-row
{
padding
:
22
upx
30
upx
;
justify-content
:
space-between
;
}
.uni-input-row
label
{
line-height
:
70
upx
;
}
...
...
examples/hello-uniapp/pages/template/number-box/number-box.vue
浏览文件 @
12d3c687
<
template
>
<view
class=
"page"
>
<page-head
:title=
"title"
></page-head>
<view
class=
"uni-
padding-wrap
"
>
<view
class=
"uni-
hello-text uni-common-mt"
>
默认
</view
>
<view
class=
"uni-hello-items"
>
<view
class=
"uni-
input-group uni-common-mt
"
>
<view
class=
"uni-
input-row"
>
<label>
默认
</label
>
<number-box></number-box>
</view>
<view
class=
"uni-hello-text uni-common-mt"
>
限定最小值和最大值(0~9)
</view>
<view
class=
"uni-hello-items"
>
<view
class=
"uni-input-row"
>
<label>
限定最小值和最大值
</label>
<number-box
:min=
"0"
:max=
"9"
></number-box>
</view>
<view
class=
"uni-hello-text uni-common-mt"
>
设定步长值(步长10)
</view>
<view
class=
"uni-hello-items"
>
<view
class=
"uni-input-row"
>
<label>
设定步长值(步长10)
</label>
<number-box
:step=
"10"
></number-box>
</view>
<view
class=
"uni-hello-text uni-common-mt"
>
获取输入框的值
</view>
<view
class=
"uni-hello-items"
>
<view
class=
"uni-inline-item"
>
<number-box
v-on:change=
"onNumberChange"
></number-box>
<text
class=
"item-label-right"
>
当前的值为:
{{
numberValue
}}
</text>
</view>
</view>
<view
class=
"uni-hello-text uni-common-mt"
>
输入框只读
</view>
<view
class=
"uni-hello-items"
>
<view
class=
"uni-input-row"
>
<label>
输入框只读
</label>
<number-box
:disabled=
"true"
></number-box>
</view>
<view
class=
"uni-hello-text uni-common-mt"
>
在行内
</view>
<view
class=
"uni-hello-items"
>
<view
class=
"uni-inline-item"
>
<text
class=
"item-label"
>
购买数量:
</text>
<number-box></number-box>
</view>
</view>
<view
class=
"uni-hello-text uni-common-mt"
>
在表单中
</view>
<view
class=
"uni-input-group"
>
<view
class=
"uni-input-row"
>
<label>
数字框一
</label>
<number-box></number-box>
</view>
<view
class=
"uni-input-row"
>
<label>
数字框二
</label>
<number-box></number-box>
</view>
<view
class=
"uni-input-row"
>
<label>
获取输入的值 :
{{
numberValue
}}
</label>
<number-box
v-on:change=
"onNumberChange"
></number-box>
</view>
</view>
<view
style=
"height:80upx;"
></view>
...
...
@@ -74,18 +47,4 @@
}
</
script
>
<
style
>
.uni-hello-items
{
padding
:
10
upx
0
;
}
.item-label
{
line-height
:
70
upx
;
font-size
:
28
upx
;
}
.item-label-right
{
font-size
:
28
upx
;
line-height
:
70
upx
;
margin-left
:
20
upx
;
}
</
style
>
</
style
>
\ No newline at end of file
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录