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,37 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<article>
|
|
3
|
+
<p>BTX·UI 还预置了一些特殊样式。</p>
|
|
4
|
+
<table class="table">
|
|
5
|
+
<thead>
|
|
6
|
+
<tr>
|
|
7
|
+
<th>样式类</th>
|
|
8
|
+
<th>效果</th>
|
|
9
|
+
</tr>
|
|
10
|
+
</thead>
|
|
11
|
+
<tbody>
|
|
12
|
+
<tr>
|
|
13
|
+
<td><code>.bg-none</code></td>
|
|
14
|
+
<td>背景点透效果</td>
|
|
15
|
+
</tr>
|
|
16
|
+
<tr>
|
|
17
|
+
<td><code>.bg-use</code></td>
|
|
18
|
+
<td>背景常规效果(非点透)</td>
|
|
19
|
+
</tr>
|
|
20
|
+
<tr>
|
|
21
|
+
<td><code>.touch-none</code></td>
|
|
22
|
+
<td>元素触控禁止</td>
|
|
23
|
+
</tr>
|
|
24
|
+
<tr>
|
|
25
|
+
<td><code>.select-none</code></td>
|
|
26
|
+
<td>元素长按选中禁止</td>
|
|
27
|
+
</tr>
|
|
28
|
+
</tbody>
|
|
29
|
+
</table>
|
|
30
|
+
</article>
|
|
31
|
+
</template>
|
|
32
|
+
|
|
33
|
+
<script>
|
|
34
|
+
export default {
|
|
35
|
+
name: "special"
|
|
36
|
+
};
|
|
37
|
+
</script>
|
|
@@ -0,0 +1,298 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<article>
|
|
3
|
+
<section>
|
|
4
|
+
<h5>表格</h5>
|
|
5
|
+
<p>框架预置了常用的表格样式,通过为 <code><table></code> 添加 <code>.table</code> 样式类来实现。</p>
|
|
6
|
+
<p>【示例】:</p>
|
|
7
|
+
<table class="table">
|
|
8
|
+
<thead>
|
|
9
|
+
<tr>
|
|
10
|
+
<th>Name</th>
|
|
11
|
+
<th>Skill</th>
|
|
12
|
+
</tr>
|
|
13
|
+
</thead>
|
|
14
|
+
<tbody>
|
|
15
|
+
<tr>
|
|
16
|
+
<td>Neo</td>
|
|
17
|
+
<td>javascript</td>
|
|
18
|
+
</tr>
|
|
19
|
+
<tr>
|
|
20
|
+
<td>Lucy</td>
|
|
21
|
+
<td>java</td>
|
|
22
|
+
</tr>
|
|
23
|
+
<tr>
|
|
24
|
+
<td>Nick</td>
|
|
25
|
+
<td>python</td>
|
|
26
|
+
</tr>
|
|
27
|
+
<tr>
|
|
28
|
+
<td>Tommy</td>
|
|
29
|
+
<td>dart + flutter</td>
|
|
30
|
+
</tr>
|
|
31
|
+
</tbody>
|
|
32
|
+
</table>
|
|
33
|
+
<p></p>
|
|
34
|
+
</section>
|
|
35
|
+
|
|
36
|
+
<!--宽松尺寸表格-->
|
|
37
|
+
<section>
|
|
38
|
+
<p>宽松尺寸表格:</p>
|
|
39
|
+
<p>通过添加 <code>easy</code> 属性来实现。</p>
|
|
40
|
+
<p>【示例】:</p>
|
|
41
|
+
<table class="table" easy>
|
|
42
|
+
<thead>
|
|
43
|
+
<tr>
|
|
44
|
+
<th>Name</th>
|
|
45
|
+
<th>Skill</th>
|
|
46
|
+
</tr>
|
|
47
|
+
</thead>
|
|
48
|
+
<tbody>
|
|
49
|
+
<tr>
|
|
50
|
+
<td>Neo</td>
|
|
51
|
+
<td>javascript</td>
|
|
52
|
+
</tr>
|
|
53
|
+
<tr>
|
|
54
|
+
<td>Lucy</td>
|
|
55
|
+
<td>java</td>
|
|
56
|
+
</tr>
|
|
57
|
+
<tr>
|
|
58
|
+
<td>Nick</td>
|
|
59
|
+
<td>python</td>
|
|
60
|
+
</tr>
|
|
61
|
+
<tr>
|
|
62
|
+
<td>Tommy</td>
|
|
63
|
+
<td>dart + flutter</td>
|
|
64
|
+
</tr>
|
|
65
|
+
</tbody>
|
|
66
|
+
</table>
|
|
67
|
+
<p></p>
|
|
68
|
+
</section>
|
|
69
|
+
|
|
70
|
+
<!--紧凑尺寸表格-->
|
|
71
|
+
<section>
|
|
72
|
+
<p>紧凑尺寸表格:</p>
|
|
73
|
+
<p>通过添加 <code>compact</code> 属性来实现。</p>
|
|
74
|
+
<p>【示例】:</p>
|
|
75
|
+
<table class="table" compact>
|
|
76
|
+
<thead>
|
|
77
|
+
<tr>
|
|
78
|
+
<th>Name</th>
|
|
79
|
+
<th>Skill</th>
|
|
80
|
+
</tr>
|
|
81
|
+
</thead>
|
|
82
|
+
<tbody>
|
|
83
|
+
<tr>
|
|
84
|
+
<td>Neo</td>
|
|
85
|
+
<td>javascript</td>
|
|
86
|
+
</tr>
|
|
87
|
+
<tr>
|
|
88
|
+
<td>Lucy</td>
|
|
89
|
+
<td>java</td>
|
|
90
|
+
</tr>
|
|
91
|
+
<tr>
|
|
92
|
+
<td>Nick</td>
|
|
93
|
+
<td>python</td>
|
|
94
|
+
</tr>
|
|
95
|
+
<tr>
|
|
96
|
+
<td>Tommy</td>
|
|
97
|
+
<td>dart + flutter</td>
|
|
98
|
+
</tr>
|
|
99
|
+
</tbody>
|
|
100
|
+
</table>
|
|
101
|
+
<p></p>
|
|
102
|
+
</section>
|
|
103
|
+
|
|
104
|
+
<!--线框表格-->
|
|
105
|
+
<section>
|
|
106
|
+
<p>线框表格:</p>
|
|
107
|
+
<p>通过添加 <code>border</code> 属性来实现,线框颜色可以通过框架预置色彩进行设置。</p>
|
|
108
|
+
<p>【示例】:</p>
|
|
109
|
+
<table class="table" border>
|
|
110
|
+
<thead>
|
|
111
|
+
<tr>
|
|
112
|
+
<th>Name</th>
|
|
113
|
+
<th>Skill</th>
|
|
114
|
+
</tr>
|
|
115
|
+
</thead>
|
|
116
|
+
<tbody>
|
|
117
|
+
<tr>
|
|
118
|
+
<td>Neo</td>
|
|
119
|
+
<td>javascript</td>
|
|
120
|
+
</tr>
|
|
121
|
+
<tr>
|
|
122
|
+
<td>Lucy</td>
|
|
123
|
+
<td>java</td>
|
|
124
|
+
</tr>
|
|
125
|
+
<tr>
|
|
126
|
+
<td>Nick</td>
|
|
127
|
+
<td>python</td>
|
|
128
|
+
</tr>
|
|
129
|
+
<tr>
|
|
130
|
+
<td>Tommy</td>
|
|
131
|
+
<td>dart + flutter</td>
|
|
132
|
+
</tr>
|
|
133
|
+
</tbody>
|
|
134
|
+
</table>
|
|
135
|
+
<p></p>
|
|
136
|
+
</section>
|
|
137
|
+
|
|
138
|
+
<!--响应式表格-->
|
|
139
|
+
<section>
|
|
140
|
+
<p>响应式表格:</p>
|
|
141
|
+
<p>通过添加 <code>response</code> 属性来实现,该属性实际只控制单元格文本内容不自动换行,要真正实现响应式效果需要对表格包裹一层结构,并通过设置 <code>.auto-h-scroll</code>
|
|
142
|
+
样式类实现。</p>
|
|
143
|
+
<p>【示例】:</p>
|
|
144
|
+
<div class="grid">
|
|
145
|
+
<div class="col-6 pad-r-1">
|
|
146
|
+
<div class="auto-h-scroll">
|
|
147
|
+
<table class="table" response>
|
|
148
|
+
<thead>
|
|
149
|
+
<tr>
|
|
150
|
+
<th>Name</th>
|
|
151
|
+
<th>Skill</th>
|
|
152
|
+
</tr>
|
|
153
|
+
</thead>
|
|
154
|
+
<tbody>
|
|
155
|
+
<tr>
|
|
156
|
+
<td>Neo</td>
|
|
157
|
+
<td>javascript</td>
|
|
158
|
+
</tr>
|
|
159
|
+
<tr>
|
|
160
|
+
<td>Lucy</td>
|
|
161
|
+
<td>java</td>
|
|
162
|
+
</tr>
|
|
163
|
+
<tr>
|
|
164
|
+
<td>Nick</td>
|
|
165
|
+
<td>python</td>
|
|
166
|
+
</tr>
|
|
167
|
+
<tr>
|
|
168
|
+
<td>Tommy</td>
|
|
169
|
+
<td>dart + flutter</td>
|
|
170
|
+
</tr>
|
|
171
|
+
</tbody>
|
|
172
|
+
</table>
|
|
173
|
+
</div>
|
|
174
|
+
<div class="pcenter mrg-t-2 fsize-d9">表格宽度未溢出</div>
|
|
175
|
+
</div>
|
|
176
|
+
<div class="col-6 pad-l-1">
|
|
177
|
+
<div class="auto-h-scroll">
|
|
178
|
+
<table class="table" response>
|
|
179
|
+
<thead>
|
|
180
|
+
<tr>
|
|
181
|
+
<th>Name</th>
|
|
182
|
+
<th>Skill</th>
|
|
183
|
+
<th>Age</th>
|
|
184
|
+
<th>Home</th>
|
|
185
|
+
<th>Website</th>
|
|
186
|
+
</tr>
|
|
187
|
+
</thead>
|
|
188
|
+
<tbody>
|
|
189
|
+
<tr>
|
|
190
|
+
<td>Neo</td>
|
|
191
|
+
<td>javascript</td>
|
|
192
|
+
<td>24</td>
|
|
193
|
+
<td>Australia</td>
|
|
194
|
+
<td>http://www.javascript.75sea.com</td>
|
|
195
|
+
</tr>
|
|
196
|
+
<tr>
|
|
197
|
+
<td>Lucy</td>
|
|
198
|
+
<td>java</td>
|
|
199
|
+
<td>27</td>
|
|
200
|
+
<td>Britain</td>
|
|
201
|
+
<td>http://www.java.75sea.com</td>
|
|
202
|
+
</tr>
|
|
203
|
+
<tr>
|
|
204
|
+
<td>Nick</td>
|
|
205
|
+
<td>python</td>
|
|
206
|
+
<td>31</td>
|
|
207
|
+
<td>Britain</td>
|
|
208
|
+
<td>http://www.python.75sea.com</td>
|
|
209
|
+
</tr>
|
|
210
|
+
<tr>
|
|
211
|
+
<td>Tommy</td>
|
|
212
|
+
<td>dart + flutter</td>
|
|
213
|
+
<td>27</td>
|
|
214
|
+
<td>Norway</td>
|
|
215
|
+
<td>http://www.dart.75sea.com</td>
|
|
216
|
+
</tr>
|
|
217
|
+
</tbody>
|
|
218
|
+
</table>
|
|
219
|
+
</div>
|
|
220
|
+
<div class="pcenter mrg-t-1 fsize-d9">表格宽度溢出,出现横向滚动条</div>
|
|
221
|
+
</div>
|
|
222
|
+
</div>
|
|
223
|
+
<p></p>
|
|
224
|
+
</section>
|
|
225
|
+
|
|
226
|
+
<!--暗色表格-->
|
|
227
|
+
<section>
|
|
228
|
+
<p>暗色表格:</p>
|
|
229
|
+
<p>通过添加 <code>dark</code> 属性来实现。暗色表格也可同时启用线框样式。</p>
|
|
230
|
+
<p>【示例】:</p>
|
|
231
|
+
<div class="grid">
|
|
232
|
+
<div class="col-6 pad-r-1">
|
|
233
|
+
<table class="table" dark>
|
|
234
|
+
<thead>
|
|
235
|
+
<tr>
|
|
236
|
+
<th>Name</th>
|
|
237
|
+
<th>Skill</th>
|
|
238
|
+
</tr>
|
|
239
|
+
</thead>
|
|
240
|
+
<tbody>
|
|
241
|
+
<tr>
|
|
242
|
+
<td>Neo</td>
|
|
243
|
+
<td>javascript</td>
|
|
244
|
+
</tr>
|
|
245
|
+
<tr>
|
|
246
|
+
<td>Lucy</td>
|
|
247
|
+
<td>java</td>
|
|
248
|
+
</tr>
|
|
249
|
+
<tr>
|
|
250
|
+
<td>Nick</td>
|
|
251
|
+
<td>python</td>
|
|
252
|
+
</tr>
|
|
253
|
+
<tr>
|
|
254
|
+
<td>Tommy</td>
|
|
255
|
+
<td>dart + flutter</td>
|
|
256
|
+
</tr>
|
|
257
|
+
</tbody>
|
|
258
|
+
</table>
|
|
259
|
+
</div>
|
|
260
|
+
<div class="col-6 pad-l-1">
|
|
261
|
+
<table class="table" dark border>
|
|
262
|
+
<thead>
|
|
263
|
+
<tr>
|
|
264
|
+
<th>Name</th>
|
|
265
|
+
<th>Skill</th>
|
|
266
|
+
</tr>
|
|
267
|
+
</thead>
|
|
268
|
+
<tbody>
|
|
269
|
+
<tr>
|
|
270
|
+
<td>Neo</td>
|
|
271
|
+
<td>javascript</td>
|
|
272
|
+
</tr>
|
|
273
|
+
<tr>
|
|
274
|
+
<td>Lucy</td>
|
|
275
|
+
<td>java</td>
|
|
276
|
+
</tr>
|
|
277
|
+
<tr>
|
|
278
|
+
<td>Nick</td>
|
|
279
|
+
<td>python</td>
|
|
280
|
+
</tr>
|
|
281
|
+
<tr>
|
|
282
|
+
<td>Tommy</td>
|
|
283
|
+
<td>dart + flutter</td>
|
|
284
|
+
</tr>
|
|
285
|
+
</tbody>
|
|
286
|
+
</table>
|
|
287
|
+
</div>
|
|
288
|
+
</div>
|
|
289
|
+
</section>
|
|
290
|
+
|
|
291
|
+
</article>
|
|
292
|
+
</template>
|
|
293
|
+
|
|
294
|
+
<script>
|
|
295
|
+
export default {
|
|
296
|
+
name: "Table"
|
|
297
|
+
};
|
|
298
|
+
</script>
|
|
@@ -0,0 +1,159 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<article>
|
|
3
|
+
<!--标题-->
|
|
4
|
+
<section>
|
|
5
|
+
<h5>标题</h5>
|
|
6
|
+
<p>BTX·UI 重置了 <code><h1></code> - <code><h6></code> 的标题样式。使用相对单位 em,由 <code><h6></code>
|
|
7
|
+
到 <code><h1></code> 字号逐渐放大至 2 倍。</p>
|
|
8
|
+
<p>【示例】:</p>
|
|
9
|
+
<div class="flex-4 container-sm">
|
|
10
|
+
<h1 class="grow-1">h1</h1>
|
|
11
|
+
<h2 class="grow-1">h2</h2>
|
|
12
|
+
<h3 class="grow-1">h3</h3>
|
|
13
|
+
<h4 class="grow-1">h4</h4>
|
|
14
|
+
<h5 class="grow-1">h5</h5>
|
|
15
|
+
<h6>h6</h6>
|
|
16
|
+
</div>
|
|
17
|
+
<p></p>
|
|
18
|
+
</section>
|
|
19
|
+
|
|
20
|
+
<!--文本对齐-->
|
|
21
|
+
<section>
|
|
22
|
+
<h5>文本对齐</h5>
|
|
23
|
+
<table class="table">
|
|
24
|
+
<thead>
|
|
25
|
+
<tr>
|
|
26
|
+
<th>样式类</th>
|
|
27
|
+
<th>效果</th>
|
|
28
|
+
</tr>
|
|
29
|
+
</thead>
|
|
30
|
+
<tbody>
|
|
31
|
+
<tr>
|
|
32
|
+
<td><code>.pleft</code></td>
|
|
33
|
+
<td>文本左对齐</td>
|
|
34
|
+
</tr>
|
|
35
|
+
<tr>
|
|
36
|
+
<td><code>.pright</code></td>
|
|
37
|
+
<td>文本右对齐</td>
|
|
38
|
+
</tr>
|
|
39
|
+
<tr>
|
|
40
|
+
<td><code>.pcenter</code></td>
|
|
41
|
+
<td>文本居中对齐</td>
|
|
42
|
+
</tr>
|
|
43
|
+
<tr>
|
|
44
|
+
<td><code>.pjustify</code></td>
|
|
45
|
+
<td>文本两端对齐</td>
|
|
46
|
+
</tr>
|
|
47
|
+
</tbody>
|
|
48
|
+
</table>
|
|
49
|
+
<p>【示例】:</p>
|
|
50
|
+
<div class="grid fsize-d9">
|
|
51
|
+
<div class="col-3 pad-d5 col-6-s">
|
|
52
|
+
<div class="bg-color-lgray round-sm pad-2 pleft">
|
|
53
|
+
在重视劳动和尊重劳动者的基础上,我们有可能来创造自己的新的道德。劳动和科学是世界上最伟大的两种力量。
|
|
54
|
+
</div>
|
|
55
|
+
<div class="pcenter pad-t-d5">pleft</div>
|
|
56
|
+
</div>
|
|
57
|
+
<div class="col-3 pad-d5 col-6-s">
|
|
58
|
+
<div class="bg-color-lgray round-sm pad-2 pright">
|
|
59
|
+
在重视劳动和尊重劳动者的基础上,我们有可能来创造自己的新的道德。劳动和科学是世界上最伟大的两种力量。
|
|
60
|
+
</div>
|
|
61
|
+
<div class="pcenter pad-t-d5">pright</div>
|
|
62
|
+
</div>
|
|
63
|
+
<div class="col-3 pad-d5 col-6-s">
|
|
64
|
+
<div class="bg-color-lgray round-sm pad-2 pcenter">
|
|
65
|
+
在重视劳动和尊重劳动者的基础上,我们有可能来创造自己的新的道德。劳动和科学是世界上最伟大的两种力量。
|
|
66
|
+
</div>
|
|
67
|
+
<div class="pcenter pad-t-d5">pcenter</div>
|
|
68
|
+
</div>
|
|
69
|
+
<div class="col-3 pad-d5 col-6-s">
|
|
70
|
+
<div class="bg-color-lgray round-sm pad-2 pjustify">
|
|
71
|
+
在重视劳动和尊重劳动者的基础上,我们有可能来创造自己的新的道德。劳动和科学是世界上最伟大的两种力量。
|
|
72
|
+
</div>
|
|
73
|
+
<div class="pcenter pad-t-d5">pjustify</div>
|
|
74
|
+
</div>
|
|
75
|
+
</div>
|
|
76
|
+
<p></p>
|
|
77
|
+
</section>
|
|
78
|
+
|
|
79
|
+
<!--字号-->
|
|
80
|
+
<section>
|
|
81
|
+
<h5>字号</h5>
|
|
82
|
+
<p>通过 <code>.fsize-*</code> 可以设置元素内文本以及后代元素的文本字号,这里的字号为相对父元素的字号放缩比率。</p>
|
|
83
|
+
<p>预置的字号比率值:0 — 0.9、1 — 1.9、2、2.5、3、3.5、4、4.5、5、5.5,单位 em。数值 "." 使用 "d" 代替,"0" 使用 ""
|
|
84
|
+
空字符串代替。比如缩小为 0.9 倍,类名为 <code>.fsize-d9</code>。<code>.fsize-0</code> 可设置 0 号字。</p>
|
|
85
|
+
<p>【示例】:</p>
|
|
86
|
+
<div class="grid pcenter">
|
|
87
|
+
<div class="col-3 pad-d5 col-6-s">
|
|
88
|
+
<div class="bg-color-lgray round-sm pad-1 flex-4 flex-2 h-6">javascript</div>
|
|
89
|
+
<div class="pad-t-d5 fsize-d9">初始文本大小</div>
|
|
90
|
+
</div>
|
|
91
|
+
<div class="col-3 pad-d5 col-6-s">
|
|
92
|
+
<div class="bg-color-lgray round-sm pad-1 flex-4 flex-2 fsize-d6 h-6">javascript
|
|
93
|
+
</div>
|
|
94
|
+
<div class="pad-t-d5 fsize-d9"><code>.fsize-d6</code> 缩小为 0.6 倍字号</div>
|
|
95
|
+
</div>
|
|
96
|
+
<div class="col-3 pad-d5 col-6-s">
|
|
97
|
+
<div class="bg-color-lgray round-sm pad-1 flex-4 flex-2 fsize-1d2 h-6">javascript
|
|
98
|
+
</div>
|
|
99
|
+
<div class="pad-t-d5 fsize-d9"><code>.fsize-1d2</code> 放大 1.2 倍字号</div>
|
|
100
|
+
</div>
|
|
101
|
+
<div class="col-3 pad-d5 col-6-s">
|
|
102
|
+
<div class="bg-color-lgray round-sm pad-1 flex-4 flex-2 fsize-2 h-6">javascript
|
|
103
|
+
</div>
|
|
104
|
+
<div class="pad-t-d5 fsize-d9"><code>.fsize-2</code> 放大 2 倍字号</div>
|
|
105
|
+
</div>
|
|
106
|
+
</div>
|
|
107
|
+
<p></p>
|
|
108
|
+
</section>
|
|
109
|
+
|
|
110
|
+
<!--字符间距-->
|
|
111
|
+
<section>
|
|
112
|
+
<h5>字符间距</h5>
|
|
113
|
+
<p>通过 <code>.lspace-*</code> 可以设置文本内容的字符间距。默认的字符间距,框架已经进行了 1px 的初始化,预置的间距值:0 — 5,单位 px。
|
|
114
|
+
</p>
|
|
115
|
+
<p></p>
|
|
116
|
+
</section>
|
|
117
|
+
|
|
118
|
+
<!--省略文本-->
|
|
119
|
+
<section>
|
|
120
|
+
<h5>省略文本</h5>
|
|
121
|
+
<p>通过 <code>.no-wrap</code> 可以设置文本禁止换行。而 <code>.ellipsis</code> 可以设置单行文本溢出省略。</p>
|
|
122
|
+
<p>【示例】:</p>
|
|
123
|
+
<p class="ellipsis w-15">
|
|
124
|
+
<abbr title="javascript 和 php 谁是世界上最好的语言呢?">javascript 和 php 谁是世界上最好的语言呢?</abbr>
|
|
125
|
+
</p>
|
|
126
|
+
<p></p>
|
|
127
|
+
</section>
|
|
128
|
+
|
|
129
|
+
<!--代码-->
|
|
130
|
+
<section>
|
|
131
|
+
<h5>代码</h5>
|
|
132
|
+
<p>BTX·UI 重置了 <code><code></code> 样式,以实现行级代码样式。</p>
|
|
133
|
+
<p>【示例】:</p>
|
|
134
|
+
<p>在编写 javascript 代码时,可以使用 <code>console.log("调试内容")</code> 函数进行调试。</p>
|
|
135
|
+
<p></p>
|
|
136
|
+
</section>
|
|
137
|
+
|
|
138
|
+
<!--文章格式-->
|
|
139
|
+
<section>
|
|
140
|
+
<h5>文章格式</h5>
|
|
141
|
+
<p>BTX·UI 重置了 <code><article></code> 样式,以优化文章阅读格式。在 <code><article></code>包裹的内容中:</p>
|
|
142
|
+
<ol>
|
|
143
|
+
<li>基于 1.2rem 的文本大小</li>
|
|
144
|
+
<li>1.7 倍行高</li>
|
|
145
|
+
<li>标题、列表,具有下边距</li>
|
|
146
|
+
<li>拥有 "编辑模式" 样式优化</li>
|
|
147
|
+
<li>图片宽度为 100%</li>
|
|
148
|
+
</ol>
|
|
149
|
+
<p>此外还提供了 <code>.resize</code> 样式类用于恢复初始字号及行高。</p>
|
|
150
|
+
</section>
|
|
151
|
+
|
|
152
|
+
</article>
|
|
153
|
+
</template>
|
|
154
|
+
|
|
155
|
+
<script>
|
|
156
|
+
export default {
|
|
157
|
+
name: "Text"
|
|
158
|
+
};
|
|
159
|
+
</script>
|
package/pages/index.vue
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<article>
|
|
3
|
+
<p class="pcenter-s">
|
|
4
|
+
<img class="h-5 h-4-s" src="@/assets/img/btx_ui.jpg">
|
|
5
|
+
</p>
|
|
6
|
+
<p>BTX·UI 是一套基于 Vue 2.0 为开发者准备的多端组件库,可以帮助工程师快速开发。使用组件 Demo 可以快速体验交互细节。</p>
|
|
7
|
+
<div class="bg-color line line-neutral thick-1 round-sm pad-d5 grid">
|
|
8
|
+
<div class="col-4 flex-1 flex-2-s col-12-s">
|
|
9
|
+
<img src="@/assets/img/btx.jpg" class="round-sm">
|
|
10
|
+
</div>
|
|
11
|
+
<div class="col-8 flex-4 flex-2-s pcenter-s col-12-s">
|
|
12
|
+
<div class="pad-l-4 pad-l-0-s">
|
|
13
|
+
<p><span class="alpha-d7">框架作者 - </span><br><b class="fsize-1d2">btx·STU 邢天博</b></p>
|
|
14
|
+
<p>UI 架构师<span class="alpha-d2 mrg-h-1 mrg-h-d5-s">|</span>全栈工程师<span class="alpha-d2 mrg-h-1 mrg-h-d5-s">|</span>视觉设计师</p>
|
|
15
|
+
</div>
|
|
16
|
+
</div>
|
|
17
|
+
</div>
|
|
18
|
+
<p></p>
|
|
19
|
+
|
|
20
|
+
<!--设计原则-->
|
|
21
|
+
<section>
|
|
22
|
+
<h5>设计原则</h5>
|
|
23
|
+
<p><b class="mrg-r-1 color-sub">· 全局样式</b>BTX·UI 采用渐进式设计方案,用户可以只使用全局样式库来进行快速网页设计,并可根据需要进行响应式布局分段样式库引用;</p>
|
|
24
|
+
<p><b class="mrg-r-1 color-sub">· 主题组件</b>对于开发 webapp 类大型应用,推荐使用组件来进行开发,框架预置了一套完善的 "Level 风格主题 UI 库<span class="alpha-d6">(高阶组件库)</span>",配合 "基础组件"<span class="alpha-d6">(主要实现基础布局)</span>,可快速构建 web 应用;</p>
|
|
25
|
+
<p><b class="mrg-r-1 color-sub">· 应用组件</b>对于定制化程度更高的应用开发,可以使用 "基础组件" + "应用组件" 配合 styles 样式实现机制,来进行底层打造。甚至可以进行二次封装,构建一套定制化主题组件;</p>
|
|
26
|
+
<p>全局样式秉持 web 开发传统的 "样式复用" 理念,而组件应用则推崇新兴的 "组件复用" 理念,根据实际应用场景可以选择不同的开发模式。此外,全局样式也可以与组件进行混合使用。</p>
|
|
27
|
+
</section>
|
|
28
|
+
</article>
|
|
29
|
+
</template>
|