12345678910111213141516 |
- import { defineStore } from "pinia";
- export const useBulkActionsStore = props => {
- const { modalUuid } = props;
- if (!modalUuid) return null;
- return defineStore(`bulkActions-${modalUuid}`, {
- state: () => ({
- type: null
- }),
- actions: {
- init({ type }) {
- this.type = type;
- }
- }
- })();
- };
|