5.0.342 • Published 8 months ago

zova-ui-quasar v5.0.342

Weekly downloads
-
License
MIT
Repository
github
Last release
8 months ago

zova-ui-quasar

zova-ui-quasar is a vue3 framework with ioc container. With the support of ioc container, defining reactive states no longer needs ref/reactive, nor ref.value

LICENSE MIT NPM version NPM download

Documentation

Features

zova-ui-quasar has introduced the following distinct features for Vue3:

  1. No ref/reactive, No ref.value: With the support of ioc container, defining reactive states no longer needs ref/reactive. Without ref, naturally there is no need to write a lot of ref.value
  2. Type programming without type: Zova adopts a strategy that combines dependency injection and dependency lookup, significantly reducing the use of decorator functions. Prioritizing the use of dependency lookup can achieve a development experience of Type programming without type, which means that we can enjoy the many benefits of type programming without the need to annotate types, thus keeping our code concise and elegant, significantly improving development efficiency, and ensuring code quality
  3. Modularization: In a large web business system, as the business grows and changes, it is also necessary to divide the system into relatively independent modules in order to avoid code bloating. This is why Zova introduces modularization. In Zova, a module is a natural bundle boundary, and automatically bundled into an independent asynchronous chunk when building, bidding farewell to the hassle of Vite configuration and effectively avoiding the fragmentation of bundles. Especially in large business systems, this advantage is particularly evident

Gif demonstration

No ref/reactive

Demonstration: no ref/reactive, no ref.value

1. Define reactive state

Define a reactive variable count in the component and add two methods to modify its value

export class ControllerPageCounter {
  count: number = 0;

  increment() {
    this.count++;
  }

  decrement() {
    this.count--;
  }
}

2. Use reactive state

Use count in render class

export class RenderCounter {
  render() {
    return (
      <div>
        <div>count(ref): {this.count}</div>
        <button onClick={() => this.increment()}>Increment</button>
        <button onClick={() => this.decrement()}>Decrement</button>
      </div>
    );
  }
}

Demonstration: dependency injection

1. Logic Reuse

Create a Counter Bean to implement the logic of count

@Local()
export class Counter {
  count: number = 0;

  increment() {
    this.count++;
  }

  decrement() {
    this.count--;
  }
}

2. Inject and use in a component

export class ControllerPageCounter {
  @Use()
  $$counter: Counter;
}
export class RenderCounter {
  render() {
    return (
      <div>
        <div>count(ref): {this.$$counter.count}</div>
        <button onClick={() => this.$$counter.increment()}>Increment</button>
        <button onClick={() => this.$$counter.decrement()}>Decrement</button>
      </div>
    );
  }
}

Stay In Touch

License

MIT

Copyright (c) 2016-present, Zova

5.0.340

8 months ago

5.0.342

8 months ago

5.0.339

8 months ago

5.0.336

8 months ago

5.0.296

9 months ago

5.0.298

9 months ago

5.0.299

9 months ago

5.0.292

9 months ago

5.0.293

9 months ago

5.0.294

9 months ago

5.0.295

9 months ago

5.0.290

9 months ago

5.0.291

9 months ago

5.0.300

9 months ago

5.0.301

9 months ago

5.0.302

9 months ago

5.0.303

9 months ago

5.0.311

9 months ago

5.0.313

9 months ago

5.0.310

9 months ago

5.0.308

9 months ago

5.0.309

9 months ago

5.0.304

9 months ago

5.0.305

9 months ago

5.0.306

9 months ago

5.0.307

9 months ago

5.0.322

9 months ago

5.0.323

9 months ago

5.0.324

9 months ago

5.0.325

9 months ago

5.0.320

9 months ago

5.0.321

9 months ago

5.0.319

9 months ago

5.0.315

9 months ago

5.0.316

9 months ago

5.0.333

8 months ago

5.0.334

8 months ago

5.0.335

8 months ago

5.0.330

8 months ago

5.0.331

8 months ago

5.0.332

8 months ago

5.0.326

8 months ago

5.0.328

8 months ago

5.0.256

10 months ago

5.0.257

10 months ago

5.0.258

10 months ago

5.0.259

10 months ago

5.0.253

10 months ago

5.0.255

10 months ago

5.0.267

10 months ago

5.0.268

10 months ago

5.0.263

10 months ago

5.0.264

10 months ago

5.0.265

10 months ago

5.0.266

10 months ago

5.0.260

10 months ago

5.0.261

10 months ago

5.0.262

10 months ago

5.0.278

10 months ago

5.0.279

10 months ago

5.0.274

10 months ago

5.0.276

10 months ago

5.0.277

10 months ago

5.0.270

10 months ago

5.0.272

10 months ago

5.0.273

10 months ago

5.0.289

9 months ago

5.0.287

10 months ago

5.0.281

10 months ago

5.0.282

10 months ago

5.0.283

10 months ago

5.0.284

10 months ago

5.0.280

10 months ago

5.0.252

10 months ago

5.0.251

10 months ago

5.0.250

10 months ago

5.0.249

10 months ago

5.0.248

10 months ago

5.0.247

10 months ago

5.0.246

10 months ago

5.0.245

10 months ago

5.0.244

10 months ago

5.0.243

10 months ago

5.0.242

10 months ago

5.0.240

10 months ago

5.0.238

10 months ago

5.0.237

10 months ago

5.0.236

10 months ago

5.0.235

10 months ago

5.0.234

10 months ago

5.0.232

10 months ago

5.0.230

10 months ago

5.0.229

10 months ago

5.0.227

11 months ago

5.0.226

11 months ago

5.0.224

11 months ago

5.0.223

11 months ago

5.0.221

11 months ago

5.0.220

11 months ago

5.0.218

11 months ago

5.0.217

11 months ago

5.0.216

11 months ago

5.0.215

11 months ago

5.0.214

11 months ago

5.0.212

11 months ago

5.0.210

11 months ago

5.0.209

11 months ago

5.0.208

11 months ago

5.0.207

11 months ago

5.0.205

11 months ago

5.0.204

11 months ago

5.0.203

11 months ago

5.0.201

11 months ago

5.0.200

11 months ago

5.0.198

11 months ago

5.0.194

12 months ago

5.0.193

12 months ago

5.0.192

12 months ago

5.0.191

12 months ago

5.0.190

12 months ago

5.0.189

12 months ago

5.0.188

12 months ago

5.0.187

12 months ago

5.0.186

12 months ago

5.0.185

12 months ago

5.0.183

12 months ago

5.0.182

12 months ago

5.0.181

12 months ago

5.0.180

12 months ago

5.0.179

12 months ago

5.0.178

12 months ago

5.0.177

12 months ago

5.0.176

12 months ago

5.0.175

12 months ago

5.0.174

12 months ago

5.0.173

12 months ago

5.0.172

12 months ago

5.0.171

12 months ago

5.0.170

12 months ago

5.0.169

12 months ago

5.0.168

12 months ago

5.0.167

12 months ago

5.0.166

12 months ago

5.0.165

12 months ago

5.0.164

12 months ago

5.0.163

12 months ago

5.0.162

12 months ago

5.0.161

12 months ago

5.0.160

12 months ago

5.0.159

12 months ago

5.0.158

12 months ago

5.0.157

12 months ago

5.0.156

12 months ago

5.0.155

12 months ago

5.0.154

12 months ago

5.0.153

12 months ago

5.0.152

12 months ago

5.0.151

1 year ago

5.0.150

1 year ago

5.0.149

1 year ago

5.0.147

1 year ago

5.0.146

1 year ago

5.0.145

1 year ago

5.0.144

1 year ago

5.0.143

1 year ago

5.0.142

1 year ago

5.0.141

1 year ago

5.0.140

1 year ago

5.0.139

1 year ago

5.0.138

1 year ago

5.0.137

1 year ago

5.0.136

1 year ago

5.0.135

1 year ago

5.0.134

1 year ago

5.0.133

1 year ago

5.0.132

1 year ago

5.0.131

1 year ago

5.0.130

1 year ago

5.0.129

1 year ago

5.0.128

1 year ago

5.0.127

1 year ago

5.0.126

1 year ago

5.0.121

1 year ago

5.0.120

1 year ago

5.0.119

1 year ago

5.0.118

1 year ago

5.0.117

1 year ago

5.0.116

1 year ago

5.0.115

1 year ago

5.0.114

1 year ago

5.0.113

1 year ago

5.0.112

1 year ago

5.0.111

1 year ago

5.0.110

1 year ago

5.0.109

1 year ago

5.0.108

1 year ago

5.0.107

1 year ago

5.0.106

1 year ago

5.0.105

1 year ago

5.0.104

1 year ago

5.0.103

1 year ago

5.0.102

1 year ago

5.0.101

1 year ago

5.0.100

1 year ago

5.0.99

1 year ago

5.0.98

1 year ago

5.0.97

1 year ago