tauri-kargo-tools 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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/vue-model.ts +16 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tauri-kargo-tools",
3
- "version": "0.2.3",
3
+ "version": "0.2.4",
4
4
  "description": "",
5
5
  "files": ["src"],
6
6
  "exports": { "./*": "./src/*" },
package/src/vue-model.ts CHANGED
@@ -233,6 +233,22 @@ export class Vue<T extends object> {
233
233
  return this;
234
234
  }
235
235
 
236
+ /* ------------ Label ------------ */
237
+ staticLabel(label: string, opt?: {
238
+ /** Identifiants CSS/DOM */
239
+ id?: string; class?: string | string[];
240
+ width?: number | string; height?: number | string;
241
+ visible?: KeysOfType<T, boolean>; enable?: KeysOfType<T, boolean>;
242
+ useVisibility?: boolean;
243
+ }): this {
244
+ const node: StaticLabelNode<T>= {
245
+ kind: 'staticLabel',
246
+ label,
247
+ ...opt
248
+ };
249
+ this.cursor.push(node as unknown as UINode<T>);
250
+ return this;
251
+ }
236
252
 
237
253
 
238
254
  /* ------------ BootVue (label dynamique) ------------ */