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.
Files changed (190) hide show
  1. package/README.md +42 -0
  2. package/app.vue +162 -0
  3. package/assets/css/_main.js +73 -0
  4. package/assets/css/btx.min.css +1 -0
  5. package/assets/css/btx.mob.min.css +1 -0
  6. package/assets/css/btx.pad.min.css +1 -0
  7. package/assets/css/btx.webapp.min.css +1 -0
  8. package/assets/css/custom_fonts/iconfont.css +37 -0
  9. package/assets/css/custom_fonts/iconfont.eot +0 -0
  10. package/assets/css/custom_fonts/iconfont.svg +47 -0
  11. package/assets/css/custom_fonts/iconfont.ttf +0 -0
  12. package/assets/css/custom_fonts/iconfont.woff +0 -0
  13. package/assets/css/custom_fonts/iconfont.woff2 +0 -0
  14. package/assets/css/res-l.css +47 -0
  15. package/assets/css/res-m.css +47 -0
  16. package/assets/css/res-s.css +61 -0
  17. package/assets/custom_fonts/iconfont.css +37 -0
  18. package/assets/custom_fonts/iconfont.eot +0 -0
  19. package/assets/custom_fonts/iconfont.svg +47 -0
  20. package/assets/custom_fonts/iconfont.ttf +0 -0
  21. package/assets/custom_fonts/iconfont.woff +0 -0
  22. package/assets/custom_fonts/iconfont.woff2 +0 -0
  23. package/assets/js/Btx.js +196 -0
  24. package/assets/js/Utils.js +421 -0
  25. package/assets/js/fastclick.js +802 -0
  26. package/assets/js/lazy.min.js +2 -0
  27. package/assets/js/touchwipe.js +111 -0
  28. package/assets/server.js +8 -0
  29. package/assets/start_site_code_str.js +119 -0
  30. package/cdn/css/btx.min.css +1 -0
  31. package/cdn/css/btx.min.css.map +1 -0
  32. package/cdn/fonts/iconfont.ttf +0 -0
  33. package/cdn/fonts/iconfont.woff +0 -0
  34. package/cdn/fonts/iconfont.woff2 +0 -0
  35. package/components/BTXUI/app/app-wid.vue +182 -0
  36. package/components/BTXUI/btn/btn-wid.vue +128 -0
  37. package/components/BTXUI/carousel/carousel-wid.vue +138 -0
  38. package/components/BTXUI/checkbox/checkbox-wid.vue +72 -0
  39. package/components/BTXUI/confirm/confirm-wid.vue +279 -0
  40. package/components/BTXUI/content/content-checkbox-wid.vue +44 -0
  41. package/components/BTXUI/content/content-node-wid.vue +114 -0
  42. package/components/BTXUI/content/content-tag-wid.vue +25 -0
  43. package/components/BTXUI/content/content-wid.vue +254 -0
  44. package/components/BTXUI/core/anis/ani-fail.vue +46 -0
  45. package/components/BTXUI/core/anis/ani-loading.vue +32 -0
  46. package/components/BTXUI/core/anis/ani-notic.vue +47 -0
  47. package/components/BTXUI/core/anis/ani-success.vue +48 -0
  48. package/components/BTXUI/core/b-drag.vue +258 -0
  49. package/components/BTXUI/core/b-grid.vue +84 -0
  50. package/components/BTXUI/core/b-hot.vue +171 -0
  51. package/components/BTXUI/core/b-icon.vue +76 -0
  52. package/components/BTXUI/core/b-img.vue +84 -0
  53. package/components/BTXUI/core/b-input.vue +198 -0
  54. package/components/BTXUI/core/b-list.vue +276 -0
  55. package/components/BTXUI/core/b-text/doc.ts +9 -0
  56. package/components/BTXUI/core/b-text/index.vue +16 -0
  57. package/components/BTXUI/core/b-textarea.vue +58 -0
  58. package/components/BTXUI/core/b-video.vue +35 -0
  59. package/components/BTXUI/core/b-view/doc.ts +10 -0
  60. package/components/BTXUI/core/b-view/index.vue +20 -0
  61. package/components/BTXUI/core/b-webview.vue +20 -0
  62. package/components/BTXUI/core/lib/ChapterLink.js +49 -0
  63. package/components/BTXUI/core/lib/Search.vue +60 -0
  64. package/components/BTXUI/core/styles/doc.ts +55 -0
  65. package/components/BTXUI/core/styles/index.vue +98 -0
  66. package/components/BTXUI/core/styles/prestyles.ts +471 -0
  67. package/components/BTXUI/core/styles/theme.ts +29 -0
  68. package/components/BTXUI/drawer/drawer-wid.vue +165 -0
  69. package/components/BTXUI/drawer/title-tag-wid.vue +114 -0
  70. package/components/BTXUI/form/form-select-wid.vue +57 -0
  71. package/components/BTXUI/form/form-wid.vue +324 -0
  72. package/components/BTXUI/formPannel/form-pannel-wid.vue +133 -0
  73. package/components/BTXUI/imgsUpload/imgs-upload-wid.vue +149 -0
  74. package/components/BTXUI/index.js +83 -0
  75. package/components/BTXUI/pageFlip/page-flip-wid.vue +206 -0
  76. package/components/BTXUI/pannel/pannel-wid.vue +167 -0
  77. package/components/BTXUI/range/range-wid.vue +134 -0
  78. package/components/BTXUI/search/search-wid.vue +80 -0
  79. package/components/BTXUI/select/select-wid.vue +186 -0
  80. package/components/BTXUI/slider/slider-wid.vue +444 -0
  81. package/components/BTXUI/tab/tab-wid.vue +109 -0
  82. package/components/BTXUI/table/table-wid.vue +324 -0
  83. package/components/BTXUI/tag/tag-wid.vue +183 -0
  84. package/components/BTXUI/tags/tags-wid.vue +121 -0
  85. package/components/BTXUI/tooltip/tooltip-wid.vue +146 -0
  86. package/components/BTXUI/upload/upload-wid.vue +215 -0
  87. package/components/BTXUI/waterfall/waterfall-wid.vue +166 -0
  88. package/components/header-info.vue +167 -0
  89. package/composables/@types.ts +4 -0
  90. package/composables/api.ts +18 -0
  91. package/env.d.ts +5 -0
  92. package/main.js +6 -0
  93. package/nuxt.config.ts +51 -0
  94. package/package.json +23 -0
  95. package/pages/article.vue +16 -0
  96. package/pages/download.vue +50 -0
  97. package/pages/example/app_wid/app/data_demo.vue +9 -0
  98. package/pages/example/app_wid/app/download_demo.vue +9 -0
  99. package/pages/example/app_wid/app/list_demo.vue +11 -0
  100. package/pages/example/app_wid/app/system_demo.vue +9 -0
  101. package/pages/example/app_wid/app_wid_demo.vue +198 -0
  102. package/pages/example/app_wid/btn_wid_demo.vue +179 -0
  103. package/pages/example/app_wid/carousel_wid_demo.vue +152 -0
  104. package/pages/example/app_wid/checkbox_wid_demo.vue +65 -0
  105. package/pages/example/app_wid/confirm_wid_demo.vue +197 -0
  106. package/pages/example/app_wid/content_wid_demo.vue +369 -0
  107. package/pages/example/app_wid/drawer_wid_demo.vue +155 -0
  108. package/pages/example/app_wid/form_pannel_wid_demo.vue +338 -0
  109. package/pages/example/app_wid/form_wid_demo.vue +550 -0
  110. package/pages/example/app_wid/imgs_upload_wid_demo.vue +159 -0
  111. package/pages/example/app_wid/index.js +158 -0
  112. package/pages/example/app_wid/page_flip_wid_demo.vue +99 -0
  113. package/pages/example/app_wid/pannel_wid_demo.vue +177 -0
  114. package/pages/example/app_wid/range_wid_demo.vue +101 -0
  115. package/pages/example/app_wid/search_wid_demo.vue +75 -0
  116. package/pages/example/app_wid/select_wid_demo.vue +217 -0
  117. package/pages/example/app_wid/slider_wid_demo.vue +143 -0
  118. package/pages/example/app_wid/tab_wid_demo.vue +170 -0
  119. package/pages/example/app_wid/table_wid_demo.vue +377 -0
  120. package/pages/example/app_wid/tag_wid_demo.vue +133 -0
  121. package/pages/example/app_wid/tags_wid_demo.vue +143 -0
  122. package/pages/example/app_wid/tooltip_wid_demo.vue +117 -0
  123. package/pages/example/app_wid/upload_wid_demo.vue +123 -0
  124. package/pages/example/base_wid/b_drag_demo.vue +159 -0
  125. package/pages/example/base_wid/b_grid_demo.vue +225 -0
  126. package/pages/example/base_wid/b_hot_demo.vue +135 -0
  127. package/pages/example/base_wid/b_icon_demo.vue +80 -0
  128. package/pages/example/base_wid/b_img_demo.vue +95 -0
  129. package/pages/example/base_wid/b_input_demo.vue +171 -0
  130. package/pages/example/base_wid/b_list_demo.vue +241 -0
  131. package/pages/example/base_wid/b_style_demo.vue +928 -0
  132. package/pages/example/base_wid/b_text_demo.vue +36 -0
  133. package/pages/example/base_wid/b_textarea_demo.vue +64 -0
  134. package/pages/example/base_wid/b_video_demo.vue +42 -0
  135. package/pages/example/base_wid/b_view_demo.vue +36 -0
  136. package/pages/example/base_wid/index.js +76 -0
  137. package/pages/example/content.js +49 -0
  138. package/pages/example/global_style/animation.vue +197 -0
  139. package/pages/example/global_style/color.vue +134 -0
  140. package/pages/example/global_style/decoration.vue +546 -0
  141. package/pages/example/global_style/icon.vue +345 -0
  142. package/pages/example/global_style/index.js +52 -0
  143. package/pages/example/global_style/layout.vue +846 -0
  144. package/pages/example/global_style/special.vue +37 -0
  145. package/pages/example/global_style/table.vue +298 -0
  146. package/pages/example/global_style/text.vue +159 -0
  147. package/pages/index.vue +29 -0
  148. package/pages/level_widget.vue +11 -0
  149. package/pages/start.vue +200 -0
  150. package/plugins/index.ts +2 -0
  151. package/public/favicon.gif +0 -0
  152. package/public/fonts/iconfont.ttf +0 -0
  153. package/public/fonts/iconfont.woff +0 -0
  154. package/public/fonts/iconfont.woff2 +0 -0
  155. package/public/img/banner.jpg +0 -0
  156. package/public/img/banner2.jpg +0 -0
  157. package/public/img/bg_pattern.png +0 -0
  158. package/public/img/btx.jpg +0 -0
  159. package/public/img/btx_ui.jpg +0 -0
  160. package/public/img/dir.png +0 -0
  161. package/public/img/f.png +0 -0
  162. package/public/img/head.jpg +0 -0
  163. package/public/img/head2.jpg +0 -0
  164. package/public/img/home_ico.png +0 -0
  165. package/public/img/icons.svg +164 -0
  166. package/public/img/mechanism/b-style.png +0 -0
  167. package/public/img/mechanism/slider-wid.png +0 -0
  168. package/public/img/mechanism/upload-wid.png +0 -0
  169. package/public/img/transform_origin.png +0 -0
  170. package/sass/animation.scss +400 -0
  171. package/sass/btx.mob.scss +10 -0
  172. package/sass/btx.pad.scss +3 -0
  173. package/sass/btx.scss +22 -0
  174. package/sass/btx.webapp.scss +22 -0
  175. package/sass/colors.scss +65 -0
  176. package/sass/decoration.scss +220 -0
  177. package/sass/flex.scss +29 -0
  178. package/sass/icons.scss +100 -0
  179. package/sass/layout.scss +88 -0
  180. package/sass/reset.scss +111 -0
  181. package/sass/response/flex_mixin.scss +91 -0
  182. package/sass/response/layout_mixin.scss +227 -0
  183. package/sass/response/main.scss +59 -0
  184. package/sass/response/text_mixin.scss +65 -0
  185. package/sass/scroll.scss +100 -0
  186. package/sass/special.scss +13 -0
  187. package/sass/table.scss +103 -0
  188. package/sass/text.scss +86 -0
  189. package/sass/webpack.config.js +31 -0
  190. package/tsconfig.json +4 -0
@@ -0,0 +1,369 @@
1
+ <template>
2
+ <article>
3
+ <header-info v-bind="header_info" />
4
+
5
+ <!--基础渲染-->
6
+ <section>
7
+ <h5>基础渲染</h5>
8
+ <p>组件初始化数据会将树形结构数据转换为平级索引结构数据(index_data),以便于后续的快速选取操作,默认为单选效果;通过数据字段 <code>spread</code> 可以默认展开子级;通过数据字段 <code>spread_fixed</code> 可以强制展开子级,禁止收起;通过数据字段 <code>selected</code> 可用于初始化默认选择数据。</p>
9
+ <div class="resize">
10
+ <content-wid v-bind="data_1.props" @on_select="$_select_1" />
11
+ </div>
12
+ <p>当前选择数据:
13
+ <code v-if="data_1.selected">{{data_1.selected}}</code>
14
+ <span v-else class="alpha-d4">暂无</span>
15
+ </p>
16
+ <hr>
17
+ <p></p>
18
+ </section>
19
+
20
+ <!--自定义样式-->
21
+ <section>
22
+ <h5>自定义样式</h5>
23
+ <p>数据字段 <code>text</code> 支持富文本以实现自定义样式扩展;通过 <code>colors</code> 属性可以定义组件项目色彩方案。</p>
24
+ <div class="resize pad-d5 bg-color-dgray round-sm">
25
+ <content-wid v-bind="data_2.props" @on_select="$_select_2" />
26
+ </div>
27
+ <p>当前选择数据:
28
+ <code v-if="data_2.selected">{{data_2.selected}}</code>
29
+ <span v-else class="alpha-d4">暂无</span>
30
+ </p>
31
+ <hr>
32
+ <p></p>
33
+ </section>
34
+
35
+ <!--复选操作-->
36
+ <section>
37
+ <h5>复选操作</h5>
38
+ <p>通过 <code>mode</code> 属性可以设置复选模式,之后可通过数据字段 <code>checkbox</code> 启用复选框,在复选模式下,若数据项未设置 checkbox,则显示为普通文本;通过数据字段 <code>selected</code> 可用于初始化默认选择数据。</p>
39
+ <div class="resize pad-d5 bg-color-lgray round-sm">
40
+ <content-wid v-bind="data_3.props" @on_select="$_select_3" />
41
+ </div>
42
+ <p>当前选择数据:
43
+ <template v-if="data_3.selected.length">
44
+ <code v-for="data of data_3.selected">{{data}}</code>
45
+ </template>
46
+ <span v-else class="alpha-d4">暂无</span>
47
+ </p>
48
+ <hr>
49
+ <p></p>
50
+ </section>
51
+
52
+ <!--提示浮框-->
53
+ <section>
54
+ <h5>提示浮框</h5>
55
+ <p>数据字段 <code>tooltip</code> 支持富文本以实现悬停提示文本;通过 <code>tooltipData</code> 属性可以设置提示框色彩风格及定位。</p>
56
+ <div class="resize pad-d5 bg-color-lgray round-sm">
57
+ <content-wid v-bind="data_4.props" />
58
+ </div>
59
+ </section>
60
+ </article>
61
+ </template>
62
+
63
+ <script>
64
+ import HeaderInfo from "@/components/header-info"
65
+ import ContentWid from "@/components/BTXUI/content/content-wid"
66
+
67
+ export default {
68
+ name: "content_wid_demo",
69
+ components: {
70
+ HeaderInfo,
71
+ ContentWid
72
+ },
73
+ data(){
74
+ return {
75
+
76
+ //初始化入参
77
+ header_info: {
78
+ name: ContentWid.name,
79
+ ...ContentWid.introduce,
80
+ },
81
+
82
+ data_1: {
83
+ props: {
84
+ dataTree: [
85
+ {
86
+ id: "html_1",
87
+ text: "html",
88
+ children: [
89
+ {
90
+ id: "div_1_1",
91
+ text: "div 标签",
92
+ selected: true
93
+ },
94
+ {
95
+ id: "span_1_2",
96
+ text: "span 标签",
97
+ },
98
+ {
99
+ id: "a_1_3",
100
+ text: "a 标签",
101
+ },
102
+ ]
103
+ },
104
+ {
105
+ id: "css_2",
106
+ text: "css",
107
+ spread: true,
108
+ children: [
109
+ {
110
+ id: "color_2_1",
111
+ text: "color 文字颜色",
112
+ },
113
+ {
114
+ id: "background_2_2",
115
+ text: "background 背景样式",
116
+ },
117
+ ]
118
+ },
119
+ {
120
+ id: "javascript_3",
121
+ text: "javascript",
122
+ spread_fixed: true,
123
+ children: [
124
+ {
125
+ id: "OOP_3_1",
126
+ text: "面向对象编程",
127
+ },
128
+ {
129
+ id: "ES6_3_2",
130
+ text: "ES6 语法",
131
+ },
132
+ ]
133
+ },
134
+ {
135
+ id: "php_4",
136
+ text: "php"
137
+ },
138
+ {
139
+ id: "python_5",
140
+ text: "python"
141
+ }
142
+ ]
143
+ },
144
+ selected: "div_1_1"
145
+ },
146
+
147
+ data_2: {
148
+ props: {
149
+ dataTree: [
150
+ {
151
+ id: "html_1",
152
+ text: "<b style='font-size: 17px'>html</b>",
153
+ children: [
154
+ {
155
+ id: "div_1_1",
156
+ text: "div 标签",
157
+ },
158
+ {
159
+ id: "span_1_2",
160
+ text: "span 标签",
161
+ },
162
+ {
163
+ id: "a_1_3",
164
+ text: "a 标签",
165
+ },
166
+ ]
167
+ },
168
+ {
169
+ id: "css_2",
170
+ text: "<b style='color: orange'>css</b>",
171
+ spread: true,
172
+ children: [
173
+ {
174
+ id: "color_2_1",
175
+ text: "color 文字颜色",
176
+ children: [
177
+ {
178
+ id: "color_3_1",
179
+ text: "red 玫红",
180
+ },
181
+ {
182
+ id: "color_3_2",
183
+ text: "yellow 橙黄",
184
+ },
185
+ ]
186
+ },
187
+ {
188
+ id: "background_2_2",
189
+ text: "<b style='color: #02b9a1'>background</b> 背景样式",
190
+ },
191
+ ]
192
+ }
193
+ ],
194
+ colors: {
195
+ normal: {
196
+ text: "mgray",
197
+ bg: "neutral",
198
+ },
199
+ act: {
200
+ text: "blue",
201
+ bg: "rgba(20,20,20,.4)",
202
+ },
203
+ hover: {
204
+ text: "lgray",
205
+ bg: "rgba(134,134,134,.24)",
206
+ }
207
+ }
208
+ },
209
+ selected: ""
210
+ },
211
+
212
+ data_3: {
213
+ props: {
214
+ dataTree: [
215
+ {
216
+ id: "html_1",
217
+ text: "html",
218
+ checkbox: true,
219
+ children: [
220
+ {
221
+ id: "div_1_1",
222
+ text: "div 标签",
223
+ selected: true,
224
+ checkbox: true
225
+ },
226
+ {
227
+ id: "span_1_2",
228
+ text: "span 标签",
229
+ checkbox: true
230
+ },
231
+ {
232
+ id: "a_1_3",
233
+ text: "a 标签"
234
+ },
235
+ ]
236
+ },
237
+ {
238
+ id: "css_2",
239
+ text: "css",
240
+ children: [
241
+ {
242
+ id: "color_2_1",
243
+ text: "color 文字颜色",
244
+ selected: true,
245
+ checkbox: true,
246
+ children: [
247
+ {
248
+ id: "color_3_1",
249
+ text: "red 玫红",
250
+ checkbox: true
251
+ },
252
+ {
253
+ id: "color_3_2",
254
+ text: "yellow 橙黄",
255
+ checkbox: true
256
+ },
257
+ ]
258
+ },
259
+ {
260
+ id: "background_2_2",
261
+ text: "background 背景样式"
262
+ },
263
+ ]
264
+ },
265
+ {
266
+ id: "javascript_3",
267
+ text: "javascript"
268
+ },
269
+ ],
270
+ mode: "checkbox",
271
+ colors: {
272
+ normal: {
273
+ text: "dgray",
274
+ bg: "light",
275
+ },
276
+ act: {
277
+ text: "light",
278
+ bg: "blue",
279
+ },
280
+ hover: {
281
+ text: "dark",
282
+ bg: "neutral",
283
+ }
284
+ },
285
+ },
286
+ selected: ["div_1_1", "color_2_1"]
287
+ },
288
+
289
+ data_4: {
290
+ props: {
291
+ dataTree: [
292
+ {
293
+ id: "css_2",
294
+ text: "css",
295
+ spread: true,
296
+ tooltip: "<span class='color-red bold'>展示相关 css 样式值</span>",
297
+ children: [
298
+ {
299
+ id: "color_2_1",
300
+ text: "color 文字颜色",
301
+ children: [
302
+ {
303
+ id: "color_3_1",
304
+ text: "red 玫红",
305
+ tooltip: "【色值】:#ec4334;"
306
+ },
307
+ {
308
+ id: "color_3_2",
309
+ text: "yellow 橙黄"
310
+ },
311
+ ]
312
+ },
313
+ {
314
+ id: "background_2_2",
315
+ text: "background 背景样式",
316
+ tooltip: "<span class='color-blue bold'>【exp】</span>:background: red;"
317
+ },
318
+ ]
319
+ }
320
+ ],
321
+ colors: {
322
+ normal: {
323
+ text: "dgray",
324
+ bg: "neutral",
325
+ },
326
+ act: {
327
+ text: "light",
328
+ bg: "blue",
329
+ },
330
+ hover: {
331
+ text: "dark",
332
+ bg: "rgba(134,134,134,.24)",
333
+ }
334
+ },
335
+ tooltipData: {
336
+ colors: {
337
+ text: "#ddd",
338
+ bg: "dgray",
339
+ line: "dark",
340
+ point: "blue"
341
+ },
342
+ offset: {
343
+ x: -40,
344
+ y: -70
345
+ }
346
+ }
347
+ }
348
+ },
349
+
350
+ }
351
+ },
352
+ methods: {
353
+
354
+ $_select_1(id){
355
+ this.data_1.selected = id;
356
+ },
357
+
358
+ $_select_2(id){
359
+ this.data_2.selected = id;
360
+ },
361
+
362
+ //数据选择
363
+ $_select_3(ids){
364
+ this.data_3.selected = ids;
365
+ }
366
+
367
+ }
368
+ }
369
+ </script>
@@ -0,0 +1,155 @@
1
+ <template>
2
+ <article>
3
+ <header-info v-bind="header_info" />
4
+
5
+ <!--基础使用-->
6
+ <section>
7
+ <h5>基础使用</h5>
8
+ <p>通过 <code>spread</code> 属性可以初始化组件展开状态。组件交互区域继承自 <b>tag-wid</b> ,可参考相关入参:<code>tagData</code>。</p>
9
+ <div class="resize grid">
10
+ <div class="col-6 pad-r-3 line-r thick-1 line-lgray">
11
+ <drawer-wid v-bind="data_1">
12
+ <div class="bg-color-lgray pad-2 round-sm round-b">
13
+ <h5>hello javascript</h5>
14
+ <p>When it comes to a secure website and passwords it is all in your hands to create a password that a hacker simply cannot crack.</p>
15
+ <div class="pright alpha-d5">—— btxstudio</div>
16
+ </div>
17
+ </drawer-wid>
18
+ </div>
19
+ <div class="col-6 pad-l-3">
20
+ <drawer-wid v-bind="data_1" :spread="true">
21
+ <div class="bg-color-lgray pad-2 round-sm round-b">
22
+ <h5>hello javascript</h5>
23
+ <p>When it comes to a secure website and passwords it is all in your hands to create a password that a hacker simply cannot crack.</p>
24
+ <div class="pright alpha-d5">—— btxstudio</div>
25
+ </div>
26
+ </drawer-wid>
27
+ </div>
28
+ </div>
29
+ <hr>
30
+ <p></p>
31
+ </section>
32
+
33
+ <!--风格化-->
34
+ <section>
35
+ <h5>风格化</h5>
36
+ <p>组件 <code>tagData</code> 属性 <b>text</b> 字段支持富文本;<b>colors</b> 字段可设置配色风格;<code>iconData</code> 属性可设置 "抽屉" 图标;<code>arrowFixed</code> 属性可设置 "下拉箭头" 图标位置。</p>
37
+ <div class="resize flex">
38
+ <drawer-wid v-bind="data_2">
39
+ <div class="bg-color-lgray pad-2 round-sm round-b line-t thick-1 line-light">
40
+ <h5>hello javascript</h5>
41
+ <p>When it comes to a secure website and passwords it is all in your hands to create a password that a hacker simply cannot crack.</p>
42
+ <div class="pright alpha-d5">—— btxstudio</div>
43
+ </div>
44
+ </drawer-wid>
45
+ </div>
46
+ <hr>
47
+ <p></p>
48
+ </section>
49
+
50
+ <!--启用复选框-->
51
+ <section>
52
+ <h5>启用复选框</h5>
53
+ <p>组件 <code>checkbox</code> 属性可以启用标签复选框。</p>
54
+ <div class="resize flex-column bg-color-lgray">
55
+ <drawer-wid v-bind="data" v-for="(data,i) of data_3.list" :key="i">
56
+ <div class="bg-color-dgray color-mgray pad-2 round-sm round-b line-t thick-1 line-light">
57
+ <h5>hello {{data.tagData.text}}</h5>
58
+ <p>When it comes to a secure website and passwords it is all in your hands to create a password that a hacker simply cannot crack.</p>
59
+ <div class="pright alpha-d5">—— btxstudio</div>
60
+ </div>
61
+ </drawer-wid>
62
+ </div>
63
+ <p>当前选择数据:
64
+ <template v-if="data_3.selected.length">
65
+ <code v-for="data of data_3.selected">{{data}}</code>
66
+ </template>
67
+ <span v-else class="alpha-d4">暂无</span>
68
+ </p>
69
+ </section>
70
+
71
+ </article>
72
+ </template>
73
+
74
+ <script>
75
+ import HeaderInfo from "@/components/header-info"
76
+ import DrawerWid from "@/components/BTXUI/drawer/drawer-wid"
77
+
78
+ export default {
79
+ name: "drawer_wid_demo",
80
+ components: {
81
+ HeaderInfo,
82
+ DrawerWid
83
+ },
84
+ data(){
85
+ return {
86
+
87
+ //初始化入参
88
+ header_info: {
89
+ name: DrawerWid.name,
90
+ ...DrawerWid.introduce,
91
+ },
92
+
93
+ data_1: {
94
+ tagData: {
95
+ id: "a",
96
+ text: "商品详情",
97
+ }
98
+ },
99
+
100
+ data_2: {
101
+ tagData: {
102
+ id: "a",
103
+ text: "<b class='fsize-1d4 color-dgray'>IT</b> / 官方评论",
104
+ colors: {
105
+ normal: {
106
+ text: "dgray",
107
+ bg: "lgray",
108
+ },
109
+ act: {
110
+ text: "blue",
111
+ bg: "#f4f4f4",
112
+ },
113
+ hover: {
114
+ text: "dark",
115
+ bg: "#ddd",
116
+ },
117
+ }
118
+ },
119
+ iconData: {
120
+ icon: "data"
121
+ },
122
+ arrowFixed: false
123
+ },
124
+
125
+ data_3: {
126
+ list: [
127
+ {
128
+ tagData: {
129
+ id: "a",
130
+ text: "HTML + CSS",
131
+ },
132
+ checkbox: true
133
+ },
134
+ {
135
+ tagData: {
136
+ id: "b",
137
+ text: "PHP + Mysql",
138
+ },
139
+ checkbox: true
140
+ },
141
+ {
142
+ tagData: {
143
+ id: "c",
144
+ text: "Node.js + Mongodb",
145
+ },
146
+ checkbox: true
147
+ }
148
+ ],
149
+ selected: []
150
+ },
151
+
152
+ }
153
+ }
154
+ }
155
+ </script>