Skip to content

Commit

Permalink
feat: support borderless (Tencent#4192)
Browse files Browse the repository at this point in the history
* feat(AutoComplete): support borderless

* feat(tagInput): support borderless

* feat(date-picker): support label and borderless

* chore: update _common

* feat(color-picker): support borderless

* chore: udpate _common

* feat(time-picker): support borderless

* fix: "HighlightOptionProps"

* feat(time-picker): support  valueDisplay

* fix(color-picker): borderless

* feat(auto-complete): live demo

* fix(time-picker): class error

* chore: snap update
  • Loading branch information
liweijie0812 authored May 16, 2024
1 parent e23516f commit 4106752
Show file tree
Hide file tree
Showing 44 changed files with 317 additions and 74 deletions.
6 changes: 6 additions & 0 deletions script/generate-usage/config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
/* eslint-disable */
module.exports = {
'auto-complete': {
panelStr: `const panelList = [{label: 'AutoComplete', value: 'AutoComplete'}];`,
render: {
AutoComplete: `<t-auto-complete v-bind="configProps" :options="['第一个联想词', '第二个联想词', '第三个联想词']" />`,
},
},
button: {
panelStr: `const panelList = [{label: 'button', value: 'button'}];`,
render: {
Expand Down
2 changes: 1 addition & 1 deletion src/_common
Submodule _common updated 72 files
+4 −0 docs/mobile/api_v2/count-down.en-US.md
+3 −0 docs/mobile/api_v2/count-down.md
+25 −0 docs/mobile/api_v2/tree-select.en-US.md
+25 −0 docs/mobile/api_v2/tree-select.md
+1 −1 docs/mobile/design/dialog.md
+73 −0 docs/mobile/flutter_design/action-sheet.md
+61 −0 docs/mobile/flutter_design/avatar.md
+33 −0 docs/mobile/flutter_design/back-top.md
+68 −0 docs/mobile/flutter_design/badge.md
+79 −0 docs/mobile/flutter_design/button.md
+51 −0 docs/mobile/flutter_design/calendar.md
+59 −0 docs/mobile/flutter_design/cascader.md
+55 −0 docs/mobile/flutter_design/cell.md
+50 −0 docs/mobile/flutter_design/checkbox.md
+63 −0 docs/mobile/flutter_design/collapse.md
+50 −0 docs/mobile/flutter_design/count-down.md
+36 −0 docs/mobile/flutter_design/date-time-picker.md
+71 −0 docs/mobile/flutter_design/dialog.md
+53 −0 docs/mobile/flutter_design/divider.md
+55 −0 docs/mobile/flutter_design/drawer.md
+40 −0 docs/mobile/flutter_design/dropdown-menu.md
+38 −0 docs/mobile/flutter_design/empty.md
+80 −0 docs/mobile/flutter_design/fab.md
+59 −0 docs/mobile/flutter_design/footer.md
+88 −0 docs/mobile/flutter_design/grid.md
+36 −0 docs/mobile/flutter_design/image-viewer.md
+45 −0 docs/mobile/flutter_design/image.md
+53 −0 docs/mobile/flutter_design/indexes.md
+71 −0 docs/mobile/flutter_design/input.md
+44 −0 docs/mobile/flutter_design/link.md
+57 −0 docs/mobile/flutter_design/loading.md
+50 −0 docs/mobile/flutter_design/message.md
+51 −0 docs/mobile/flutter_design/navbar.md
+81 −0 docs/mobile/flutter_design/notice-bar.md
+39 −0 docs/mobile/flutter_design/picker.md
+53 −0 docs/mobile/flutter_design/popup.md
+62 −0 docs/mobile/flutter_design/progress.md
+60 −0 docs/mobile/flutter_design/pull-down-refresh.md
+57 −0 docs/mobile/flutter_design/radio.md
+51 −0 docs/mobile/flutter_design/rate.md
+54 −0 docs/mobile/flutter_design/result.md
+51 −0 docs/mobile/flutter_design/search.md
+50 −0 docs/mobile/flutter_design/side-bar.md
+27 −0 docs/mobile/flutter_design/skeleton.md
+59 −0 docs/mobile/flutter_design/slider.md
+50 −0 docs/mobile/flutter_design/stepper.md
+74 −0 docs/mobile/flutter_design/steps.md
+75 −0 docs/mobile/flutter_design/swipe-cell.md
+40 −0 docs/mobile/flutter_design/swiper.md
+31 −0 docs/mobile/flutter_design/switch.md
+77 −0 docs/mobile/flutter_design/tab-bar.md
+106 −0 docs/mobile/flutter_design/tabs.md
+86 −0 docs/mobile/flutter_design/tag.md
+59 −0 docs/mobile/flutter_design/textarea.md
+43 −0 docs/mobile/flutter_design/toast.md
+27 −0 docs/mobile/flutter_design/tree-select.md
+43 −0 docs/mobile/flutter_design/upload.md
+1 −1 docs/web/api/upload.md
+1 −1 style/mobile/components/count-down/v2/_index.less
+17 −3 style/mobile/components/count-down/v2/_var.less
+17 −0 style/mobile/components/swiper-nav/v2/_index.less
+2 −0 style/mobile/components/swiper-nav/v2/_var.less
+8 −0 style/mobile/components/swiper/v2/_index.less
+5 −0 style/mobile/components/swiper/v2/_var.less
+3 −2 style/mobile/components/table/mixins/_scrollbar.less
+1 −0 style/mobile/components/tree-select/_index.less
+0 −1 style/web/components/input/_mixin.less
+4 −1 style/web/components/menu/_index.less
+5 −0 style/web/components/range-input/_index.less
+1 −1 style/web/components/range-input/_var.less
+1 −1 style/web/components/select/_index.less
+2 −2 style/web/mixins/_scrollbar.less
27 changes: 27 additions & 0 deletions src/auto-complete/_usage/index.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
<!-- 该脚本为自动生成,如有需要请在 /script/generate-usage/index.js 中调整 -->
<template>
<base-usage :code="usageCode" :config-list="configList" :panel-list="panelList" @panel-change="onPanelChange">
<template #AutoComplete="{ configProps }"
><t-auto-complete v-bind="configProps" :options="['第一个联想词', '第二个联想词', '第三个联想词']"
/></template>
</base-usage>
</template>

<script setup lang="jsx">
/* eslint-disable */
import { ref, onMounted } from 'vue';
import configJson from './props.json';

const configList = ref(configJson);
const panelList = [{ label: 'AutoComplete', value: 'AutoComplete' }];

const usageCodeMap = {
AutoComplete:
"<t-auto-complete v-bind=\"configProps\" :options=\"['第一个联想词', '第二个联想词', '第三个联想词']\" />",
};
const usageCode = ref(`<template>${usageCodeMap[panelList[0].value].trim()}</template>`);

function onPanelChange(panel) {
usageCode.value = `<template>${usageCodeMap[panel].trim()}</template>`;
}
</script>
51 changes: 51 additions & 0 deletions src/auto-complete/_usage/props.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
[
{
"name": "borderless",
"type": "Boolean",
"defaultValue": false,
"options": []
},
{
"name": "clearable",
"type": "Boolean",
"defaultValue": false,
"options": []
},
{
"name": "disabled",
"type": "Boolean",
"defaultValue": false,
"options": []
},
{
"name": "highlightKeyword",
"type": "Boolean",
"defaultValue": false,
"options": []
},
{
"name": "readonly",
"type": "Boolean",
"defaultValue": false,
"options": []
},
{
"name": "size",
"type": "enum",
"defaultValue": "medium",
"options": [
{
"label": "small",
"value": "small"
},
{
"label": "medium",
"value": "medium"
},
{
"label": "large",
"value": "large"
}
]
}
]
6 changes: 4 additions & 2 deletions src/auto-complete/auto-complete.en-US.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
:: BASE_DOC ::

## API

### AutoComplete Props

name | type | default | description | required
-- | -- | -- | -- | --
autofocus | Boolean | - | \- | N
borderless | Boolean | false | \- | N
clearable | Boolean | - | \- | N
default | String / Slot / Function | - | Typescript:`string \| TNode`[see more ts definition](https://github.com/Tencent/tdesign-vue-next/blob/develop/src/common.ts) | N
disabled | Boolean | - | \- | N
Expand All @@ -19,8 +21,8 @@ panelTopContent | String / Slot / Function | - | Typescript:`string \| TNode`
placeholder | String | undefined | \- | N
popupProps | Object | - | Typescript:`PopupProps`[Popup API Documents](./popup?tab=api)[see more ts definition](https://github.com/Tencent/tdesign-vue-next/tree/develop/src/auto-complete/type.ts) | N
readonly | Boolean | - | \- | N
size | String | medium | optionssmall/medium/large。Typescript:`SizeEnum`[see more ts definition](https://github.com/Tencent/tdesign-vue-next/blob/develop/src/common.ts) | N
status | String | default | optionsdefault/success/warning/error | N
size | String | medium | options: small/medium/large。Typescript:`SizeEnum`[see more ts definition](https://github.com/Tencent/tdesign-vue-next/blob/develop/src/common.ts) | N
status | String | default | options: default/success/warning/error | N
textareaProps | Object | - | Typescript:`TextareaProps`[Textarea API Documents](./textarea?tab=api)[see more ts definition](https://github.com/Tencent/tdesign-vue-next/tree/develop/src/auto-complete/type.ts) | N
tips | String / Slot / Function | - | Typescript:`string \| TNode`[see more ts definition](https://github.com/Tencent/tdesign-vue-next/blob/develop/src/common.ts) | N
triggerElement | String / Slot / Function | - | Typescript:`string \| TNode`[see more ts definition](https://github.com/Tencent/tdesign-vue-next/blob/develop/src/common.ts) | N
Expand Down
4 changes: 3 additions & 1 deletion src/auto-complete/auto-complete.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
:: BASE_DOC ::

## API

### AutoComplete Props

名称 | 类型 | 默认值 | 说明 | 必传
名称 | 类型 | 默认值 | 描述 | 必传
-- | -- | -- | -- | --
autofocus | Boolean | - | 自动获取焦点 | N
borderless | Boolean | false | 无边框模式 | N
clearable | Boolean | - | 是否允许清空 | N
default | String / Slot / Function | - | 触发显示联想词下拉框的元素,同 `triggerElement`。TS 类型:`string \| TNode`[通用类型定义](https://github.com/Tencent/tdesign-vue-next/blob/develop/src/common.ts) | N
disabled | Boolean | - | 是否禁用 | N
Expand Down
5 changes: 3 additions & 2 deletions src/auto-complete/auto-complete.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { computed, ref, defineComponent, toRefs, nextTick } from 'vue';
import props from './props';
import { TdAutoCompleteProps } from './type';
import Input, { InputProps, StrInputProps } from '../input';
import TInput, { InputProps, StrInputProps } from '../input';
import Popup, { PopupProps } from '../popup';
import useCommonClassName from '../hooks/useCommonClassName';
import AutoCompleteOptionList from './option-list';
Expand Down Expand Up @@ -105,7 +105,8 @@ export default defineComponent({
return () => {
// 触发元素
const triggerNode = renderContent('default', 'triggerElement') || (
<Input
<TInput
borderless={props.borderless}
placeholder={props.placeholder ?? global.value.placeholder}
tips={props.tips}
status={props.status}
Expand Down
10 changes: 8 additions & 2 deletions src/auto-complete/highlight-option.tsx
Original file line number Diff line number Diff line change
@@ -1,16 +1,22 @@
import { computed, defineComponent } from 'vue';
import type { PropType } from 'vue';
import { usePrefixClass } from '../hooks/useConfig';
import isString from 'lodash/isString';
import escapeRegExp from 'lodash/escapeRegExp';

export interface HighlightOptionProps {
content: string;
keyword: string;
}

export default defineComponent({
name: 'HighlightOption',

props: {
/** 联想词 */
content: String,
content: String as PropType<HighlightOptionProps['content']>,
/** 搜索词 */
keyword: String,
keyword: String as PropType<HighlightOptionProps['keyword']>,
},

setup(props) {
Expand Down
2 changes: 2 additions & 0 deletions src/auto-complete/props.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ import { PropType } from 'vue';
export default {
/** 自动获取焦点 */
autofocus: Boolean,
/** 无边框模式 */
borderless: Boolean,
/** 是否允许清空 */
clearable: Boolean,
/** 触发显示联想词下拉框的元素,同 `triggerElement` */
Expand Down
10 changes: 5 additions & 5 deletions src/auto-complete/type.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@ export interface TdAutoCompleteProps<T extends AutoCompleteOption = AutoComplete
* 自动获取焦点
*/
autofocus?: boolean;
/**
* 无边框模式
* @default false
*/
borderless?: boolean;
/**
* 是否允许清空
*/
Expand Down Expand Up @@ -146,8 +151,3 @@ export interface AutoCompleteOptionObj {
text?: string;
[key: string]: any;
}

export interface HighlightOptionProps {
content: string;
keyword: string;
}
9 changes: 6 additions & 3 deletions src/color-picker/color-picker.en-US.md
Original file line number Diff line number Diff line change
@@ -1,24 +1,27 @@
:: BASE_DOC ::

## API

### ColorPicker Props

name | type | default | description | required
-- | -- | -- | -- | --
borderless | Boolean | false | \- | N
clearable | Boolean | false | \- | N
colorModes | Array | ()=> ['monochrome', 'linear-gradient'] | Typescript:`Array<'monochrome' \| 'linear-gradient'>` | N
closeBtn | String / Boolean / Slot / Function | true | Typescript:`string \| boolean \| TNode`[see more ts definition](https://github.com/Tencent/tdesign-vue-next/blob/develop/src/common.ts) | N
colorModes | Array | ["monochrome", "linear-gradient"] | Typescript:`Array<'monochrome' \| 'linear-gradient'>` | N
disabled | Boolean | - | \- | N
enableAlpha | Boolean | false | \- | N
enableMultipleGradient | Boolean | true | \- | N
format | String | RGB | optionsRGB/RGBA/HSL/HSLA/HSB/HSV/HSVA/HEX/CMYK/CSS | N
format | String | RGB | options: RGB/RGBA/HSL/HSLA/HSB/HSV/HSVA/HEX/CMYK/CSS | N
inputProps | Object | - | Typescript:`InputProps`[Input API Documents](./input?tab=api)[see more ts definition](https://github.com/Tencent/tdesign-vue-next/tree/develop/src/color-picker/type.ts) | N
multiple | Boolean | false | \- | N
popupProps | Object | - | Typescript:`PopupProps`[Popup API Documents](./popup?tab=api)[see more ts definition](https://github.com/Tencent/tdesign-vue-next/tree/develop/src/color-picker/type.ts) | N
recentColors | Array | [] | used color recently。`v-model:recentColors` is supported。Typescript:`boolean \| Array<string> \| null` | N
defaultRecentColors | Array | [] | used color recently。uncontrolled property。Typescript:`boolean \| Array<string> \| null` | N
selectInputProps | Object | - | Typescript:`SelectInputProps`[SelectInput API Documents](./select-input?tab=api)[see more ts definition](https://github.com/Tencent/tdesign-vue-next/tree/develop/src/color-picker/type.ts) | N
showPrimaryColorPreview | Boolean | true | \- | N
size | String | medium | optionssmall/medium/large。Typescript:`SizeEnum`[see more ts definition](https://github.com/Tencent/tdesign-vue-next/blob/develop/src/common.ts) | N
size | String | medium | options: small/medium/large。Typescript:`SizeEnum`[see more ts definition](https://github.com/Tencent/tdesign-vue-next/blob/develop/src/common.ts) | N
swatchColors | Array | - | swatch colors。Typescript:`Array<string> \| null` | N
value | String | - | color value。`v-model` and `v-model:value` is supported | N
defaultValue | String | - | color value。uncontrolled property | N
Expand Down
7 changes: 5 additions & 2 deletions src/color-picker/color-picker.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
:: BASE_DOC ::

## API

### ColorPicker Props

名称 | 类型 | 默认值 | 说明 | 必传
名称 | 类型 | 默认值 | 描述 | 必传
-- | -- | -- | -- | --
borderless | Boolean | false | 无边框模式 | N
clearable | Boolean | false | 是否可清空 | N
colorModes | Array | ()=> ['monochrome', 'linear-gradient'] | 颜色模式选择。同时支持单色和渐变两种模式,可仅使用单色或者渐变其中一种模式,也可以同时使用。`monochrome` 表示单色,`linear-gradient` 表示渐变色。TS 类型:`Array<'monochrome' \| 'linear-gradient'>` | N
closeBtn | String / Boolean / Slot / Function | true | 关闭按钮,值为 `true` 显示默认关闭按钮;值为 `false``undefined` 则不显示关闭按钮;值类型为函数,则表示自定义关闭按钮。TS 类型:`string \| boolean \| TNode`[通用类型定义](https://github.com/Tencent/tdesign-vue-next/blob/develop/src/common.ts) | N
colorModes | Array | ["monochrome", "linear-gradient"] | 颜色模式选择。同时支持单色和渐变两种模式,可仅使用单色或者渐变其中一种模式,也可以同时使用。`monochrome` 表示单色,`linear-gradient` 表示渐变色。TS 类型:`Array<'monochrome' \| 'linear-gradient'>` | N
disabled | Boolean | - | 是否禁用组件 | N
enableAlpha | Boolean | false | 是否开启透明通道 | N
enableMultipleGradient | Boolean | true | 是否允许开启通过点击渐变轴增加渐变梯度,默认开启,关闭时只会存在起始和结束两个颜色 | N
Expand Down
1 change: 1 addition & 0 deletions src/color-picker/color-picker.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ export default defineComponent({
this,
'default',
<DefaultTrigger
borderless={this.borderless}
color={this.innerValue}
disabled={this.disabled}
clearable={this.clearable}
Expand Down
6 changes: 4 additions & 2 deletions src/color-picker/props.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ import { TdColorPickerProps } from './type';
import { PropType } from 'vue';

export default {
/** 无边框模式 */
borderless: Boolean,
/** 是否可清空 */
clearable: Boolean,
/** 关闭按钮,值为 `true` 显示默认关闭按钮;值为 `false` 或 `undefined` 则不显示关闭按钮;值类型为函数,则表示自定义关闭按钮 */
Expand All @@ -18,7 +20,7 @@ export default {
/** 颜色模式选择。同时支持单色和渐变两种模式,可仅使用单色或者渐变其中一种模式,也可以同时使用。`monochrome` 表示单色,`linear-gradient` 表示渐变色 */
colorModes: {
type: Array as PropType<TdColorPickerProps['colorModes']>,
default: () => ['monochrome', 'linear-gradient'],
default: (): TdColorPickerProps['colorModes'] => ['monochrome', 'linear-gradient'],
},
/** 是否禁用组件 */
disabled: Boolean,
Expand Down Expand Up @@ -51,7 +53,7 @@ export default {
/** 最近使用的颜色。值为 [] 表示以组件内部的“最近使用颜色”为准,值长度大于 0 则以该值为准显示“最近使用颜色”。值为 null 则完全不显示“最近使用颜色” */
recentColors: {
type: Array as PropType<TdColorPickerProps['recentColors']>,
default: undefined,
default: undefined as TdColorPickerProps['recentColors'],
},
/** 最近使用的颜色。值为 [] 表示以组件内部的“最近使用颜色”为准,值长度大于 0 则以该值为准显示“最近使用颜色”。值为 null 则完全不显示“最近使用颜色”,非受控属性 */
defaultRecentColors: {
Expand Down
5 changes: 5 additions & 0 deletions src/color-picker/trigger.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ export default defineComponent({
type: Boolean,
default: false,
},
borderless: {
type: Boolean,
default: false,
},
clearable: {
type: Boolean,
default: false,
Expand Down Expand Up @@ -93,6 +97,7 @@ export default defineComponent({
};
return (
<TInput
borderless={this.borderless}
clearable={this.clearable}
size={this.size}
v-slots={inputSlots}
Expand Down
7 changes: 6 additions & 1 deletion src/color-picker/type.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@ import { SelectInputProps } from '../select-input';
import { TNode, SizeEnum } from '../common';

export interface TdColorPickerProps {
/**
* 无边框模式
* @default false
*/
borderless?: boolean;
/**
* 是否可清空
* @default false
Expand All @@ -22,7 +27,7 @@ export interface TdColorPickerProps {
closeBtn?: string | boolean | TNode;
/**
* 颜色模式选择。同时支持单色和渐变两种模式,可仅使用单色或者渐变其中一种模式,也可以同时使用。`monochrome` 表示单色,`linear-gradient` 表示渐变色
* @default ()=> ['monochrome', 'linear-gradient']
* @default ["monochrome", "linear-gradient"]
*/
colorModes?: Array<'monochrome' | 'linear-gradient'>;
/**
Expand Down
2 changes: 2 additions & 0 deletions src/date-picker/DatePicker.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -255,8 +255,10 @@ export default defineComponent({
return () => (
<div class={COMPONENT_NAME.value}>
<TSelectInput
borderless={props.borderless}
disabled={disabled.value}
value={inputValue.value}
label={props.label}
status={props.status}
tips={props.tips}
clearable={props.clearable}
Expand Down
1 change: 1 addition & 0 deletions src/date-picker/DateRangePicker.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -406,6 +406,7 @@ export default defineComponent({
<div class={COMPONENT_NAME.value}>
<TRangeInputPopup
disabled={disabled.value}
label={props.label}
status={props.status}
tips={props.tips || slots.tips}
inputValue={inputValue.value as string[]}
Expand Down
6 changes: 6 additions & 0 deletions src/date-picker/_usage/date-picker-props.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@
"defaultValue": false,
"options": []
},
{
"name": "borderless",
"type": "Boolean",
"defaultValue": false,
"options": []
},
{
"name": "clearable",
"type": "Boolean",
Expand Down
3 changes: 3 additions & 0 deletions src/date-picker/date-picker.en-US.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
name | type | default | description | required
-- | -- | -- | -- | --
allowInput | Boolean | false | \- | N
borderless | Boolean | false | \- | N
clearable | Boolean | false | \- | N
defaultTime | String | '00:00:00' | Time selector default value | N
disableDate | Object / Array / Function | - | Typescript:`DisableDate` `type DisableDate = Array<DateValue> \| DisableDateObj \| ((date: DateValue) => boolean)` `interface DisableDateObj { from?: string; to?: string; before?: string; after?: string }`[see more ts definition](https://github.com/Tencent/tdesign-vue-next/tree/develop/src/date-picker/type.ts) | N
Expand All @@ -15,6 +16,7 @@ enableTimePicker | Boolean | false | \- | N
firstDayOfWeek | Number | 7 | options: 1/2/3/4/5/6/7 | N
format | String | 'YYYY-MM-DD' | \- | N
inputProps | Object | - | Typescript:`InputProps`[Input API Documents](./input?tab=api)[see more ts definition](https://github.com/Tencent/tdesign-vue-next/tree/develop/src/date-picker/type.ts) | N
label | String / Slot / Function | - | Typescript:`string \| TNode`[see more ts definition](https://github.com/Tencent/tdesign-vue-next/blob/develop/src/common.ts) | N
mode | String | date | options: year/quarter/month/week/date | N
placeholder | String / Array | undefined | Typescript:`string` | N
popupProps | Object | - | Typescript:`PopupProps`[Popup API Documents](./popup?tab=api)[see more ts definition](https://github.com/Tencent/tdesign-vue-next/tree/develop/src/date-picker/type.ts) | N
Expand Down Expand Up @@ -63,6 +65,7 @@ disabled | Boolean | - | \- | N
enableTimePicker | Boolean | false | \- | N
firstDayOfWeek | Number | - | options: 1/2/3/4/5/6/7 | N
format | String | - | \- | N
label | String / Slot / Function | - | Typescript:`string \| TNode`[see more ts definition](https://github.com/Tencent/tdesign-vue-next/blob/develop/src/common.ts) | N
mode | String | date | options: year/quarter/month/week/date | N
panelPreselection | Boolean | true | \- | N
placeholder | String / Array | - | Typescript:`string \| Array<string>` | N
Expand Down
Loading

0 comments on commit 4106752

Please sign in to comment.