btxui 1.0.2 → 1.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/demo.html +1 -0
- package/index.common.js +93 -0
- package/index.common.js.map +1 -0
- package/index.umd.js +104 -0
- package/index.umd.js.map +1 -0
- package/index.umd.min.js +2 -0
- package/index.umd.min.js.map +1 -0
- package/package.json +12 -23
- package/README.md +0 -42
- package/app.vue +0 -162
- package/assets/css/_main.js +0 -73
- package/assets/css/btx.min.css +0 -1
- package/assets/css/btx.mob.min.css +0 -1
- package/assets/css/btx.pad.min.css +0 -1
- package/assets/css/btx.webapp.min.css +0 -1
- package/assets/css/custom_fonts/iconfont.css +0 -37
- package/assets/css/custom_fonts/iconfont.eot +0 -0
- package/assets/css/custom_fonts/iconfont.svg +0 -47
- package/assets/css/custom_fonts/iconfont.ttf +0 -0
- package/assets/css/custom_fonts/iconfont.woff +0 -0
- package/assets/css/custom_fonts/iconfont.woff2 +0 -0
- package/assets/css/res-l.css +0 -47
- package/assets/css/res-m.css +0 -47
- package/assets/css/res-s.css +0 -61
- package/assets/custom_fonts/iconfont.css +0 -37
- package/assets/custom_fonts/iconfont.eot +0 -0
- package/assets/custom_fonts/iconfont.svg +0 -47
- package/assets/custom_fonts/iconfont.ttf +0 -0
- package/assets/custom_fonts/iconfont.woff +0 -0
- package/assets/custom_fonts/iconfont.woff2 +0 -0
- package/assets/js/Btx.js +0 -196
- package/assets/js/Utils.js +0 -421
- package/assets/js/fastclick.js +0 -802
- package/assets/js/lazy.min.js +0 -2
- package/assets/js/touchwipe.js +0 -111
- package/assets/server.js +0 -8
- package/assets/start_site_code_str.js +0 -119
- package/cdn/css/btx.min.css +0 -1
- package/cdn/css/btx.min.css.map +0 -1
- package/cdn/fonts/iconfont.ttf +0 -0
- package/cdn/fonts/iconfont.woff +0 -0
- package/cdn/fonts/iconfont.woff2 +0 -0
- package/components/BTXUI/app/app-wid.vue +0 -182
- package/components/BTXUI/btn/btn-wid.vue +0 -128
- package/components/BTXUI/carousel/carousel-wid.vue +0 -138
- package/components/BTXUI/checkbox/checkbox-wid.vue +0 -72
- package/components/BTXUI/confirm/confirm-wid.vue +0 -279
- package/components/BTXUI/content/content-checkbox-wid.vue +0 -44
- package/components/BTXUI/content/content-node-wid.vue +0 -114
- package/components/BTXUI/content/content-tag-wid.vue +0 -25
- package/components/BTXUI/content/content-wid.vue +0 -254
- package/components/BTXUI/core/anis/ani-fail.vue +0 -46
- package/components/BTXUI/core/anis/ani-loading.vue +0 -32
- package/components/BTXUI/core/anis/ani-notic.vue +0 -47
- package/components/BTXUI/core/anis/ani-success.vue +0 -48
- package/components/BTXUI/core/b-drag.vue +0 -258
- package/components/BTXUI/core/b-grid.vue +0 -84
- package/components/BTXUI/core/b-hot.vue +0 -171
- package/components/BTXUI/core/b-icon.vue +0 -76
- package/components/BTXUI/core/b-img.vue +0 -84
- package/components/BTXUI/core/b-input.vue +0 -198
- package/components/BTXUI/core/b-list.vue +0 -276
- package/components/BTXUI/core/b-text/doc.ts +0 -9
- package/components/BTXUI/core/b-text/index.vue +0 -16
- package/components/BTXUI/core/b-textarea.vue +0 -58
- package/components/BTXUI/core/b-video.vue +0 -35
- package/components/BTXUI/core/b-view/doc.ts +0 -10
- package/components/BTXUI/core/b-view/index.vue +0 -20
- package/components/BTXUI/core/b-webview.vue +0 -20
- package/components/BTXUI/core/lib/ChapterLink.js +0 -49
- package/components/BTXUI/core/lib/Search.vue +0 -60
- package/components/BTXUI/core/styles/doc.ts +0 -55
- package/components/BTXUI/core/styles/index.vue +0 -98
- package/components/BTXUI/core/styles/prestyles.ts +0 -471
- package/components/BTXUI/core/styles/theme.ts +0 -29
- package/components/BTXUI/drawer/drawer-wid.vue +0 -165
- package/components/BTXUI/drawer/title-tag-wid.vue +0 -114
- package/components/BTXUI/form/form-select-wid.vue +0 -57
- package/components/BTXUI/form/form-wid.vue +0 -324
- package/components/BTXUI/formPannel/form-pannel-wid.vue +0 -133
- package/components/BTXUI/imgsUpload/imgs-upload-wid.vue +0 -149
- package/components/BTXUI/index.js +0 -83
- package/components/BTXUI/pageFlip/page-flip-wid.vue +0 -206
- package/components/BTXUI/pannel/pannel-wid.vue +0 -167
- package/components/BTXUI/range/range-wid.vue +0 -134
- package/components/BTXUI/search/search-wid.vue +0 -80
- package/components/BTXUI/select/select-wid.vue +0 -186
- package/components/BTXUI/slider/slider-wid.vue +0 -444
- package/components/BTXUI/tab/tab-wid.vue +0 -109
- package/components/BTXUI/table/table-wid.vue +0 -324
- package/components/BTXUI/tag/tag-wid.vue +0 -183
- package/components/BTXUI/tags/tags-wid.vue +0 -121
- package/components/BTXUI/tooltip/tooltip-wid.vue +0 -146
- package/components/BTXUI/upload/upload-wid.vue +0 -215
- package/components/BTXUI/waterfall/waterfall-wid.vue +0 -166
- package/components/header-info.vue +0 -167
- package/composables/@types.ts +0 -4
- package/composables/api.ts +0 -18
- package/env.d.ts +0 -5
- package/main.js +0 -16
- package/nuxt.config.ts +0 -51
- package/pages/article.vue +0 -16
- package/pages/download.vue +0 -50
- package/pages/example/app_wid/app/data_demo.vue +0 -9
- package/pages/example/app_wid/app/download_demo.vue +0 -9
- package/pages/example/app_wid/app/list_demo.vue +0 -11
- package/pages/example/app_wid/app/system_demo.vue +0 -9
- package/pages/example/app_wid/app_wid_demo.vue +0 -198
- package/pages/example/app_wid/btn_wid_demo.vue +0 -179
- package/pages/example/app_wid/carousel_wid_demo.vue +0 -152
- package/pages/example/app_wid/checkbox_wid_demo.vue +0 -65
- package/pages/example/app_wid/confirm_wid_demo.vue +0 -197
- package/pages/example/app_wid/content_wid_demo.vue +0 -369
- package/pages/example/app_wid/drawer_wid_demo.vue +0 -155
- package/pages/example/app_wid/form_pannel_wid_demo.vue +0 -338
- package/pages/example/app_wid/form_wid_demo.vue +0 -550
- package/pages/example/app_wid/imgs_upload_wid_demo.vue +0 -159
- package/pages/example/app_wid/index.js +0 -158
- package/pages/example/app_wid/page_flip_wid_demo.vue +0 -99
- package/pages/example/app_wid/pannel_wid_demo.vue +0 -177
- package/pages/example/app_wid/range_wid_demo.vue +0 -101
- package/pages/example/app_wid/search_wid_demo.vue +0 -75
- package/pages/example/app_wid/select_wid_demo.vue +0 -217
- package/pages/example/app_wid/slider_wid_demo.vue +0 -143
- package/pages/example/app_wid/tab_wid_demo.vue +0 -170
- package/pages/example/app_wid/table_wid_demo.vue +0 -377
- package/pages/example/app_wid/tag_wid_demo.vue +0 -133
- package/pages/example/app_wid/tags_wid_demo.vue +0 -143
- package/pages/example/app_wid/tooltip_wid_demo.vue +0 -117
- package/pages/example/app_wid/upload_wid_demo.vue +0 -123
- package/pages/example/base_wid/b_drag_demo.vue +0 -159
- package/pages/example/base_wid/b_grid_demo.vue +0 -225
- package/pages/example/base_wid/b_hot_demo.vue +0 -135
- package/pages/example/base_wid/b_icon_demo.vue +0 -80
- package/pages/example/base_wid/b_img_demo.vue +0 -95
- package/pages/example/base_wid/b_input_demo.vue +0 -171
- package/pages/example/base_wid/b_list_demo.vue +0 -241
- package/pages/example/base_wid/b_style_demo.vue +0 -928
- package/pages/example/base_wid/b_text_demo.vue +0 -36
- package/pages/example/base_wid/b_textarea_demo.vue +0 -64
- package/pages/example/base_wid/b_video_demo.vue +0 -42
- package/pages/example/base_wid/b_view_demo.vue +0 -36
- package/pages/example/base_wid/index.js +0 -76
- package/pages/example/content.js +0 -49
- package/pages/example/global_style/animation.vue +0 -197
- package/pages/example/global_style/color.vue +0 -134
- package/pages/example/global_style/decoration.vue +0 -546
- package/pages/example/global_style/icon.vue +0 -345
- package/pages/example/global_style/index.js +0 -52
- package/pages/example/global_style/layout.vue +0 -846
- package/pages/example/global_style/special.vue +0 -37
- package/pages/example/global_style/table.vue +0 -298
- package/pages/example/global_style/text.vue +0 -159
- package/pages/index.vue +0 -43
- package/pages/level_widget.vue +0 -11
- package/pages/start.vue +0 -200
- package/plugins/index.ts +0 -2
- package/public/favicon.gif +0 -0
- package/public/fonts/iconfont.ttf +0 -0
- package/public/fonts/iconfont.woff +0 -0
- package/public/fonts/iconfont.woff2 +0 -0
- package/public/img/banner.jpg +0 -0
- package/public/img/banner2.jpg +0 -0
- package/public/img/bg_pattern.png +0 -0
- package/public/img/btx.jpg +0 -0
- package/public/img/btx_ui.jpg +0 -0
- package/public/img/dir.png +0 -0
- package/public/img/f.png +0 -0
- package/public/img/head.jpg +0 -0
- package/public/img/head2.jpg +0 -0
- package/public/img/home_ico.png +0 -0
- package/public/img/icons.svg +0 -164
- package/public/img/mechanism/b-style.png +0 -0
- package/public/img/mechanism/slider-wid.png +0 -0
- package/public/img/mechanism/upload-wid.png +0 -0
- package/public/img/transform_origin.png +0 -0
- package/sass/animation.scss +0 -400
- package/sass/btx.mob.scss +0 -10
- package/sass/btx.pad.scss +0 -3
- package/sass/btx.scss +0 -22
- package/sass/btx.webapp.scss +0 -22
- package/sass/colors.scss +0 -65
- package/sass/decoration.scss +0 -220
- package/sass/flex.scss +0 -29
- package/sass/icons.scss +0 -100
- package/sass/layout.scss +0 -88
- package/sass/reset.scss +0 -111
- package/sass/response/flex_mixin.scss +0 -91
- package/sass/response/layout_mixin.scss +0 -227
- package/sass/response/main.scss +0 -59
- package/sass/response/text_mixin.scss +0 -65
- package/sass/scroll.scss +0 -100
- package/sass/special.scss +0 -13
- package/sass/table.scss +0 -103
- package/sass/text.scss +0 -86
- package/sass/webpack.config.js +0 -31
- package/tsconfig.json +0 -4
package/demo.html
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<!doctype html><meta charset="utf-8"><title>index demo</title><script src="./index.umd.js"></script><link rel="stylesheet" href="./index.css"><script>console.log(index)</script>
|
package/index.common.js
ADDED
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
/******/ (() => { // webpackBootstrap
|
|
2
|
+
/******/ "use strict";
|
|
3
|
+
/******/ // The require scope
|
|
4
|
+
/******/ var __webpack_require__ = {};
|
|
5
|
+
/******/
|
|
6
|
+
/************************************************************************/
|
|
7
|
+
/******/ /* webpack/runtime/define property getters */
|
|
8
|
+
/******/ (() => {
|
|
9
|
+
/******/ // define getter functions for harmony exports
|
|
10
|
+
/******/ __webpack_require__.d = (exports, definition) => {
|
|
11
|
+
/******/ for(var key in definition) {
|
|
12
|
+
/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
|
|
13
|
+
/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
|
|
14
|
+
/******/ }
|
|
15
|
+
/******/ }
|
|
16
|
+
/******/ };
|
|
17
|
+
/******/ })();
|
|
18
|
+
/******/
|
|
19
|
+
/******/ /* webpack/runtime/hasOwnProperty shorthand */
|
|
20
|
+
/******/ (() => {
|
|
21
|
+
/******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
|
|
22
|
+
/******/ })();
|
|
23
|
+
/******/
|
|
24
|
+
/******/ /* webpack/runtime/make namespace object */
|
|
25
|
+
/******/ (() => {
|
|
26
|
+
/******/ // define __esModule on exports
|
|
27
|
+
/******/ __webpack_require__.r = (exports) => {
|
|
28
|
+
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
|
|
29
|
+
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
30
|
+
/******/ }
|
|
31
|
+
/******/ Object.defineProperty(exports, '__esModule', { value: true });
|
|
32
|
+
/******/ };
|
|
33
|
+
/******/ })();
|
|
34
|
+
/******/
|
|
35
|
+
/******/ /* webpack/runtime/publicPath */
|
|
36
|
+
/******/ (() => {
|
|
37
|
+
/******/ __webpack_require__.p = "";
|
|
38
|
+
/******/ })();
|
|
39
|
+
/******/
|
|
40
|
+
/************************************************************************/
|
|
41
|
+
var __webpack_exports__ = {};
|
|
42
|
+
// ESM COMPAT FLAG
|
|
43
|
+
__webpack_require__.r(__webpack_exports__);
|
|
44
|
+
|
|
45
|
+
// EXPORTS
|
|
46
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
47
|
+
"default": () => (/* binding */ entry_lib)
|
|
48
|
+
});
|
|
49
|
+
|
|
50
|
+
;// CONCATENATED MODULE: ./node_modules/@vue/cli-service/lib/commands/build/setPublicPath.js
|
|
51
|
+
/* eslint-disable no-var */
|
|
52
|
+
// This file is imported into lib/wc client bundles.
|
|
53
|
+
|
|
54
|
+
if (typeof window !== 'undefined') {
|
|
55
|
+
var currentScript = window.document.currentScript
|
|
56
|
+
if (false) { var getCurrentScript; }
|
|
57
|
+
|
|
58
|
+
var src = currentScript && currentScript.src.match(/(.+\/)[^/]+\.js(\?.*)?$/)
|
|
59
|
+
if (src) {
|
|
60
|
+
__webpack_require__.p = src[1] // eslint-disable-line
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
// Indicate to webpack that this file can be concatenated
|
|
65
|
+
/* harmony default export */ const setPublicPath = (null);
|
|
66
|
+
|
|
67
|
+
;// CONCATENATED MODULE: ./components/index.js
|
|
68
|
+
// const initGlobalComponents: GlobalType.IRecord = import.meta.glob("@/components/BTXUI/core/*/*.vue");
|
|
69
|
+
const styles = ({}).glob("@/components/BTXUI/core/styles/index.vue");
|
|
70
|
+
const bView = ({}).glob("@/components/BTXUI/core/b-view/index.vue");
|
|
71
|
+
const initGlobalComponents = { ...styles, ...bView };
|
|
72
|
+
|
|
73
|
+
/* harmony default export */ const components = ({
|
|
74
|
+
name: "btxui",
|
|
75
|
+
install(app){
|
|
76
|
+
// 注册全局组件
|
|
77
|
+
Object.keys(initGlobalComponents).forEach(path => {
|
|
78
|
+
const pathBlocks = path.split("/");
|
|
79
|
+
pathBlocks.pop();
|
|
80
|
+
app.component(pathBlocks.pop(), initGlobalComponents[path]);
|
|
81
|
+
})
|
|
82
|
+
}
|
|
83
|
+
});
|
|
84
|
+
;// CONCATENATED MODULE: ./node_modules/@vue/cli-service/lib/commands/build/entry-lib.js
|
|
85
|
+
|
|
86
|
+
|
|
87
|
+
/* harmony default export */ const entry_lib = (components);
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
module.exports = __webpack_exports__;
|
|
91
|
+
/******/ })()
|
|
92
|
+
;
|
|
93
|
+
//# sourceMappingURL=index.common.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.common.js","mappings":";;UAAA;UACA;;;;;WCDA;WACA;WACA;WACA;WACA,yCAAyC,wCAAwC;WACjF;WACA;WACA;;;;;WCPA;;;;;WCAA;WACA;WACA;WACA,uDAAuD,iBAAiB;WACxE;WACA,gDAAgD,aAAa;WAC7D;;;;;WCNA;;;;;;;;;;;;;;ACAA;AACA;;AAEA;AACA;AACA,MAAM,KAAuC,EAAE,yBAQ5C;;AAEH;AACA;AACA,IAAI,qBAAuB;AAC3B;AACA;;AAEA;AACA,oDAAe,IAAI;;;ACtBnB;AACA,eAAe,IAAW;AAC1B,cAAc,IAAW;AACzB,+BAA+B;AAC/B;AACA,iDAAe;AACf;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;;ACfwB;AACA;AACxB,gDAAe,UAAG;AACI","sources":["webpack://btxui/webpack/bootstrap","webpack://btxui/webpack/runtime/define property getters","webpack://btxui/webpack/runtime/hasOwnProperty shorthand","webpack://btxui/webpack/runtime/make namespace object","webpack://btxui/webpack/runtime/publicPath","webpack://btxui/./node_modules/@vue/cli-service/lib/commands/build/setPublicPath.js","webpack://btxui/./components/index.js","webpack://btxui/./node_modules/@vue/cli-service/lib/commands/build/entry-lib.js"],"sourcesContent":["// The require scope\nvar __webpack_require__ = {};\n\n","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","__webpack_require__.p = \"\";","/* eslint-disable no-var */\n// This file is imported into lib/wc client bundles.\n\nif (typeof window !== 'undefined') {\n var currentScript = window.document.currentScript\n if (process.env.NEED_CURRENTSCRIPT_POLYFILL) {\n var getCurrentScript = require('@soda/get-current-script')\n currentScript = getCurrentScript()\n\n // for backward compatibility, because previously we directly included the polyfill\n if (!('currentScript' in document)) {\n Object.defineProperty(document, 'currentScript', { get: getCurrentScript })\n }\n }\n\n var src = currentScript && currentScript.src.match(/(.+\\/)[^/]+\\.js(\\?.*)?$/)\n if (src) {\n __webpack_public_path__ = src[1] // eslint-disable-line\n }\n}\n\n// Indicate to webpack that this file can be concatenated\nexport default null\n","// const initGlobalComponents: GlobalType.IRecord = import.meta.glob(\"@/components/BTXUI/core/*/*.vue\");\r\nconst styles = import.meta.glob(\"@/components/BTXUI/core/styles/index.vue\");\r\nconst bView = import.meta.glob(\"@/components/BTXUI/core/b-view/index.vue\");\r\nconst initGlobalComponents = { ...styles, ...bView };\r\n\r\nexport default {\r\n name: \"btxui\",\r\n install(app){\r\n // 注册全局组件\r\n Object.keys(initGlobalComponents).forEach(path => {\r\n const pathBlocks = path.split(\"/\");\r\n pathBlocks.pop();\r\n app.component(pathBlocks.pop(), initGlobalComponents[path]);\r\n })\r\n }\r\n}","import './setPublicPath'\nimport mod from '~entry'\nexport default mod\nexport * from '~entry'\n"],"names":[],"sourceRoot":""}
|
package/index.umd.js
ADDED
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
(function webpackUniversalModuleDefinition(root, factory) {
|
|
2
|
+
if(typeof exports === 'object' && typeof module === 'object')
|
|
3
|
+
module.exports = factory();
|
|
4
|
+
else if(typeof define === 'function' && define.amd)
|
|
5
|
+
define([], factory);
|
|
6
|
+
else if(typeof exports === 'object')
|
|
7
|
+
exports["index"] = factory();
|
|
8
|
+
else
|
|
9
|
+
root["index"] = factory();
|
|
10
|
+
})((typeof self !== 'undefined' ? self : this), () => {
|
|
11
|
+
return /******/ (() => { // webpackBootstrap
|
|
12
|
+
/******/ "use strict";
|
|
13
|
+
/******/ // The require scope
|
|
14
|
+
/******/ var __webpack_require__ = {};
|
|
15
|
+
/******/
|
|
16
|
+
/************************************************************************/
|
|
17
|
+
/******/ /* webpack/runtime/define property getters */
|
|
18
|
+
/******/ (() => {
|
|
19
|
+
/******/ // define getter functions for harmony exports
|
|
20
|
+
/******/ __webpack_require__.d = (exports, definition) => {
|
|
21
|
+
/******/ for(var key in definition) {
|
|
22
|
+
/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
|
|
23
|
+
/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
|
|
24
|
+
/******/ }
|
|
25
|
+
/******/ }
|
|
26
|
+
/******/ };
|
|
27
|
+
/******/ })();
|
|
28
|
+
/******/
|
|
29
|
+
/******/ /* webpack/runtime/hasOwnProperty shorthand */
|
|
30
|
+
/******/ (() => {
|
|
31
|
+
/******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
|
|
32
|
+
/******/ })();
|
|
33
|
+
/******/
|
|
34
|
+
/******/ /* webpack/runtime/make namespace object */
|
|
35
|
+
/******/ (() => {
|
|
36
|
+
/******/ // define __esModule on exports
|
|
37
|
+
/******/ __webpack_require__.r = (exports) => {
|
|
38
|
+
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
|
|
39
|
+
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
40
|
+
/******/ }
|
|
41
|
+
/******/ Object.defineProperty(exports, '__esModule', { value: true });
|
|
42
|
+
/******/ };
|
|
43
|
+
/******/ })();
|
|
44
|
+
/******/
|
|
45
|
+
/******/ /* webpack/runtime/publicPath */
|
|
46
|
+
/******/ (() => {
|
|
47
|
+
/******/ __webpack_require__.p = "";
|
|
48
|
+
/******/ })();
|
|
49
|
+
/******/
|
|
50
|
+
/************************************************************************/
|
|
51
|
+
var __webpack_exports__ = {};
|
|
52
|
+
// ESM COMPAT FLAG
|
|
53
|
+
__webpack_require__.r(__webpack_exports__);
|
|
54
|
+
|
|
55
|
+
// EXPORTS
|
|
56
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
57
|
+
"default": () => (/* binding */ entry_lib)
|
|
58
|
+
});
|
|
59
|
+
|
|
60
|
+
;// CONCATENATED MODULE: ./node_modules/@vue/cli-service/lib/commands/build/setPublicPath.js
|
|
61
|
+
/* eslint-disable no-var */
|
|
62
|
+
// This file is imported into lib/wc client bundles.
|
|
63
|
+
|
|
64
|
+
if (typeof window !== 'undefined') {
|
|
65
|
+
var currentScript = window.document.currentScript
|
|
66
|
+
if (false) { var getCurrentScript; }
|
|
67
|
+
|
|
68
|
+
var src = currentScript && currentScript.src.match(/(.+\/)[^/]+\.js(\?.*)?$/)
|
|
69
|
+
if (src) {
|
|
70
|
+
__webpack_require__.p = src[1] // eslint-disable-line
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
// Indicate to webpack that this file can be concatenated
|
|
75
|
+
/* harmony default export */ const setPublicPath = (null);
|
|
76
|
+
|
|
77
|
+
;// CONCATENATED MODULE: ./components/index.js
|
|
78
|
+
// const initGlobalComponents: GlobalType.IRecord = import.meta.glob("@/components/BTXUI/core/*/*.vue");
|
|
79
|
+
const styles = ({}).glob("@/components/BTXUI/core/styles/index.vue");
|
|
80
|
+
const bView = ({}).glob("@/components/BTXUI/core/b-view/index.vue");
|
|
81
|
+
const initGlobalComponents = { ...styles, ...bView };
|
|
82
|
+
|
|
83
|
+
/* harmony default export */ const components = ({
|
|
84
|
+
name: "btxui",
|
|
85
|
+
install(app){
|
|
86
|
+
// 注册全局组件
|
|
87
|
+
Object.keys(initGlobalComponents).forEach(path => {
|
|
88
|
+
const pathBlocks = path.split("/");
|
|
89
|
+
pathBlocks.pop();
|
|
90
|
+
app.component(pathBlocks.pop(), initGlobalComponents[path]);
|
|
91
|
+
})
|
|
92
|
+
}
|
|
93
|
+
});
|
|
94
|
+
;// CONCATENATED MODULE: ./node_modules/@vue/cli-service/lib/commands/build/entry-lib.js
|
|
95
|
+
|
|
96
|
+
|
|
97
|
+
/* harmony default export */ const entry_lib = (components);
|
|
98
|
+
|
|
99
|
+
|
|
100
|
+
/******/ return __webpack_exports__;
|
|
101
|
+
/******/ })()
|
|
102
|
+
;
|
|
103
|
+
});
|
|
104
|
+
//# sourceMappingURL=index.umd.js.map
|
package/index.umd.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.umd.js","mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD,O;;UCVA;UACA;;;;;WCDA;WACA;WACA;WACA;WACA,yCAAyC,wCAAwC;WACjF;WACA;WACA;;;;;WCPA;;;;;WCAA;WACA;WACA;WACA,uDAAuD,iBAAiB;WACxE;WACA,gDAAgD,aAAa;WAC7D;;;;;WCNA;;;;;;;;;;;;;;ACAA;AACA;;AAEA;AACA;AACA,MAAM,KAAuC,EAAE,yBAQ5C;;AAEH;AACA;AACA,IAAI,qBAAuB;AAC3B;AACA;;AAEA;AACA,oDAAe,IAAI;;;ACtBnB;AACA,eAAe,IAAW;AAC1B,cAAc,IAAW;AACzB,+BAA+B;AAC/B;AACA,iDAAe;AACf;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;;ACfwB;AACA;AACxB,gDAAe,UAAG;AACI","sources":["webpack://index/webpack/universalModuleDefinition","webpack://index/webpack/bootstrap","webpack://index/webpack/runtime/define property getters","webpack://index/webpack/runtime/hasOwnProperty shorthand","webpack://index/webpack/runtime/make namespace object","webpack://index/webpack/runtime/publicPath","webpack://index/./node_modules/@vue/cli-service/lib/commands/build/setPublicPath.js","webpack://index/./components/index.js","webpack://index/./node_modules/@vue/cli-service/lib/commands/build/entry-lib.js"],"sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory();\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"index\"] = factory();\n\telse\n\t\troot[\"index\"] = factory();\n})((typeof self !== 'undefined' ? self : this), () => {\nreturn ","// The require scope\nvar __webpack_require__ = {};\n\n","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","__webpack_require__.p = \"\";","/* eslint-disable no-var */\n// This file is imported into lib/wc client bundles.\n\nif (typeof window !== 'undefined') {\n var currentScript = window.document.currentScript\n if (process.env.NEED_CURRENTSCRIPT_POLYFILL) {\n var getCurrentScript = require('@soda/get-current-script')\n currentScript = getCurrentScript()\n\n // for backward compatibility, because previously we directly included the polyfill\n if (!('currentScript' in document)) {\n Object.defineProperty(document, 'currentScript', { get: getCurrentScript })\n }\n }\n\n var src = currentScript && currentScript.src.match(/(.+\\/)[^/]+\\.js(\\?.*)?$/)\n if (src) {\n __webpack_public_path__ = src[1] // eslint-disable-line\n }\n}\n\n// Indicate to webpack that this file can be concatenated\nexport default null\n","// const initGlobalComponents: GlobalType.IRecord = import.meta.glob(\"@/components/BTXUI/core/*/*.vue\");\r\nconst styles = import.meta.glob(\"@/components/BTXUI/core/styles/index.vue\");\r\nconst bView = import.meta.glob(\"@/components/BTXUI/core/b-view/index.vue\");\r\nconst initGlobalComponents = { ...styles, ...bView };\r\n\r\nexport default {\r\n name: \"btxui\",\r\n install(app){\r\n // 注册全局组件\r\n Object.keys(initGlobalComponents).forEach(path => {\r\n const pathBlocks = path.split(\"/\");\r\n pathBlocks.pop();\r\n app.component(pathBlocks.pop(), initGlobalComponents[path]);\r\n })\r\n }\r\n}","import './setPublicPath'\nimport mod from '~entry'\nexport default mod\nexport * from '~entry'\n"],"names":[],"sourceRoot":""}
|
package/index.umd.min.js
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
(function(e,o){"object"===typeof exports&&"object"===typeof module?module.exports=o():"function"===typeof define&&define.amd?define([],o):"object"===typeof exports?exports["index"]=o():e["index"]=o()})("undefined"!==typeof self?self:this,(()=>(()=>{"use strict";var e={};(()=>{e.d=(o,t)=>{for(var n in t)e.o(t,n)&&!e.o(o,n)&&Object.defineProperty(o,n,{enumerable:!0,get:t[n]})}})(),(()=>{e.o=(e,o)=>Object.prototype.hasOwnProperty.call(e,o)})(),(()=>{e.r=e=>{"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}})(),(()=>{e.p=""})();var o={};if(e.r(o),e.d(o,{default:()=>c}),"undefined"!==typeof window){var t=window.document.currentScript,n=t&&t.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);n&&(e.p=n[1])}const r={}.glob("@/components/BTXUI/core/styles/index.vue"),i={}.glob("@/components/BTXUI/core/b-view/index.vue"),p={...r,...i},d={name:"btxui",install(e){Object.keys(p).forEach((o=>{const t=o.split("/");t.pop(),e.component(t.pop(),p[o])}))}},c=d;return o})()));
|
|
2
|
+
//# sourceMappingURL=index.umd.min.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.umd.min.js","mappings":"CAAA,SAA2CA,EAAMC,GAC1B,kBAAZC,SAA0C,kBAAXC,OACxCA,OAAOD,QAAUD,IACQ,oBAAXG,QAAyBA,OAAOC,IAC9CD,OAAO,GAAIH,GACe,kBAAZC,QACdA,QAAQ,SAAWD,IAEnBD,EAAK,SAAWC,GACjB,EATD,CASoB,qBAATK,KAAuBA,KAAOC,MAAO,I,mBCRhD,IAAIC,EAAsB,CAAC,E,MCA3BA,EAAoBC,EAAI,CAACP,EAASQ,KACjC,IAAI,IAAIC,KAAOD,EACXF,EAAoBI,EAAEF,EAAYC,KAASH,EAAoBI,EAAEV,EAASS,IAC5EE,OAAOC,eAAeZ,EAASS,EAAK,CAAEI,YAAY,EAAMC,IAAKN,EAAWC,IAE1E,C,WCNDH,EAAoBI,EAAI,CAACK,EAAKC,IAAUL,OAAOM,UAAUC,eAAeC,KAAKJ,EAAKC,E,WCClFV,EAAoBc,EAAKpB,IACH,qBAAXqB,QAA0BA,OAAOC,aAC1CX,OAAOC,eAAeZ,EAASqB,OAAOC,YAAa,CAAEC,MAAO,WAE7DZ,OAAOC,eAAeZ,EAAS,aAAc,CAAEuB,OAAO,GAAO,C,WCL9DjB,EAAoBkB,EAAI,E,cCGxB,G,8BAAsB,qBAAXC,OAAwB,CACjC,IAAIC,EAAgBD,OAAOE,SAASD,cAWhCE,EAAMF,GAAiBA,EAAcE,IAAIC,MAAM,2BAC/CD,IACF,IAA0BA,EAAI,GAElC,CAGA,MCrBME,EAAS,GAAYC,KAAK,4CAC1BC,EAAQ,GAAYD,KAAK,4CACzBE,EAAuB,IAAKH,KAAWE,GAE7C,GACIE,KAAM,QACN,OAAAC,CAAQC,GAEJzB,OAAO0B,KAAKJ,GAAsBK,SAAQC,IACtC,MAAMC,EAAaD,EAAKE,MAAM,KAC9BD,EAAWE,MACXN,EAAIO,UAAUH,EAAWE,MAAOT,EAAqBM,GAAM,GAEnE,GCZJ,I","sources":["webpack://index/webpack/universalModuleDefinition","webpack://index/webpack/bootstrap","webpack://index/webpack/runtime/define property getters","webpack://index/webpack/runtime/hasOwnProperty shorthand","webpack://index/webpack/runtime/make namespace object","webpack://index/webpack/runtime/publicPath","webpack://index/./node_modules/@vue/cli-service/lib/commands/build/setPublicPath.js","webpack://index/./components/index.js","webpack://index/./node_modules/@vue/cli-service/lib/commands/build/entry-lib.js"],"sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory();\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"index\"] = factory();\n\telse\n\t\troot[\"index\"] = factory();\n})((typeof self !== 'undefined' ? self : this), () => {\nreturn ","// The require scope\nvar __webpack_require__ = {};\n\n","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","__webpack_require__.p = \"\";","/* eslint-disable no-var */\n// This file is imported into lib/wc client bundles.\n\nif (typeof window !== 'undefined') {\n var currentScript = window.document.currentScript\n if (process.env.NEED_CURRENTSCRIPT_POLYFILL) {\n var getCurrentScript = require('@soda/get-current-script')\n currentScript = getCurrentScript()\n\n // for backward compatibility, because previously we directly included the polyfill\n if (!('currentScript' in document)) {\n Object.defineProperty(document, 'currentScript', { get: getCurrentScript })\n }\n }\n\n var src = currentScript && currentScript.src.match(/(.+\\/)[^/]+\\.js(\\?.*)?$/)\n if (src) {\n __webpack_public_path__ = src[1] // eslint-disable-line\n }\n}\n\n// Indicate to webpack that this file can be concatenated\nexport default null\n","// const initGlobalComponents: GlobalType.IRecord = import.meta.glob(\"@/components/BTXUI/core/*/*.vue\");\r\nconst styles = import.meta.glob(\"@/components/BTXUI/core/styles/index.vue\");\r\nconst bView = import.meta.glob(\"@/components/BTXUI/core/b-view/index.vue\");\r\nconst initGlobalComponents = { ...styles, ...bView };\r\n\r\nexport default {\r\n name: \"btxui\",\r\n install(app){\r\n // 注册全局组件\r\n Object.keys(initGlobalComponents).forEach(path => {\r\n const pathBlocks = path.split(\"/\");\r\n pathBlocks.pop();\r\n app.component(pathBlocks.pop(), initGlobalComponents[path]);\r\n })\r\n }\r\n}","import './setPublicPath'\nimport mod from '~entry'\nexport default mod\nexport * from '~entry'\n"],"names":["root","factory","exports","module","define","amd","self","this","__webpack_require__","d","definition","key","o","Object","defineProperty","enumerable","get","obj","prop","prototype","hasOwnProperty","call","r","Symbol","toStringTag","value","p","window","currentScript","document","src","match","styles","glob","bView","initGlobalComponents","name","install","app","keys","forEach","path","pathBlocks","split","pop","component"],"sourceRoot":""}
|
package/package.json
CHANGED
|
@@ -1,23 +1,12 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "btxui",
|
|
3
|
-
"
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
"
|
|
7
|
-
|
|
8
|
-
"
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
},
|
|
14
|
-
"devDependencies": {
|
|
15
|
-
"@types/node": "^18",
|
|
16
|
-
"nuxt": "^3.4.2",
|
|
17
|
-
"sass": "^1.69.3",
|
|
18
|
-
"typescript": "^5.0.2"
|
|
19
|
-
},
|
|
20
|
-
"dependencies": {
|
|
21
|
-
"vue-highlightjs": "^1.3.3"
|
|
22
|
-
}
|
|
23
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "btxui",
|
|
3
|
+
"version": "1.0.3",
|
|
4
|
+
"private": false,
|
|
5
|
+
"description": "",
|
|
6
|
+
"main": "index.common.js",
|
|
7
|
+
"scripts": {
|
|
8
|
+
"test": "echo \"Error: no test specified\" && exit 1"
|
|
9
|
+
},
|
|
10
|
+
"author": "btxstudio",
|
|
11
|
+
"license": "ISC"
|
|
12
|
+
}
|
package/README.md
DELETED
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
# Nuxt 3 Minimal Starter
|
|
2
|
-
|
|
3
|
-
Look at the [Nuxt 3 documentation](https://nuxt.com/docs/getting-started/introduction) to learn more.
|
|
4
|
-
|
|
5
|
-
## Setup
|
|
6
|
-
|
|
7
|
-
Make sure to install the dependencies:
|
|
8
|
-
|
|
9
|
-
```bash
|
|
10
|
-
# yarn
|
|
11
|
-
yarn install
|
|
12
|
-
|
|
13
|
-
# npm
|
|
14
|
-
npm install
|
|
15
|
-
|
|
16
|
-
# pnpm
|
|
17
|
-
pnpm install
|
|
18
|
-
```
|
|
19
|
-
|
|
20
|
-
## Development Server
|
|
21
|
-
|
|
22
|
-
Start the development server on `http://localhost:3000`
|
|
23
|
-
|
|
24
|
-
```bash
|
|
25
|
-
npm run dev
|
|
26
|
-
```
|
|
27
|
-
|
|
28
|
-
## Production
|
|
29
|
-
|
|
30
|
-
Build the application for production:
|
|
31
|
-
|
|
32
|
-
```bash
|
|
33
|
-
npm run build
|
|
34
|
-
```
|
|
35
|
-
|
|
36
|
-
Locally preview production build:
|
|
37
|
-
|
|
38
|
-
```bash
|
|
39
|
-
npm run preview
|
|
40
|
-
```
|
|
41
|
-
|
|
42
|
-
Check out the [deployment documentation](https://nuxt.com/docs/getting-started/deployment) for more information.
|
package/app.vue
DELETED
|
@@ -1,162 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="max-screen flex-column">
|
|
3
|
-
|
|
4
|
-
<!--全局弹窗组件-->
|
|
5
|
-
<!-- <confirm-wid :colors="{matte: 'rgba(240,240,240,.6)'}" /> -->
|
|
6
|
-
|
|
7
|
-
<!--【手机端】切换侧边栏按钮-->
|
|
8
|
-
<div class="hide fixed r-1rem b-2rem z2 show-s">
|
|
9
|
-
<!-- <b-hot styles="w-4 h-4 round bg-color-dgray flex-5 color-sub fsize-1.7"
|
|
10
|
-
hover="bg-color-dark color-light"
|
|
11
|
-
@on_click="contents_state = !contents_state">
|
|
12
|
-
<i class="ico-list"></i>
|
|
13
|
-
</b-hot> -->
|
|
14
|
-
</div>
|
|
15
|
-
|
|
16
|
-
<!-- 顶部主导航栏 -->
|
|
17
|
-
<div class="rel z2 pad-h-3 bg-color-main flex-between color-sub">
|
|
18
|
-
|
|
19
|
-
<!-- 左侧 logo -->
|
|
20
|
-
<div class="rel z2 flex-4 color-light alpha-d7 fsize-2d5 scale-1d4">
|
|
21
|
-
<i class="ico-btxstudio"></i>
|
|
22
|
-
</div>
|
|
23
|
-
|
|
24
|
-
<!-- 右侧导航按钮 -->
|
|
25
|
-
<nav :class="`flex-4 fsize-1d2 bg-color-main l-0 t-0 trans-fast z1 fixed-s max-s flex-5-s fsize-1d4-s pcenter-s flex-column-s translateX-${nav_state? 0: 100}-s`">
|
|
26
|
-
<div class="mrg-h-2 mrg-v-1d5-s">
|
|
27
|
-
<!-- <b-hot link="/" hover="color-light" @on_click="$_go_btx_ui">BTX·UI</b-hot> -->
|
|
28
|
-
</div>
|
|
29
|
-
<div class="mrg-h-2 mrg-v-1d5-s">
|
|
30
|
-
<!-- <b-hot link="http://level.75sea.com" hover="color-light">Level</b-hot> -->
|
|
31
|
-
</div>
|
|
32
|
-
<div class="mrg-h-2 mrg-v-1d5-s">
|
|
33
|
-
<!-- <b-hot link="https://github.com/btxstudio/BTXUI" hover="color-light">Github</b-hot> -->
|
|
34
|
-
</div>
|
|
35
|
-
<div class="mrg-h-2 mrg-v-1d5-s">
|
|
36
|
-
<!-- <b-hot link="http://www.75sea.com" hover="color-light">
|
|
37
|
-
<i class="ico-company-line mrg-r-d5"></i>七武海科技
|
|
38
|
-
</b-hot> -->
|
|
39
|
-
</div>
|
|
40
|
-
</nav>
|
|
41
|
-
|
|
42
|
-
<!--【手机端】导航折叠按钮-->
|
|
43
|
-
<div class="rel z2 hide fsize-1d7 show-s">
|
|
44
|
-
<!-- <b-hot styles="flex trans-fast rotate-0"
|
|
45
|
-
hover="color-light"
|
|
46
|
-
:states="{
|
|
47
|
-
act: {
|
|
48
|
-
state: nav_state,
|
|
49
|
-
style: 'rotate-45 color-light'
|
|
50
|
-
}
|
|
51
|
-
}"
|
|
52
|
-
@on_click="nav_state = !nav_state">
|
|
53
|
-
<i class="ico-add"></i>
|
|
54
|
-
</b-hot> -->
|
|
55
|
-
</div>
|
|
56
|
-
</div>
|
|
57
|
-
|
|
58
|
-
<div class="flex grow-1">
|
|
59
|
-
<!-- 左侧目录 -->
|
|
60
|
-
<div :class="`flex-column w-30 z1 bg-color-lgray max-h t-0 trans-fast fixed-s ${contents_state? 'translateX-0-s': 'translateX-f100-s'}`">
|
|
61
|
-
<div class="grow-1 auto-scroll pad-h-1 pad-t-2 pad-b-4 fsize-1d1 pad-t-5-s">
|
|
62
|
-
<!-- <content-wid v-bind="nav" ref="cont_tree" @on_select="$_nav_select" /> -->
|
|
63
|
-
</div>
|
|
64
|
-
</div>
|
|
65
|
-
|
|
66
|
-
<!-- 右侧介绍 -->
|
|
67
|
-
<div class="grow-1 rel">
|
|
68
|
-
<nuxt-page class="abs max pad-h-4 pad-v-2 pjustify auto-scroll" />
|
|
69
|
-
</div>
|
|
70
|
-
</div>
|
|
71
|
-
</div>
|
|
72
|
-
</template>
|
|
73
|
-
|
|
74
|
-
<script>
|
|
75
|
-
import BHot from "@/components/BTXUI/core/b-hot"
|
|
76
|
-
import BList from "@/components/BTXUI/core/b-list"
|
|
77
|
-
import ContentWid from "@/components/BTXUI/content/content-wid"
|
|
78
|
-
import contentData from "@/pages/example/content"
|
|
79
|
-
// import ConfirmWid from "@/components/BTXUI/confirm/confirm-wid"
|
|
80
|
-
|
|
81
|
-
export default {
|
|
82
|
-
name: "App",
|
|
83
|
-
components: {
|
|
84
|
-
BHot,
|
|
85
|
-
BList,
|
|
86
|
-
ContentWid,
|
|
87
|
-
// ConfirmWid,
|
|
88
|
-
},
|
|
89
|
-
data(){
|
|
90
|
-
return {
|
|
91
|
-
|
|
92
|
-
//目录导航
|
|
93
|
-
nav: {
|
|
94
|
-
dataTree: contentData,
|
|
95
|
-
colors: {
|
|
96
|
-
normal: {
|
|
97
|
-
text: "#777",
|
|
98
|
-
bg: "none",
|
|
99
|
-
},
|
|
100
|
-
act: {
|
|
101
|
-
text: "blue",
|
|
102
|
-
bg: "none",
|
|
103
|
-
},
|
|
104
|
-
hover: {
|
|
105
|
-
text: "dgray",
|
|
106
|
-
bg: "none",
|
|
107
|
-
}
|
|
108
|
-
},
|
|
109
|
-
},
|
|
110
|
-
|
|
111
|
-
//目录侧边栏状态
|
|
112
|
-
contents_state: false,
|
|
113
|
-
|
|
114
|
-
//【手机端】导航状态
|
|
115
|
-
nav_state: false
|
|
116
|
-
|
|
117
|
-
}
|
|
118
|
-
},
|
|
119
|
-
computed: {
|
|
120
|
-
|
|
121
|
-
//目录
|
|
122
|
-
$cont_tree(){
|
|
123
|
-
return this.$refs.cont_tree;
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
},
|
|
127
|
-
methods: {
|
|
128
|
-
|
|
129
|
-
//导航路由
|
|
130
|
-
$_nav_select(route){
|
|
131
|
-
this.contents_state = false;
|
|
132
|
-
this.$router.push(route);
|
|
133
|
-
},
|
|
134
|
-
|
|
135
|
-
//初始化目录激活项
|
|
136
|
-
$_init_nav_act(content){
|
|
137
|
-
for(let item of content){
|
|
138
|
-
if(item.id === this.$route.path){
|
|
139
|
-
item.selected = true;
|
|
140
|
-
break;
|
|
141
|
-
}
|
|
142
|
-
const children = item.children;
|
|
143
|
-
if(children && children.length) this.$_init_nav_act(children);
|
|
144
|
-
}
|
|
145
|
-
},
|
|
146
|
-
|
|
147
|
-
//跳转 BTX·UI
|
|
148
|
-
$_go_btx_ui(){
|
|
149
|
-
this.$cont_tree.clear_selected();
|
|
150
|
-
this.nav_state = false;
|
|
151
|
-
}
|
|
152
|
-
|
|
153
|
-
},
|
|
154
|
-
beforeMount(){
|
|
155
|
-
this.$_init_nav_act(contentData);
|
|
156
|
-
}
|
|
157
|
-
}
|
|
158
|
-
</script>
|
|
159
|
-
|
|
160
|
-
<style lang="scss">
|
|
161
|
-
* {}
|
|
162
|
-
</style>
|
package/assets/css/_main.js
DELETED
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
/******/ (function(modules) { // webpackBootstrap
|
|
2
|
-
/******/ // The module cache
|
|
3
|
-
/******/ var installedModules = {};
|
|
4
|
-
/******/
|
|
5
|
-
/******/ // The require function
|
|
6
|
-
/******/ function __webpack_require__(moduleId) {
|
|
7
|
-
/******/
|
|
8
|
-
/******/ // Check if module is in cache
|
|
9
|
-
/******/ if(installedModules[moduleId]) {
|
|
10
|
-
/******/ return installedModules[moduleId].exports;
|
|
11
|
-
/******/ }
|
|
12
|
-
/******/ // Create a new module (and put it into the cache)
|
|
13
|
-
/******/ var module = installedModules[moduleId] = {
|
|
14
|
-
/******/ i: moduleId,
|
|
15
|
-
/******/ l: false,
|
|
16
|
-
/******/ exports: {}
|
|
17
|
-
/******/ };
|
|
18
|
-
/******/
|
|
19
|
-
/******/ // Execute the module function
|
|
20
|
-
/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
|
|
21
|
-
/******/
|
|
22
|
-
/******/ // Flag the module as loaded
|
|
23
|
-
/******/ module.l = true;
|
|
24
|
-
/******/
|
|
25
|
-
/******/ // Return the exports of the module
|
|
26
|
-
/******/ return module.exports;
|
|
27
|
-
/******/ }
|
|
28
|
-
/******/
|
|
29
|
-
/******/
|
|
30
|
-
/******/ // expose the modules object (__webpack_modules__)
|
|
31
|
-
/******/ __webpack_require__.m = modules;
|
|
32
|
-
/******/
|
|
33
|
-
/******/ // expose the module cache
|
|
34
|
-
/******/ __webpack_require__.c = installedModules;
|
|
35
|
-
/******/
|
|
36
|
-
/******/ // define getter function for harmony exports
|
|
37
|
-
/******/ __webpack_require__.d = function(exports, name, getter) {
|
|
38
|
-
/******/ if(!__webpack_require__.o(exports, name)) {
|
|
39
|
-
/******/ Object.defineProperty(exports, name, {
|
|
40
|
-
/******/ configurable: false,
|
|
41
|
-
/******/ enumerable: true,
|
|
42
|
-
/******/ get: getter
|
|
43
|
-
/******/ });
|
|
44
|
-
/******/ }
|
|
45
|
-
/******/ };
|
|
46
|
-
/******/
|
|
47
|
-
/******/ // getDefaultExport function for compatibility with non-harmony modules
|
|
48
|
-
/******/ __webpack_require__.n = function(module) {
|
|
49
|
-
/******/ var getter = module && module.__esModule ?
|
|
50
|
-
/******/ function getDefault() { return module['default']; } :
|
|
51
|
-
/******/ function getModuleExports() { return module; };
|
|
52
|
-
/******/ __webpack_require__.d(getter, 'a', getter);
|
|
53
|
-
/******/ return getter;
|
|
54
|
-
/******/ };
|
|
55
|
-
/******/
|
|
56
|
-
/******/ // Object.prototype.hasOwnProperty.call
|
|
57
|
-
/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
|
|
58
|
-
/******/
|
|
59
|
-
/******/ // __webpack_public_path__
|
|
60
|
-
/******/ __webpack_require__.p = "";
|
|
61
|
-
/******/
|
|
62
|
-
/******/ // Load entry module and return exports
|
|
63
|
-
/******/ return __webpack_require__(__webpack_require__.s = 0);
|
|
64
|
-
/******/ })
|
|
65
|
-
/************************************************************************/
|
|
66
|
-
/******/ ([
|
|
67
|
-
/* 0 */
|
|
68
|
-
/***/ (function(module, exports) {
|
|
69
|
-
|
|
70
|
-
// removed by extract-text-webpack-plugin
|
|
71
|
-
|
|
72
|
-
/***/ })
|
|
73
|
-
/******/ ]);
|