CLDXiang / today-frontend

https://fdxk.info
GNU General Public License v3.0
8 stars 4 forks source link

实现 FButton 组件并替换 AButton 组件 #148

Closed CLDXiang closed 3 years ago

CLDXiang commented 3 years ago

✨ 工作描述

resolve #123

🍀 给 Reviewer 的辅助信息

<template>
  <div class="content-box">
    <div class="center-content space-y-1 bg-gray-50">
      <f-button @click="handleClick">
        Click
      </f-button>
      <f-button loading>
        Click
      </f-button>
      <f-button
        type="primary"
        size="large"
      >
        Primary Large
      </f-button>
      <f-button
        type="primary"
        size="large"
        loading
      >
        Primary Large Loading
      </f-button>
      <f-button
        type="danger"
        size="small"
      >
        Danger Small
      </f-button>
      <f-button
        type="primary"
        shape="round"
      >
        Round
      </f-button>
      <f-button
        type="primary"
        shape="circle"
      >
        Circle
      </f-button>
      <f-button
        type="link"
      >
        Link
      </f-button>
      <f-button
        type="primary"
        ghost
      >
        ghost primary
      </f-button>
      <f-button
        ghost
      >
        ghost
      </f-button>
      <f-button
        disabled
        @click="handleClick"
      >
        disabled
      </f-button>
      <f-button
        type="link"
        disabled
      >
        disabled link
      </f-button>
    </div>
  </div>
</template>

<script lang="ts">
import {
  defineComponent,
} from 'vue';

export default defineComponent({
  setup() {
    return {
      handleClick: () => console.log('Hello!'),
    };
  },
});
</script>

<style lang="scss" scoped>
.content-box {
  height: 100%;
  width: 100%;

  display: flex;
  flex-direction: column;
  align-items: center;

  color: #444;
  font-size: 14px;

  > .center-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    > div:last-child {
      color: #aaa;
      font-size: 12px;
    }
  }
  > .bottom-content {
    justify-self: flex-end;
    padding-bottom: 12px;
  }
}
</style>

✅ 检查清单

vercel[bot] commented 3 years ago

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/cldxiang/today-frontend/3quEUrt5dxwujPaLjompkSvSvt4i
✅ Preview: https://today-frontend-git-feat-f-button-cldxiang.vercel.app

Ahacad commented 3 years ago

src/views/Rating/RatingForm.vue Line 318 Maxlen CI 报错 src/apis/rate/index.ts Line 156 Maxlen CI 报错,还有几个文件也是,100 行的限制好像不够用

拉到 PR 底部查看

CLDXiang commented 3 years ago

src/views/Rating/RatingForm.vue Line 318 Maxlen CI 报错 src/apis/rate/index.ts Line 156 Maxlen CI 报错,还有几个文件也是,100 行的限制好像不够用

拉到 PR 底部查看

在另一个 PR 已修复,和本 PR 无关