Skip to content

Commit

Permalink
refactor: linkProps move to setup script
Browse files Browse the repository at this point in the history
  • Loading branch information
wxsms committed Dec 6, 2021
1 parent a32f5f1 commit 3bf81ec
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 28 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
"eslint-config-prettier": "8.3.0",
"eslint-plugin-html": "6.2.0",
"eslint-plugin-prettier": "4.0.0",
"eslint-plugin-vue": "8.1.1",
"eslint-plugin-vue": "8.2.0",
"jest": "27.4.3",
"jest-serializer-vue": "2.0.2",
"less": "4.1.2",
Expand Down
26 changes: 6 additions & 20 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 1 addition & 3 deletions src/components/breadcrumbs/BreadcrumbItem.vue
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,9 @@
</li>
</template>

<script>
<script setup>
import { linkProps } from '../../props/link.props';
</script>
<script setup>
defineProps({
...linkProps,
active: { type: Boolean, default: false },
Expand Down
5 changes: 1 addition & 4 deletions src/components/button/Btn.vue
Original file line number Diff line number Diff line change
Expand Up @@ -53,13 +53,10 @@
</button>
</template>

<script>
import { linkProps } from '../../props/link.props';
</script>

<script setup>
import BtnGroup from './BtnGroup.vue';
import { computed } from 'vue';
import { linkProps } from '../../props/link.props';
const props = defineProps({
...linkProps,
Expand Down

0 comments on commit 3bf81ec

Please sign in to comment.