index.vue 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  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. <text class="status-item click">可以考试</text><text class="status-item">已结束</text>
  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 class="lli-tc demo-title">------------扩展组件-------------</view>
  31. <uni-section title="自定义样式" subTitle="使用 styles 属性 ,可以自定义输入框样式" type="line" padding>
  32. <uni-easyinput v-model="value" placeholder="请输入内容"@input="input"></uni-easyinput>
  33. </uni-section>
  34. </view>
  35. </scroll-view>
  36. </view>
  37. </template>
  38. <script>
  39. export default {
  40. data() {
  41. return {
  42. value:'',
  43. }
  44. },
  45. methods: {
  46. search:function(){},
  47. }
  48. }
  49. </script>
  50. <style lang="scss">
  51. .lli-demo-page{
  52. display: flex;flex-direction: column;
  53. height: 100vh;padding-bottom: 60rpx;box-sizing: border-box;
  54. .demo-scroll-view{
  55. overflow-y: auto;flex: 1;
  56. }
  57. .content-view{padding: 24px;box-sizing: border-box;}
  58. .demo-title{margin: 24px 0 10px;}
  59. }
  60. </style>