@d-mok/quasar-app-extension-quasar-axe 1.0.2 → 1.0.3
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/src/utils/ORM/basic.ts +9 -0
- package/src/utils/ORM/table.ts +1 -3
package/package.json
CHANGED
package/src/utils/ORM/basic.ts
CHANGED
|
@@ -3,6 +3,7 @@ import { qDialog } from '../dialog'
|
|
|
3
3
|
import { qNotify } from '../notify'
|
|
4
4
|
import { LoadingBar } from 'quasar'
|
|
5
5
|
import { Ordering, Criteria, strKeyOf, Sheet } from 'sapphire-js'
|
|
6
|
+
import { reactive } from 'vue'
|
|
6
7
|
|
|
7
8
|
|
|
8
9
|
export type Where<T> =
|
|
@@ -169,6 +170,14 @@ export abstract class BasicTable<T extends R, R extends object> extends Sheet<T>
|
|
|
169
170
|
got(criteria: Criteria<T>): T {
|
|
170
171
|
return this.get(criteria) ?? new this.entityClass({})
|
|
171
172
|
}
|
|
173
|
+
|
|
174
|
+
|
|
175
|
+
static new<Type>(): Type {
|
|
176
|
+
return reactive(new (this.constructor as any)())
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
|
|
180
|
+
|
|
172
181
|
}
|
|
173
182
|
|
|
174
183
|
|
package/src/utils/ORM/table.ts
CHANGED
|
@@ -4,7 +4,7 @@ import { TableView } from './view'
|
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
type muteOptions = {
|
|
7
|
-
confirm?:
|
|
7
|
+
confirm?: [string, string?]
|
|
8
8
|
notify?: string
|
|
9
9
|
slience?: boolean
|
|
10
10
|
}
|
|
@@ -151,5 +151,3 @@ export function Empower<RCls extends Constructor, R = InstanceType<RCls>>(BaseCl
|
|
|
151
151
|
}
|
|
152
152
|
|
|
153
153
|
|
|
154
|
-
|
|
155
|
-
|