From 1fe8f9fd16b8e157d0ca51eb9e9bacf77929bc00 Mon Sep 17 00:00:00 2001 From: ADu80 <441489115@qq.com> Date: Tue, 13 Jun 2017 01:38:39 +0800 Subject: [PATCH] tab --- dist/bundle.js | 33650 ++++++++-------- package-lock.json | 76 +- src/components/Main/index.html | 2 +- src/components/NavLink/index.css | 3 + src/components/NavLink/index.html | 2 +- src/components/SideBar/index.css | 4 +- src/components/Tab/index.css | 60 +- src/components/Tab/index.html | 25 +- src/components/Tab/index.js | 9 + src/components/TabBar/index.css | 15 - src/components/TabBar/index.html | 5 - src/components/TabPage/index.css | 8 + src/components/TabPage/index.html | 8 +- src/components/TabPage/index.js | 2 + src/components/TabTitle/index.css | 22 + src/components/TabTitle/index.html | 3 + src/components/TabTitle/index.js | 16 + src/components/TopBar/index.css | 6 +- src/components/index.js | 3 +- src/constants/actions.js | 3 + src/pages/Page1/index.html | 22 +- src/pages/Page2/index.html | 22 +- src/stores/createStroe.js | 24 + .../TabBar/index.js => stores/store.js} | 0 24 files changed, 17240 insertions(+), 16750 deletions(-) delete mode 100644 src/components/TabBar/index.css delete mode 100644 src/components/TabBar/index.html create mode 100644 src/components/TabTitle/index.css create mode 100644 src/components/TabTitle/index.html create mode 100644 src/components/TabTitle/index.js create mode 100644 src/constants/actions.js create mode 100644 src/stores/createStroe.js rename src/{components/TabBar/index.js => stores/store.js} (100%) diff --git a/dist/bundle.js b/dist/bundle.js index ed89ac8..0e19f0d 100644 --- a/dist/bundle.js +++ b/dist/bundle.js @@ -63,7 +63,7 @@ /******/ __webpack_require__.p = ""; /******/ /******/ // Load entry module and return exports -/******/ return __webpack_require__(__webpack_require__.s = 40); +/******/ return __webpack_require__(__webpack_require__.s = 43); /******/ }) /************************************************************************/ /******/ ([ @@ -71,19000 +71,19037 @@ /***/ (function(module, exports, __webpack_require__) { "use strict"; -/* WEBPACK VAR INJECTION */(function(module) {var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__; - -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; - -/*! - * jQuery JavaScript Library v1.12.4 - * http://jquery.com/ - * - * Includes Sizzle.js - * http://sizzlejs.com/ - * - * Copyright jQuery Foundation and other contributors - * Released under the MIT license - * http://jquery.org/license - * - * Date: 2016-05-20T17:17Z - */ +/* WEBPACK VAR INJECTION */(function(Buffer) { -(function (global, factory) { +/* + MIT License http://www.opensource.org/licenses/mit-license.php + Author Tobias Koppers @sokra +*/ +// css base code, injected by the css-loader +module.exports = function (useSourceMap) { + var list = []; - if (( false ? "undefined" : _typeof(module)) === "object" && _typeof(module.exports) === "object") { - // For CommonJS and CommonJS-like environments where a proper `window` - // is present, execute the factory and get jQuery. - // For environments that do not have a `window` with a `document` - // (such as Node.js), expose a factory as module.exports. - // This accentuates the need for the creation of a real `window`. - // e.g. var jQuery = require("jquery")(window); - // See ticket #14549 for more info. - module.exports = global.document ? factory(global, true) : function (w) { - if (!w.document) { - throw new Error("jQuery requires a window with a document"); + // return the list of modules as css string + list.toString = function toString() { + return this.map(function (item) { + var content = cssWithMappingToString(item, useSourceMap); + if (item[2]) { + return "@media " + item[2] + "{" + content + "}"; + } else { + return content; } - return factory(w); - }; - } else { - factory(global); - } - - // Pass this if window is not defined yet -})(typeof window !== "undefined" ? window : undefined, function (window, noGlobal) { - - // Support: Firefox 18+ - // Can't be in strict mode, several libs including ASP.NET trace - // the stack via arguments.caller.callee and Firefox dies if - // you try to trace through "use strict" call chains. (#13335) - //"use strict"; - var deletedIds = []; - - var document = window.document; - - var _slice = deletedIds.slice; - - var concat = deletedIds.concat; - - var push = deletedIds.push; + }).join(""); + }; - var indexOf = deletedIds.indexOf; + // import a list of modules into the list + list.i = function (modules, mediaQuery) { + if (typeof modules === "string") modules = [[null, modules, ""]]; + var alreadyImportedModules = {}; + for (var i = 0; i < this.length; i++) { + var id = this[i][0]; + if (typeof id === "number") alreadyImportedModules[id] = true; + } + for (i = 0; i < modules.length; i++) { + var item = modules[i]; + // skip already imported module + // this implementation is not 100% perfect for weird media query combinations + // when a module is imported multiple times with different media queries. + // I hope this will never occur (Hey this way we have smaller bundles) + if (typeof item[0] !== "number" || !alreadyImportedModules[item[0]]) { + if (mediaQuery && !item[2]) { + item[2] = mediaQuery; + } else if (mediaQuery) { + item[2] = "(" + item[2] + ") and (" + mediaQuery + ")"; + } + list.push(item); + } + } + }; + return list; +}; - var class2type = {}; +function cssWithMappingToString(item, useSourceMap) { + var content = item[1] || ''; + var cssMapping = item[3]; + if (!cssMapping) { + return content; + } - var toString = class2type.toString; + if (useSourceMap) { + var sourceMapping = toComment(cssMapping); + var sourceURLs = cssMapping.sources.map(function (source) { + return '/*# sourceURL=' + cssMapping.sourceRoot + source + ' */'; + }); - var hasOwn = class2type.hasOwnProperty; + return [content].concat(sourceURLs).concat([sourceMapping]).join('\n'); + } - var support = {}; + return [content].join('\n'); +} - var version = "1.12.4", +// Adapted from convert-source-map (MIT) +function toComment(sourceMap) { + var base64 = new Buffer(JSON.stringify(sourceMap)).toString('base64'); + var data = 'sourceMappingURL=data:application/json;charset=utf-8;base64,' + base64; + return '/*# ' + data + ' */'; +} +/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(27).Buffer)) - // Define a local copy of jQuery - jQuery = function jQuery(selector, context) { +/***/ }), +/* 1 */ +/***/ (function(module, exports, __webpack_require__) { - // The jQuery object is actually just the init constructor 'enhanced' - // Need init if jQuery is called (just allow error to be thrown if not included) - return new jQuery.fn.init(selector, context); +/* + MIT License http://www.opensource.org/licenses/mit-license.php + Author Tobias Koppers @sokra +*/ +var stylesInDom = {}, + memoize = function(fn) { + var memo; + return function () { + if (typeof memo === "undefined") memo = fn.apply(this, arguments); + return memo; + }; }, + isOldIE = memoize(function() { + // Test for IE <= 9 as proposed by Browserhacks + // @see http://browserhacks.com/#hack-e71d8692f65334173fee715c222cb805 + // Tests for existence of standard globals is to allow style-loader + // to operate correctly into non-standard environments + // @see https://github.com/webpack-contrib/style-loader/issues/177 + return window && document && document.all && !window.atob; + }), + getElement = (function(fn) { + var memo = {}; + return function(selector) { + if (typeof memo[selector] === "undefined") { + memo[selector] = fn.call(this, selector); + } + return memo[selector] + }; + })(function (styleTarget) { + return document.querySelector(styleTarget) + }), + singletonElement = null, + singletonCounter = 0, + styleElementsInsertedAtTop = [], + fixUrls = __webpack_require__(30); +module.exports = function(list, options) { + if(typeof DEBUG !== "undefined" && DEBUG) { + if(typeof document !== "object") throw new Error("The style-loader cannot be used in a non-browser environment"); + } - // Support: Android<4.1, IE<9 - // Make sure we trim BOM and NBSP - rtrim = /^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, - + options = options || {}; + options.attrs = typeof options.attrs === "object" ? options.attrs : {}; - // Matches dashed string for camelizing - rmsPrefix = /^-ms-/, - rdashAlpha = /-([\da-z])/gi, + // Force single-tag solution on IE6-9, which has a hard limit on the # of + +
+