rd-outer-component 0.1.7 → 0.1.9
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/esm2020/lib/modules/custom-radio/custom-radio.component.mjs +2 -2
- package/esm2020/lib/modules/custom-select/rd-select.component.mjs +1 -1
- package/esm2020/lib/modules/rd-button/rd-button.component.mjs +22 -10
- package/fesm2015/rd-outer-component.mjs +24 -12
- package/fesm2015/rd-outer-component.mjs.map +1 -1
- package/fesm2020/rd-outer-component.mjs +24 -12
- package/fesm2020/rd-outer-component.mjs.map +1 -1
- package/lib/modules/rd-button/rd-button.component.d.ts +12 -4
- package/package.json +1 -1
|
@@ -3,9 +3,15 @@ import * as i0 from "@angular/core";
|
|
|
3
3
|
type NzButtonType = 'primary' | 'default' | 'dashed' | 'link' | 'text';
|
|
4
4
|
type NzButtonShape = 'circle' | 'round';
|
|
5
5
|
type NzButtonSize = 'large' | 'default' | 'small';
|
|
6
|
+
/** Figma ALPHA Button: Solid Primary / Secondary / Tertiary / Gradient + Outline */
|
|
7
|
+
export type RdButtonType = 'primary' | 'secondary' | 'tertiary' | 'gradient' | 'default' | 'danger' | 'yellow' | 'gray' | 'link' | 'text';
|
|
6
8
|
export declare class RdButtonComponent {
|
|
7
|
-
/**
|
|
8
|
-
|
|
9
|
+
/**
|
|
10
|
+
* 按钮类型。
|
|
11
|
+
* Solid: primary / secondary / tertiary / gradient / danger
|
|
12
|
+
* type="default" 兼容旧用法,等同 outline primary。
|
|
13
|
+
*/
|
|
14
|
+
type: RdButtonType;
|
|
9
15
|
/** 按钮大小:large, default, small */
|
|
10
16
|
size: 'large' | 'default' | 'small';
|
|
11
17
|
/** 按钮形状:default, circle, round */
|
|
@@ -18,7 +24,9 @@ export declare class RdButtonComponent {
|
|
|
18
24
|
block: boolean;
|
|
19
25
|
/** 原生 button 类型:button, submit, reset */
|
|
20
26
|
htmlType: 'button' | 'submit' | 'reset';
|
|
21
|
-
/**
|
|
27
|
+
/** Outline 描边按钮,可与 primary / secondary / tertiary / gradient / danger 组合 */
|
|
28
|
+
outline: boolean;
|
|
29
|
+
/** 是否显示为幽灵按钮(背景透明,Ghost token) */
|
|
22
30
|
ghost: boolean;
|
|
23
31
|
/** 是否显示为虚线按钮 */
|
|
24
32
|
dashed: boolean;
|
|
@@ -48,6 +56,6 @@ export declare class RdButtonComponent {
|
|
|
48
56
|
/** 检查是否有内容(除了图标) */
|
|
49
57
|
get hasContent(): boolean;
|
|
50
58
|
static ɵfac: i0.ɵɵFactoryDeclaration<RdButtonComponent, never>;
|
|
51
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<RdButtonComponent, "app-rd-button", never, { "type": "type"; "size": "size"; "shape": "shape"; "disabled": "disabled"; "loading": "loading"; "block": "block"; "htmlType": "htmlType"; "ghost": "ghost"; "dashed": "dashed"; "icon": "icon"; "danger": "danger"; "minWidth": "minWidth"; "theme": "theme"; }, { "click": "click"; }, never, ["*"], false, never>;
|
|
59
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<RdButtonComponent, "app-rd-button", never, { "type": "type"; "size": "size"; "shape": "shape"; "disabled": "disabled"; "loading": "loading"; "block": "block"; "htmlType": "htmlType"; "outline": "outline"; "ghost": "ghost"; "dashed": "dashed"; "icon": "icon"; "danger": "danger"; "minWidth": "minWidth"; "theme": "theme"; }, { "click": "click"; }, never, ["*"], false, never>;
|
|
52
60
|
}
|
|
53
61
|
export {};
|