Skip to content

Commit d91f9b3

Browse files
committed
doc: update doc
1 parent f793a85 commit d91f9b3

File tree

8 files changed

+13
-16
lines changed

8 files changed

+13
-16
lines changed

components/affix/demo/target.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,11 @@ Set a `target` for 'Affix', which is listen to scroll event of target element (d
2626
</div>
2727
</template>
2828
<script lang="ts">
29-
import { defineComponent, ref, VNode } from 'vue';
29+
import { defineComponent, ref } from 'vue';
3030
3131
export default defineComponent({
3232
setup() {
33-
const containerRef = ref<VNode>();
33+
const containerRef = ref();
3434
return {
3535
containerRef,
3636
};

components/button/__tests__/__snapshots__/demo.test.js.snap

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,8 +126,6 @@ exports[`renders ./components/button/demo/ghost.vue correctly 1`] = `
126126
<!----><span>Dashed</span>
127127
</button><button class="ant-btn ant-btn-background-ghost ant-btn-dangerous" type="button">
128128
<!----><span>Danger</span>
129-
</button><button class="ant-btn ant-btn-link" type="button">
130-
<!----><span>Link</span>
131129
</button></div>
132130
`;
133131

components/button/demo/ghost.vue

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,5 @@ title:
2222
<a-button ghost>Default</a-button>
2323
<a-button type="dashed" ghost>Dashed</a-button>
2424
<a-button danger ghost>Danger</a-button>
25-
<a-button type="link" ghost>Link</a-button>
2625
</div>
2726
</template>

components/date-picker/demo/date-render.vue

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ We can customize the rendering of date cells in the calendar by providing a `dat
1818
<template>
1919
<a-space direction="vertical" :size="12">
2020
<a-date-picker v-model:value="value1">
21-
<template #dateRender="{ current, today }">
22-
<div class="ant-picker-cell-inner" :style="getCurrentStyle(current, today)">
21+
<template #dateRender="{ current }">
22+
<div class="ant-picker-cell-inner" :style="getCurrentStyle(current)">
2323
{{ current.date() }}
2424
</div>
2525
</template>
@@ -35,7 +35,8 @@ We can customize the rendering of date cells in the calendar by providing a `dat
3535
</template>
3636
<script lang="ts">
3737
import type { Dayjs } from 'dayjs';
38-
import { CSSProperties, defineComponent, ref } from 'vue';
38+
import { defineComponent, ref } from 'vue';
39+
import type { CSSProperties } from 'vue';
3940
export default defineComponent({
4041
setup() {
4142
const getCurrentStyle = (current: Dayjs) => {
@@ -57,4 +58,3 @@ export default defineComponent({
5758
},
5859
});
5960
</script>
60-

components/dropdown/demo/event.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,13 +32,13 @@ An event will be triggered when you click menu items, in which you can make diff
3232
</a-dropdown>
3333
</template>
3434
<script lang="ts">
35-
import { defineComponent, VNodeChild } from 'vue';
35+
import { defineComponent } from 'vue';
3636
import { DownOutlined } from '@ant-design/icons-vue';
3737
3838
interface MenuInfo {
3939
key: string;
4040
keyPath: string[];
41-
item: VNodeChild;
41+
item: any;
4242
domEvent: MouseEvent;
4343
}
4444

components/dropdown/demo/overlay-visible.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,13 +32,13 @@ The default is to close the menu when you click on menu items, this feature can
3232
</a-dropdown>
3333
</template>
3434
<script lang="ts">
35-
import { defineComponent, ref, VNodeChild } from 'vue';
35+
import { defineComponent, ref } from 'vue';
3636
import { DownOutlined } from '@ant-design/icons-vue';
3737
3838
interface MenuInfo {
3939
key: string;
4040
keyPath: string[];
41-
item: VNodeChild;
41+
item: any;
4242
domEvent: MouseEvent;
4343
}
4444
export default defineComponent({

components/form/demo/custom-validation.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ See more advanced usage at [async-validator](https://github.com/yiminghe/async-v
4444
</a-form>
4545
</template>
4646
<script lang="ts">
47-
import { RuleObject } from 'ant-design-vue/es/form';
47+
import type { RuleObject } from 'ant-design-vue/es/form';
4848
import { defineComponent, reactive, ref } from 'vue';
4949
import type { UnwrapRef } from 'vue';
5050
interface FormState {

components/menu/demo/vertical.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ Submenus open as pop-ups.
6161
</a-menu>
6262
</template>
6363
<script lang="ts">
64-
import { defineComponent, reactive, toRefs, VNodeChild } from 'vue';
64+
import { defineComponent, reactive, toRefs } from 'vue';
6565
import {
6666
MailOutlined,
6767
CalendarOutlined,
@@ -72,7 +72,7 @@ import {
7272
interface MenuInfo {
7373
key: string;
7474
keyPath: string[];
75-
item: VNodeChild;
75+
item: any;
7676
domEvent: MouseEvent;
7777
}
7878
export default defineComponent({

0 commit comments

Comments
 (0)