This commit is contained in:
zhuxiang
2017-03-07 15:00:05 +08:00
149 changed files with 3024 additions and 78304 deletions

View File

@@ -23,6 +23,10 @@ import Search from '../packages/search/index.js';
import Step from '../packages/step/index.js';
import Tabs from '../packages/tabs/index.js';
import Tab from '../packages/tab/index.js';
import ImagePreview from '../packages/image-preview/index.js';
import Col from '../packages/col/index.js';
import Row from '../packages/row/index.js';
import Actionsheet from '../packages/actionsheet/index.js';
const install = function(Vue) {
if (install.installed) return;
@@ -50,6 +54,9 @@ const install = function(Vue) {
Vue.component(Step.name, Step);
Vue.component(Tabs.name, Tabs);
Vue.component(Tab.name, Tab);
Vue.component(Col.name, Col);
Vue.component(Row.name, Row);
Vue.component(Actionsheet.name, Actionsheet);
};
// auto install
@@ -59,7 +66,7 @@ if (typeof window !== 'undefined' && window.Vue) {
module.exports = {
install,
version: '0.0.8',
version: '0.0.15',
Button,
Switch,
Field,
@@ -84,5 +91,9 @@ module.exports = {
Search,
Step,
Tabs,
Tab
Tab,
ImagePreview,
Col,
Row,
Actionsheet
};

View File

@@ -1,4 +1,3 @@
import Vue from 'vue';
import merge from 'src/utils/merge';
import PopupManager from './popup-manager';

View File

@@ -1,6 +1,6 @@
import { addClass, removeClass } from 'src/utils/dom';
import { addClass } from 'src/utils/dom';
let hasModal = false;
let hasModal = false; // eslint-disable-line
const getModal = function() {
let modalDom = PopupManager.modalDom;

View File

@@ -1,9 +1,9 @@
export default function(target, ...sources) {
for (let i = 0; i < sources.length; i++) {
let source = sources[i] || {};
for (let prop in source) {
const source = sources[i] || {};
for (const prop in source) {
if (source.hasOwnProperty(prop)) {
let value = source[prop];
const value = source[prop];
if (value !== undefined) {
target[prop] = value;
}

View File

@@ -17,9 +17,9 @@ if (!Vue.prototype.$isServer) {
engine = 'trident';
}
var cssPrefix = {trident: '-ms-', gecko: '-moz-', webkit: '-webkit-', presto: '-o-'}[engine];
var cssPrefix = { trident: '-ms-', gecko: '-moz-', webkit: '-webkit-', presto: '-o-' }[engine];
var vendorPrefix = {trident: 'ms', gecko: 'Moz', webkit: 'Webkit', presto: 'O'}[engine];
var vendorPrefix = { trident: 'ms', gecko: 'Moz', webkit: 'Webkit', presto: 'O' }[engine];
var helperElem = document.createElement('div');
var perspectiveProperty = vendorPrefix + 'Perspective';
@@ -34,7 +34,7 @@ if (!Vue.prototype.$isServer) {
}
var getTranslate = function(element) {
var result = {left: 0, top: 0};
var result = { left: 0, top: 0 };
if (element === null || element.style === null) return result;
var transform = element.style[transformProperty];