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,36 @@
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>
@@ -0,0 +1,64 @@
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>
@@ -0,0 +1,42 @@
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>
@@ -0,0 +1,36 @@
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>
@@ -0,0 +1,76 @@
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
+ ]
@@ -0,0 +1,49 @@
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
+ ]
@@ -0,0 +1,197 @@
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>
@@ -0,0 +1,134 @@
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>