Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

mand-mobile

Package Overview
Dependencies
Maintainers
4
Versions
135
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mand-mobile - npm Package Compare versions

Comparing version 1.3.2 to 1.3.3

CHANGELOG.en-US.md

9

CHANGELOG.md

@@ -5,2 +5,9 @@ ---

### 1.3.3
`2018-06-15`
- Feature
- 新增`Toast`自定义位置参数 #89
- Fix
- 修复`InputItem`长度限制
### 1.3.2

@@ -18,3 +25,3 @@ `2018-06-11`

- Fix
- 修复`InputItem`销毁未删除虚拟键盘问题issue #104
- 修复`InputItem`销毁未删除虚拟键盘问题issue #104

@@ -21,0 +28,0 @@ ### 1.3.0

2

components/action-bar/README.md

@@ -25,3 +25,3 @@ ---

|----|-----|------|------|------|
|actions|按钮组|Array<{text, disabled, onClick}>|-|`text`为按钮文案,<br/>`disabled`为是否禁用改按钮,<br/>`onClick`为点击事件响应函数,传参数与`click`事件相同|
|actions|按钮组|Array<{text, disabled, onClick}>|-|`text`为按钮文案,<br/>`disabled`为是否禁用该按钮,<br/>`onClick`为点击事件响应函数,传参数与`click`事件相同|
|has-text|是否显示文案|Boolean|是否含有`slot`|文案可通过`slot`传入|

@@ -28,0 +28,0 @@

@@ -22,10 +22,10 @@ ---

#### ActionSheet Props
|属性 | 说明 | 类型 | 默认值 |
|----|-----|------|------|
|v-model|面板是否可见|Boolean| `false`|
|title|面板标题|String|- |
|options|面板选项| Array<{text, value}>| `[]`|
|default-index|默认选中项| Boolean| `0`|
|invalid-index|禁用选择项索引 |Number|`-1`|
|cancel-text|取消按钮文案 |String |-|
|属性 | 说明 | 类型 | 默认值 | 备注 |
|----|-----|------|------|------|
|v-model|面板是否可见|Boolean| `false`|-|
|title|面板标题|String|-|-|
|options|面板选项| Array<{text, value}>| `[]`|-|
|default-index|默认选中项| Boolean| `0`|-|
|invalid-index|禁用选择项索引 |Number|`-1`|-|
|cancel-text|取消按钮文案 |String |-|-|
|max-height|面板最高高度, 超出后可滚动|Number|400|单位`px`|

@@ -32,0 +32,0 @@

@@ -53,5 +53,5 @@ ---

##### @send(countdown)
发送验证码事件, 第一次打开时或点击重发按钮后触发并开始倒计时,如果`auto-countdown`需手动调用`countdown`开始倒计时
发送验证码事件, 第一次打开时或点击重发按钮后触发并开始倒计时,如果`auto-countdown`为`false`需手动调用`countdown`开始倒计时
##### @submit(code)
用户提交输入内容事件

@@ -50,3 +50,3 @@ ---

|blob|图片Blob对象,可用于`formData`|Blob|
|files|图片对象|File|
|file|图片对象|File|

@@ -97,2 +97,2 @@ ##### @error(name, { code, msg })

'103': 'the number of pictures exceeds the limit'
```
```

@@ -81,2 +81,2 @@ ---

##### @keydown(name, event)
表单按键释放事件,仅`is-virtual-keyboard`为`false`时触发
表单按键释放事件,仅`is-virtual-keyboard`为`false`时触发

@@ -73,3 +73,3 @@ ---

|---|---|---|---|---|
|index|第一屏面板索引值|Number|`0`|`[0, length - 1]`|
|index|面板索引值|Number|`0`|`[0, length - 1]`|
```js

@@ -76,0 +76,0 @@ vm.$refs.swiper.goto(2)

@@ -6,3 +6,3 @@ ---

底部级联选择、非级联选择的tab切换的面板
底部级联选择、非级联选择的tab切换面板

@@ -48,3 +48,3 @@ ### 引入

|v-model|控制显示或隐藏|Boolean|`false`| -|
|data|数据源|Array|`[]`|参数据格式考`附录`|
|data|数据源|Array|`[]`|数据格式参考`附录`|
|data-struct|数据级联类型|String|`noCascade`|`normal`, `cascade`, `async`|

@@ -51,0 +51,0 @@ |default-index|初始选中项索引|Array|`[]`|-|

@@ -5,3 +5,10 @@ import Vue from 'vue'

function Toast({content = '', icon = '', duration = 3000, hasMask = false, parentNode = document.body}) {
function Toast({
content = '',
icon = '',
duration = 3000,
position = 'center',
hasMask = false,
parentNode = document.body,
}) {
let vm = Toast._instance

@@ -15,2 +22,3 @@

duration,
position,
hasMask,

@@ -17,0 +25,0 @@ },

@@ -21,3 +21,3 @@ ---

#### Toast({content, icon, duration, hasMask, parentNode})
#### Toast({content, icon, duration, position, hasMask, parentNode})
显示自定义提示

@@ -30,2 +30,3 @@

| duration | 显示多少毫秒后自动消失, 若为`0`则一直显示 | Number | `3000` | - |
| position | 展示位置 | String | `center` | `top/center/bottom` |
| hasMask | 是否显示透明遮罩, 以此防止用户点击 | Boolean | `false` | - |

@@ -32,0 +33,0 @@ | parentNode | 组件挂载节点 | HTMLElement | `document.body`|- |

@@ -25,3 +25,3 @@ ---

|----|-----|------|------|------|
|actions|按钮组|Array<{text, disabled, onClick}>|-|`text`为按钮文案,<br/>`disabled`为是否禁用改按钮,<br/>`onClick`为点击事件响应函数,传参数与`click`事件相同|
|actions|按钮组|Array<{text, disabled, onClick}>|-|`text`为按钮文案,<br/>`disabled`为是否禁用该按钮,<br/>`onClick`为点击事件响应函数,传参数与`click`事件相同|
|has-text|是否显示文案|Boolean|是否含有`slot`|文案可通过`slot`传入|

@@ -28,0 +28,0 @@

@@ -22,10 +22,10 @@ ---

#### ActionSheet Props
|属性 | 说明 | 类型 | 默认值 |
|----|-----|------|------|
|v-model|面板是否可见|Boolean| `false`|
|title|面板标题|String|- |
|options|面板选项| Array<{text, value}>| `[]`|
|default-index|默认选中项| Boolean| `0`|
|invalid-index|禁用选择项索引 |Number|`-1`|
|cancel-text|取消按钮文案 |String |-|
|属性 | 说明 | 类型 | 默认值 | 备注 |
|----|-----|------|------|------|
|v-model|面板是否可见|Boolean| `false`|-|
|title|面板标题|String|-|-|
|options|面板选项| Array<{text, value}>| `[]`|-|
|default-index|默认选中项| Boolean| `0`|-|
|invalid-index|禁用选择项索引 |Number|`-1`|-|
|cancel-text|取消按钮文案 |String |-|-|
|max-height|面板最高高度, 超出后可滚动|Number|400|单位`px`|

@@ -32,0 +32,0 @@

@@ -53,5 +53,5 @@ ---

##### @send(countdown)
发送验证码事件, 第一次打开时或点击重发按钮后触发并开始倒计时,如果`auto-countdown`需手动调用`countdown`开始倒计时
发送验证码事件, 第一次打开时或点击重发按钮后触发并开始倒计时,如果`auto-countdown`为`false`需手动调用`countdown`开始倒计时
##### @submit(code)
用户提交输入内容事件

@@ -50,3 +50,3 @@ ---

|blob|图片Blob对象,可用于`formData`|Blob|
|files|图片对象|File|
|file|图片对象|File|

@@ -97,2 +97,2 @@ ##### @error(name, { code, msg })

'103': 'the number of pictures exceeds the limit'
```
```

@@ -398,3 +398,3 @@ ;(function(){

fixed: !_vm.isTitleLatent
},domProps:{"innerHTML":_vm._s(_vm.title)}}):_vm._e(),_vm._v(" "),_c('div',{staticClass:"md-input-item-control"},[(!_vm.isVirtualKeyboard)?[((_vm.inputType)==='checkbox')?_c('input',{directives:[{name:"model",rawName:"v-model",value:(_vm.inputBindValue),expression:"inputBindValue"}],staticClass:"md-input-item-input",attrs:{"name":_vm.name,"placeholder":_vm.placeholder,"disabled":_vm.disabled,"readonly":_vm.readonly,"autocomplete":"off","type":"checkbox"},domProps:{"checked":Array.isArray(_vm.inputBindValue)?_vm._i(_vm.inputBindValue,null)>-1:(_vm.inputBindValue)},on:{"focus":_vm.$_onFocus,"blur":_vm.$_onBlur,"keyup":_vm.$_onKeyup,"keydown":_vm.$_onKeydown,"input":_vm.$_onInput,"change":function($event){var $$a=_vm.inputBindValue,$$el=$event.target,$$c=$$el.checked?(true):(false);if(Array.isArray($$a)){var $$v=null,$$i=_vm._i($$a,$$v);if($$el.checked){$$i<0&&(_vm.inputBindValue=$$a.concat([$$v]))}else{$$i>-1&&(_vm.inputBindValue=$$a.slice(0,$$i).concat($$a.slice($$i+1)))}}else{_vm.inputBindValue=$$c}}}}):((_vm.inputType)==='radio')?_c('input',{directives:[{name:"model",rawName:"v-model",value:(_vm.inputBindValue),expression:"inputBindValue"}],staticClass:"md-input-item-input",attrs:{"name":_vm.name,"placeholder":_vm.placeholder,"disabled":_vm.disabled,"readonly":_vm.readonly,"autocomplete":"off","type":"radio"},domProps:{"checked":_vm._q(_vm.inputBindValue,null)},on:{"focus":_vm.$_onFocus,"blur":_vm.$_onBlur,"keyup":_vm.$_onKeyup,"keydown":_vm.$_onKeydown,"input":_vm.$_onInput,"change":function($event){_vm.inputBindValue=null}}}):_c('input',{directives:[{name:"model",rawName:"v-model",value:(_vm.inputBindValue),expression:"inputBindValue"}],staticClass:"md-input-item-input",attrs:{"name":_vm.name,"placeholder":_vm.placeholder,"disabled":_vm.disabled,"readonly":_vm.readonly,"autocomplete":"off","type":_vm.inputType},domProps:{"value":(_vm.inputBindValue)},on:{"focus":_vm.$_onFocus,"blur":_vm.$_onBlur,"keyup":_vm.$_onKeyup,"keydown":_vm.$_onKeydown,"input":[function($event){if($event.target.composing){ return; }_vm.inputBindValue=$event.target.value},_vm.$_onInput]}})]:[_c('div',{staticClass:"md-input-item-fake",class:{
},domProps:{"innerHTML":_vm._s(_vm.title)}}):_vm._e(),_vm._v(" "),_c('div',{staticClass:"md-input-item-control"},[(!_vm.isVirtualKeyboard)?[((_vm.inputType)==='checkbox')?_c('input',{directives:[{name:"model",rawName:"v-model",value:(_vm.inputBindValue),expression:"inputBindValue"}],staticClass:"md-input-item-input",attrs:{"name":_vm.name,"placeholder":_vm.placeholder,"disabled":_vm.disabled,"readonly":_vm.readonly,"maxlength":_vm.isFormative ? '' : _vm.maxlength,"autocomplete":"off","type":"checkbox"},domProps:{"checked":Array.isArray(_vm.inputBindValue)?_vm._i(_vm.inputBindValue,null)>-1:(_vm.inputBindValue)},on:{"focus":_vm.$_onFocus,"blur":_vm.$_onBlur,"keyup":_vm.$_onKeyup,"keydown":_vm.$_onKeydown,"input":_vm.$_onInput,"change":function($event){var $$a=_vm.inputBindValue,$$el=$event.target,$$c=$$el.checked?(true):(false);if(Array.isArray($$a)){var $$v=null,$$i=_vm._i($$a,$$v);if($$el.checked){$$i<0&&(_vm.inputBindValue=$$a.concat([$$v]))}else{$$i>-1&&(_vm.inputBindValue=$$a.slice(0,$$i).concat($$a.slice($$i+1)))}}else{_vm.inputBindValue=$$c}}}}):((_vm.inputType)==='radio')?_c('input',{directives:[{name:"model",rawName:"v-model",value:(_vm.inputBindValue),expression:"inputBindValue"}],staticClass:"md-input-item-input",attrs:{"name":_vm.name,"placeholder":_vm.placeholder,"disabled":_vm.disabled,"readonly":_vm.readonly,"maxlength":_vm.isFormative ? '' : _vm.maxlength,"autocomplete":"off","type":"radio"},domProps:{"checked":_vm._q(_vm.inputBindValue,null)},on:{"focus":_vm.$_onFocus,"blur":_vm.$_onBlur,"keyup":_vm.$_onKeyup,"keydown":_vm.$_onKeydown,"input":_vm.$_onInput,"change":function($event){_vm.inputBindValue=null}}}):_c('input',{directives:[{name:"model",rawName:"v-model",value:(_vm.inputBindValue),expression:"inputBindValue"}],staticClass:"md-input-item-input",attrs:{"name":_vm.name,"placeholder":_vm.placeholder,"disabled":_vm.disabled,"readonly":_vm.readonly,"maxlength":_vm.isFormative ? '' : _vm.maxlength,"autocomplete":"off","type":_vm.inputType},domProps:{"value":(_vm.inputBindValue)},on:{"focus":_vm.$_onFocus,"blur":_vm.$_onBlur,"keyup":_vm.$_onKeyup,"keydown":_vm.$_onKeydown,"input":[function($event){if($event.target.composing){ return; }_vm.inputBindValue=$event.target.value},_vm.$_onInput]}})]:[_c('div',{staticClass:"md-input-item-fake",class:{
'focus': _vm.isInputFocus,

@@ -401,0 +401,0 @@ 'disabled': _vm.disabled,

@@ -81,2 +81,2 @@ ---

##### @keydown(name, event)
表单按键释放事件,仅`is-virtual-keyboard`为`false`时触发
表单按键释放事件,仅`is-virtual-keyboard`为`false`时触发

@@ -73,3 +73,3 @@ ---

|---|---|---|---|---|
|index|第一屏面板索引值|Number|`0`|`[0, length - 1]`|
|index|面板索引值|Number|`0`|`[0, length - 1]`|
```js

@@ -76,0 +76,0 @@ vm.$refs.swiper.goto(2)

@@ -6,3 +6,3 @@ ---

底部级联选择、非级联选择的tab切换的面板
底部级联选择、非级联选择的tab切换面板

@@ -48,3 +48,3 @@ ### 引入

|v-model|控制显示或隐藏|Boolean|`false`| -|
|data|数据源|Array|`[]`|参数据格式考`附录`|
|data|数据源|Array|`[]`|数据格式参考`附录`|
|data-struct|数据级联类型|String|`noCascade`|`normal`, `cascade`, `async`|

@@ -51,0 +51,0 @@ |default-index|初始选中项索引|Array|`[]`|-|

@@ -39,2 +39,4 @@ (function (global, factory) {

duration = _ref$duration === undefined ? 3000 : _ref$duration,
_ref$position = _ref.position,
position = _ref$position === undefined ? 'center' : _ref$position,
_ref$hasMask = _ref.hasMask,

@@ -53,2 +55,3 @@ hasMask = _ref$hasMask === undefined ? false : _ref$hasMask,

duration: duration,
position: position,
hasMask: hasMask

@@ -55,0 +58,0 @@ }

@@ -21,3 +21,3 @@ ---

#### Toast({content, icon, duration, hasMask, parentNode})
#### Toast({content, icon, duration, position, hasMask, parentNode})
显示自定义提示

@@ -30,2 +30,3 @@

| duration | 显示多少毫秒后自动消失, 若为`0`则一直显示 | Number | `3000` | - |
| position | 展示位置 | String | `center` | `top/center/bottom` |
| hasMask | 是否显示透明遮罩, 以此防止用户点击 | Boolean | `false` | - |

@@ -32,0 +33,0 @@ | parentNode | 组件挂载节点 | HTMLElement | `document.body`|- |

@@ -66,2 +66,6 @@ ;(function(){

},
position: {
type: String,
default: 'center'
},
hasMask: {

@@ -115,3 +119,5 @@ type: Boolean,

if (__vue__options__.functional) {console.error("[vueify] functional components are not supported and should be defined in plain js files using render functions.")}
__vue__options__.render = function render () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"md-toast",class:{'has-icon': _vm.icon}},[_c('md-popup',{attrs:{"hasMask":_vm.hasMask,"maskClosable":false},on:{"hide":_vm.$_onHide},model:{value:(_vm.visible),callback:function ($$v) {_vm.visible=$$v},expression:"visible"}},[_c('div',{staticClass:"md-toast-content"},[(_vm.icon)?_c('md-icon',{attrs:{"name":_vm.icon,"size":"lg"}}):_vm._e(),_vm._v(" "),_c('span',{domProps:{"textContent":_vm._s(_vm.content)}})],1)])],1)}
__vue__options__.render = function render () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"md-toast",class:[
_vm.icon ? 'has-icon' : '',
_vm.position ]},[_c('md-popup',{attrs:{"hasMask":_vm.hasMask,"maskClosable":false},on:{"hide":_vm.$_onHide},model:{value:(_vm.visible),callback:function ($$v) {_vm.visible=$$v},expression:"visible"}},[_c('div',{staticClass:"md-toast-content"},[(_vm.icon)?_c('md-icon',{attrs:{"name":_vm.icon,"size":"lg"}}):_vm._e(),_vm._v(" "),_c('span',{domProps:{"textContent":_vm._s(_vm.content)}})],1)])],1)}
__vue__options__.staticRenderFns = []

@@ -118,0 +124,0 @@ if (module.hot) {(function () { var hotAPI = require("vue-hot-reload-api")

@@ -25,3 +25,3 @@ ---

|----|-----|------|------|------|
|actions|按钮组|Array<{text, disabled, onClick}>|-|`text`为按钮文案,<br/>`disabled`为是否禁用改按钮,<br/>`onClick`为点击事件响应函数,传参数与`click`事件相同|
|actions|按钮组|Array<{text, disabled, onClick}>|-|`text`为按钮文案,<br/>`disabled`为是否禁用该按钮,<br/>`onClick`为点击事件响应函数,传参数与`click`事件相同|
|has-text|是否显示文案|Boolean|是否含有`slot`|文案可通过`slot`传入|

@@ -28,0 +28,0 @@

@@ -22,10 +22,10 @@ ---

#### ActionSheet Props
|属性 | 说明 | 类型 | 默认值 |
|----|-----|------|------|
|v-model|面板是否可见|Boolean| `false`|
|title|面板标题|String|- |
|options|面板选项| Array<{text, value}>| `[]`|
|default-index|默认选中项| Boolean| `0`|
|invalid-index|禁用选择项索引 |Number|`-1`|
|cancel-text|取消按钮文案 |String |-|
|属性 | 说明 | 类型 | 默认值 | 备注 |
|----|-----|------|------|------|
|v-model|面板是否可见|Boolean| `false`|-|
|title|面板标题|String|-|-|
|options|面板选项| Array<{text, value}>| `[]`|-|
|default-index|默认选中项| Boolean| `0`|-|
|invalid-index|禁用选择项索引 |Number|`-1`|-|
|cancel-text|取消按钮文案 |String |-|-|
|max-height|面板最高高度, 超出后可滚动|Number|400|单位`px`|

@@ -32,0 +32,0 @@

@@ -53,5 +53,5 @@ ---

##### @send(countdown)
发送验证码事件, 第一次打开时或点击重发按钮后触发并开始倒计时,如果`auto-countdown`需手动调用`countdown`开始倒计时
发送验证码事件, 第一次打开时或点击重发按钮后触发并开始倒计时,如果`auto-countdown`为`false`需手动调用`countdown`开始倒计时
##### @submit(code)
用户提交输入内容事件

@@ -50,3 +50,3 @@ ---

|blob|图片Blob对象,可用于`formData`|Blob|
|files|图片对象|File|
|file|图片对象|File|

@@ -97,2 +97,2 @@ ##### @error(name, { code, msg })

'103': 'the number of pictures exceeds the limit'
```
```

@@ -398,3 +398,3 @@ ;(function(){

fixed: !_vm.isTitleLatent
},domProps:{"innerHTML":_vm._s(_vm.title)}}):_vm._e(),_vm._v(" "),_c('div',{staticClass:"md-input-item-control"},[(!_vm.isVirtualKeyboard)?[((_vm.inputType)==='checkbox')?_c('input',{directives:[{name:"model",rawName:"v-model",value:(_vm.inputBindValue),expression:"inputBindValue"}],staticClass:"md-input-item-input",attrs:{"name":_vm.name,"placeholder":_vm.placeholder,"disabled":_vm.disabled,"readonly":_vm.readonly,"autocomplete":"off","type":"checkbox"},domProps:{"checked":Array.isArray(_vm.inputBindValue)?_vm._i(_vm.inputBindValue,null)>-1:(_vm.inputBindValue)},on:{"focus":_vm.$_onFocus,"blur":_vm.$_onBlur,"keyup":_vm.$_onKeyup,"keydown":_vm.$_onKeydown,"input":_vm.$_onInput,"change":function($event){var $$a=_vm.inputBindValue,$$el=$event.target,$$c=$$el.checked?(true):(false);if(Array.isArray($$a)){var $$v=null,$$i=_vm._i($$a,$$v);if($$el.checked){$$i<0&&(_vm.inputBindValue=$$a.concat([$$v]))}else{$$i>-1&&(_vm.inputBindValue=$$a.slice(0,$$i).concat($$a.slice($$i+1)))}}else{_vm.inputBindValue=$$c}}}}):((_vm.inputType)==='radio')?_c('input',{directives:[{name:"model",rawName:"v-model",value:(_vm.inputBindValue),expression:"inputBindValue"}],staticClass:"md-input-item-input",attrs:{"name":_vm.name,"placeholder":_vm.placeholder,"disabled":_vm.disabled,"readonly":_vm.readonly,"autocomplete":"off","type":"radio"},domProps:{"checked":_vm._q(_vm.inputBindValue,null)},on:{"focus":_vm.$_onFocus,"blur":_vm.$_onBlur,"keyup":_vm.$_onKeyup,"keydown":_vm.$_onKeydown,"input":_vm.$_onInput,"change":function($event){_vm.inputBindValue=null}}}):_c('input',{directives:[{name:"model",rawName:"v-model",value:(_vm.inputBindValue),expression:"inputBindValue"}],staticClass:"md-input-item-input",attrs:{"name":_vm.name,"placeholder":_vm.placeholder,"disabled":_vm.disabled,"readonly":_vm.readonly,"autocomplete":"off","type":_vm.inputType},domProps:{"value":(_vm.inputBindValue)},on:{"focus":_vm.$_onFocus,"blur":_vm.$_onBlur,"keyup":_vm.$_onKeyup,"keydown":_vm.$_onKeydown,"input":[function($event){if($event.target.composing){ return; }_vm.inputBindValue=$event.target.value},_vm.$_onInput]}})]:[_c('div',{staticClass:"md-input-item-fake",class:{
},domProps:{"innerHTML":_vm._s(_vm.title)}}):_vm._e(),_vm._v(" "),_c('div',{staticClass:"md-input-item-control"},[(!_vm.isVirtualKeyboard)?[((_vm.inputType)==='checkbox')?_c('input',{directives:[{name:"model",rawName:"v-model",value:(_vm.inputBindValue),expression:"inputBindValue"}],staticClass:"md-input-item-input",attrs:{"name":_vm.name,"placeholder":_vm.placeholder,"disabled":_vm.disabled,"readonly":_vm.readonly,"maxlength":_vm.isFormative ? '' : _vm.maxlength,"autocomplete":"off","type":"checkbox"},domProps:{"checked":Array.isArray(_vm.inputBindValue)?_vm._i(_vm.inputBindValue,null)>-1:(_vm.inputBindValue)},on:{"focus":_vm.$_onFocus,"blur":_vm.$_onBlur,"keyup":_vm.$_onKeyup,"keydown":_vm.$_onKeydown,"input":_vm.$_onInput,"change":function($event){var $$a=_vm.inputBindValue,$$el=$event.target,$$c=$$el.checked?(true):(false);if(Array.isArray($$a)){var $$v=null,$$i=_vm._i($$a,$$v);if($$el.checked){$$i<0&&(_vm.inputBindValue=$$a.concat([$$v]))}else{$$i>-1&&(_vm.inputBindValue=$$a.slice(0,$$i).concat($$a.slice($$i+1)))}}else{_vm.inputBindValue=$$c}}}}):((_vm.inputType)==='radio')?_c('input',{directives:[{name:"model",rawName:"v-model",value:(_vm.inputBindValue),expression:"inputBindValue"}],staticClass:"md-input-item-input",attrs:{"name":_vm.name,"placeholder":_vm.placeholder,"disabled":_vm.disabled,"readonly":_vm.readonly,"maxlength":_vm.isFormative ? '' : _vm.maxlength,"autocomplete":"off","type":"radio"},domProps:{"checked":_vm._q(_vm.inputBindValue,null)},on:{"focus":_vm.$_onFocus,"blur":_vm.$_onBlur,"keyup":_vm.$_onKeyup,"keydown":_vm.$_onKeydown,"input":_vm.$_onInput,"change":function($event){_vm.inputBindValue=null}}}):_c('input',{directives:[{name:"model",rawName:"v-model",value:(_vm.inputBindValue),expression:"inputBindValue"}],staticClass:"md-input-item-input",attrs:{"name":_vm.name,"placeholder":_vm.placeholder,"disabled":_vm.disabled,"readonly":_vm.readonly,"maxlength":_vm.isFormative ? '' : _vm.maxlength,"autocomplete":"off","type":_vm.inputType},domProps:{"value":(_vm.inputBindValue)},on:{"focus":_vm.$_onFocus,"blur":_vm.$_onBlur,"keyup":_vm.$_onKeyup,"keydown":_vm.$_onKeydown,"input":[function($event){if($event.target.composing){ return; }_vm.inputBindValue=$event.target.value},_vm.$_onInput]}})]:[_c('div',{staticClass:"md-input-item-fake",class:{
'focus': _vm.isInputFocus,

@@ -401,0 +401,0 @@ 'disabled': _vm.disabled,

@@ -81,2 +81,2 @@ ---

##### @keydown(name, event)
表单按键释放事件,仅`is-virtual-keyboard`为`false`时触发
表单按键释放事件,仅`is-virtual-keyboard`为`false`时触发

@@ -73,3 +73,3 @@ ---

|---|---|---|---|---|
|index|第一屏面板索引值|Number|`0`|`[0, length - 1]`|
|index|面板索引值|Number|`0`|`[0, length - 1]`|
```js

@@ -76,0 +76,0 @@ vm.$refs.swiper.goto(2)

@@ -6,3 +6,3 @@ ---

底部级联选择、非级联选择的tab切换的面板
底部级联选择、非级联选择的tab切换面板

@@ -48,3 +48,3 @@ ### 引入

|v-model|控制显示或隐藏|Boolean|`false`| -|
|data|数据源|Array|`[]`|参数据格式考`附录`|
|data|数据源|Array|`[]`|数据格式参考`附录`|
|data-struct|数据级联类型|String|`noCascade`|`normal`, `cascade`, `async`|

@@ -51,0 +51,0 @@ |default-index|初始选中项索引|Array|`[]`|-|

@@ -39,2 +39,4 @@ (function (global, factory) {

duration = _ref$duration === undefined ? 3000 : _ref$duration,
_ref$position = _ref.position,
position = _ref$position === undefined ? 'center' : _ref$position,
_ref$hasMask = _ref.hasMask,

@@ -53,2 +55,3 @@ hasMask = _ref$hasMask === undefined ? false : _ref$hasMask,

duration: duration,
position: position,
hasMask: hasMask

@@ -55,0 +58,0 @@ }

@@ -21,3 +21,3 @@ ---

#### Toast({content, icon, duration, hasMask, parentNode})
#### Toast({content, icon, duration, position, hasMask, parentNode})
显示自定义提示

@@ -30,2 +30,3 @@

| duration | 显示多少毫秒后自动消失, 若为`0`则一直显示 | Number | `3000` | - |
| position | 展示位置 | String | `center` | `top/center/bottom` |
| hasMask | 是否显示透明遮罩, 以此防止用户点击 | Boolean | `false` | - |

@@ -32,0 +33,0 @@ | parentNode | 组件挂载节点 | HTMLElement | `document.body`|- |

@@ -66,2 +66,6 @@ ;(function(){

},
position: {
type: String,
default: 'center'
},
hasMask: {

@@ -115,3 +119,5 @@ type: Boolean,

if (__vue__options__.functional) {console.error("[vueify] functional components are not supported and should be defined in plain js files using render functions.")}
__vue__options__.render = function render () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"md-toast",class:{'has-icon': _vm.icon}},[_c('md-popup',{attrs:{"hasMask":_vm.hasMask,"maskClosable":false},on:{"hide":_vm.$_onHide},model:{value:(_vm.visible),callback:function ($$v) {_vm.visible=$$v},expression:"visible"}},[_c('div',{staticClass:"md-toast-content"},[(_vm.icon)?_c('md-icon',{attrs:{"name":_vm.icon,"size":"lg"}}):_vm._e(),_vm._v(" "),_c('span',{domProps:{"textContent":_vm._s(_vm.content)}})],1)])],1)}
__vue__options__.render = function render () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"md-toast",class:[
_vm.icon ? 'has-icon' : '',
_vm.position ]},[_c('md-popup',{attrs:{"hasMask":_vm.hasMask,"maskClosable":false},on:{"hide":_vm.$_onHide},model:{value:(_vm.visible),callback:function ($$v) {_vm.visible=$$v},expression:"visible"}},[_c('div',{staticClass:"md-toast-content"},[(_vm.icon)?_c('md-icon',{attrs:{"name":_vm.icon,"size":"lg"}}):_vm._e(),_vm._v(" "),_c('span',{domProps:{"textContent":_vm._s(_vm.content)}})],1)])],1)}
__vue__options__.staticRenderFns = []

@@ -118,0 +124,0 @@ if (module.hot) {(function () { var hotAPI = require("vue-hot-reload-api")

{
"name": "mand-mobile",
"version": "1.3.2",
"version": "1.3.3",
"description": "A Vue.js 2.0 Mobile UI Toolkit",

@@ -5,0 +5,0 @@ "homepage": "https://github.com/didi/mand-mobile",

@@ -25,5 +25,7 @@ **English** | [中文](./README.zh-CN.md)

[![npm package](https://img.shields.io/npm/v/mand-mobile.svg?style=flat-square)](https://www.npmjs.org/package/mand-mobile)
[![NPM downloads](http://img.shields.io/npm/dm/mand-mobile.svg?style=flat-square)](http://npmtrends.com/mand-mobile)
[![npm downloads](http://img.shields.io/npm/dm/mand-mobile.svg?style=flat-square)](http://npmtrends.com/mand-mobile)
[![gzip js size](http://img.badgesize.io/https://unpkg.com/mand-mobile/lib/mand-mobile.umd.js?compression=gzip&label=gzip%20size:%20JS&style=flat-square)](https://unpkg.com/mand-mobile/)
[![gzip css size](http://img.badgesize.io/https://unpkg.com/mand-mobile/lib/mand-mobile.css?compression=gzip&label=gzip%20size:%20CSS&style=flat-square)](https://unpkg.com/mand-mobile/)
A mobile UI toolkit, based on Vue.js 2, designed for financial scenarios.
A mobile UI toolkit, based on Vue.js 2, is designed for financial scenarios.

@@ -36,2 +38,4 @@ ## Links

* [Examples](https://didi.github.io/mand-mobile/examples/)
* [Palette](https://github.com/mand-mobile/palette)
* [More](https://github.com/mand-mobile)

@@ -48,3 +52,3 @@ ## Preview

New project can be initialized and integrate mand-mobile by [vue-cli](https://github.com/vuejs/vue-cli/tree/master) with [mand-mobile-template](https://github.com/mand-mobile/mand-mobile-template).
New project can be initialized and integrated with mand-mobile by [vue-cli](https://github.com/vuejs/vue-cli/tree/master) with [mand-mobile-template](https://github.com/mand-mobile/mand-mobile-template).

@@ -96,3 +100,3 @@ ```bash

Select the components that you need to build your webapp. Find more details in [Component Preview](https://didi.github.io/mand-mobile/#/docs/preview) and [Quick Start](https://didi.github.io/mand-mobile/#/docs/started).
Select the components you need to build your webapp. Find more details in [Component Preview](https://didi.github.io/mand-mobile/#/docs/preview) and [Quick Start](https://didi.github.io/mand-mobile/#/docs/started).

@@ -99,0 +103,0 @@ ## Development

@@ -25,3 +25,5 @@ [English](./README.md) | **中文**

[![npm package](https://img.shields.io/npm/v/mand-mobile.svg?style=flat-square)](https://www.npmjs.org/package/mand-mobile)
[![NPM downloads](http://img.shields.io/npm/dm/mand-mobile.svg?style=flat-square)](http://npmtrends.com/mand-mobile)
[![npm downloads](http://img.shields.io/npm/dm/mand-mobile.svg?style=flat-square)](http://npmtrends.com/mand-mobile)
[![gzip js size](http://img.badgesize.io/https://unpkg.com/mand-mobile/lib/mand-mobile.umd.js?compression=gzip&label=gzip%20size:%20JS&style=flat-square)](https://unpkg.com/mand-mobile/)
[![gzip css size](http://img.badgesize.io/https://unpkg.com/mand-mobile/lib/mand-mobile.css?compression=gzip&label=gzip%20size:%20CSS&style=flat-square)](https://unpkg.com/mand-mobile/)

@@ -36,2 +38,4 @@ 面向金融场景的移动端UI组件库,基于Vue.js实现。

* [示例集合](https://didi.github.io/mand-mobile/examples/)
* [调色板](https://github.com/mand-mobile/palette)
* [更多](https://github.com/mand-mobile)

@@ -38,0 +42,0 @@ ## 预览

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc