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,338 @@
1
+ <template>
2
+ <article>
3
+ <header-info v-bind="header_info" />
4
+
5
+ <!--基础使用-->
6
+ <section>
7
+ <h5>基础使用</h5>
8
+ <p>通过 <code>v-model</code> 可以初始化及双向绑定表单选取数据以及面板的显示状态。通过 <code>pannel-title</code> 属性可以设置面板标题。</p>
9
+ <div class="flex resize">
10
+ <form-pannel-wid v-model="data_1.pannel_info" v-bind="data_1.props" />
11
+ <btn-wid @on_click="$_toggle_pannel1" btnText="显示表单面板" />
12
+ </div>
13
+ <hr>
14
+ <p></p>
15
+ </section>
16
+
17
+ <!--自定义含滚动条样式弹窗-->
18
+ <section>
19
+ <h5>自定义含滚动条样式弹窗</h5>
20
+ <p>通过 <code>pannel-styles</code> 属性可以对弹出面板进行样式自定义设置,通常设置固定高度当内容溢出时会产生滚动条效果。</p>
21
+ <div class="flex resize">
22
+ <form-pannel-wid v-model="data_2.pannel_info" v-bind="data_2.props" />
23
+ <btn-wid @on_click="$_toggle_pannel2" btnText="显示表单面板" />
24
+ </div>
25
+ <hr>
26
+ <p></p>
27
+ </section>
28
+
29
+ <!--自定义弹窗样式-->
30
+ <section>
31
+ <h5>自定义弹窗样式</h5>
32
+ <p>通过 <code>pannel-styles</code> 属性可以对弹出面板进行样式自定义设置。此外通过 <code>pannel-data</code> 属性可以设置弹窗面板的基础布局样式,包括遮罩背景色、面板定位、面板位移、启用关闭按钮...(可参考:<code>pannel-wid</code> 组件入参)。</p>
33
+ <div class="flex resize">
34
+ <form-pannel-wid v-model="data_3.pannel_info" v-bind="data_3.props" />
35
+ <btn-wid @on_click="$_toggle_pannel3" btnText="显示表单面板" />
36
+ </div>
37
+ <hr>
38
+ <p></p>
39
+ </section>
40
+
41
+ <!--设置含提交按钮弹窗-->
42
+ <section>
43
+ <h5>设置含提交按钮弹窗</h5>
44
+ <p>通过 <code>form-data</code> 属性的 <b>submit</b> 字段可以设置表单面板的"提交"按钮。(可参考:<code>form-wid</code> 组件入参)。</p>
45
+ <div class="flex resize">
46
+ <form-pannel-wid v-model="data_4.pannel_info" v-bind="data_4.props" />
47
+ <btn-wid @on_click="$_toggle_pannel4" btnText="显示表单面板" />
48
+ </div>
49
+ <p>表单提交数据:<code class="mrg-r-d5" v-for="(val, key) of data_4.submit_data"><b>{{key}}</b>:{{val}}</code></p>
50
+ </section>
51
+
52
+ </article>
53
+ </template>
54
+
55
+ <script>
56
+ import HeaderInfo from "@/components/header-info"
57
+ import BtnWid from "@/components/BTXUI/btn/btn-wid"
58
+ import FormPannelWid from "@/components/BTXUI/formPannel/form-pannel-wid"
59
+
60
+ export default {
61
+ name: "form_pannel_wid_demo",
62
+ components: {
63
+ HeaderInfo,
64
+ BtnWid,
65
+ FormPannelWid
66
+ },
67
+ data(){
68
+ return {
69
+
70
+ //初始化入参
71
+ header_info: {
72
+ name: FormPannelWid.name,
73
+ ...FormPannelWid.introduce,
74
+ },
75
+
76
+ data_1: {
77
+ props: {
78
+ pannelTitle: "请完善表单信息",
79
+ formData: {
80
+ formData: [
81
+ {
82
+ input_data: {
83
+ type: "text",
84
+ name: "uname",
85
+ placeholder: "请输入英文字母、下划线或数字"
86
+ },
87
+ text: "账号",
88
+ },
89
+ {
90
+ input_data: {
91
+ type: "password",
92
+ name: "pwd",
93
+ maxlength: 6,
94
+ placeholder: "请输入您的账号密码"
95
+ },
96
+ text: "密码",
97
+ }
98
+ ]
99
+ }
100
+ },
101
+ pannel_info: {
102
+ visible: false,
103
+ selected: {
104
+ uname: "administrator"
105
+ },
106
+ }
107
+ },
108
+
109
+ data_2: {
110
+ props: {
111
+ formData: {
112
+ formData: [
113
+ {
114
+ input_data: {
115
+ type: "text",
116
+ name: "uname",
117
+ placeholder: "请输入英文字母、下划线或数字"
118
+ },
119
+ text: "账号",
120
+ },
121
+ {
122
+ input_data: {
123
+ type: "password",
124
+ name: "pwd",
125
+ maxlength: 6,
126
+ placeholder: "请输入您的账号密码"
127
+ },
128
+ text: "密码",
129
+ },
130
+ {
131
+ input_data: {
132
+ type: "text",
133
+ name: "tel",
134
+ maxlength: 11,
135
+ placeholder: "请输入您的手机号"
136
+ },
137
+ text: "手机",
138
+ },
139
+ {
140
+ input_data: {
141
+ type: "text",
142
+ name: "email",
143
+ placeholder: "请输入您的电子邮箱"
144
+ },
145
+ text: "邮箱",
146
+ },
147
+ {
148
+ input_data: {
149
+ type: "text",
150
+ name: "addr",
151
+ placeholder: "请输入您的所在地址"
152
+ },
153
+ text: "地址",
154
+ },
155
+ ]
156
+ },
157
+ pannelTitle: "请完善表单信息",
158
+ pannelStyles: "w-40 h-17 round-sm",
159
+ },
160
+ pannel_info: {
161
+ visible: false,
162
+ selected: {},
163
+ }
164
+ },
165
+
166
+ data_3: {
167
+ props: {
168
+ formData: {
169
+ formData: [
170
+ {
171
+ input_data: {
172
+ type: "text",
173
+ name: "uname",
174
+ placeholder: "请输入英文字母、下划线或数字"
175
+ },
176
+ text: "账号",
177
+ },
178
+ {
179
+ input_data: {
180
+ type: "password",
181
+ name: "pwd",
182
+ maxlength: 6,
183
+ placeholder: "请输入您的账号密码"
184
+ },
185
+ text: "密码",
186
+ },
187
+ {
188
+ input_data: {
189
+ type: "text",
190
+ name: "tel",
191
+ maxlength: 11,
192
+ placeholder: "请输入您的手机号"
193
+ },
194
+ text: "手机",
195
+ },
196
+ {
197
+ input_data: {
198
+ type: "text",
199
+ name: "email",
200
+ placeholder: "请输入您的电子邮箱"
201
+ },
202
+ text: "邮箱",
203
+ },
204
+ {
205
+ input_data: {
206
+ type: "text",
207
+ name: "addr",
208
+ placeholder: "请输入您的所在地址"
209
+ },
210
+ text: "地址",
211
+ },
212
+ ],
213
+ colors: {
214
+ normal: {
215
+ text: "mgray",
216
+ bg: "neutral",
217
+ line: "neutral",
218
+ },
219
+ focus: {
220
+ text: "sub",
221
+ bg: "dark",
222
+ line: "dark",
223
+ }
224
+ }
225
+ },
226
+ pannelStyles: "w-40 pad-t-2 bg-color-dgray color-light round-md",
227
+ pannelData: {
228
+ pos: 8,
229
+ matteColor: "rgba(255,255,255,.8)",
230
+ offsetStyles: { y: "f4" },
231
+ closeBtn: true
232
+ }
233
+ },
234
+ pannel_info: {
235
+ visible: false,
236
+ selected: {},
237
+ }
238
+ },
239
+
240
+ data_4: {
241
+ props: {
242
+ formData: {
243
+ formData: [
244
+ {
245
+ input_data: {
246
+ type: "text",
247
+ name: "uname",
248
+ placeholder: "请输入英文字母、下划线或数字"
249
+ },
250
+ text: "账号",
251
+ },
252
+ {
253
+ input_data: {
254
+ type: "password",
255
+ name: "pwd",
256
+ maxlength: 6,
257
+ placeholder: "请输入您的账号密码"
258
+ },
259
+ text: "密码",
260
+ },
261
+ {
262
+ input_data: {
263
+ type: "text",
264
+ name: "tel",
265
+ maxlength: 11,
266
+ placeholder: "请输入您的手机号"
267
+ },
268
+ text: "手机",
269
+ }
270
+ ],
271
+ layout: {
272
+ title_wrap: true
273
+ },
274
+ submit: {
275
+ align: "center",
276
+ callback: (form_data)=>{
277
+ let result = {},
278
+ val;
279
+ for(let pro in form_data){
280
+ val = form_data[pro];
281
+ if(val) result[pro] = val;
282
+ }
283
+ if(!Object.values(result).join("")) result = { result: "暂无数据" };
284
+ this.data_4.submit_data = result;
285
+ },
286
+ btn_data: {
287
+ btnText: "提交表单",
288
+ btnColor: {
289
+ normal: {
290
+ text: "light",
291
+ bg: "dgray",
292
+ line: "dgray",
293
+ },
294
+ hover: {
295
+ text: "light",
296
+ bg: "blue",
297
+ line: "#1159cd",
298
+ }
299
+ }
300
+ },
301
+ reset: true
302
+ }
303
+ }
304
+ },
305
+ submit_data: {},
306
+ pannel_info: {
307
+ visible: false,
308
+ selected: {},
309
+ }
310
+ },
311
+
312
+ }
313
+ },
314
+ methods: {
315
+
316
+ //切换弹窗1
317
+ $_toggle_pannel1(){
318
+ this.data_1.pannel_info.visible = !this.data_1.pannel_info.visible;
319
+ },
320
+
321
+ //切换弹窗2
322
+ $_toggle_pannel2(){
323
+ this.data_2.pannel_info.visible = !this.data_2.pannel_info.visible;
324
+ },
325
+
326
+ //切换弹窗3
327
+ $_toggle_pannel3(){
328
+ this.data_3.pannel_info.visible = !this.data_3.pannel_info.visible;
329
+ },
330
+
331
+ //切换弹窗4
332
+ $_toggle_pannel4(){
333
+ this.data_4.pannel_info.visible = !this.data_4.pannel_info.visible;
334
+ },
335
+
336
+ }
337
+ }
338
+ </script>