crud-page-react 0.0.1 → 0.0.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/dist/index.d.ts +10 -0
- package/dist/index.esm.js +80 -1503
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +100 -1541
- package/dist/index.js.map +1 -1
- package/dist/types/schema.d.ts +10 -0
- package/package.json +1 -2
package/dist/index.d.ts
CHANGED
|
@@ -129,17 +129,27 @@ interface ActionPermission {
|
|
|
129
129
|
role?: string[];
|
|
130
130
|
condition?: string;
|
|
131
131
|
}
|
|
132
|
+
interface ActionApiConfig {
|
|
133
|
+
url: string;
|
|
134
|
+
method: 'GET' | 'POST' | 'PUT' | 'DELETE' | 'PATCH';
|
|
135
|
+
data?: Record<string, unknown>;
|
|
136
|
+
headers?: Record<string, string>;
|
|
137
|
+
responseType?: 'json' | 'blob' | 'text';
|
|
138
|
+
}
|
|
132
139
|
interface ActionSchema {
|
|
133
140
|
key: string;
|
|
134
141
|
label: string;
|
|
135
142
|
type: ActionType;
|
|
136
143
|
icon?: string;
|
|
137
144
|
danger?: boolean;
|
|
145
|
+
color?: string;
|
|
138
146
|
permission?: ActionPermission;
|
|
147
|
+
condition?: Record<string, unknown>;
|
|
139
148
|
confirm?: {
|
|
140
149
|
title: string;
|
|
141
150
|
content?: string;
|
|
142
151
|
};
|
|
152
|
+
api?: ActionApiConfig;
|
|
143
153
|
}
|
|
144
154
|
interface PaginationConfig {
|
|
145
155
|
pageSize?: number;
|