uni-app-fe 0.2.3 → 0.2.4
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/package.json +1 -1
- package/types/uni-app-fe-component.d.ts +20 -18
package/package.json
CHANGED
|
@@ -106,23 +106,6 @@ declare class UniLed {
|
|
|
106
106
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<UniLed, "uni-led", never, { "description": { "alias": "description"; "required": true; "isSignal": true; }; "status": { "alias": "status"; "required": true; "isSignal": true; }; "hasTooltip": { "alias": "hasTooltip"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
107
107
|
}
|
|
108
108
|
|
|
109
|
-
interface MenuInteraction {
|
|
110
|
-
id: number;
|
|
111
|
-
label: string;
|
|
112
|
-
data: {
|
|
113
|
-
type: 'button';
|
|
114
|
-
icon: IconDefinition$1;
|
|
115
|
-
onClick: () => void;
|
|
116
|
-
} | {
|
|
117
|
-
type: 'select';
|
|
118
|
-
value: number | null;
|
|
119
|
-
combos: Combo<string | number>[];
|
|
120
|
-
onValueChanged: (itemSelected: ValueChangedEvent) => void;
|
|
121
|
-
};
|
|
122
|
-
class?: string;
|
|
123
|
-
disabled?: boolean;
|
|
124
|
-
visible?: boolean;
|
|
125
|
-
}
|
|
126
109
|
interface MenuItem {
|
|
127
110
|
id: number;
|
|
128
111
|
icon: IconDefinition$1;
|
|
@@ -133,6 +116,25 @@ interface MenuItem {
|
|
|
133
116
|
disabled?: boolean;
|
|
134
117
|
badge?: boolean;
|
|
135
118
|
}
|
|
119
|
+
interface MenuInteraction {
|
|
120
|
+
id: number;
|
|
121
|
+
label: string;
|
|
122
|
+
data: MenuButtonInteraction | MenuSelectInteraction<number> | MenuSelectInteraction<string>;
|
|
123
|
+
class?: string;
|
|
124
|
+
disabled?: boolean;
|
|
125
|
+
visible?: boolean;
|
|
126
|
+
}
|
|
127
|
+
interface MenuButtonInteraction {
|
|
128
|
+
type: 'button';
|
|
129
|
+
icon: IconDefinition$1;
|
|
130
|
+
onClick: () => void;
|
|
131
|
+
}
|
|
132
|
+
interface MenuSelectInteraction<T> {
|
|
133
|
+
type: 'select';
|
|
134
|
+
value: T | null;
|
|
135
|
+
combos: Combo<T>[];
|
|
136
|
+
onValueChanged: (itemSelected: ValueChangedEvent) => void;
|
|
137
|
+
}
|
|
136
138
|
|
|
137
139
|
declare class UniSideMenu {
|
|
138
140
|
readonly elementRef: ElementRef<any>;
|
|
@@ -166,4 +168,4 @@ declare class UniSideMenu {
|
|
|
166
168
|
}
|
|
167
169
|
|
|
168
170
|
export { LedStatus, UniBannerAlert, UniDialogError, UniHeader, UniItemField, UniItemFieldWithHightContrast, UniItemFieldWithLensTooltip, UniLed, UniSideMenu };
|
|
169
|
-
export type { MenuInteraction, MenuItem };
|
|
171
|
+
export type { MenuButtonInteraction, MenuInteraction, MenuItem, MenuSelectInteraction };
|