Skip to content

Commit

Permalink
chore: update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
uyarn committed Jan 22, 2025
1 parent a599943 commit 2e2f11e
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
2 changes: 2 additions & 0 deletions src/date-picker/_example-ts/multiple.vue
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@
<script setup>
import { ref } from 'vue';
import dayjs from 'dayjs';
import updateLocale from 'dayjs/plugin/updateLocale';
dayjs.extend(updateLocale);
dayjs.updateLocale('zh-cn', {
weekStart: 1,
});
Expand Down
2 changes: 2 additions & 0 deletions src/date-picker/_example/multiple.vue
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@
<script setup>
import { ref } from 'vue';
import dayjs from 'dayjs';
import updateLocale from 'dayjs/plugin/updateLocale';
dayjs.extend(updateLocale);
dayjs.updateLocale('zh-cn', {
weekStart: 1,
});
Expand Down
6 changes: 3 additions & 3 deletions src/tag-input/tag-input.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ export default defineComponent({
const onClick: TdInputProps['onClick'] = (ctx) => {
if (isDisabled.value) return;
isFocused.value = true;
tagInputRef.value.focus();
tagInputRef.value?.focus();
props.onClick?.(ctx);
};

Expand All @@ -134,11 +134,11 @@ export default defineComponent({
};

const focus = () => {
tagInputRef.value.focus();
tagInputRef.value?.focus();
};

const blur = () => {
tagInputRef.value.blur();
tagInputRef.value?.blur();
};

const onMouseEnter: InputProps['onMouseenter'] = (context) => {
Expand Down

0 comments on commit 2e2f11e

Please sign in to comment.