Commit 6c145a0466f47f45985be735b32c6f701a98a68f
1 parent
f2be585e
fixed #77
fixed #77
Showing
6 changed files
with
15 additions
and
3 deletions
Show diff stats
dist/styles/article.css
1 | -.ivu-article h1{font-size:26px;font-weight:400}.ivu-article h2{font-size:20px;font-weight:400}.ivu-article h3{font-size:16px;font-weight:400}.ivu-article h4{font-size:14px;font-weight:400}.ivu-article h5,.ivu-article h6{font-size:12px;font-weight:400}.ivu-article blockquote{padding:5px 5px 3px 10px;line-height:1.5;border-left:4px solid #ddd;margin-bottom:20px;color:#666;font-size:14px}.ivu-article ul{padding-left:40px;list-style-type:disc}.ivu-article li{margin-bottom:5px;font-size:14px}.ivu-article ol ul,.ivu-article ul ul{list-style-type:circle}.ivu-article p{margin:5px;font-size:14px} | |
2 | 1 | \ No newline at end of file |
2 | +.ivu-article h1{font-size:26px;font-weight:400}.ivu-article h2{font-size:20px;font-weight:400}.ivu-article h3{font-size:16px;font-weight:400}.ivu-article h4{font-size:14px;font-weight:400}.ivu-article h5,.ivu-article h6{font-size:12px;font-weight:400}.ivu-article blockquote{padding:5px 5px 3px 10px;line-height:1.5;border-left:4px solid #ddd;margin-bottom:20px;color:#666;font-size:14px}.ivu-article ul{padding-left:40px;list-style-type:disc}.ivu-article li{margin-bottom:5px;font-size:14px}.ivu-article ol ul,.ivu-article ul ul{list-style-type:circle}.ivu-article p{margin:5px;font-size:14px}.ivu-article a[target="_blank"]:after{content:"\F220";font-family:Ionicons;color:#aaa;margin-left:2px} | |
3 | 3 | \ No newline at end of file | ... | ... |
src/components/input/input.vue
... | ... | @@ -4,7 +4,7 @@ |
4 | 4 | <div :class="[prefixCls + '-group-prepend']" v-if="prepend" v-el:prepend><slot name="prepend"></slot></div> |
5 | 5 | <i class="ivu-icon" :class="['ivu-icon-' + icon, prefixCls + '-icon']" v-if="icon" @click="handleIconClick"></i> |
6 | 6 | <input |
7 | - type="text" | |
7 | + :type="type" | |
8 | 8 | :class="inputClasses" |
9 | 9 | :placeholder="placeholder" |
10 | 10 | :disabled="disabled" |
... | ... | @@ -37,7 +37,7 @@ |
37 | 37 | props: { |
38 | 38 | type: { |
39 | 39 | validator (value) { |
40 | - return oneOf(value, ['text', 'textarea']); | |
40 | + return oneOf(value, ['text', 'textarea', 'password']); | |
41 | 41 | }, |
42 | 42 | default: 'text' |
43 | 43 | }, | ... | ... |
src/styles/article/index.less
test/app.vue
test/routers/input.vue
test/routers/slider.vue
... | ... | @@ -9,6 +9,9 @@ |
9 | 9 | <!--<Slider :step="13" :max="60"></Slider>--> |
10 | 10 | <Icon type="checkmark-circled" size="40" color="#f60"></Icon> |
11 | 11 | <p>附近的首付款是东方红看就是</p> |
12 | + <div class="ivu-article"> | |
13 | + <a href="http://www.iviewui.com" target="_blank">iView</a> | |
14 | + </div> | |
12 | 15 | </div> |
13 | 16 | </template> |
14 | 17 | <script> | ... | ... |