Skip to content

Commit

Permalink
modify package.json vue2.4.X and rebuild vue-tabs.js & vue-tabs.min.js
Browse files Browse the repository at this point in the history
  • Loading branch information
alexqdjay committed Aug 10, 2017
1 parent d74a97c commit a8bb8d2
Show file tree
Hide file tree
Showing 3 changed files with 89 additions and 74 deletions.
140 changes: 74 additions & 66 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "vue-tabs",
"version": "0.2.0",
"version": "0.2.1",
"description": "A Vue.js tabs framework (多tab页轻型框架)",
"author": "alexqdjay",
"main": "vue-tabs.js",
Expand All @@ -13,81 +13,89 @@
"test": "npm run unit && npm run e2e",
"lint": "eslint --ext .js,.vue src test/unit/specs test/e2e/specs"
},
"repository": {
"type": "git",
"url": "[email protected]:alexqdjay/vue-tabs.git"
},
"keywords": [
"vue",
"tabs",
"vue-tabs",
"framework"
],
"license": "Apache License v2.0",
"bugs": {
"url": "https://github.com/alexqdjay/vue-tabs/issues"
},
"dependencies": {},
"devDependencies": {
"autoprefixer": "^6.4.0",
"babel-core": "^6.0.0",
"babel-eslint": "^7.0.0",
"babel-loader": "^6.0.0",
"babel-plugin-transform-runtime": "^6.0.0",
"babel-preset-es2015": "^6.0.0",
"babel-preset-stage-2": "^6.0.0",
"babel-register": "^6.0.0",
"chai": "^3.5.0",
"chalk": "^1.1.3",
"chromedriver": "^2.21.2",
"connect-history-api-fallback": "^1.1.0",
"cross-spawn": "^4.0.2",
"css-loader": "^0.25.0",
"eslint": "^3.7.1",
"eslint-config-standard": "^6.1.0",
"eslint-friendly-formatter": "^2.0.5",
"eslint-loader": "^1.5.0",
"eslint-plugin-html": "^1.3.0",
"eslint-plugin-promise": "^2.0.1",
"eslint-plugin-standard": "^2.0.1",
"eventsource-polyfill": "^0.9.6",
"express": "^4.13.3",
"extract-text-webpack-plugin": "^1.0.1",
"file-loader": "^0.9.0",
"function-bind": "^1.0.2",
"html-webpack-plugin": "^2.8.1",
"http-proxy-middleware": "^0.17.2",
"inject-loader": "^2.0.1",
"isparta-loader": "^2.0.0",
"json-loader": "^0.5.4",
"karma": "^1.3.0",
"karma-coverage": "^1.1.1",
"karma-mocha": "^1.2.0",
"karma-phantomjs-launcher": "^1.0.0",
"karma-sinon-chai": "^1.2.0",
"karma-sourcemap-loader": "^0.3.7",
"autoprefixer": "~6.4.0",
"babel-core": "~6.0.0",
"babel-eslint": "~7.0.0",
"babel-loader": "~6.0.0",
"babel-plugin-transform-runtime": "~6.0.0",
"babel-preset-es2015": "~6.0.0",
"babel-preset-stage-2": "~6.0.0",
"babel-register": "~6.23.0",
"chai": "~3.5.0",
"chalk": "~1.1.3",
"chromedriver": "~2.21.2",
"connect-history-api-fallback": "~1.1.0",
"cross-spawn": "~4.0.2",
"css-loader": "~0.25.0",
"eslint": "~3.7.1",
"eslint-config-standard": "~6.1.0",
"eslint-friendly-formatter": "~2.0.5",
"eslint-loader": "~1.5.0",
"eslint-plugin-html": "~1.3.0",
"eslint-plugin-promise": "~2.0.1",
"eslint-plugin-standard": "~2.0.1",
"eventsource-polyfill": "~0.9.6",
"express": "~4.13.3",
"extract-text-webpack-plugin": "~1.0.1",
"file-loader": "~0.9.0",
"function-bind": "~1.0.2",
"html-webpack-plugin": "~2.8.1",
"http-proxy-middleware": "~0.17.2",
"inject-loader": "~2.0.1",
"isparta-loader": "~2.0.0",
"json-loader": "~0.5.4",
"karma": "~1.3.0",
"karma-coverage": "~1.1.1",
"karma-mocha": "~1.2.0",
"karma-phantomjs-launcher": "~1.0.0",
"karma-sinon-chai": "~1.2.0",
"karma-sourcemap-loader": "~0.3.7",
"karma-spec-reporter": "0.0.26",
"karma-webpack": "^1.7.0",
"less": "^2.7.1",
"less-loader": "^2.2.3",
"lolex": "^1.4.0",
"mocha": "^3.1.0",
"nightwatch": "^0.9.8",
"opn": "^4.0.2",
"ora": "^0.3.0",
"phantomjs-prebuilt": "^2.1.3",
"rollup": "^0.36.4",
"rollup-plugin-buble": "^0.14.0",
"rollup-plugin-less": "^0.1.1",
"rollup-plugin-node-resolve": "^2.0.0",
"rollup-plugin-vue2": "^0.6.0",
"karma-webpack": "~1.7.0",
"less": "~2.7.1",
"less-loader": "~2.2.3",
"lolex": "~1.4.0",
"mocha": "~3.1.0",
"nightwatch": "~0.9.8",
"opn": "~4.0.2",
"ora": "~0.3.0",
"phantomjs-prebuilt": "~2.1.3",
"rollup": "~0.36.4",
"rollup-plugin-buble": "~0.14.0",
"rollup-plugin-less": "~0.1.1",
"rollup-plugin-node-resolve": "~2.0.0",
"rollup-plugin-vue2": "0.6.0",
"selenium-server": "2.53.1",
"semver": "^5.3.0",
"shelljs": "^0.7.4",
"sinon": "^1.17.3",
"sinon-chai": "^2.8.0",
"uglifyjs": "^2.4.10",
"url-loader": "^0.5.7",
"vue": "^2.0.0",
"vue-loader": "^10.0.0",
"vue-style-loader": "^1.0.0",
"vue-template-compiler": "^2.1.0",
"webpack": "^1.13.2",
"webpack-dev-middleware": "^1.8.3",
"webpack-hot-middleware": "^2.12.2",
"webpack-merge": "^0.14.1"
"semver": "~5.3.0",
"shelljs": "~0.7.4",
"sinon": "~1.17.3",
"sinon-chai": "~2.8.0",
"uglifyjs": "~2.4.10",
"url-loader": "~0.5.7",
"vue": "~2.4.0",
"vue-loader": "~10.0.0",
"vue-style-loader": "~1.0.0",
"vue-template-compiler": "~2.4.0",
"webpack": "~1.13.2",
"webpack-dev-middleware": "~1.8.3",
"webpack-hot-middleware": "~2.12.2",
"webpack-merge": "~0.14.1"
},
"engines": {
"node": ">= 4.0.0",
Expand Down
17 changes: 12 additions & 5 deletions vue-tabs.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* vue-tabs v0.2.0
* (c) 2016 ALEXQDJAY
* vue-tabs v0.2.1
* (c) 2017 ALEXQDJAY
* mail: [email protected]
* @license Apache2
*/
Expand Down Expand Up @@ -52,7 +52,7 @@ var consts = {
};

var Tab = {
render: function(){var _vm=this;var _h=_vm.$createElement;return _h('li',{class:{'active': _vm.tabData.active, 'loading': _vm.tabData.loading}},[_vm._s(_vm.tabData.meta.title),_h('span',{staticClass:"btn-close",on:{"click":function($event){$event.stopPropagation();_vm.close($event);}}},["×"])])},
render: function(){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('li',{class:{'active': _vm.tabData.active, 'loading': _vm.tabData.loading}},[_vm._v(_vm._s(_vm.tabData.meta.title)),_c('span',{staticClass:"btn-close",on:{"click":function($event){$event.stopPropagation();_vm.close($event);}}},[_vm._v("×")])])},
staticRenderFns: [],
props: {
tabData: Object
Expand All @@ -78,7 +78,7 @@ var EVENT_ACTIVE_CHANGE = 'vue-tabs-active-change';
var EVENT_CLOSE = 'vue-tabs-close';
var cached = {};
var TabsView = {
render: function(){var _vm=this;var _h=_vm.$createElement;return _h('div',{staticClass:"vue-tabs"},[_h('div',{staticClass:"tabs-list-wrapper"},[_h('ul',{staticClass:"tabs-list"},[_vm._l((_vm.tabs),function(tab){return _h('tab',{attrs:{"tab-data":tab},on:{"close":function($event){_vm.close(tab);}},nativeOn:{"click":function($event){_vm.clickTab(tab);}}})})])])," ",_h('div',{ref:"contentWrapEl",staticClass:"tabs-content-wrapper"})])},
render: function(){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"vue-tabs"},[_c('div',{staticClass:"tabs-list-wrapper"},[_c('ul',{staticClass:"tabs-list"},_vm._l((_vm.tabs),function(tab){return _c('tab',{attrs:{"tab-data":tab},on:{"close":function($event){_vm.close(tab);}},nativeOn:{"click":function($event){_vm.clickTab(tab);}}})}))]),_vm._v(" "),_c('div',{ref:"contentWrapEl",staticClass:"tabs-content-wrapper"})])},
staticRenderFns: [],
components: {Tab: Tab},
data: function data () {
Expand Down Expand Up @@ -166,7 +166,14 @@ staticRenderFns: [],

function _close () {
tab.content.$destroy();
tab.content.$el.remove();
// Fix IE11 Element has no `remove`
if (tab.content.$el.remove) {
tab.content.$el.remove();
} else if (tab.content.$el.removeNode) {
tab.content.$el.removeNode(true);
} else {
throw 'Element has no method named remove or removeNode'
}
this.tabMap[tabIdGen(tab)] = null;
var index = this.tabs.indexOf(tab);
if (index === -1) {
Expand Down
Loading

0 comments on commit a8bb8d2

Please sign in to comment.