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,369 +0,0 @@
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>
@@ -1,155 +0,0 @@
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>