Skip to content

Commit ce96f6e

Browse files
committed
feat(calendar): uniapp calendar add popupProps
1 parent 2a6cbf8 commit ce96f6e

File tree

4 files changed

+37
-3
lines changed

4 files changed

+37
-3
lines changed

db/TDesign.db

0 Bytes
Binary file not shown.

packages/scripts/api.json

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17934,6 +17934,43 @@
1793417934
"Boolean"
1793517935
]
1793617936
},
17937+
{
17938+
"id": 1770345080,
17939+
"platform_framework": [
17940+
"128"
17941+
],
17942+
"component": "Calendar",
17943+
"field_category": 1,
17944+
"field_name": "popupProps",
17945+
"field_type": [
17946+
"8"
17947+
],
17948+
"field_default_value": "{}",
17949+
"field_enum": "",
17950+
"field_desc_zh": "透传 Popup 组件全部属性",
17951+
"field_desc_en": "popup properties",
17952+
"field_required": 0,
17953+
"event_input": "",
17954+
"create_time": "2026-02-06 02:31:20",
17955+
"update_time": "2026-02-06 02:31:20",
17956+
"event_output": null,
17957+
"custom_field_type": "PopupProps【import { PopupProps } from '@Popup'】",
17958+
"syntactic_sugar": null,
17959+
"readonly": 1,
17960+
"html_attribute": 0,
17961+
"trigger_elements": "",
17962+
"deprecated": 0,
17963+
"version": "",
17964+
"test_description": null,
17965+
"support_default_value": 0,
17966+
"field_category_text": "Props",
17967+
"platform_framework_text": [
17968+
"UniApp"
17969+
],
17970+
"field_type_text": [
17971+
"Object"
17972+
]
17973+
},
1793717974
{
1793817975
"id": 649,
1793917976
"platform_framework": [

packages/scripts/types/index.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -714,7 +714,6 @@ function combineTsFile(componentMap, framework) {
714714
exportDesc,
715715
].filter((v) => !!v);
716716
const str = `${r.join('\n\n')}\n`;
717-
console.log('str', str)
718717
// ts[cmp] = str;
719718
try {
720719
ts[cmp] = prettier.format(str, prettierConfig);

packages/scripts/types/vue-props.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,14 +160,12 @@ function formatNormalProps(api, cmp, extraParams = {}) {
160160
name = 'modelValue';
161161
}
162162
const dl = getDefaultValue(cmp, api, name, isUncontrolApi, useDefault);
163-
console.log('dl', dl)
164163
const isVueMobile = currentFramework === 'Vue(Mobile)';
165164
const isVueWeb = ['Vue(PC)', 'VueNext(PC)'].includes(currentFramework);
166165
if (dl && !isUncontrolApi && api.syntactic_sugar && (isVueMobile || isUniApp || (isVueWeb && useDefault))) {
167166
const content = ['type: Boolean', 'default: undefined'].map(t => ` ${t},\n`).join('');
168167
oneApiStr = [` ${name}: {\n${content} }`];
169168
} else {
170-
console.log('123123123123')
171169
oneApiStr = ` ${name}: Boolean`;
172170
}
173171
} else {

0 commit comments

Comments
 (0)