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,338 +0,0 @@
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>