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,36 +0,0 @@
1
- <template>
2
- <article>
3
- <header-info v-bind="introduce" />
4
-
5
- <!--标记文本样式-->
6
- <section>
7
- <h5>标记文本样式</h5>
8
- <p>【exp】:</p>
9
- <b-view>
10
- <b-view>If you were a teardrop;<b-text class="bg-color-blue color-light">In my eye,For fear of losing you,I would never cry.</b-text>And if the golden sun,Should cease to shine its light,<b-text class="bold">Just one smile from you,Would make my whole world bright.</b-text></b-view>
11
- <b-view class="mrg-t-1">如果你是我眼里的一滴泪,<b-text class="color-blue">为了不失去你,我将永不哭泣;</b-text>如果金色的阳光停止了它耀眼的光芒,<b-text class="color-sub">你的一个微笑,将照亮我的整个世界。</b-text></b-view>
12
- </b-view>
13
- <pre ref="$code" class="lang-html round-md pad-v-1 mrg-t-2 auto-scroll" v-html="exp1"></pre>
14
- </section>
15
- </article>
16
- </template>
17
-
18
- <script setup lang="ts">
19
- import BView from "@/components/BTXUI/core/b-view/index.vue"
20
- import BText from "@/components/BTXUI/core/b-text/index.vue"
21
- import introduce from "@/components/BTXUI/core/b-text/doc"
22
- import hljs from "highlight.js"
23
-
24
- const $code = ref();
25
-
26
- const exp1 = `
27
- <b-view>
28
- <b-view>If you were a teardrop;<b-text class="bg-color-blue color-light">In my eye,For fear of losing you,I would never cry.</b-text>And if the golden sun,Should cease to shine its light,<b-text class="bold">Just one smile from you,Would make my whole world bright.</b-text></b-view>
29
- <b-view class="mrg-t-1">如果你是我眼里的一滴泪,<b-text class="color-blue">为了不失去你,我将永不哭泣;</b-text>如果金色的阳光停止了它耀眼的光芒,<b-text class="color-sub">你的一个微笑,将照亮我的整个世界。</b-text></b-view>
30
- </b-view>`.replace(/</g, "&lt;").replace(/>/g, "&gt;");
31
-
32
-
33
- onMounted(() => {
34
- hljs.highlightElement($code.value);
35
- })
36
- </script>
@@ -1,64 +0,0 @@
1
- <template>
2
- <article>
3
- <header-info v-bind="header_info" />
4
-
5
- <section>
6
- <h5>基础使用</h5>
7
- <p>通过 <code>rows</code> 属性可设置文本输入框最大行数。<code>to_html</code> 方法则可以将换行符转换为 html &lt;br&gt; 标签。</p>
8
- <div class="resize">
9
- <b-textarea ref="textarea" styles="pad-1 bg-color-lgray line line-#ddd thick-1 round-sm" v-bind="data_1.props" v-model="data_1.val" />
10
- <p class="flex">
11
- <btn-wid @on_click="$_trans_html1" btnText="获取当前输入内容" />
12
- </p>
13
- </div>
14
- <p>
15
- <code v-if="data_1.html_str" v-html="data_1.html_str"></code>
16
- <span v-else class="alpha-d5">暂无内容</span>
17
- </p>
18
- </section>
19
-
20
- </article>
21
- </template>
22
-
23
- <script>
24
- import HeaderInfo from "@/components/header-info"
25
- import BTextarea from "@/components/BTXUI/core/b-textarea"
26
- import BtnWid from "@/components/BTXUI/btn/btn-wid"
27
-
28
- export default {
29
- name: "b_textarea_demo",
30
- components: {
31
- HeaderInfo,
32
- BTextarea,
33
- BtnWid
34
- },
35
- data(){
36
- return {
37
-
38
- //初始化入参
39
- header_info: {
40
- name: BTextarea.name,
41
- ...BTextarea.introduce,
42
- },
43
-
44
- data_1: {
45
- props: {
46
- name: "uname",
47
- placeholder: "开始编辑您的个人博客...",
48
- rows: 6
49
- },
50
- val: "",
51
- html_str: ""
52
- }
53
-
54
- }
55
- },
56
- methods: {
57
-
58
- $_trans_html1(){
59
- this.data_1.html_str = this.$refs.textarea.to_html();
60
- }
61
-
62
- }
63
- }
64
- </script>
@@ -1,42 +0,0 @@
1
- <template>
2
- <article>
3
- <header-info v-bind="header_info" />
4
-
5
- <!--基础使用-->
6
- <section>
7
- <h5>基础使用</h5>
8
- <p>通过 <code>video</code> 属性绑定视频资源即可显示。</p>
9
- <p>
10
- <b-video v-bind="data_1" />
11
- </p>
12
- </section>
13
- </article>
14
- </template>
15
-
16
- <script>
17
- import HeaderInfo from "@/components/header-info"
18
- import BVideo from "@/components/BTXUI/core/b-video"
19
-
20
- export default {
21
- name: "b_video_demo",
22
- components: {
23
- HeaderInfo,
24
- BVideo
25
- },
26
- data(){
27
- return {
28
-
29
- //初始化入参
30
- header_info: {
31
- name: BVideo.name,
32
- ...BVideo.introduce,
33
- },
34
-
35
- data_1: {
36
- video: "https://cdn.modao.cc/video/cf/0715/new_design.mp4"
37
- }
38
-
39
- }
40
- }
41
- }
42
- </script>
@@ -1,36 +0,0 @@
1
- <template>
2
- <article>
3
- <header-info v-bind="introduce" />
4
-
5
- <!--设置背景图-->
6
- <section>
7
- <h5>设置背景图</h5>
8
- <p>通过 <code>bgImg</code> 属性可设置背景图,之后可通过背景图相关 class 属性进行其它样式化处理。</p>
9
- <p>【exp】:</p>
10
- <b-view class="flex">
11
- <b-view class="w-10 h-10 round-md mrg-r-9 bg-size-cover" bg-img="/img/head.jpg"></b-view>
12
- <b-view class="w-10 h-10 round-md bg-size-cover" bg-img="/img/head2.jpg"></b-view>
13
- </b-view>
14
- <pre ref="$code" class="lang-html round-md pad-v-1 mrg-t-2 auto-scroll" v-html="exp1"></pre>
15
- </section>
16
-
17
- </article>
18
- </template>
19
-
20
- <script setup lang="ts">
21
- import BView from "@/components/BTXUI/core/b-view/index.vue"
22
- import introduce from "@/components/BTXUI/core/b-view/doc"
23
- import hljs from "highlight.js"
24
-
25
- const $code = ref();
26
-
27
- const exp1 = `
28
- &lt;b-view class="flex"&gt;
29
- &lt;b-view class="w-10 h-10 round-md mrg-r-9 bg-size-cover" bg-img="/img/head.jpg"&gt;&lt;b-view&gt;
30
- &lt;b-view class="w-10 h-10 round-md bg-size-cover" bg-img="/img/head2.jpg"&gt;&lt;b-view&gt;
31
- &lt;/b-view&gt;`;
32
-
33
- onMounted(() => {
34
- hljs.highlightElement($code.value);
35
- })
36
- </script>
@@ -1,76 +0,0 @@
1
- //基础组件
2
- import b_style_demo from './b_style_demo'
3
- import b_view_demo from './b_view_demo'
4
- import b_video_demo from './b_video_demo'
5
- import b_text_demo from './b_text_demo'
6
- import b_hot_demo from './b_hot_demo'
7
- import b_img_demo from './b_img_demo'
8
- import b_icon_demo from './b_icon_demo'
9
- import b_input_demo from './b_input_demo'
10
- import b_textarea_demo from './b_textarea_demo'
11
- import b_list_demo from './b_list_demo'
12
- import b_grid_demo from './b_grid_demo'
13
- import b_drag_demo from './b_drag_demo'
14
-
15
- export default [
16
- {
17
- path: '/b_style_demo',
18
- component: b_style_demo,
19
- text: "<b>b-style</b> 样式机制"
20
- },
21
- {
22
- path: '/b_view_demo',
23
- component: b_view_demo,
24
- text: "<b>b-view</b> 基础布局"
25
- },
26
- {
27
- path: '/b_grid_demo',
28
- component: b_grid_demo,
29
- text: "<b>b-grid</b> 栅格布局"
30
- },
31
- {
32
- path: '/b_video_demo',
33
- component: b_video_demo,
34
- text: "<b>b-video</b> 视频媒体"
35
- },
36
- {
37
- path: '/b_text_demo',
38
- component: b_text_demo,
39
- text: "<b>b-text</b> 文字区域"
40
- },
41
- {
42
- path: '/b_hot_demo',
43
- component: b_hot_demo,
44
- text: "<b>b-hot</b> 热点区域"
45
- },
46
- {
47
- path: '/b_img_demo',
48
- component: b_img_demo,
49
- text: "<b>b-img</b> 图像"
50
- },
51
- {
52
- path: '/b_icon_demo',
53
- component: b_icon_demo,
54
- text: "<b>b-icon</b> 图标"
55
- },
56
- {
57
- path: '/b_input_demo',
58
- component: b_input_demo,
59
- text: "<b>b-input</b> 表单输入"
60
- },
61
- {
62
- path: '/b_textarea_demo',
63
- component: b_textarea_demo,
64
- text: "<b>b-textarea</b> 文字域输入"
65
- },
66
- {
67
- path: '/b_list_demo',
68
- component: b_list_demo,
69
- text: "<b>b-list</b> 滚动列表"
70
- },
71
- {
72
- path: '/b_drag_demo',
73
- component: b_drag_demo,
74
- text: "<b>b-drag</b> 拖拽元素"
75
- }
76
- ]
@@ -1,49 +0,0 @@
1
- import global_style from './global_style' //全局样式
2
- import base_widget from './base_wid' //基础组件
3
- import app_widget from './app_wid' //应用组件
4
-
5
- const set_content = (data)=>{
6
- return data.map((item)=>{
7
- return {
8
- id: item.path,
9
- text: item.text
10
- }
11
- })
12
- }
13
-
14
- export default [
15
- {
16
- id: "/download",
17
- text: "<b>下载及安装</b>"
18
- },
19
- {
20
- id: "/start",
21
- text: "<b>起步</b>"
22
- },
23
- {
24
- id: "a",
25
- text: "<b>全局样式</b>",
26
- children: set_content(global_style)
27
- },
28
- {
29
- id: "b",
30
- text: "<b>主题组件</b>",
31
- children: [
32
- {
33
- id: "/level_widget",
34
- text: "Level 主题 UI 库"
35
- }
36
- ]
37
- },
38
- {
39
- id: "c",
40
- text: "<b>基础组件</b>",
41
- children: set_content(base_widget)
42
- },
43
- {
44
- id: "e",
45
- text: "<b>应用组件</b>",
46
- children: set_content(app_widget),
47
- spread: true
48
- }
49
- ]
@@ -1,197 +0,0 @@
1
- <template>
2
- <article>
3
- <p>BTX·UI 提供了多种常用 animation 及 transition 动画效果。</p>
4
- <p></p>
5
-
6
- <!-- 过渡动画(transition) -->
7
- <h5>过渡动画(transition)</h5>
8
- <table class="table">
9
- <thead>
10
- <tr>
11
- <th>样式类</th>
12
- <th>效果</th>
13
- </tr>
14
- </thead>
15
- <tbody>
16
- <tr>
17
- <td>
18
- <code>.trans</code>
19
- </td>
20
- <td>中速过度动画(.7s)</td>
21
- </tr>
22
- <tr>
23
- <td>
24
- <code>.trans-fast</code>
25
- </td>
26
- <td>快速过度动画(.4s)</td>
27
- </tr>
28
- <tr>
29
- <td>
30
- <code>.trans-slow</code>
31
- </td>
32
- <td>慢速过度动画(1.4s)</td>
33
- </tr>
34
- <tr>
35
- <td>
36
- <code>.trans-no</code>
37
- </td>
38
- <td>无过度动画</td>
39
- </tr>
40
- </tbody>
41
- </table>
42
- <p></p>
43
- <p>
44
- 通过
45
- <code>.trans-delay-*</code> 可以设置过渡动画延迟执行时间,预置的延时值:0.1 — 1、1.5、2、2.5、3、3.5、4、4.5、5、5.5,单位 s。数值 "." 使用 "d" 代替,"0" 使用 "" 空字符串代替。比如 0.5 s 延时,类名为
46
- <code>.trans-delay-d5</code>。
47
- </p>
48
- <p></p>
49
-
50
- <!-- 动画(animation) -->
51
- <h5>动画(animation)</h5>
52
- <p>
53
- 框架预置了多种常用 animation 动画效果。通过
54
- <code>.ani-delay-*</code> 可以设置动画延迟执行时间,预置的延时值:0.1 — 0.9、1 — 10,单位 s。
55
- </p>
56
- <p>
57
- 通过
58
- <code>.ani-mode-*</code> 可以设置动画 animation-fill-mode 样式,包括:"forwards"、"backwards"、"both" 3 项值。
59
- </p>
60
- <p>
61
- 此外
62
- <code>.ani-loop-*</code> 样式类可以设置动画迭代次数,预置的次数为:1 — 6。
63
- <code>.ani-loop</code> 为无限循环。
64
- </p>
65
- <table class="table">
66
- <thead>
67
- <tr>
68
- <th>预置样式类</th>
69
- <th>效果</th>
70
- </tr>
71
- </thead>
72
- <tbody>
73
- <tr>
74
- <td>
75
- <code>.ani-fade-in</code>
76
- </td>
77
- <td>淡入动画</td>
78
- </tr>
79
- <tr>
80
- <td>
81
- <code>.ani-fade-out</code>
82
- </td>
83
- <td>淡出动画</td>
84
- </tr>
85
- <tr>
86
- <td>
87
- <code>.ani-scale-fade-in</code>
88
- </td>
89
- <td>缩放式淡入动画</td>
90
- </tr>
91
- <tr>
92
- <td>
93
- <code>.ani-scale-fade-out</code>
94
- </td>
95
- <td>放缩式淡出动画</td>
96
- </tr>
97
- <tr>
98
- <td>
99
- <code>.ani-v-stretch-h-in</code>
100
- </td>
101
- <td>先垂直后水平伸展式动画</td>
102
- </tr>
103
- <tr>
104
- <td>
105
- <code>.ani-h-stretch-v-in</code>
106
- </td>
107
- <td>先水平后垂直伸展式动画</td>
108
- </tr>
109
- <tr>
110
- <td>
111
- <code>.ani-left-to-right</code>
112
- </td>
113
- <td>由左向右滑动动画</td>
114
- </tr>
115
- <tr>
116
- <td>
117
- <code>.ani-right-to-left</code>
118
- </td>
119
- <td>由右向左滑动动画</td>
120
- </tr>
121
- <tr>
122
- <td>
123
- <code>.ani-top-to-bottom</code>
124
- </td>
125
- <td>由上向下滑动动画</td>
126
- </tr>
127
- <tr>
128
- <td>
129
- <code>.ani-bottom-to-top</code>
130
- </td>
131
- <td>由下向上滑动动画</td>
132
- </tr>
133
- <tr>
134
- <td>
135
- <code>.ani-rotate</code>
136
- </td>
137
- <td>旋转 360 度动画</td>
138
- </tr>
139
- <tr>
140
- <td>
141
- <code>.ani-rotate-half</code>
142
- </td>
143
- <td>旋转 180 度动画</td>
144
- </tr>
145
- <tr>
146
- <td>
147
- <code>.ani-rotate-90</code>
148
- </td>
149
- <td>旋转 90 度动画</td>
150
- </tr>
151
- <tr>
152
- <td>
153
- <code>.ani-rotate-45</code>
154
- </td>
155
- <td>旋转 45 度动画</td>
156
- </tr>
157
- </tbody>
158
- </table>
159
- <p></p>
160
- <p>animation 同过渡动画一样,具备相同的 3 项动画持续时间设置。框架预置的动画效果默认采用中速动画。</p>
161
- <table class="table">
162
- <thead>
163
- <tr>
164
- <th>样式类</th>
165
- <th>效果</th>
166
- </tr>
167
- </thead>
168
- <tbody>
169
- <tr>
170
- <td>
171
- <code>.ani</code>
172
- </td>
173
- <td>中速动画(.7s)</td>
174
- </tr>
175
- <tr>
176
- <td>
177
- <code>.ani-fast</code>
178
- </td>
179
- <td>快速动画(.4s)</td>
180
- </tr>
181
- <tr>
182
- <td>
183
- <code>.ani-slow</code>
184
- </td>
185
- <td>慢速动画(1.4s)</td>
186
- </tr>
187
- </tbody>
188
- </table>
189
-
190
- </article>
191
- </template>
192
-
193
- <script>
194
- export default {
195
- name: "animation"
196
- };
197
- </script>
@@ -1,134 +0,0 @@
1
- <template>
2
- <article>
3
- <p>BTX·UI 预置了基于 Level 的色彩主题。</p>
4
- <p></p>
5
-
6
- <!-- 主题色 -->
7
- <section>
8
- <h5>主题色(theme color)</h5>
9
- <p>主题色包括标准色、辅助色、灰阶、常用彩色、中性色 5 部分。此外还有特殊值 none 可用于设置全透明颜色。</p>
10
- <table class="table">
11
- <thead>
12
- <tr>
13
- <th>样式类</th>
14
- <th>效果</th>
15
- </tr>
16
- </thead>
17
- <tbody>
18
- <tr>
19
- <td><code>.bg-color-*</code></td>
20
- <td>背景色</td>
21
- </tr>
22
- <tr>
23
- <td><code>.color-*</code></td>
24
- <td>文字色</td>
25
- </tr>
26
- <tr>
27
- <td><code>.line-*</code></td>
28
- <td>描边色</td>
29
- </tr>
30
- </tbody>
31
- </table>
32
- <p></p>
33
- <p>标准色及辅助色:</p>
34
- <div class="flex pcenter">
35
- <div class="flex-5 flex-column mrg-r-5 mrg-r-3-s">
36
- <div class="w-4 h-4 round bg-color-main w-3-s h-3-s"></div>
37
- <p>邃蓝<br><span class="color-mgray fsize-d9">main</span><br><b class="fsize-d9">#051c24</b></p>
38
- </div>
39
- <div class="flex-5 flex-column">
40
- <div class="w-4 h-4 round bg-color-sub w-3-s h-3-s"></div>
41
- <p>锡金<br><span class="color-mgray fsize-d9">sub</span><br><b class="fsize-d9">#b4967a</b></p>
42
- </div>
43
- </div>
44
- <p>灰阶色:</p>
45
- <div class="flex pcenter">
46
- <div class="mrg-r-7 flex-5 flex-column mrg-r-2d5-s mrg-l-1-s">
47
- <div class="w-4 h-4 round bg-color-light line-lgray thick-2 line w-2-s h-2-s"></div>
48
- <p>纯白<br><span class="color-mgray fsize-d9">light</span><br><b class="fsize-d9">#fff</b></p>
49
- </div>
50
- <div class="mrg-r-6 flex-5 flex-column mrg-r-1d5-s">
51
- <div class="w-4 h-4 round bg-color-lgray w-2-s h-2-s"></div>
52
- <p>浅灰<br><span class="color-mgray fsize-d9">lgray</span><br><b class="fsize-d9">#eee</b></p>
53
- </div>
54
- <div class="mrg-r-6 flex-5 flex-column mrg-r-1-s">
55
- <div class="w-4 h-4 round bg-color-mgray w-2-s h-2-s"></div>
56
- <p>中灰<br><span class="color-mgray fsize-d9">mgray</span><br><b class="fsize-d9">#a7a7a7</b></p>
57
- </div>
58
- <div class="mrg-r-6 flex-5 flex-column mrg-r-2-s">
59
- <div class="w-4 h-4 round bg-color-dgray w-2-s h-2-s"></div>
60
- <p>深灰<br><span class="color-mgray fsize-d9">dgray</span><br><b class="fsize-d9">#373737</b></p>
61
- </div>
62
- <div class="flex-5 flex-column">
63
- <div class="w-4 h-4 round bg-color-dark w-2-s h-2-s"></div>
64
- <p>纯黑<br><span class="color-mgray fsize-d9">dark</span><br><b class="fsize-d9">#111</b></p>
65
- </div>
66
- </div>
67
- <p>常用彩色:</p>
68
- <div class="flex pcenter">
69
- <div class="mrg-r-5 flex-5 flex-column mrg-r-2-s">
70
- <div class="w-4 h-4 round bg-color-blue w-3-s h-3-s"></div>
71
- <p>湛蓝<br><span class="color-mgray fsize-d9">blue</span><br><b class="fsize-d9">#4085f3</b></p>
72
- </div>
73
- <div class="mrg-r-5 flex-5 flex-column mrg-r-2-s">
74
- <div class="w-4 h-4 round bg-color-green w-3-s h-3-s"></div>
75
- <p>青绿<br><span class="color-mgray fsize-d9">green</span><br><b class="fsize-d9">#02b9a1</b></p>
76
- </div>
77
- <div class="mrg-r-6 flex-5 flex-column rel l-4px mrg-r-2-s">
78
- <div class="w-4 h-4 round bg-color-yellow w-3-s h-3-s"></div>
79
- <p>橙黄<br><span class="color-mgray fsize-d9">yellow</span><br><b class="fsize-d9">#fdba00</b></p>
80
- </div>
81
- <div class="flex-5 flex-column rel l-5px">
82
- <div class="w-4 h-4 round bg-color-red w-3-s h-3-s"></div>
83
- <p>玫红<br><span class="color-mgray fsize-d9">red</span><br><b class="fsize-d9">#ec4334</b></p>
84
- </div>
85
- </div>
86
- <p>中性色:</p>
87
- <p>中性色 neutral 是基于 <code>rgba(134,134,134,.17)</code> 色彩模式的半透明灰色,可同时适用于深色及浅色背景,在框架中用于设置了分割线 <code>&lt;hr&gt;</code> 的颜色。</p>
88
- <p></p>
89
- </section>
90
-
91
- <!-- 不透明度 -->
92
- <section>
93
- <h5>不透明度</h5>
94
- <p>使用 <code>.alpha-*</code> 可以设置元素的不透明度,范围是 0 - 1 逐级不透明,1 为完全不透明,0 为全透明。全透明时其 visibility 属性为 hidden。数值 "." 使用 "d" 代替。比如 0.5,类名为<code>.alpha-d5</code>。</p>
95
- <p>【示例】:</p>
96
- <div class="grid pcenter">
97
- <div class="col-4 pad-r-d5 pad-b-d5">
98
- <div class="bg-color-mgray alpha-d9 round-sm">alpha-d9</div>
99
- </div>
100
- <div class="col-4 pad-r-d5 pad-b-d5">
101
- <div class="bg-color-mgray alpha-d8 round-sm">alpha-d8</div>
102
- </div>
103
- <div class="col-4 pad-r-d5 pad-b-d5">
104
- <div class="bg-color-mgray alpha-d7 round-sm">alpha-d7</div>
105
- </div>
106
- <div class="col-4 pad-r-d5 pad-b-d5">
107
- <div class="bg-color-mgray alpha-d6 round-sm">alpha-d6</div>
108
- </div>
109
- <div class="col-4 pad-r-d5 pad-b-d5">
110
- <div class="bg-color-mgray alpha-d5 round-sm">alpha-d5</div>
111
- </div>
112
- <div class="col-4 pad-r-d5 pad-b-d5">
113
- <div class="bg-color-mgray alpha-d4 round-sm">alpha-d4</div>
114
- </div>
115
- <div class="col-4 pad-r-d5 pad-b-d5">
116
- <div class="bg-color-mgray alpha-d3 round-sm">alpha-d3</div>
117
- </div>
118
- <div class="col-4 pad-r-d5 pad-b-d5">
119
- <div class="bg-color-mgray alpha-d2 round-sm">alpha-d2</div>
120
- </div>
121
- <div class="col-4 pad-r-d5 pad-b-d5">
122
- <div class="bg-color-mgray alpha-d1 round-sm">alpha-d1</div>
123
- </div>
124
- </div>
125
- </section>
126
-
127
- </article>
128
- </template>
129
-
130
- <script>
131
- export default {
132
- name: "color"
133
- };
134
- </script>