group.vue 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. <template>
  2. <view class="container">
  3. <uni-card :is-shadow="false" is-full>
  4. <text class="uni-h6">分组组件可用于将组件分组,添加间隔,以产生明显的区块。</text>
  5. </uni-card>
  6. <uni-section title="基础分组" type="line">
  7. <uni-group>
  8. <view> 分组内容 </view>
  9. <view> 分组内容 </view>
  10. <view> 分组内容 </view>
  11. <view> 分组内容 </view>
  12. </uni-group>
  13. <uni-group title="基本模式" margin-top="20">
  14. <view> 分组内容 </view>
  15. <view> 分组内容 </view>
  16. <view> 分组内容 </view>
  17. <view> 分组内容 </view>
  18. </uni-group>
  19. </uni-section>
  20. <uni-section title="卡片分组" type="line">
  21. <uni-group mode="card">
  22. <view> 分组内容 </view>
  23. <view> 分组内容 </view>
  24. <view> 分组内容 </view>
  25. <view> 分组内容 </view>
  26. </uni-group>
  27. <uni-group title="card 模式" mode="card">
  28. <view> 分组内容 </view>
  29. <view> 分组内容 </view>
  30. <view> 分组内容 </view>
  31. <view> 分组内容 </view>
  32. </uni-group>
  33. </uni-section>
  34. </view>
  35. </template>
  36. <script>
  37. export default {
  38. components: {},
  39. data() {
  40. return {
  41. appear: false,
  42. name: '',
  43. mobile: '139 9999 9999',
  44. weixin: 'sskd',
  45. message: '',
  46. errorMessage: ''
  47. }
  48. },
  49. onReady() {
  50. },
  51. methods: {
  52. }
  53. }
  54. </script>
  55. <style lang="scss">
  56. .uni-wrap {
  57. flex-direction: column;
  58. /* #ifdef H5 */
  59. height: calc(100vh - 44px);
  60. /* #endif */
  61. /* #ifndef H5 */
  62. height: 100vh;
  63. /* #endif */
  64. flex: 1;
  65. }
  66. .scroll {
  67. flex-direction: column;
  68. flex: 1;
  69. }
  70. .example-body {
  71. padding: 0;
  72. /* #ifndef APP-NVUE */
  73. display: block;
  74. /* #endif */
  75. }
  76. </style>