@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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@d-mok/quasar-app-extension-quasar-axe",
3
- "version": "1.0.2",
3
+ "version": "1.0.3",
4
4
  "description": "A Quasar App Extension",
5
5
  "author": "d-mok <49301824+d-mok@users.noreply.github.com>",
6
6
  "license": "MIT",
@@ -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
 
@@ -4,7 +4,7 @@ import { TableView } from './view'
4
4
 
5
5
 
6
6
  type muteOptions = {
7
- confirm?: [string, string?]
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
-