text.vue 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169
  1. <template>
  2. <view>
  3. <cu-custom bgColor="bg-gradual-blue" :isBack="true"><block slot="backText">返回</block><block slot="content">文本</block></cu-custom>
  4. <view class="cu-bar bg-white solid-bottom">
  5. <view class="action">
  6. <text class="cuIcon-title text-blue"></text>文字大小
  7. </view>
  8. </view>
  9. <view class="bg-white padding-lr">
  10. <view class="solids-bottom padding-xs flex align-center">
  11. <view class="padding">60</view>
  12. <view class="flex-sub text-center">
  13. <view class="solid-bottom text-xsl padding">
  14. <text class=" cuIcon-roundcheckfill text-green"></text>
  15. </view>
  16. <view class="padding">用于图标、数字等特大显示</view>
  17. </view>
  18. </view>
  19. <view class="solids-bottom padding-xs flex align-center">
  20. <view class="padding">40</view>
  21. <view class="flex-sub text-center">
  22. <view class="solid-bottom text-sl padding">
  23. <text class=" cuIcon-roundcheckfill text-green"></text>
  24. </view>
  25. <view class="padding">用于图标、数字等较大显示</view>
  26. </view>
  27. </view>
  28. <view class="solids-bottom padding-xs flex align-center">
  29. <view class="padding">22</view>
  30. <view class="flex-sub text-center">
  31. <view class="solid-bottom text-xxl padding">
  32. <text class="text-price text-red">80.00</text>
  33. </view>
  34. <view class="padding">用于金额数字等信息</view>
  35. </view>
  36. </view>
  37. <view class="solids-bottom padding-xs flex align-center">
  38. <view class="padding">18</view>
  39. <view class="flex-sub text-center">
  40. <view class="solid-bottom text-xl padding">
  41. <text class="text-black text-bold">您的订单已提交成功!</text>
  42. </view>
  43. <view class="padding">页面大标题,用于结果页等单一信息页</view>
  44. </view>
  45. </view>
  46. <view class="solids-bottom padding-xs flex align-center">
  47. <view class="padding">16</view>
  48. <view class="flex-sub text-center">
  49. <view class="solid-bottom text-lg padding">
  50. <text class="text-black">ColorUI组件库</text>
  51. </view>
  52. <view class="padding">页面小标题,首要层级显示内容</view>
  53. </view>
  54. </view>
  55. <view class="solids-bottom padding-xs flex align-center">
  56. <view class="padding">14</view>
  57. <view class="flex-sub text-center">
  58. <view class="solid-bottom text-df padding">专注视觉的小程序组件库</view>
  59. <view class="padding">页面默认字号,用于摘要或阅读文本</view>
  60. </view>
  61. </view>
  62. <view class="solids-bottom padding-xs flex align-center">
  63. <view class="padding">12</view>
  64. <view class="flex-sub text-center">
  65. <view class="solid-bottom text-sm padding">
  66. <text class="text-grey">衬衫的价格是9磅15便士</text>
  67. </view>
  68. <view class="padding">页面辅助信息,次级内容等</view>
  69. </view>
  70. </view>
  71. <view class="padding-xs flex align-center">
  72. <view class="padding">10</view>
  73. <view class="flex-sub text-center">
  74. <view class="solid-bottom text-xs padding">
  75. <text class="text-gray">我于杀戮之中绽放 亦如黎明中的花朵</text>
  76. </view>
  77. <view class="padding">说明文本,标签文字等关注度低的文字</view>
  78. </view>
  79. </view>
  80. </view>
  81. <view class="cu-bar bg-white solid-bottom margin-top">
  82. <view class="action">
  83. <text class="cuIcon-title text-blue"></text>文字颜色
  84. </view>
  85. </view>
  86. <view class="grid col-5 padding-sm">
  87. <view class="padding-sm" v-for="(item,index) in ColorList" :key="index">
  88. <view class="text-center" :class="'text-' + item.name">
  89. {{item.title}}
  90. </view>
  91. </view>
  92. </view>
  93. <view class="cu-bar bg-white solid-bottom margin-top">
  94. <view class="action">
  95. <text class="cuIcon-title text-blue"></text>文字阴影
  96. </view>
  97. </view>
  98. <view class="grid col-5 padding-sm">
  99. <view class="padding-sm" v-for="(item,index) in ColorList" :key="index">
  100. <view class="text-center text-shadow" :class="'text-' + item.name">
  101. <view class="cuIcon-ellipse text-xxl"></view>
  102. </view>
  103. </view>
  104. </view>
  105. <view class="cu-bar bg-white solid-bottom margin-top">
  106. <view class="action">
  107. <text class="cuIcon-title text-blue"></text>文字截断
  108. </view>
  109. </view>
  110. <view class="padding bg-white">
  111. <view class="text-cut padding bg-grey radius" style="width:220px">我于杀戮之中绽放 ,亦如黎明中的花朵</view>
  112. </view>
  113. <view class="cu-bar bg-white solid-bottom margin-top">
  114. <view class="action">
  115. <text class="cuIcon-title text-blue"></text>文字对齐
  116. </view>
  117. </view>
  118. <view class="padding bg-white">
  119. <view class="text-left padding">我于杀戮之中绽放 ,亦如黎明中的花朵</view>
  120. <view class="text-center padding">我于杀戮之中绽放 ,亦如黎明中的花朵</view>
  121. <view class="text-right padding">我于杀戮之中绽放 ,亦如黎明中的花朵</view>
  122. </view>
  123. <view class="cu-bar bg-white solid-bottom margin-top">
  124. <view class="action">
  125. <text class="cuIcon-title text-blue"></text>特殊文字
  126. </view>
  127. </view>
  128. <view class="padding text-center">
  129. <view class="padding-lr bg-white">
  130. <view class="solid-bottom padding">
  131. <text class="text-price">80.00</text>
  132. </view>
  133. <view class="padding">价格文本,利用伪元素添加"¥"符号</view>
  134. </view>
  135. <view class="padding-lr bg-white margin-top">
  136. <view class="solid-bottom padding">
  137. <text class="text-Abc">color Ui</text>
  138. </view>
  139. <view class="padding">英文单词首字母大写</view>
  140. </view>
  141. <view class="padding-lr bg-white margin-top">
  142. <view class="solid-bottom padding">
  143. <text class="text-ABC">color Ui</text>
  144. </view>
  145. <view class="padding">全部字母大写</view>
  146. </view>
  147. <view class="padding-lr bg-white margin-top">
  148. <view class="solid-bottom padding">
  149. <text class="text-abc">color Ui</text>
  150. </view>
  151. <view class="padding">全部字母小写</view>
  152. </view>
  153. </view>
  154. </view>
  155. </template>
  156. <script>
  157. export default {
  158. data() {
  159. return {
  160. ColorList: this.ColorList,
  161. };
  162. }
  163. }
  164. </script>
  165. <style>
  166. </style>