2.9.31 • Published 11 days ago

@mpxjs/pinia v2.9.31

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
11 days ago

mpx-pinia

A pinia style store for mpx framework

Usage

app.mpx

import mpx from '@mpxjs/core'
import { createPinia } from '@mpxjs/pinia'

const pinia = createPinia()
mpx.use(pinia)

store.js

import { defineStore } from '@mpxjs/pinia'

// 选项式
export const useOptionsStore = defineStore('options', {
  state: () => {},
  getters: {},
  actions: {}
})

// 组合式
export const useSetupStore = defineStore('setup', () => {
  let storeObj = {
    name: ''
  }
  return {...storeObj} 
})
2.9.31

11 days ago

2.8.25-alpha.18

1 month ago

2.8.25-alpha.17

1 month ago

2.8.40-test.2

5 months ago

2.8.52

7 months ago

2.8.40-test

6 months ago

2.8.50

7 months ago

2.8.60

6 months ago

2.9.1

6 months ago

2.8.64-bridgetest

6 months ago

2.9.0

6 months ago

2.8.28-beta.11

8 months ago

2.9.0-beta.4

6 months ago

2.9.0-beta.3

6 months ago

2.9.0-beta.0

10 months ago

2.9.0-beta.1

8 months ago

2.8.23-alpha

1 year ago

2.8.15

1 year ago

2.8.14

1 year ago

2.8.11

1 year ago

2.8.9

1 year ago

2.8.2

2 years ago

2.8.1

2 years ago

2.8.0

2 years ago

2.8.0-beta.4

2 years ago

2.8.0-beta.2

2 years ago