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.
Files changed (197) hide show
  1. package/demo.html +1 -0
  2. package/index.common.js +93 -0
  3. package/index.common.js.map +1 -0
  4. package/index.umd.js +104 -0
  5. package/index.umd.js.map +1 -0
  6. package/index.umd.min.js +2 -0
  7. package/index.umd.min.js.map +1 -0
  8. package/package.json +12 -23
  9. package/README.md +0 -42
  10. package/app.vue +0 -162
  11. package/assets/css/_main.js +0 -73
  12. package/assets/css/btx.min.css +0 -1
  13. package/assets/css/btx.mob.min.css +0 -1
  14. package/assets/css/btx.pad.min.css +0 -1
  15. package/assets/css/btx.webapp.min.css +0 -1
  16. package/assets/css/custom_fonts/iconfont.css +0 -37
  17. package/assets/css/custom_fonts/iconfont.eot +0 -0
  18. package/assets/css/custom_fonts/iconfont.svg +0 -47
  19. package/assets/css/custom_fonts/iconfont.ttf +0 -0
  20. package/assets/css/custom_fonts/iconfont.woff +0 -0
  21. package/assets/css/custom_fonts/iconfont.woff2 +0 -0
  22. package/assets/css/res-l.css +0 -47
  23. package/assets/css/res-m.css +0 -47
  24. package/assets/css/res-s.css +0 -61
  25. package/assets/custom_fonts/iconfont.css +0 -37
  26. package/assets/custom_fonts/iconfont.eot +0 -0
  27. package/assets/custom_fonts/iconfont.svg +0 -47
  28. package/assets/custom_fonts/iconfont.ttf +0 -0
  29. package/assets/custom_fonts/iconfont.woff +0 -0
  30. package/assets/custom_fonts/iconfont.woff2 +0 -0
  31. package/assets/js/Btx.js +0 -196
  32. package/assets/js/Utils.js +0 -421
  33. package/assets/js/fastclick.js +0 -802
  34. package/assets/js/lazy.min.js +0 -2
  35. package/assets/js/touchwipe.js +0 -111
  36. package/assets/server.js +0 -8
  37. package/assets/start_site_code_str.js +0 -119
  38. package/cdn/css/btx.min.css +0 -1
  39. package/cdn/css/btx.min.css.map +0 -1
  40. package/cdn/fonts/iconfont.ttf +0 -0
  41. package/cdn/fonts/iconfont.woff +0 -0
  42. package/cdn/fonts/iconfont.woff2 +0 -0
  43. package/components/BTXUI/app/app-wid.vue +0 -182
  44. package/components/BTXUI/btn/btn-wid.vue +0 -128
  45. package/components/BTXUI/carousel/carousel-wid.vue +0 -138
  46. package/components/BTXUI/checkbox/checkbox-wid.vue +0 -72
  47. package/components/BTXUI/confirm/confirm-wid.vue +0 -279
  48. package/components/BTXUI/content/content-checkbox-wid.vue +0 -44
  49. package/components/BTXUI/content/content-node-wid.vue +0 -114
  50. package/components/BTXUI/content/content-tag-wid.vue +0 -25
  51. package/components/BTXUI/content/content-wid.vue +0 -254
  52. package/components/BTXUI/core/anis/ani-fail.vue +0 -46
  53. package/components/BTXUI/core/anis/ani-loading.vue +0 -32
  54. package/components/BTXUI/core/anis/ani-notic.vue +0 -47
  55. package/components/BTXUI/core/anis/ani-success.vue +0 -48
  56. package/components/BTXUI/core/b-drag.vue +0 -258
  57. package/components/BTXUI/core/b-grid.vue +0 -84
  58. package/components/BTXUI/core/b-hot.vue +0 -171
  59. package/components/BTXUI/core/b-icon.vue +0 -76
  60. package/components/BTXUI/core/b-img.vue +0 -84
  61. package/components/BTXUI/core/b-input.vue +0 -198
  62. package/components/BTXUI/core/b-list.vue +0 -276
  63. package/components/BTXUI/core/b-text/doc.ts +0 -9
  64. package/components/BTXUI/core/b-text/index.vue +0 -16
  65. package/components/BTXUI/core/b-textarea.vue +0 -58
  66. package/components/BTXUI/core/b-video.vue +0 -35
  67. package/components/BTXUI/core/b-view/doc.ts +0 -10
  68. package/components/BTXUI/core/b-view/index.vue +0 -20
  69. package/components/BTXUI/core/b-webview.vue +0 -20
  70. package/components/BTXUI/core/lib/ChapterLink.js +0 -49
  71. package/components/BTXUI/core/lib/Search.vue +0 -60
  72. package/components/BTXUI/core/styles/doc.ts +0 -55
  73. package/components/BTXUI/core/styles/index.vue +0 -98
  74. package/components/BTXUI/core/styles/prestyles.ts +0 -471
  75. package/components/BTXUI/core/styles/theme.ts +0 -29
  76. package/components/BTXUI/drawer/drawer-wid.vue +0 -165
  77. package/components/BTXUI/drawer/title-tag-wid.vue +0 -114
  78. package/components/BTXUI/form/form-select-wid.vue +0 -57
  79. package/components/BTXUI/form/form-wid.vue +0 -324
  80. package/components/BTXUI/formPannel/form-pannel-wid.vue +0 -133
  81. package/components/BTXUI/imgsUpload/imgs-upload-wid.vue +0 -149
  82. package/components/BTXUI/index.js +0 -83
  83. package/components/BTXUI/pageFlip/page-flip-wid.vue +0 -206
  84. package/components/BTXUI/pannel/pannel-wid.vue +0 -167
  85. package/components/BTXUI/range/range-wid.vue +0 -134
  86. package/components/BTXUI/search/search-wid.vue +0 -80
  87. package/components/BTXUI/select/select-wid.vue +0 -186
  88. package/components/BTXUI/slider/slider-wid.vue +0 -444
  89. package/components/BTXUI/tab/tab-wid.vue +0 -109
  90. package/components/BTXUI/table/table-wid.vue +0 -324
  91. package/components/BTXUI/tag/tag-wid.vue +0 -183
  92. package/components/BTXUI/tags/tags-wid.vue +0 -121
  93. package/components/BTXUI/tooltip/tooltip-wid.vue +0 -146
  94. package/components/BTXUI/upload/upload-wid.vue +0 -215
  95. package/components/BTXUI/waterfall/waterfall-wid.vue +0 -166
  96. package/components/header-info.vue +0 -167
  97. package/composables/@types.ts +0 -4
  98. package/composables/api.ts +0 -18
  99. package/env.d.ts +0 -5
  100. package/main.js +0 -16
  101. package/nuxt.config.ts +0 -51
  102. package/pages/article.vue +0 -16
  103. package/pages/download.vue +0 -50
  104. package/pages/example/app_wid/app/data_demo.vue +0 -9
  105. package/pages/example/app_wid/app/download_demo.vue +0 -9
  106. package/pages/example/app_wid/app/list_demo.vue +0 -11
  107. package/pages/example/app_wid/app/system_demo.vue +0 -9
  108. package/pages/example/app_wid/app_wid_demo.vue +0 -198
  109. package/pages/example/app_wid/btn_wid_demo.vue +0 -179
  110. package/pages/example/app_wid/carousel_wid_demo.vue +0 -152
  111. package/pages/example/app_wid/checkbox_wid_demo.vue +0 -65
  112. package/pages/example/app_wid/confirm_wid_demo.vue +0 -197
  113. package/pages/example/app_wid/content_wid_demo.vue +0 -369
  114. package/pages/example/app_wid/drawer_wid_demo.vue +0 -155
  115. package/pages/example/app_wid/form_pannel_wid_demo.vue +0 -338
  116. package/pages/example/app_wid/form_wid_demo.vue +0 -550
  117. package/pages/example/app_wid/imgs_upload_wid_demo.vue +0 -159
  118. package/pages/example/app_wid/index.js +0 -158
  119. package/pages/example/app_wid/page_flip_wid_demo.vue +0 -99
  120. package/pages/example/app_wid/pannel_wid_demo.vue +0 -177
  121. package/pages/example/app_wid/range_wid_demo.vue +0 -101
  122. package/pages/example/app_wid/search_wid_demo.vue +0 -75
  123. package/pages/example/app_wid/select_wid_demo.vue +0 -217
  124. package/pages/example/app_wid/slider_wid_demo.vue +0 -143
  125. package/pages/example/app_wid/tab_wid_demo.vue +0 -170
  126. package/pages/example/app_wid/table_wid_demo.vue +0 -377
  127. package/pages/example/app_wid/tag_wid_demo.vue +0 -133
  128. package/pages/example/app_wid/tags_wid_demo.vue +0 -143
  129. package/pages/example/app_wid/tooltip_wid_demo.vue +0 -117
  130. package/pages/example/app_wid/upload_wid_demo.vue +0 -123
  131. package/pages/example/base_wid/b_drag_demo.vue +0 -159
  132. package/pages/example/base_wid/b_grid_demo.vue +0 -225
  133. package/pages/example/base_wid/b_hot_demo.vue +0 -135
  134. package/pages/example/base_wid/b_icon_demo.vue +0 -80
  135. package/pages/example/base_wid/b_img_demo.vue +0 -95
  136. package/pages/example/base_wid/b_input_demo.vue +0 -171
  137. package/pages/example/base_wid/b_list_demo.vue +0 -241
  138. package/pages/example/base_wid/b_style_demo.vue +0 -928
  139. package/pages/example/base_wid/b_text_demo.vue +0 -36
  140. package/pages/example/base_wid/b_textarea_demo.vue +0 -64
  141. package/pages/example/base_wid/b_video_demo.vue +0 -42
  142. package/pages/example/base_wid/b_view_demo.vue +0 -36
  143. package/pages/example/base_wid/index.js +0 -76
  144. package/pages/example/content.js +0 -49
  145. package/pages/example/global_style/animation.vue +0 -197
  146. package/pages/example/global_style/color.vue +0 -134
  147. package/pages/example/global_style/decoration.vue +0 -546
  148. package/pages/example/global_style/icon.vue +0 -345
  149. package/pages/example/global_style/index.js +0 -52
  150. package/pages/example/global_style/layout.vue +0 -846
  151. package/pages/example/global_style/special.vue +0 -37
  152. package/pages/example/global_style/table.vue +0 -298
  153. package/pages/example/global_style/text.vue +0 -159
  154. package/pages/index.vue +0 -43
  155. package/pages/level_widget.vue +0 -11
  156. package/pages/start.vue +0 -200
  157. package/plugins/index.ts +0 -2
  158. package/public/favicon.gif +0 -0
  159. package/public/fonts/iconfont.ttf +0 -0
  160. package/public/fonts/iconfont.woff +0 -0
  161. package/public/fonts/iconfont.woff2 +0 -0
  162. package/public/img/banner.jpg +0 -0
  163. package/public/img/banner2.jpg +0 -0
  164. package/public/img/bg_pattern.png +0 -0
  165. package/public/img/btx.jpg +0 -0
  166. package/public/img/btx_ui.jpg +0 -0
  167. package/public/img/dir.png +0 -0
  168. package/public/img/f.png +0 -0
  169. package/public/img/head.jpg +0 -0
  170. package/public/img/head2.jpg +0 -0
  171. package/public/img/home_ico.png +0 -0
  172. package/public/img/icons.svg +0 -164
  173. package/public/img/mechanism/b-style.png +0 -0
  174. package/public/img/mechanism/slider-wid.png +0 -0
  175. package/public/img/mechanism/upload-wid.png +0 -0
  176. package/public/img/transform_origin.png +0 -0
  177. package/sass/animation.scss +0 -400
  178. package/sass/btx.mob.scss +0 -10
  179. package/sass/btx.pad.scss +0 -3
  180. package/sass/btx.scss +0 -22
  181. package/sass/btx.webapp.scss +0 -22
  182. package/sass/colors.scss +0 -65
  183. package/sass/decoration.scss +0 -220
  184. package/sass/flex.scss +0 -29
  185. package/sass/icons.scss +0 -100
  186. package/sass/layout.scss +0 -88
  187. package/sass/reset.scss +0 -111
  188. package/sass/response/flex_mixin.scss +0 -91
  189. package/sass/response/layout_mixin.scss +0 -227
  190. package/sass/response/main.scss +0 -59
  191. package/sass/response/text_mixin.scss +0 -65
  192. package/sass/scroll.scss +0 -100
  193. package/sass/special.scss +0 -13
  194. package/sass/table.scss +0 -103
  195. package/sass/text.scss +0 -86
  196. package/sass/webpack.config.js +0 -31
  197. package/tsconfig.json +0 -4
@@ -1,37 +0,0 @@
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>
@@ -1,298 +0,0 @@
1
- <template>
2
- <article>
3
- <section>
4
- <h5>表格</h5>
5
- <p>框架预置了常用的表格样式,通过为 <code>&lt;table&gt;</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>
@@ -1,159 +0,0 @@
1
- <template>
2
- <article>
3
- <!--标题-->
4
- <section>
5
- <h5>标题</h5>
6
- <p>BTX·UI 重置了 <code>&lt;h1&gt;</code> - <code>&lt;h6&gt;</code> 的标题样式。使用相对单位 em,由 <code>&lt;h6&gt;</code>
7
- 到 <code>&lt;h1&gt;</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>&lt;code&gt;</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>&lt;article&gt;</code> 样式,以优化文章阅读格式。在 <code>&lt;article&gt;</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 DELETED
@@ -1,43 +0,0 @@
1
-
2
- <template>
3
- <article>
4
- <p class="pcenter-s">
5
- <img class="h-5 h-4-s" src="@/assets/img/btx_ui.jpg">
6
- </p>
7
- <p>BTX·UI 是一套基于 Vue 2.0 为开发者准备的多端组件库,可以帮助工程师快速开发。使用组件 Demo 可以快速体验交互细节。</p>
8
- <div class="bg-color line line-neutral thick-1 round-sm pad-d5 grid">
9
- <div class="col-4 flex-1 flex-2-s col-12-s">
10
- <img src="@/assets/img/btx.jpg" class="round-sm">
11
- </div>
12
- <div class="col-8 flex-4 flex-2-s pcenter-s col-12-s">
13
- <div class="pad-l-4 pad-l-0-s">
14
- <p><span class="alpha-d7">框架作者 - </span><br><b class="fsize-1d2">btx·STU 邢天博</b></p>
15
- <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>
16
- </div>
17
- </div>
18
- </div>
19
- <p></p>
20
-
21
- <!--设计原则-->
22
- <section>
23
- <h5>设计原则</h5>
24
- <p><b class="mrg-r-1 color-sub">· 全局样式</b>BTX·UI 采用渐进式设计方案,用户可以只使用全局样式库来进行快速网页设计,并可根据需要进行响应式布局分段样式库引用;</p>
25
- <p><b class="mrg-r-1 color-sub">· 主题组件</b>对于开发 webapp 类大型应用,推荐使用组件来进行开发,框架预置了一套完善的 "Level 风格主题 UI 库<span class="alpha-d6">(高阶组件库)</span>",配合 "基础组件"<span class="alpha-d6">(主要实现基础布局)</span>,可快速构建 web 应用;</p>
26
- <p><b class="mrg-r-1 color-sub">· 应用组件</b>对于定制化程度更高的应用开发,可以使用 "基础组件" + "应用组件" 配合 styles 样式实现机制,来进行底层打造。甚至可以进行二次封装,构建一套定制化主题组件;</p>
27
- <p>全局样式秉持 web 开发传统的 "样式复用" 理念,而组件应用则推崇新兴的 "组件复用" 理念,根据实际应用场景可以选择不同的开发模式。此外,全局样式也可以与组件进行混合使用。</p>
28
- </section>
29
- </article>
30
- </template>
31
-
32
- <script setup lang="ts">
33
- // const btxuiComponents = {} as any;
34
- // const styles: GlobalType.IRecord = import.meta.glob("@/components/BTXUI/core/styles/index.vue");
35
- // const bView: GlobalType.IRecord = import.meta.glob("@/components/BTXUI/core/b-view/index.vue");
36
- // const initGlobalComponents = { ...styles, ...bView } as any;
37
- // // const initGlobalComponents: GlobalType.IRecord = import.meta.glob("@/components/BTXUI/core/*/*.vue");
38
- // Object.keys(initGlobalComponents).forEach(path => {
39
- // const pathBlocks = path.split("/");
40
- // pathBlocks.pop();
41
- // btxuiComponents[pathBlocks.pop() as string] = initGlobalComponents[path];
42
- // })
43
- </script>
@@ -1,11 +0,0 @@
1
- <template>
2
- <div class="bg-color-main round-md pad-1d5 color-mgray">
3
- 主题组件库尚在开发中...
4
- </div>
5
- </template>
6
-
7
- <script>
8
- export default {
9
- name: "level_widget"
10
- }
11
- </script>