File tree Expand file tree Collapse file tree 4 files changed +46
-0
lines changed
products/tdesign-vue-next/packages/components/date-picker Expand file tree Collapse file tree 4 files changed +46
-0
lines changed Original file line number Diff line number Diff line change @@ -101,6 +101,11 @@ export default {
101101 rangeInputProps : {
102102 type : Object as PropType < TdDateRangePickerProps [ 'rangeInputProps' ] > ,
103103 } ,
104+ /** 是否只读,优先级大于 `allowInput` */
105+ readonly : {
106+ type : Boolean ,
107+ default : undefined ,
108+ } ,
104109 /** 日期分隔符,支持全局配置,默认为 '-' */
105110 separator : {
106111 type : String ,
Original file line number Diff line number Diff line change @@ -290,6 +290,10 @@ export interface TdDateRangePickerProps {
290290 * 透传给范围输入框 RangeInput 组件的参数
291291 */
292292 rangeInputProps ?: RangeInputProps ;
293+ /**
294+ * 是否只读,优先级大于 `allowInput`
295+ */
296+ readonly ?: boolean ;
293297 /**
294298 * 日期分隔符,支持全局配置,默认为 '-'
295299 * @default ''
Original file line number Diff line number Diff line change 3819538195 "Object"
3819638196 ]
3819738197 },
38198+ {
38199+ "id": 1746803786,
38200+ "platform_framework": [
38201+ "1"
38202+ ],
38203+ "component": "DateRangePicker",
38204+ "field_category": 1,
38205+ "field_name": "readonly",
38206+ "field_type": [
38207+ "4"
38208+ ],
38209+ "field_default_value": "",
38210+ "field_enum": "",
38211+ "field_desc_zh": "是否只读,优先级大于 `allowInput`",
38212+ "field_desc_en": "Whether it is read only, the priority is greater than allowInput",
38213+ "field_required": 0,
38214+ "event_input": "",
38215+ "create_time": "2025-05-09 15:16:26",
38216+ "update_time": "2025-05-09 15:16:26",
38217+ "event_output": null,
38218+ "custom_field_type": null,
38219+ "syntactic_sugar": null,
38220+ "readonly": 1,
38221+ "html_attribute": 0,
38222+ "trigger_elements": "",
38223+ "deprecated": 0,
38224+ "version": "",
38225+ "test_description": null,
38226+ "support_default_value": 0,
38227+ "field_category_text": "Props",
38228+ "platform_framework_text": [
38229+ "Vue(PC)"
38230+ ],
38231+ "field_type_text": [
38232+ "Boolean"
38233+ ]
38234+ },
3819838235 {
3819938236 "id": 1224,
3820038237 "platform_framework": [
You can’t perform that action at this time.
0 commit comments