Skip to content

Commit

Permalink
fix(_common): fix date-picker style was covered by table
Browse files Browse the repository at this point in the history
  • Loading branch information
naishwang committed Jan 13, 2025
1 parent c43a941 commit 61206aa
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/_common
14 changes: 8 additions & 6 deletions src/date-picker/base/Table.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { defineComponent, PropType, computed } from 'vue';
import TDatePickerCell from './Cell';
import isArray from 'lodash/isArray';
import { computed, defineComponent, PropType } from 'vue';
import { parseToDayjs } from '../../_common/js/date-picker/format';
import { useConfig, usePrefixClass } from '../../hooks/useConfig';
import type { TdDatePickerProps } from '../type';
import { parseToDayjs } from '../../_common/js/date-picker/format';
import isArray from 'lodash/isArray';
import TDatePickerCell from './Cell';

export default defineComponent({
name: 'TDatePickerTable',
Expand Down Expand Up @@ -80,9 +80,11 @@ export default defineComponent({
<table>
{showThead.value && (
<thead>
<tr>
<tr class={`${COMPONENT_NAME.value}-header-row`}>
{weekArr.value.map((value: string, i: number) => (
<th key={i}>{value}</th>
<th class={`${COMPONENT_NAME.value}-header`} key={i}>
{value}
</th>
))}
</tr>
</thead>
Expand Down

0 comments on commit 61206aa

Please sign in to comment.