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

vant

Package Overview
Dependencies
Maintainers
3
Versions
566
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vant - npm Package Compare versions

Comparing version 0.8.1 to 0.8.3

60

lib/actionsheet/src/actionsheet.js

@@ -5,2 +5,4 @@ 'use strict';

var _components;
var _popup = require('../../mixins/popup');

@@ -10,2 +12,6 @@

var _icon = require('../../icon');
var _icon2 = _interopRequireDefault(_icon);
var _loading = require('../../loading');

@@ -15,6 +21,2 @@

var _icon = require('../../icon');
var _icon2 = _interopRequireDefault(_icon);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

@@ -24,15 +26,13 @@

render: function render() {
var _vm = this;var _h = _vm.$createElement;var _c = _vm._self._c || _h;return _c('transition', { attrs: { "name": "actionsheet-float" } }, [_c('div', { directives: [{ name: "show", rawName: "v-show", value: _vm.currentValue, expression: "currentValue" }], staticClass: "van-actionsheet", class: { 'van-actionsheet--withtitle': _vm.title } }, [_vm.title ? _c('div', { staticClass: "van-actionsheet__header" }, [_c('h3', { domProps: { "textContent": _vm._s(_vm.title) } }), _c('van-icon', { attrs: { "name": "close" }, on: { "click": function click($event) {
$event.stopPropagation();_vm.currentValue = false;
} } })], 1) : _vm._e(), !_vm.title ? [_c('ul', { staticClass: "van-actionsheet__list" }, _vm._l(_vm.actions, function (item, index) {
return _c('li', { key: index, staticClass: "van-actionsheet__item", class: [item.className, item.loading ? 'van-actionsheet__item--loading' : ''], on: { "click": function click($event) {
$event.stopPropagation();_vm.handleItemClick(item);
var _vm = this;var _h = _vm.$createElement;var _c = _vm._self._c || _h;return _c('transition', { attrs: { "name": "van-actionsheet-float" } }, [_c('div', { directives: [{ name: "show", rawName: "v-show", value: _vm.value, expression: "value" }], class: ['van-actionsheet', { 'van-actionsheet--withtitle': _vm.title }] }, [_vm.title ? _c('div', { staticClass: "van-actionsheet__header" }, [_c('h3', { domProps: { "textContent": _vm._s(_vm.title) } }), _c('van-icon', { attrs: { "name": "close" }, on: { "click": function click($event) {
$event.stopPropagation();_vm.$emit('input', false);
} } })], 1) : _vm._e(), !_vm.title ? _c('ul', { staticClass: "van-actionsheet__list" }, _vm._l(_vm.actions, function (item, index) {
return _c('li', { key: index, class: ['van-actionsheet__item', item.className, { 'van-actionsheet__item--loading': item.loading }], on: { "click": function click($event) {
$event.stopPropagation();_vm.onClickItem(item);
} } }, [!item.loading ? [_c('span', { staticClass: "van-actionsheet__name" }, [_vm._v(_vm._s(item.name))]), item.subname ? _c('span', { staticClass: "van-actionsheet__subname" }, [_vm._v(_vm._s(item.subname))]) : _vm._e()] : _c('van-loading', { staticClass: "van-actionsheet__loading", attrs: { "type": "circle", "color": "black" } })], 2);
})), _vm.cancelText ? _c('a', { staticClass: "van-actionsheet__button", on: { "click": function click($event) {
$event.stopPropagation();_vm.currentValue = false;
} } }, [_vm._v(_vm._s(_vm.cancelText))]) : _vm._e()] : [_c('div', { staticClass: "van-actionsheet__content" }, [_vm._t("default")], 2)]], 2)]);
})) : _vm._e(), _vm.cancelText ? _c('div', { staticClass: "van-actionsheet__item van-actionsheet__cancel", on: { "click": function click($event) {
$event.stopPropagation();_vm.$emit('input', false);
} } }, [_vm._v(_vm._s(_vm.cancelText))]) : _c('div', { staticClass: "van-actionsheet__content" }, [_vm._t("default")], 2)])]);
},
staticRenderFns: [],
name: 'van-actionsheet',

@@ -42,9 +42,6 @@

components: {
VanLoading: _loading2.default,
VanIcon: _icon2.default
},
components: (_components = {}, _components[_icon2.default.name] = _icon2.default, _components[_loading2.default.name] = _loading2.default, _components),
props: {
value: {},
value: Boolean,
actions: {

@@ -68,23 +65,4 @@ type: Array,

data: function data() {
return {
currentValue: this.value
};
},
watch: {
currentValue: function currentValue(val) {
this.$emit('input', val);
},
value: function value(val) {
this.currentValue = val;
}
},
mounted: function mounted() {
if (this.value) {
this.currentValue = true;
this.open();
}
this.value && this.open();
},

@@ -94,4 +72,4 @@

methods: {
handleItemClick: function handleItemClick(item) {
if (item.callback && typeof item.callback === 'function') {
onClickItem: function onClickItem(item) {
if (typeof item.callback === 'function') {
item.callback(item);

@@ -98,0 +76,0 @@ }

@@ -9,4 +9,2 @@ "use strict";

staticRenderFns: [],
name: 'van-badge-group',

@@ -13,0 +11,0 @@

@@ -9,4 +9,2 @@ 'use strict';

staticRenderFns: [],
name: 'van-badge',

@@ -13,0 +11,0 @@

@@ -9,4 +9,2 @@ 'use strict';

staticRenderFns: [],
name: 'van-card',

@@ -13,0 +11,0 @@

@@ -20,4 +20,2 @@ 'use strict';

staticRenderFns: [],
name: 'van-cell-swipe',

@@ -24,0 +22,0 @@ props: {

@@ -9,5 +9,3 @@ "use strict";

staticRenderFns: [],
name: 'van-cell-group'
};

@@ -12,4 +12,2 @@ 'use strict';

staticRenderFns: [],
name: 'van-cell',

@@ -16,0 +14,0 @@

@@ -9,4 +9,2 @@ "use strict";

staticRenderFns: [],
name: 'van-checkbox-group',

@@ -13,0 +11,0 @@

@@ -34,4 +34,2 @@ 'use strict';

staticRenderFns: [],
name: 'van-checkbox',

@@ -38,0 +36,0 @@

@@ -10,4 +10,2 @@ "use strict";

staticRenderFns: [],
name: 'van-col',

@@ -14,0 +12,0 @@ props: {

@@ -20,4 +20,2 @@ 'use strict';

staticRenderFns: [],
name: 'van-datetime-picker',

@@ -24,0 +22,0 @@

@@ -26,4 +26,2 @@ 'use strict';

staticRenderFns: [],
name: 'van-dialog',

@@ -44,6 +42,2 @@

default: true
},
zIndex: {
type: [String, Number],
default: 2500
}

@@ -50,0 +44,0 @@ },

@@ -33,4 +33,2 @@ 'use strict';

staticRenderFns: [],
name: 'van-field',

@@ -37,0 +35,0 @@

@@ -9,4 +9,2 @@ 'use strict';

staticRenderFns: [],
name: 'van-icon',

@@ -13,0 +11,0 @@

@@ -30,4 +30,2 @@ 'use strict';

staticRenderFns: [],
name: 'van-image-preview',

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

@@ -160,3 +160,3 @@ 'use strict';

var version = '0.8.1';
var version = '0.8.3';
var components = [_button2.default, _switch2.default, _field2.default, _radio2.default, _cell2.default, _icon2.default, _cellGroup2.default, _cellSwipe2.default, _popup2.default, _picker2.default, _radioGroup2.default, _loading2.default, _panel2.default, _card2.default, _steps2.default, _tag2.default, _checkbox2.default, _checkboxGroup2.default, _badgeGroup2.default, _badge2.default, _search2.default, _step2.default, _tabs2.default, _tab2.default, _col2.default, _row2.default, _actionsheet2.default, _quantity2.default, _progress2.default, _uploader2.default, _swipe2.default, _swipeItem2.default, _datetimePicker2.default];

@@ -163,0 +163,0 @@

@@ -12,4 +12,2 @@ 'use strict';

staticRenderFns: [],
name: 'van-loading',

@@ -16,0 +14,0 @@

@@ -9,4 +9,2 @@ 'use strict';

staticRenderFns: [],
name: 'van-panel',

@@ -13,0 +11,0 @@ props: {

@@ -28,4 +28,2 @@ 'use strict';

staticRenderFns: [],
name: 'van-picker-column',

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

@@ -24,4 +24,2 @@ 'use strict';

staticRenderFns: [],
name: 'van-picker',

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

@@ -16,4 +16,2 @@ 'use strict';

staticRenderFns: [],
name: 'van-popup',

@@ -20,0 +18,0 @@

@@ -28,4 +28,2 @@ 'use strict';

staticRenderFns: [],
name: 'van-progress',

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

@@ -17,4 +17,2 @@ 'use strict';

staticRenderFns: [],
name: 'van-quantity',

@@ -21,0 +19,0 @@

@@ -9,4 +9,2 @@ "use strict";

staticRenderFns: [],
name: 'van-radio-group',

@@ -13,0 +11,0 @@

@@ -23,4 +23,2 @@ 'use strict';

staticRenderFns: [],
name: 'van-radio',

@@ -27,0 +25,0 @@

@@ -9,4 +9,2 @@ "use strict";

staticRenderFns: [],
name: 'van-row',

@@ -13,0 +11,0 @@ props: {

@@ -28,4 +28,2 @@ 'use strict';

staticRenderFns: [],
name: 'van-search',

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

@@ -9,4 +9,2 @@ 'use strict';

staticRenderFns: [],
name: 'van-step',

@@ -13,0 +11,0 @@

@@ -18,4 +18,2 @@ 'use strict';

staticRenderFns: [],
name: 'van-steps',

@@ -22,0 +20,0 @@

@@ -9,4 +9,2 @@ "use strict";

staticRenderFns: [],
name: 'van-swipe-item',

@@ -13,0 +11,0 @@

@@ -28,4 +28,2 @@ 'use strict';

staticRenderFns: [],
name: 'van-swipe',

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

@@ -27,4 +27,2 @@ 'use strict';

staticRenderFns: [],
name: 'van-switch',

@@ -31,0 +29,0 @@ components: {

@@ -9,4 +9,2 @@ "use strict";

staticRenderFns: [],
name: 'van-tab',

@@ -13,0 +11,0 @@ props: {

@@ -28,4 +28,2 @@ 'use strict';

staticRenderFns: [],
name: 'van-tabs',

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

@@ -12,4 +12,2 @@ 'use strict';

staticRenderFns: [],
name: 'van-tag',

@@ -16,0 +14,0 @@ props: {

@@ -30,4 +30,2 @@ 'use strict';

staticRenderFns: [],
name: 'van-toast',

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

@@ -9,4 +9,2 @@ "use strict";

staticRenderFns: [],
name: 'van-uploader',

@@ -13,0 +11,0 @@ props: {

{
"name": "vant",
"version": "0.8.1",
"version": "0.8.3",
"description": "有赞vue wap组件库",

@@ -52,11 +52,12 @@ "main": "lib/vant.js",

"avoriaz": "2.0.0",
"babel-cli": "^6.14.0",
"babel-core": "^6.25.0",
"babel-cli": "^6.26.0",
"babel-core": "^6.26.0",
"babel-helper-vue-jsx-merge-props": "^2.0.2",
"babel-loader": "^7.1.1",
"babel-plugin-module-resolver": "^2.7.1",
"babel-plugin-syntax-jsx": "^6.18.0",
"babel-plugin-transform-object-rest-spread": "^6.23.0",
"babel-plugin-transform-object-rest-spread": "^6.26.0",
"babel-plugin-transform-runtime": "^6.15.0",
"babel-plugin-transform-vue-jsx": "^3.5.0",
"babel-polyfill": "^6.23.0",
"babel-polyfill": "^6.26.0",
"babel-preset-env": "^1.6.0",

@@ -67,6 +68,7 @@ "chai": "^4.1.1",

"cross-env": "^5.0.5",
"css-loader": "^0.28.4",
"css-loader": "^0.28.5",
"eslint-plugin-vue": "^2.1.0",
"extract-text-webpack-plugin": "2.1.2",
"felint": "^0.5.0-alpha.3",
"file-loader": "^0.11.2",
"file-save": "^0.2.0",

@@ -111,6 +113,6 @@ "friendly-errors-webpack-plugin": "^1.6.1",

"vue-router": "^2.7.0",
"vue-sfc-compiler": "^0.0.1",
"vue-sfc-compiler": "^0.0.2",
"vue-style-loader": "^3.0.0",
"vue-template-compiler": "^2.4.2",
"webpack": "^3.5.4",
"webpack": "^3.5.5",
"webpack-dev-server": "^2.7.1",

@@ -117,0 +119,0 @@ "webpack-merge": "^4.1.0",

@@ -1,3 +0,3 @@

import DateTimePicker from './src/datetime-picker';
import DatetimePicker from './src/datetime-picker';
export default DateTimePicker;
export default DatetimePicker;

@@ -40,3 +40,3 @@ import Button from './button';

const version = '0.8.1';
const version = '0.8.3';
const components = [

@@ -43,0 +43,0 @@ Button,

{
"name": "vant-css",
"version": "0.8.1",
"version": "0.8.3",
"description": "vant css.",

@@ -5,0 +5,0 @@ "main": "lib/index.css",

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 not supported yet

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