btxui 1.0.1
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/README.md +42 -0
- package/app.vue +162 -0
- package/assets/css/_main.js +73 -0
- package/assets/css/btx.min.css +1 -0
- package/assets/css/btx.mob.min.css +1 -0
- package/assets/css/btx.pad.min.css +1 -0
- package/assets/css/btx.webapp.min.css +1 -0
- package/assets/css/custom_fonts/iconfont.css +37 -0
- package/assets/css/custom_fonts/iconfont.eot +0 -0
- package/assets/css/custom_fonts/iconfont.svg +47 -0
- 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 +47 -0
- package/assets/css/res-m.css +47 -0
- package/assets/css/res-s.css +61 -0
- package/assets/custom_fonts/iconfont.css +37 -0
- package/assets/custom_fonts/iconfont.eot +0 -0
- package/assets/custom_fonts/iconfont.svg +47 -0
- 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 +196 -0
- package/assets/js/Utils.js +421 -0
- package/assets/js/fastclick.js +802 -0
- package/assets/js/lazy.min.js +2 -0
- package/assets/js/touchwipe.js +111 -0
- package/assets/server.js +8 -0
- package/assets/start_site_code_str.js +119 -0
- package/cdn/css/btx.min.css +1 -0
- package/cdn/css/btx.min.css.map +1 -0
- 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 +182 -0
- package/components/BTXUI/btn/btn-wid.vue +128 -0
- package/components/BTXUI/carousel/carousel-wid.vue +138 -0
- package/components/BTXUI/checkbox/checkbox-wid.vue +72 -0
- package/components/BTXUI/confirm/confirm-wid.vue +279 -0
- package/components/BTXUI/content/content-checkbox-wid.vue +44 -0
- package/components/BTXUI/content/content-node-wid.vue +114 -0
- package/components/BTXUI/content/content-tag-wid.vue +25 -0
- package/components/BTXUI/content/content-wid.vue +254 -0
- package/components/BTXUI/core/anis/ani-fail.vue +46 -0
- package/components/BTXUI/core/anis/ani-loading.vue +32 -0
- package/components/BTXUI/core/anis/ani-notic.vue +47 -0
- package/components/BTXUI/core/anis/ani-success.vue +48 -0
- package/components/BTXUI/core/b-drag.vue +258 -0
- package/components/BTXUI/core/b-grid.vue +84 -0
- package/components/BTXUI/core/b-hot.vue +171 -0
- package/components/BTXUI/core/b-icon.vue +76 -0
- package/components/BTXUI/core/b-img.vue +84 -0
- package/components/BTXUI/core/b-input.vue +198 -0
- package/components/BTXUI/core/b-list.vue +276 -0
- package/components/BTXUI/core/b-text/doc.ts +9 -0
- package/components/BTXUI/core/b-text/index.vue +16 -0
- package/components/BTXUI/core/b-textarea.vue +58 -0
- package/components/BTXUI/core/b-video.vue +35 -0
- package/components/BTXUI/core/b-view/doc.ts +10 -0
- package/components/BTXUI/core/b-view/index.vue +20 -0
- package/components/BTXUI/core/b-webview.vue +20 -0
- package/components/BTXUI/core/lib/ChapterLink.js +49 -0
- package/components/BTXUI/core/lib/Search.vue +60 -0
- package/components/BTXUI/core/styles/doc.ts +55 -0
- package/components/BTXUI/core/styles/index.vue +98 -0
- package/components/BTXUI/core/styles/prestyles.ts +471 -0
- package/components/BTXUI/core/styles/theme.ts +29 -0
- package/components/BTXUI/drawer/drawer-wid.vue +165 -0
- package/components/BTXUI/drawer/title-tag-wid.vue +114 -0
- package/components/BTXUI/form/form-select-wid.vue +57 -0
- package/components/BTXUI/form/form-wid.vue +324 -0
- package/components/BTXUI/formPannel/form-pannel-wid.vue +133 -0
- package/components/BTXUI/imgsUpload/imgs-upload-wid.vue +149 -0
- package/components/BTXUI/index.js +83 -0
- package/components/BTXUI/pageFlip/page-flip-wid.vue +206 -0
- package/components/BTXUI/pannel/pannel-wid.vue +167 -0
- package/components/BTXUI/range/range-wid.vue +134 -0
- package/components/BTXUI/search/search-wid.vue +80 -0
- package/components/BTXUI/select/select-wid.vue +186 -0
- package/components/BTXUI/slider/slider-wid.vue +444 -0
- package/components/BTXUI/tab/tab-wid.vue +109 -0
- package/components/BTXUI/table/table-wid.vue +324 -0
- package/components/BTXUI/tag/tag-wid.vue +183 -0
- package/components/BTXUI/tags/tags-wid.vue +121 -0
- package/components/BTXUI/tooltip/tooltip-wid.vue +146 -0
- package/components/BTXUI/upload/upload-wid.vue +215 -0
- package/components/BTXUI/waterfall/waterfall-wid.vue +166 -0
- package/components/header-info.vue +167 -0
- package/composables/@types.ts +4 -0
- package/composables/api.ts +18 -0
- package/env.d.ts +5 -0
- package/main.js +6 -0
- package/nuxt.config.ts +51 -0
- package/package.json +23 -0
- package/pages/article.vue +16 -0
- package/pages/download.vue +50 -0
- package/pages/example/app_wid/app/data_demo.vue +9 -0
- package/pages/example/app_wid/app/download_demo.vue +9 -0
- package/pages/example/app_wid/app/list_demo.vue +11 -0
- package/pages/example/app_wid/app/system_demo.vue +9 -0
- package/pages/example/app_wid/app_wid_demo.vue +198 -0
- package/pages/example/app_wid/btn_wid_demo.vue +179 -0
- package/pages/example/app_wid/carousel_wid_demo.vue +152 -0
- package/pages/example/app_wid/checkbox_wid_demo.vue +65 -0
- package/pages/example/app_wid/confirm_wid_demo.vue +197 -0
- package/pages/example/app_wid/content_wid_demo.vue +369 -0
- package/pages/example/app_wid/drawer_wid_demo.vue +155 -0
- package/pages/example/app_wid/form_pannel_wid_demo.vue +338 -0
- package/pages/example/app_wid/form_wid_demo.vue +550 -0
- package/pages/example/app_wid/imgs_upload_wid_demo.vue +159 -0
- package/pages/example/app_wid/index.js +158 -0
- package/pages/example/app_wid/page_flip_wid_demo.vue +99 -0
- package/pages/example/app_wid/pannel_wid_demo.vue +177 -0
- package/pages/example/app_wid/range_wid_demo.vue +101 -0
- package/pages/example/app_wid/search_wid_demo.vue +75 -0
- package/pages/example/app_wid/select_wid_demo.vue +217 -0
- package/pages/example/app_wid/slider_wid_demo.vue +143 -0
- package/pages/example/app_wid/tab_wid_demo.vue +170 -0
- package/pages/example/app_wid/table_wid_demo.vue +377 -0
- package/pages/example/app_wid/tag_wid_demo.vue +133 -0
- package/pages/example/app_wid/tags_wid_demo.vue +143 -0
- package/pages/example/app_wid/tooltip_wid_demo.vue +117 -0
- package/pages/example/app_wid/upload_wid_demo.vue +123 -0
- package/pages/example/base_wid/b_drag_demo.vue +159 -0
- package/pages/example/base_wid/b_grid_demo.vue +225 -0
- package/pages/example/base_wid/b_hot_demo.vue +135 -0
- package/pages/example/base_wid/b_icon_demo.vue +80 -0
- package/pages/example/base_wid/b_img_demo.vue +95 -0
- package/pages/example/base_wid/b_input_demo.vue +171 -0
- package/pages/example/base_wid/b_list_demo.vue +241 -0
- package/pages/example/base_wid/b_style_demo.vue +928 -0
- package/pages/example/base_wid/b_text_demo.vue +36 -0
- package/pages/example/base_wid/b_textarea_demo.vue +64 -0
- package/pages/example/base_wid/b_video_demo.vue +42 -0
- package/pages/example/base_wid/b_view_demo.vue +36 -0
- package/pages/example/base_wid/index.js +76 -0
- package/pages/example/content.js +49 -0
- package/pages/example/global_style/animation.vue +197 -0
- package/pages/example/global_style/color.vue +134 -0
- package/pages/example/global_style/decoration.vue +546 -0
- package/pages/example/global_style/icon.vue +345 -0
- package/pages/example/global_style/index.js +52 -0
- package/pages/example/global_style/layout.vue +846 -0
- package/pages/example/global_style/special.vue +37 -0
- package/pages/example/global_style/table.vue +298 -0
- package/pages/example/global_style/text.vue +159 -0
- package/pages/index.vue +29 -0
- package/pages/level_widget.vue +11 -0
- package/pages/start.vue +200 -0
- package/plugins/index.ts +2 -0
- 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 +164 -0
- 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 +400 -0
- package/sass/btx.mob.scss +10 -0
- package/sass/btx.pad.scss +3 -0
- package/sass/btx.scss +22 -0
- package/sass/btx.webapp.scss +22 -0
- package/sass/colors.scss +65 -0
- package/sass/decoration.scss +220 -0
- package/sass/flex.scss +29 -0
- package/sass/icons.scss +100 -0
- package/sass/layout.scss +88 -0
- package/sass/reset.scss +111 -0
- package/sass/response/flex_mixin.scss +91 -0
- package/sass/response/layout_mixin.scss +227 -0
- package/sass/response/main.scss +59 -0
- package/sass/response/text_mixin.scss +65 -0
- package/sass/scroll.scss +100 -0
- package/sass/special.scss +13 -0
- package/sass/table.scss +103 -0
- package/sass/text.scss +86 -0
- package/sass/webpack.config.js +31 -0
- package/tsconfig.json +4 -0
|
@@ -0,0 +1,159 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<article>
|
|
3
|
+
<header-info v-bind="header_info" />
|
|
4
|
+
|
|
5
|
+
<!--基础使用-->
|
|
6
|
+
<section>
|
|
7
|
+
<h5>基础使用</h5>
|
|
8
|
+
<p>默认为单图上传,通过 <code>width</code>、<code>height</code> 属性可以设置预览图尺寸,默认为 8 * 5 rem。<code>notic</code> 属性可以设置上传提示文字。</p>
|
|
9
|
+
<p>测试接口:<span class="alpha-d7 color-blue">{{upload_api}}</span></p>
|
|
10
|
+
<div class="resize">
|
|
11
|
+
<imgs-upload-wid v-bind="data_1.props" />
|
|
12
|
+
</div>
|
|
13
|
+
<hr>
|
|
14
|
+
<p></p>
|
|
15
|
+
</section>
|
|
16
|
+
|
|
17
|
+
<!--初始化默认封面-->
|
|
18
|
+
<section>
|
|
19
|
+
<h5>初始化默认封面</h5>
|
|
20
|
+
<p>通过 <code>v-model</code> 可以初始化及双向绑定上传图片内容。</p>
|
|
21
|
+
<div class="resize">
|
|
22
|
+
<imgs-upload-wid v-bind="data_2.props" v-model="data_2.remote_file" />
|
|
23
|
+
</div>
|
|
24
|
+
<hr>
|
|
25
|
+
<p></p>
|
|
26
|
+
</section>
|
|
27
|
+
|
|
28
|
+
<!--多图上传-->
|
|
29
|
+
<section>
|
|
30
|
+
<h5>多图上传</h5>
|
|
31
|
+
<p>通过开启 <code>multiple</code> 属性可以设置多图上传。</p>
|
|
32
|
+
<div class="resize">
|
|
33
|
+
<imgs-upload-wid v-bind="data_3.props"/>
|
|
34
|
+
</div>
|
|
35
|
+
<hr>
|
|
36
|
+
<p></p>
|
|
37
|
+
</section>
|
|
38
|
+
|
|
39
|
+
<!--初始化默认多封面-->
|
|
40
|
+
<section>
|
|
41
|
+
<h5>初始化默认多封面</h5>
|
|
42
|
+
<div class="resize">
|
|
43
|
+
<imgs-upload-wid v-bind="data_4.props" v-model="data_4.remote_files" />
|
|
44
|
+
</div>
|
|
45
|
+
<hr>
|
|
46
|
+
<p></p>
|
|
47
|
+
</section>
|
|
48
|
+
|
|
49
|
+
<!--单图上传预览-->
|
|
50
|
+
<section>
|
|
51
|
+
<h5>单图上传预览</h5>
|
|
52
|
+
<p>设置后续上传时,且关闭 <code>multiple</code> 属性,可进行单张图片上传前预览。</p>
|
|
53
|
+
<div class="resize">
|
|
54
|
+
<imgs-upload-wid v-bind="data_5.props" v-model="data_5.remote_files" />
|
|
55
|
+
</div>
|
|
56
|
+
<hr>
|
|
57
|
+
<p></p>
|
|
58
|
+
</section>
|
|
59
|
+
|
|
60
|
+
<!--多图上传预览-->
|
|
61
|
+
<section>
|
|
62
|
+
<h5>多图上传预览</h5>
|
|
63
|
+
<p>设置后续上传时,且开启 <code>multiple</code> 属性,可进行多张图片上传前预览。</p>
|
|
64
|
+
<div class="resize">
|
|
65
|
+
<imgs-upload-wid v-bind="data_6.props" v-model="data_6.remote_files" />
|
|
66
|
+
</div>
|
|
67
|
+
</section>
|
|
68
|
+
|
|
69
|
+
</article>
|
|
70
|
+
</template>
|
|
71
|
+
|
|
72
|
+
<script>
|
|
73
|
+
import HeaderInfo from "@/components/header-info"
|
|
74
|
+
import ImgsUploadWid from "@/components/BTXUI/imgsUpload/imgs-upload-wid"
|
|
75
|
+
import server from "@/assets/server.js"
|
|
76
|
+
|
|
77
|
+
const uploadApi = server.apis.upload;
|
|
78
|
+
|
|
79
|
+
export default {
|
|
80
|
+
name: "imgs_upload_wid_demo",
|
|
81
|
+
components: {
|
|
82
|
+
HeaderInfo,
|
|
83
|
+
ImgsUploadWid
|
|
84
|
+
},
|
|
85
|
+
data(){
|
|
86
|
+
return {
|
|
87
|
+
|
|
88
|
+
//初始化入参
|
|
89
|
+
header_info: {
|
|
90
|
+
name: ImgsUploadWid.name,
|
|
91
|
+
...ImgsUploadWid.introduce,
|
|
92
|
+
},
|
|
93
|
+
|
|
94
|
+
//服务接口
|
|
95
|
+
upload_api: uploadApi,
|
|
96
|
+
|
|
97
|
+
data_1: {
|
|
98
|
+
props: {
|
|
99
|
+
uploadApi,
|
|
100
|
+
width: 16,
|
|
101
|
+
height: 9,
|
|
102
|
+
notic: "要求尺寸:160 * 90"
|
|
103
|
+
}
|
|
104
|
+
},
|
|
105
|
+
|
|
106
|
+
data_2: {
|
|
107
|
+
props: {
|
|
108
|
+
uploadApi,
|
|
109
|
+
width: 10,
|
|
110
|
+
height: 7
|
|
111
|
+
},
|
|
112
|
+
remote_file: ["http://localhost/BTXphp/sea/static/img/test/test.jpg"]
|
|
113
|
+
},
|
|
114
|
+
|
|
115
|
+
data_3: {
|
|
116
|
+
props: {
|
|
117
|
+
uploadApi,
|
|
118
|
+
width: 10,
|
|
119
|
+
height: 7,
|
|
120
|
+
multiple: true
|
|
121
|
+
}
|
|
122
|
+
},
|
|
123
|
+
|
|
124
|
+
data_4: {
|
|
125
|
+
props: {
|
|
126
|
+
uploadApi,
|
|
127
|
+
width: 10,
|
|
128
|
+
height: 7,
|
|
129
|
+
multiple: true
|
|
130
|
+
},
|
|
131
|
+
remote_files: [
|
|
132
|
+
"http://localhost/BTXphp/sea/static/img/test/test.jpg",
|
|
133
|
+
"http://localhost/BTXphp/sea/static/img/test/test_1.jpg"
|
|
134
|
+
]
|
|
135
|
+
},
|
|
136
|
+
|
|
137
|
+
data_5: {
|
|
138
|
+
props: {
|
|
139
|
+
width: 10,
|
|
140
|
+
height: 7
|
|
141
|
+
},
|
|
142
|
+
remote_files: [
|
|
143
|
+
"http://localhost/BTXphp/sea/static/img/test/test.jpg"
|
|
144
|
+
]
|
|
145
|
+
},
|
|
146
|
+
|
|
147
|
+
data_6: {
|
|
148
|
+
props: {
|
|
149
|
+
width: 10,
|
|
150
|
+
height: 7,
|
|
151
|
+
multiple: true
|
|
152
|
+
},
|
|
153
|
+
remote_files: []
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
</script>
|
|
@@ -0,0 +1,158 @@
|
|
|
1
|
+
//功能组件
|
|
2
|
+
import content_wid_demo from './content_wid_demo'
|
|
3
|
+
import tag_wid_demo from './tag_wid_demo'
|
|
4
|
+
import tags_wid_demo from './tags_wid_demo'
|
|
5
|
+
import checkbox_wid_demo from './checkbox_wid_demo'
|
|
6
|
+
import carousel_wid_demo from './carousel_wid_demo'
|
|
7
|
+
import tab_wid_demo from './tab_wid_demo'
|
|
8
|
+
import page_flip_wid_demo from './page_flip_wid_demo'
|
|
9
|
+
import pannel_wid_demo from './pannel_wid_demo'
|
|
10
|
+
import form_pannel_wid_demo from './form_pannel_wid_demo'
|
|
11
|
+
import form_wid_demo from './form_wid_demo'
|
|
12
|
+
import btn_wid_demo from './btn_wid_demo'
|
|
13
|
+
import search_wid_demo from './search_wid_demo'
|
|
14
|
+
import confirm_wid_demo from './confirm_wid_demo'
|
|
15
|
+
import table_wid_demo from './table_wid_demo'
|
|
16
|
+
import select_wid_demo from './select_wid_demo'
|
|
17
|
+
import range_wid_demo from './range_wid_demo'
|
|
18
|
+
import upload_wid_demo from './upload_wid_demo'
|
|
19
|
+
import imgs_upload_wid_demo from './imgs_upload_wid_demo'
|
|
20
|
+
import slider_wid_demo from './slider_wid_demo'
|
|
21
|
+
import drawer_wid_demo from './drawer_wid_demo'
|
|
22
|
+
import tooltip_wid_demo from './tooltip_wid_demo'
|
|
23
|
+
import app_wid_demo from './app_wid_demo'
|
|
24
|
+
import app_wid_data_demo from './app/data_demo'
|
|
25
|
+
import app_wid_download_demo from './app/download_demo'
|
|
26
|
+
import app_wid_list_demo from './app/list_demo'
|
|
27
|
+
import app_wid_system_demo from './app/system_demo'
|
|
28
|
+
|
|
29
|
+
export default [
|
|
30
|
+
{
|
|
31
|
+
path: '/app_wid_demo',
|
|
32
|
+
component: app_wid_demo,
|
|
33
|
+
children: [
|
|
34
|
+
{
|
|
35
|
+
path: 'data',
|
|
36
|
+
component: app_wid_data_demo
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
path: 'download',
|
|
40
|
+
component: app_wid_download_demo
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
path: 'list',
|
|
44
|
+
component: app_wid_list_demo
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
path: 'system',
|
|
48
|
+
component: app_wid_system_demo
|
|
49
|
+
}
|
|
50
|
+
],
|
|
51
|
+
text: "<b>app-wid</b> app 基础布局"
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
path: '/btn_wid_demo',
|
|
55
|
+
component: btn_wid_demo,
|
|
56
|
+
text: "<b>btn-wid</b> 基础按钮"
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
path: '/checkbox_wid_demo',
|
|
60
|
+
component: checkbox_wid_demo,
|
|
61
|
+
text: "<b>checkbox-wid</b> 复选框"
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
path: '/carousel_wid_demo',
|
|
65
|
+
component: carousel_wid_demo,
|
|
66
|
+
text: "<b>carousel-wid</b> 走马灯"
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
path: '/confirm_wid_demo',
|
|
70
|
+
component: confirm_wid_demo,
|
|
71
|
+
text: "<b>confirm-wid</b> 确认弹窗"
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
path: '/content_wid_demo',
|
|
75
|
+
component: content_wid_demo,
|
|
76
|
+
text: "<b>content-wid</b> 树形目录"
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
path: '/drawer_wid_demo',
|
|
80
|
+
component: drawer_wid_demo,
|
|
81
|
+
text: "<b>drawer-wid</b> 抽屉折叠"
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
path: '/form_wid_demo',
|
|
85
|
+
component: form_wid_demo,
|
|
86
|
+
text: "<b>form-wid</b> 表单"
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
path: '/form_pannel_wid_demo',
|
|
90
|
+
component: form_pannel_wid_demo,
|
|
91
|
+
text: "<b>form-pannel-wid</b> 浮动表单面板"
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
path: '/imgs_upload_wid_demo',
|
|
95
|
+
component: imgs_upload_wid_demo,
|
|
96
|
+
text: "<b>imgs-upload-wid</b> 图片上传"
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
path: '/pannel_wid_demo',
|
|
100
|
+
component: pannel_wid_demo,
|
|
101
|
+
text: "<b>pannel-wid</b> 浮动面板"
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
path: '/page_flip_wid_demo',
|
|
105
|
+
component: page_flip_wid_demo,
|
|
106
|
+
text: "<b>page-flip-wid</b> 分页导航"
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
path: '/range_wid_demo',
|
|
110
|
+
component: range_wid_demo,
|
|
111
|
+
text: "<b>range-wid</b> 范围选择"
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
path: '/select_wid_demo',
|
|
115
|
+
component: select_wid_demo,
|
|
116
|
+
text: "<b>select-wid</b> 下拉选择"
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
path: '/slider_wid_demo',
|
|
120
|
+
component: slider_wid_demo,
|
|
121
|
+
text: "<b>slider-wid</b> 轮播器"
|
|
122
|
+
},
|
|
123
|
+
{
|
|
124
|
+
path: '/search_wid_demo',
|
|
125
|
+
component: search_wid_demo,
|
|
126
|
+
text: "<b>search-wid</b> 搜索栏"
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
path: '/table_wid_demo',
|
|
130
|
+
component: table_wid_demo,
|
|
131
|
+
text: "<b>table-wid</b> 表格"
|
|
132
|
+
},
|
|
133
|
+
{
|
|
134
|
+
path: '/tag_wid_demo',
|
|
135
|
+
component: tag_wid_demo,
|
|
136
|
+
text: "<b>tag-wid</b> 标签"
|
|
137
|
+
},
|
|
138
|
+
{
|
|
139
|
+
path: '/tags_wid_demo',
|
|
140
|
+
component: tags_wid_demo,
|
|
141
|
+
text: "<b>tags-wid</b> 标签组"
|
|
142
|
+
},
|
|
143
|
+
{
|
|
144
|
+
path: '/tab_wid_demo',
|
|
145
|
+
component: tab_wid_demo,
|
|
146
|
+
text: "<b>tab-wid</b> 标签切换"
|
|
147
|
+
},
|
|
148
|
+
{
|
|
149
|
+
path: '/tooltip_wid_demo',
|
|
150
|
+
component: tooltip_wid_demo,
|
|
151
|
+
text: "<b>tooltip-wid</b> 悬浮提示"
|
|
152
|
+
},
|
|
153
|
+
{
|
|
154
|
+
path: '/upload_wid_demo',
|
|
155
|
+
component: upload_wid_demo,
|
|
156
|
+
text: "<b>upload-wid</b> 文件上传"
|
|
157
|
+
},
|
|
158
|
+
]
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<article>
|
|
3
|
+
<header-info v-bind="header_info" />
|
|
4
|
+
|
|
5
|
+
<!--基础使用-->
|
|
6
|
+
<section>
|
|
7
|
+
<h5>基础使用</h5>
|
|
8
|
+
<p>组件会基于 <code>total</code> 总页数、<code>curPage</code> 当前页、<code>limit</code> 页码显示限制属性,自动进行分页导航布局。</p>
|
|
9
|
+
<p>通过 API <code>on_flip</code> 事件则可以获取当前页码。</p>
|
|
10
|
+
<p>【exp】total: 8、curPage: 2、limit: 3 demo 效果:</p>
|
|
11
|
+
<div class="resize bg-color-lgray pad-1 round-sm">
|
|
12
|
+
<page-flip-wid v-bind="data_1.props" @on_flip="$_show_page1" />
|
|
13
|
+
</div>
|
|
14
|
+
<p>当前页码:<code>{{data_1.cur_page}}</code></p>
|
|
15
|
+
<hr>
|
|
16
|
+
<p></p>
|
|
17
|
+
</section>
|
|
18
|
+
|
|
19
|
+
<!--风格化-->
|
|
20
|
+
<section>
|
|
21
|
+
<h5>风格化</h5>
|
|
22
|
+
<p>组件 <code>colors</code> 属性可设置组件按钮风格化样式。</p>
|
|
23
|
+
<div class="resize bg-color-dark pad-1 round-sm">
|
|
24
|
+
<page-flip-wid v-bind="data_2.props" />
|
|
25
|
+
</div>
|
|
26
|
+
<hr>
|
|
27
|
+
<p></p>
|
|
28
|
+
</section>
|
|
29
|
+
|
|
30
|
+
<!--水平对齐-->
|
|
31
|
+
<section>
|
|
32
|
+
<h5>水平对齐</h5>
|
|
33
|
+
<p>组件 <code>align</code> 属性可设置组件水平对齐方式,包括:left、center(默认)、right。</p>
|
|
34
|
+
<div class="resize bg-color-lgray pad-1 round-sm">
|
|
35
|
+
<page-flip-wid v-bind="data_3.props" />
|
|
36
|
+
</div>
|
|
37
|
+
</section>
|
|
38
|
+
|
|
39
|
+
</article>
|
|
40
|
+
</template>
|
|
41
|
+
|
|
42
|
+
<script>
|
|
43
|
+
import HeaderInfo from "@/components/header-info"
|
|
44
|
+
import PageFlipWid from "@/components/BTXUI/pageFlip/page-flip-wid"
|
|
45
|
+
|
|
46
|
+
export default {
|
|
47
|
+
name: "range_wid_demo",
|
|
48
|
+
components: {
|
|
49
|
+
HeaderInfo,
|
|
50
|
+
PageFlipWid
|
|
51
|
+
},
|
|
52
|
+
data(){
|
|
53
|
+
return {
|
|
54
|
+
|
|
55
|
+
//初始化入参
|
|
56
|
+
header_info: {
|
|
57
|
+
name: PageFlipWid.name,
|
|
58
|
+
...PageFlipWid.introduce,
|
|
59
|
+
},
|
|
60
|
+
|
|
61
|
+
data_1: {
|
|
62
|
+
props: {
|
|
63
|
+
total: 8,
|
|
64
|
+
curPage: 2,
|
|
65
|
+
limit: 3
|
|
66
|
+
},
|
|
67
|
+
cur_page: 2
|
|
68
|
+
},
|
|
69
|
+
|
|
70
|
+
data_2: {
|
|
71
|
+
props: {
|
|
72
|
+
total: 4,
|
|
73
|
+
colors: {
|
|
74
|
+
bg: "blue",
|
|
75
|
+
text: "#fff",
|
|
76
|
+
hover: "green",
|
|
77
|
+
act: "green"
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
},
|
|
81
|
+
|
|
82
|
+
data_3: {
|
|
83
|
+
props: {
|
|
84
|
+
total: 4,
|
|
85
|
+
align: "left"
|
|
86
|
+
}
|
|
87
|
+
},
|
|
88
|
+
|
|
89
|
+
}
|
|
90
|
+
},
|
|
91
|
+
methods: {
|
|
92
|
+
|
|
93
|
+
$_show_page1(page){
|
|
94
|
+
this.data_1.cur_page = page;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
</script>
|
|
@@ -0,0 +1,177 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<article>
|
|
3
|
+
<header-info v-bind="header_info" />
|
|
4
|
+
|
|
5
|
+
<!--基础自定义弹窗使用-->
|
|
6
|
+
<section>
|
|
7
|
+
<h5>基础自定义弹窗使用</h5>
|
|
8
|
+
<p>默认为居中弹出效果,且没有遮罩背景。</p>
|
|
9
|
+
<p class="flex resize">
|
|
10
|
+
<btn-wid btnText="切换弹窗" @on_click="data_1.visible = !data_1.visible" />
|
|
11
|
+
<pannel-wid v-model="data_1.visible">
|
|
12
|
+
<div class="color-mgray pcenter pad-2 w-20 round-md bg-color-light line thick-1 line-mgray shadow-sm">
|
|
13
|
+
<span class="color-blue">html + css</span>
|
|
14
|
+
</div>
|
|
15
|
+
</pannel-wid>
|
|
16
|
+
</p>
|
|
17
|
+
<hr>
|
|
18
|
+
<p></p>
|
|
19
|
+
</section>
|
|
20
|
+
|
|
21
|
+
<!--弹窗遮罩-->
|
|
22
|
+
<section>
|
|
23
|
+
<h5>弹窗遮罩</h5>
|
|
24
|
+
<p>可以启用 <code>matte</code> 属性来设置面板遮罩背景,默认为透明色,z 轴层级为 9。可以通过 <code>matte-color</code> 属性设置遮罩颜色,<code>matte-pattern</code> 属性设置遮罩图案,以及 <code>matte-z-index</code> 属性设置遮罩 z 轴层级。此外可以通过 <code>close-btn</code> 属性启用关闭按钮,或通过 <code>matte-close</code> 属性设置 "click" 或 "dblclick" 启用遮罩自身单击或双击关闭效果。</p>
|
|
25
|
+
<p class="flex resize">
|
|
26
|
+
<btn-wid btnText="显示弹窗" @on_click="data_2.visible = !data_2.visible" />
|
|
27
|
+
<pannel-wid v-model="data_2.visible" v-bind="data_2.props">
|
|
28
|
+
<div class="color-mgray pcenter pad-2 w-25 round-md bg-color-light line thick-1 line-mgray shadow-sm">
|
|
29
|
+
<span class="color-blue">javascript + typescript</span>
|
|
30
|
+
</div>
|
|
31
|
+
</pannel-wid>
|
|
32
|
+
</p>
|
|
33
|
+
<hr>
|
|
34
|
+
<p></p>
|
|
35
|
+
</section>
|
|
36
|
+
|
|
37
|
+
<!--定位弹窗-->
|
|
38
|
+
<section>
|
|
39
|
+
<h5>定位弹窗</h5>
|
|
40
|
+
<p>可以通过 <code>pos</code> 属性来对面板进行九宫格定位,属性值:1-9。之后可以通过 <code>offset-styles</code> 属性来进行位移调整。</p>
|
|
41
|
+
<p>【exp】右下方显示弹窗,向上位移 100px,向左位移 100px:</p>
|
|
42
|
+
<p class="flex resize">
|
|
43
|
+
<btn-wid btnText="显示弹窗" @on_click="data_3.visible = !data_3.visible" />
|
|
44
|
+
<pannel-wid v-model="data_3.visible" v-bind="data_3.props">
|
|
45
|
+
<div class="color-mgray pcenter pad-2 w-25 round-md bg-color-light line thick-1 line-mgray shadow-sm">
|
|
46
|
+
<span class="color-blue">vue VS react</span>
|
|
47
|
+
</div>
|
|
48
|
+
</pannel-wid>
|
|
49
|
+
</p>
|
|
50
|
+
<hr>
|
|
51
|
+
<p></p>
|
|
52
|
+
</section>
|
|
53
|
+
|
|
54
|
+
<!--全屏弹窗-->
|
|
55
|
+
<section>
|
|
56
|
+
<h5>全屏弹窗</h5>
|
|
57
|
+
<p>可以通过 <code>max-enable</code> 属性来启用满屏弹窗,<b>width</b> 字段设置面板宽度样式数值;<b>height</b> 字段设置面板高度样式数值;<b>bg</b> 字段设置面板背景色样式色值。通常启用满屏弹窗后无需再对插槽内容进行尺寸设置。</p>
|
|
58
|
+
<p class="flex resize">
|
|
59
|
+
<btn-wid btnText="显示全屏弹窗" @on_click="data_4.visible = !data_4.visible" />
|
|
60
|
+
<pannel-wid v-model="data_4.visible" v-bind="data_4.props">
|
|
61
|
+
<div class="flex-5 fsize-3 max">
|
|
62
|
+
<span class="color-blue">Full Screen !</span>
|
|
63
|
+
</div>
|
|
64
|
+
</pannel-wid>
|
|
65
|
+
</p>
|
|
66
|
+
<hr>
|
|
67
|
+
<p></p>
|
|
68
|
+
</section>
|
|
69
|
+
|
|
70
|
+
<!--侧边栏-->
|
|
71
|
+
<section>
|
|
72
|
+
<h5>侧边栏</h5>
|
|
73
|
+
<p>通过全屏设置可以变相实现侧边栏,同时可以更进一步通过 <code>transition</code> 属性设置面板的转场方式。</p>
|
|
74
|
+
<p class="flex resize">
|
|
75
|
+
<btn-wid btnText="显示侧边栏" @on_click="data_5.visible = !data_5.visible" />
|
|
76
|
+
<pannel-wid v-model="data_5.visible" v-bind="data_5.props">
|
|
77
|
+
<div class="fsize-1d1">
|
|
78
|
+
<ul class="pad-l-2 pad-v-3 color-sub">
|
|
79
|
+
<li class="pad-v-1 line-b thick-1 line-neutral">About Us</li>
|
|
80
|
+
<li class="pad-v-1 line-b thick-1 line-neutral">Production</li>
|
|
81
|
+
<li class="pad-v-1 line-b thick-1 line-neutral">Custom</li>
|
|
82
|
+
<li class="pad-v-1 line-b thick-1 line-neutral">Service</li>
|
|
83
|
+
<li class="pad-v-1">Contact Us</li>
|
|
84
|
+
</ul>
|
|
85
|
+
</div>
|
|
86
|
+
</pannel-wid>
|
|
87
|
+
</p>
|
|
88
|
+
</section>
|
|
89
|
+
|
|
90
|
+
</article>
|
|
91
|
+
</template>
|
|
92
|
+
|
|
93
|
+
<script>
|
|
94
|
+
import HeaderInfo from "@/components/header-info"
|
|
95
|
+
import BtnWid from "@/components/BTXUI/btn/btn-wid"
|
|
96
|
+
import PannelWid from "@/components/BTXUI/pannel/pannel-wid"
|
|
97
|
+
|
|
98
|
+
export default {
|
|
99
|
+
name: "pannel_wid_demo",
|
|
100
|
+
components: {
|
|
101
|
+
HeaderInfo,
|
|
102
|
+
BtnWid,
|
|
103
|
+
PannelWid
|
|
104
|
+
},
|
|
105
|
+
data(){
|
|
106
|
+
return {
|
|
107
|
+
|
|
108
|
+
//初始化入参
|
|
109
|
+
header_info: {
|
|
110
|
+
name: PannelWid.name,
|
|
111
|
+
...PannelWid.introduce,
|
|
112
|
+
},
|
|
113
|
+
|
|
114
|
+
data_1: {
|
|
115
|
+
visible: false
|
|
116
|
+
},
|
|
117
|
+
|
|
118
|
+
data_2: {
|
|
119
|
+
props: {
|
|
120
|
+
matte: true,
|
|
121
|
+
matteColor: "rgba(245,245,255,.7)",
|
|
122
|
+
mattePattern: require("@/assets/img/bg_pattern.png"),
|
|
123
|
+
closeBtn: true,
|
|
124
|
+
matteClose: "click"
|
|
125
|
+
},
|
|
126
|
+
visible: false
|
|
127
|
+
},
|
|
128
|
+
|
|
129
|
+
data_3: {
|
|
130
|
+
props: {
|
|
131
|
+
matte: true,
|
|
132
|
+
matteColor: "rgba(220,220,220,.7)",
|
|
133
|
+
closeBtn: true,
|
|
134
|
+
pos: 9,
|
|
135
|
+
offset: {
|
|
136
|
+
x: "f100px",
|
|
137
|
+
y: "f100px"
|
|
138
|
+
}
|
|
139
|
+
},
|
|
140
|
+
visible: false
|
|
141
|
+
},
|
|
142
|
+
|
|
143
|
+
data_4: {
|
|
144
|
+
props: {
|
|
145
|
+
closeBtn: true,
|
|
146
|
+
maxEnable: {
|
|
147
|
+
width: "100%",
|
|
148
|
+
height: "100%",
|
|
149
|
+
bg: "rgba(255,255,255,.94)",
|
|
150
|
+
}
|
|
151
|
+
},
|
|
152
|
+
visible: false
|
|
153
|
+
},
|
|
154
|
+
|
|
155
|
+
data_5: {
|
|
156
|
+
props: {
|
|
157
|
+
matte: true,
|
|
158
|
+
pos: 3,
|
|
159
|
+
transition: {
|
|
160
|
+
in_styles: "translateX-0",
|
|
161
|
+
out_styles: "translateX-100"
|
|
162
|
+
},
|
|
163
|
+
matteColor: "rgba(40,40,40,.7)",
|
|
164
|
+
matteClose: "click",
|
|
165
|
+
maxEnable: {
|
|
166
|
+
width: 20,
|
|
167
|
+
height: "100%",
|
|
168
|
+
bg: "dark",
|
|
169
|
+
}
|
|
170
|
+
},
|
|
171
|
+
visible: false
|
|
172
|
+
},
|
|
173
|
+
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
</script>
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<article>
|
|
3
|
+
<header-info v-bind="header_info" />
|
|
4
|
+
|
|
5
|
+
<!--基础使用-->
|
|
6
|
+
<section>
|
|
7
|
+
<h5>基础使用</h5>
|
|
8
|
+
<p>通过 v-model 可以初始化及双向绑定拖动数值;通过 <code>min</code> 及 <code>max</code> 属性可以设置滑块拖动区间的最大、最小值。</p>
|
|
9
|
+
<div class="resize rw-50p rw-100p-s">
|
|
10
|
+
<range-wid v-bind="data_1.props" v-model="data_1.cur_val" />
|
|
11
|
+
</div>
|
|
12
|
+
<p>当前选择数据:{{data_1.cur_val}}</p>
|
|
13
|
+
<hr>
|
|
14
|
+
<p></p>
|
|
15
|
+
</section>
|
|
16
|
+
|
|
17
|
+
<!--风格化-->
|
|
18
|
+
<section>
|
|
19
|
+
<h5>风格化</h5>
|
|
20
|
+
<p>组件 <code>blockSize</code> 属性可设置拖拽滑块的宽高尺寸;<code>colors</code> 字段可设置配色风格,包括:<b>normal</b> 滑块常规色、<b>act</b> 滑块激活色、<b>track</b> 滑块轨道颜色。</p>
|
|
21
|
+
<div class="resize rw-50p rw-100p-s">
|
|
22
|
+
<range-wid v-bind="data_2.props" v-model="data_2.cur_val" />
|
|
23
|
+
</div>
|
|
24
|
+
<hr>
|
|
25
|
+
<p></p>
|
|
26
|
+
</section>
|
|
27
|
+
|
|
28
|
+
<!--步进设置-->
|
|
29
|
+
<section>
|
|
30
|
+
<h5>步进设置</h5>
|
|
31
|
+
<p>组件 <code>step</code> 属性可以设置拖动歩进值。</p>
|
|
32
|
+
<div class="resize rw-50p rw-100p-s">
|
|
33
|
+
<range-wid v-bind="data_3.props" v-model="data_3.cur_val" />
|
|
34
|
+
</div>
|
|
35
|
+
<p>当前选择数据:{{data_3.cur_val}}</p>
|
|
36
|
+
</section>
|
|
37
|
+
</article>
|
|
38
|
+
</template>
|
|
39
|
+
|
|
40
|
+
<script>
|
|
41
|
+
import HeaderInfo from "@/components/header-info"
|
|
42
|
+
import RangeWid from "@/components/BTXUI/range/range-wid"
|
|
43
|
+
|
|
44
|
+
export default {
|
|
45
|
+
name: "range_wid_demo",
|
|
46
|
+
components: {
|
|
47
|
+
HeaderInfo,
|
|
48
|
+
RangeWid
|
|
49
|
+
},
|
|
50
|
+
data(){
|
|
51
|
+
return {
|
|
52
|
+
|
|
53
|
+
//初始化入参
|
|
54
|
+
header_info: {
|
|
55
|
+
name: RangeWid.name,
|
|
56
|
+
...RangeWid.introduce,
|
|
57
|
+
},
|
|
58
|
+
|
|
59
|
+
data_1: {
|
|
60
|
+
props: {
|
|
61
|
+
min: 0,
|
|
62
|
+
max: 100,
|
|
63
|
+
},
|
|
64
|
+
cur_val: 0
|
|
65
|
+
},
|
|
66
|
+
|
|
67
|
+
data_2: {
|
|
68
|
+
props: {
|
|
69
|
+
min: 0,
|
|
70
|
+
max: 100,
|
|
71
|
+
blockSize: {
|
|
72
|
+
width: 3.7,
|
|
73
|
+
height: 3.7,
|
|
74
|
+
},
|
|
75
|
+
colors: {
|
|
76
|
+
normal: {
|
|
77
|
+
bg: "sub",
|
|
78
|
+
line: "none"
|
|
79
|
+
},
|
|
80
|
+
act: {
|
|
81
|
+
bg: "blue",
|
|
82
|
+
line: "none"
|
|
83
|
+
},
|
|
84
|
+
track: "dgray"
|
|
85
|
+
}
|
|
86
|
+
},
|
|
87
|
+
cur_val: 0
|
|
88
|
+
},
|
|
89
|
+
|
|
90
|
+
data_3: {
|
|
91
|
+
props: {
|
|
92
|
+
min: 0,
|
|
93
|
+
max: 100,
|
|
94
|
+
},
|
|
95
|
+
cur_val: 0
|
|
96
|
+
},
|
|
97
|
+
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
</script>
|