btxui 1.0.2 → 1.0.5

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 (194) hide show
  1. package/favicon.png +0 -0
  2. package/index.js +3289 -0
  3. package/index.js.gz +0 -0
  4. package/index.umd.cjs +1 -0
  5. package/package.json +11 -23
  6. package/README.md +0 -42
  7. package/app.vue +0 -162
  8. package/assets/css/_main.js +0 -73
  9. package/assets/css/btx.min.css +0 -1
  10. package/assets/css/btx.mob.min.css +0 -1
  11. package/assets/css/btx.pad.min.css +0 -1
  12. package/assets/css/btx.webapp.min.css +0 -1
  13. package/assets/css/custom_fonts/iconfont.css +0 -37
  14. package/assets/css/custom_fonts/iconfont.eot +0 -0
  15. package/assets/css/custom_fonts/iconfont.svg +0 -47
  16. package/assets/css/custom_fonts/iconfont.ttf +0 -0
  17. package/assets/css/custom_fonts/iconfont.woff +0 -0
  18. package/assets/css/custom_fonts/iconfont.woff2 +0 -0
  19. package/assets/css/res-l.css +0 -47
  20. package/assets/css/res-m.css +0 -47
  21. package/assets/css/res-s.css +0 -61
  22. package/assets/custom_fonts/iconfont.css +0 -37
  23. package/assets/custom_fonts/iconfont.eot +0 -0
  24. package/assets/custom_fonts/iconfont.svg +0 -47
  25. package/assets/custom_fonts/iconfont.ttf +0 -0
  26. package/assets/custom_fonts/iconfont.woff +0 -0
  27. package/assets/custom_fonts/iconfont.woff2 +0 -0
  28. package/assets/js/Btx.js +0 -196
  29. package/assets/js/Utils.js +0 -421
  30. package/assets/js/fastclick.js +0 -802
  31. package/assets/js/lazy.min.js +0 -2
  32. package/assets/js/touchwipe.js +0 -111
  33. package/assets/server.js +0 -8
  34. package/assets/start_site_code_str.js +0 -119
  35. package/cdn/css/btx.min.css +0 -1
  36. package/cdn/css/btx.min.css.map +0 -1
  37. package/cdn/fonts/iconfont.ttf +0 -0
  38. package/cdn/fonts/iconfont.woff +0 -0
  39. package/cdn/fonts/iconfont.woff2 +0 -0
  40. package/components/BTXUI/app/app-wid.vue +0 -182
  41. package/components/BTXUI/btn/btn-wid.vue +0 -128
  42. package/components/BTXUI/carousel/carousel-wid.vue +0 -138
  43. package/components/BTXUI/checkbox/checkbox-wid.vue +0 -72
  44. package/components/BTXUI/confirm/confirm-wid.vue +0 -279
  45. package/components/BTXUI/content/content-checkbox-wid.vue +0 -44
  46. package/components/BTXUI/content/content-node-wid.vue +0 -114
  47. package/components/BTXUI/content/content-tag-wid.vue +0 -25
  48. package/components/BTXUI/content/content-wid.vue +0 -254
  49. package/components/BTXUI/core/anis/ani-fail.vue +0 -46
  50. package/components/BTXUI/core/anis/ani-loading.vue +0 -32
  51. package/components/BTXUI/core/anis/ani-notic.vue +0 -47
  52. package/components/BTXUI/core/anis/ani-success.vue +0 -48
  53. package/components/BTXUI/core/b-drag.vue +0 -258
  54. package/components/BTXUI/core/b-grid.vue +0 -84
  55. package/components/BTXUI/core/b-hot.vue +0 -171
  56. package/components/BTXUI/core/b-icon.vue +0 -76
  57. package/components/BTXUI/core/b-img.vue +0 -84
  58. package/components/BTXUI/core/b-input.vue +0 -198
  59. package/components/BTXUI/core/b-list.vue +0 -276
  60. package/components/BTXUI/core/b-text/doc.ts +0 -9
  61. package/components/BTXUI/core/b-text/index.vue +0 -16
  62. package/components/BTXUI/core/b-textarea.vue +0 -58
  63. package/components/BTXUI/core/b-video.vue +0 -35
  64. package/components/BTXUI/core/b-view/doc.ts +0 -10
  65. package/components/BTXUI/core/b-view/index.vue +0 -20
  66. package/components/BTXUI/core/b-webview.vue +0 -20
  67. package/components/BTXUI/core/lib/ChapterLink.js +0 -49
  68. package/components/BTXUI/core/lib/Search.vue +0 -60
  69. package/components/BTXUI/core/styles/doc.ts +0 -55
  70. package/components/BTXUI/core/styles/index.vue +0 -98
  71. package/components/BTXUI/core/styles/prestyles.ts +0 -471
  72. package/components/BTXUI/core/styles/theme.ts +0 -29
  73. package/components/BTXUI/drawer/drawer-wid.vue +0 -165
  74. package/components/BTXUI/drawer/title-tag-wid.vue +0 -114
  75. package/components/BTXUI/form/form-select-wid.vue +0 -57
  76. package/components/BTXUI/form/form-wid.vue +0 -324
  77. package/components/BTXUI/formPannel/form-pannel-wid.vue +0 -133
  78. package/components/BTXUI/imgsUpload/imgs-upload-wid.vue +0 -149
  79. package/components/BTXUI/index.js +0 -83
  80. package/components/BTXUI/pageFlip/page-flip-wid.vue +0 -206
  81. package/components/BTXUI/pannel/pannel-wid.vue +0 -167
  82. package/components/BTXUI/range/range-wid.vue +0 -134
  83. package/components/BTXUI/search/search-wid.vue +0 -80
  84. package/components/BTXUI/select/select-wid.vue +0 -186
  85. package/components/BTXUI/slider/slider-wid.vue +0 -444
  86. package/components/BTXUI/tab/tab-wid.vue +0 -109
  87. package/components/BTXUI/table/table-wid.vue +0 -324
  88. package/components/BTXUI/tag/tag-wid.vue +0 -183
  89. package/components/BTXUI/tags/tags-wid.vue +0 -121
  90. package/components/BTXUI/tooltip/tooltip-wid.vue +0 -146
  91. package/components/BTXUI/upload/upload-wid.vue +0 -215
  92. package/components/BTXUI/waterfall/waterfall-wid.vue +0 -166
  93. package/components/header-info.vue +0 -167
  94. package/composables/@types.ts +0 -4
  95. package/composables/api.ts +0 -18
  96. package/env.d.ts +0 -5
  97. package/main.js +0 -16
  98. package/nuxt.config.ts +0 -51
  99. package/pages/article.vue +0 -16
  100. package/pages/download.vue +0 -50
  101. package/pages/example/app_wid/app/data_demo.vue +0 -9
  102. package/pages/example/app_wid/app/download_demo.vue +0 -9
  103. package/pages/example/app_wid/app/list_demo.vue +0 -11
  104. package/pages/example/app_wid/app/system_demo.vue +0 -9
  105. package/pages/example/app_wid/app_wid_demo.vue +0 -198
  106. package/pages/example/app_wid/btn_wid_demo.vue +0 -179
  107. package/pages/example/app_wid/carousel_wid_demo.vue +0 -152
  108. package/pages/example/app_wid/checkbox_wid_demo.vue +0 -65
  109. package/pages/example/app_wid/confirm_wid_demo.vue +0 -197
  110. package/pages/example/app_wid/content_wid_demo.vue +0 -369
  111. package/pages/example/app_wid/drawer_wid_demo.vue +0 -155
  112. package/pages/example/app_wid/form_pannel_wid_demo.vue +0 -338
  113. package/pages/example/app_wid/form_wid_demo.vue +0 -550
  114. package/pages/example/app_wid/imgs_upload_wid_demo.vue +0 -159
  115. package/pages/example/app_wid/index.js +0 -158
  116. package/pages/example/app_wid/page_flip_wid_demo.vue +0 -99
  117. package/pages/example/app_wid/pannel_wid_demo.vue +0 -177
  118. package/pages/example/app_wid/range_wid_demo.vue +0 -101
  119. package/pages/example/app_wid/search_wid_demo.vue +0 -75
  120. package/pages/example/app_wid/select_wid_demo.vue +0 -217
  121. package/pages/example/app_wid/slider_wid_demo.vue +0 -143
  122. package/pages/example/app_wid/tab_wid_demo.vue +0 -170
  123. package/pages/example/app_wid/table_wid_demo.vue +0 -377
  124. package/pages/example/app_wid/tag_wid_demo.vue +0 -133
  125. package/pages/example/app_wid/tags_wid_demo.vue +0 -143
  126. package/pages/example/app_wid/tooltip_wid_demo.vue +0 -117
  127. package/pages/example/app_wid/upload_wid_demo.vue +0 -123
  128. package/pages/example/base_wid/b_drag_demo.vue +0 -159
  129. package/pages/example/base_wid/b_grid_demo.vue +0 -225
  130. package/pages/example/base_wid/b_hot_demo.vue +0 -135
  131. package/pages/example/base_wid/b_icon_demo.vue +0 -80
  132. package/pages/example/base_wid/b_img_demo.vue +0 -95
  133. package/pages/example/base_wid/b_input_demo.vue +0 -171
  134. package/pages/example/base_wid/b_list_demo.vue +0 -241
  135. package/pages/example/base_wid/b_style_demo.vue +0 -928
  136. package/pages/example/base_wid/b_text_demo.vue +0 -36
  137. package/pages/example/base_wid/b_textarea_demo.vue +0 -64
  138. package/pages/example/base_wid/b_video_demo.vue +0 -42
  139. package/pages/example/base_wid/b_view_demo.vue +0 -36
  140. package/pages/example/base_wid/index.js +0 -76
  141. package/pages/example/content.js +0 -49
  142. package/pages/example/global_style/animation.vue +0 -197
  143. package/pages/example/global_style/color.vue +0 -134
  144. package/pages/example/global_style/decoration.vue +0 -546
  145. package/pages/example/global_style/icon.vue +0 -345
  146. package/pages/example/global_style/index.js +0 -52
  147. package/pages/example/global_style/layout.vue +0 -846
  148. package/pages/example/global_style/special.vue +0 -37
  149. package/pages/example/global_style/table.vue +0 -298
  150. package/pages/example/global_style/text.vue +0 -159
  151. package/pages/index.vue +0 -43
  152. package/pages/level_widget.vue +0 -11
  153. package/pages/start.vue +0 -200
  154. package/plugins/index.ts +0 -2
  155. package/public/favicon.gif +0 -0
  156. package/public/fonts/iconfont.ttf +0 -0
  157. package/public/fonts/iconfont.woff +0 -0
  158. package/public/fonts/iconfont.woff2 +0 -0
  159. package/public/img/banner.jpg +0 -0
  160. package/public/img/banner2.jpg +0 -0
  161. package/public/img/bg_pattern.png +0 -0
  162. package/public/img/btx.jpg +0 -0
  163. package/public/img/btx_ui.jpg +0 -0
  164. package/public/img/dir.png +0 -0
  165. package/public/img/f.png +0 -0
  166. package/public/img/head.jpg +0 -0
  167. package/public/img/head2.jpg +0 -0
  168. package/public/img/home_ico.png +0 -0
  169. package/public/img/icons.svg +0 -164
  170. package/public/img/mechanism/b-style.png +0 -0
  171. package/public/img/mechanism/slider-wid.png +0 -0
  172. package/public/img/mechanism/upload-wid.png +0 -0
  173. package/public/img/transform_origin.png +0 -0
  174. package/sass/animation.scss +0 -400
  175. package/sass/btx.mob.scss +0 -10
  176. package/sass/btx.pad.scss +0 -3
  177. package/sass/btx.scss +0 -22
  178. package/sass/btx.webapp.scss +0 -22
  179. package/sass/colors.scss +0 -65
  180. package/sass/decoration.scss +0 -220
  181. package/sass/flex.scss +0 -29
  182. package/sass/icons.scss +0 -100
  183. package/sass/layout.scss +0 -88
  184. package/sass/reset.scss +0 -111
  185. package/sass/response/flex_mixin.scss +0 -91
  186. package/sass/response/layout_mixin.scss +0 -227
  187. package/sass/response/main.scss +0 -59
  188. package/sass/response/text_mixin.scss +0 -65
  189. package/sass/scroll.scss +0 -100
  190. package/sass/special.scss +0 -13
  191. package/sass/table.scss +0 -103
  192. package/sass/text.scss +0 -86
  193. package/sass/webpack.config.js +0 -31
  194. 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>