index.vue 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. <template>
  2. <view class="lli-demo-page">
  3. <uni-search-bar class="uni-mt-10" radius="100" placeholder="请输入考试名称" bgColor="#F3F3F4" clearButton="auto" cancelButton="none" @confirm="search"/>
  4. <view class="lli-status-box">
  5. <span class="click">可以考试</span><span>已结束</span>
  6. </view>
  7. <scroll-view class="demo-scroll-view" scroll-y="true">
  8. <view class="content-view">
  9. <view class="lli-tc demo-title">------------uni带的primary按钮-------------</view>
  10. <button type="primary">页面主操作 Normal</button>
  11. <button type="primary" loading="true">页面主操作 Loading</button>
  12. <button type="primary" disabled="true">页面主操作 Disabled</button>
  13. <view class="lli-tc demo-title">------------咱们要用的默认按钮↓-------------</view>
  14. <button class="lli-btn">页面次要操作 Normal</button>
  15. <button class="lli-btn" loading="true" >页面主操作 Loading</button>
  16. <button class="lli-btn" disabled="true" >页面次要操作 Disabled</button>
  17. <view class="lli-tc demo-title">---------咱们要用的按钮plain(线性)↓----------</view>
  18. <button class="lli-btn" plain="true">页面次要操作 Normal</button>
  19. <button class="lli-btn" loading="true" plain="true">页面主操作 Loading</button>
  20. <button class="lli-btn" disabled="true" plain="true">页面次要操作 Disabled</button>
  21. <view class="lli-tc demo-title">------------其他组件定义color="#0550e5"-------------</view>
  22. <checkbox-group>
  23. <label>
  24. <checkbox value="cb" checked="true" color="#0550e5"/>选中
  25. </label>
  26. <label>
  27. <checkbox value="cb" />未选中
  28. </label>
  29. </checkbox-group>
  30. </view>
  31. </scroll-view>
  32. </view>
  33. </template>
  34. <script>
  35. export default {
  36. data() {
  37. return {
  38. }
  39. },
  40. methods: {
  41. search:function(){},
  42. }
  43. }
  44. </script>
  45. <style lang="scss">
  46. .lli-demo-page{
  47. display: flex;flex-direction: column;
  48. height: 100vh;padding-bottom: 60rpx;box-sizing: border-box;
  49. .demo-scroll-view{
  50. overflow-y: auto;flex: 1;
  51. }
  52. .content-view{padding: 24px;box-sizing: border-box;}
  53. .demo-title{margin: 24px 0 10px;}
  54. }
  55. </style>