Skip to content

Commit 547a55b

Browse files
committed
style: dmeo
1 parent 3f01f14 commit 547a55b

File tree

102 files changed

+274
-441
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

102 files changed

+274
-441
lines changed

.eslintrc.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,16 @@ module.exports = {
4444
{
4545
files: ['*.vue'],
4646
parser: 'vue-eslint-parser',
47+
parserOptions: {
48+
parser: '@typescript-eslint/parser',
49+
},
50+
rules: {
51+
'no-console': 'off',
52+
'@typescript-eslint/no-unused-vars': [
53+
'error',
54+
{ vars: 'all', args: 'after-used', ignoreRestSiblings: true },
55+
],
56+
},
4757
},
4858
],
4959
rules: {

.prettierrc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
{
22
"singleQuote": true,
33
"trailingComma": "all",
4+
"endOfLine": "lf",
45
"printWidth": 100,
56
"proseWrap": "never",
67
"arrowParens": "avoid",
8+
"htmlWhitespaceSensitivity": "ignore",
79
"overrides": [
810
{
911
"files": ".prettierrc",

components/alert/demo/custom-icon.vue

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,16 +20,16 @@ Custom Icon make information more clear and more friendly.
2020
<a-alert message="showIcon = false" type="success">
2121
<template #icon><smile-outlined /></template>
2222
</a-alert>
23-
<a-alert message="Success Tips" type="success" showIcon>
23+
<a-alert message="Success Tips" type="success" show-icon>
2424
<template #icon><smile-outlined /></template>
2525
</a-alert>
26-
<a-alert message="Informational Notes" type="info" showIcon>
26+
<a-alert message="Informational Notes" type="info" show-icon>
2727
<template #icon><smile-outlined /></template>
2828
</a-alert>
29-
<a-alert message="Warning" type="warning" showIcon>
29+
<a-alert message="Warning" type="warning" show-icon>
3030
<template #icon><smile-outlined /></template>
3131
</a-alert>
32-
<a-alert message="Error" type="error" showIcon>
32+
<a-alert message="Error" type="error" show-icon>
3333
<template #icon><smile-outlined /></template>
3434
</a-alert>
3535
<a-alert

components/anchor/demo/customizeHighlight.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Customize the anchor highlight.
1616
</docs>
1717

1818
<template>
19-
<a-anchor :affix="false" :getCurrentAnchor="getCurrentAnchor">
19+
<a-anchor :affix="false" :get-current-anchor="getCurrentAnchor">
2020
<a-anchor-link href="#components-anchor-demo-basic" title="Basic demo" />
2121
<a-anchor-link href="#components-anchor-demo-static" title="Static demo" />
2222
<a-anchor-link href="#API" title="API">

components/auto-complete/demo/certain-category.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -105,15 +105,15 @@ const dataSource = [
105105
},
106106
];
107107
export default defineComponent({
108+
components: {
109+
SearchOutlined,
110+
},
108111
setup() {
109112
return {
110113
value: ref(''),
111114
dataSource,
112115
};
113116
},
114-
components: {
115-
SearchOutlined,
116-
},
117117
});
118118
</script>
119119

components/auto-complete/demo/uncertain-category.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ Lookup-Patterns - Uncertain Category.
3939
<span class="global-search-item-count">{{ item.count }} results</span>
4040
</a-select-option>
4141
</template>
42-
<a-input-search size="large" placeholder="input here" enterButton></a-input-search>
42+
<a-input-search size="large" placeholder="input here" enter-button></a-input-search>
4343
</a-auto-complete>
4444
</div>
4545
</template>

components/breadcrumb/demo/router.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ Used together with `vue-router`
1919
<template>
2020
<div>
2121
<a-breadcrumb :routes="routes">
22-
<template #itemRender="{ route, routes, paths }">
22+
<template #itemRender="{ route, paths }">
2323
<span v-if="routes.indexOf(route) === routes.length - 1">
2424
{{ route.breadcrumbName }}
2525
</span>

components/card/demo/meta.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ A Card that supports `cover`, `avatar`, `title` and `description`.
2424
src="https://gw.alipayobjects.com/zos/rmsportal/JiqGstEfoWAOHiTxclqi.png"
2525
/>
2626
</template>
27-
<template class="ant-card-actions" #actions>
27+
<template #actions class="ant-card-actions">
2828
<setting-outlined key="setting" />
2929
<edit-outlined key="edit" />
3030
<ellipsis-outlined key="ellipsis" />

components/collapse/demo/index.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ export default {
3434
Mix,
3535
Noarrow,
3636
Extra,
37-
Ghost
37+
Ghost,
3838
},
3939
};
4040
</script>

components/color-picker/demo/index.vue

Lines changed: 0 additions & 50 deletions
This file was deleted.

0 commit comments

Comments
 (0)