@q1travel/design-system 0.26.0 → 0.26.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-pkg/design-system.d.ts +3 -1
- package/dist-pkg/design-system.js +2971 -2965
- package/dist-pkg/style.css +13 -2
- package/package.json +1 -1
|
@@ -1331,7 +1331,7 @@ declare type MentionQuery = (query: string, options: {
|
|
|
1331
1331
|
signal: AbortSignal;
|
|
1332
1332
|
}) => Promise<ComposerMention[]>;
|
|
1333
1333
|
|
|
1334
|
-
export declare function Menu({ label, entries, withChevron, align, triggerContent, size }: {
|
|
1334
|
+
export declare function Menu({ label, entries, withChevron, align, triggerContent, prefix, size }: {
|
|
1335
1335
|
label: string;
|
|
1336
1336
|
/** 文字触发器尺寸,默认 md;图标触发器保留原尺寸。 */
|
|
1337
1337
|
size?: ButtonSize;
|
|
@@ -1340,6 +1340,8 @@ export declare function Menu({ label, entries, withChevron, align, triggerConten
|
|
|
1340
1340
|
align?: 'start' | 'end';
|
|
1341
1341
|
/** 自定义触发器内容(如纯图标);label 始终作为可访问名称的兜底,图标-only 时经 aria-label 暴露。 */
|
|
1342
1342
|
triggerContent?: ReactNode;
|
|
1343
|
+
/** 文字触发器的前置图标,与 Button 的 prefix 一致;仍按文字触发器的尺寸与内边距渲染,传了 triggerContent 时忽略。 */
|
|
1344
|
+
prefix?: ReactNode;
|
|
1343
1345
|
}): JSX.Element;
|
|
1344
1346
|
|
|
1345
1347
|
export declare type MenuEntry = (MenuItemBase & {
|