0.1.19 • Published 4 years ago

@36node/redux-xlsx v0.1.19

Weekly downloads
46
License
MIT
Repository
github
Last release
4 years ago

@36node/redux-xlsx

version downloads

Work with Xlsx and redux, focus on manage xlsx data in state, import from file to state, and export from state to file.

Xlsx Actions

import { makeXlsx } from "@36node/redux";

/**
 * columns structure same as antd table, ref
 * https://ant.design/components/table-cn/#%E5%A6%82%E4%BD%95%E4%BD%BF%E7%94%A8
 */
const xlsx = makeXlsx("someKey", { columns });

// start cron
dispatch(xlsx.import({ file }));
// stop xlsx
dispatch(xlsx.export({ rows }));

Xlsx Reducer

import { xlsxReducerRoot } from "@36node/redux";

export default combineReducers({
  ...xlsxReducerRoot,
});

Xlsx Selector

import { makeXlsxSelector } from "@36node/redux";

const select = makeXlsxSelector("someKey");
const some = select(state);

Xlsx Saga

redux-xlsx should use with saga.

import { fork, all } from "redux-saga/effects";
import { watchXlsx } from "@36node/redux-xlsx";

export default function* root() {
  yield all([fork(watchXlsx)]);
}
0.1.19

4 years ago

0.1.18

4 years ago

0.1.17

4 years ago

0.1.16

4 years ago

0.1.15

5 years ago

0.1.14

5 years ago

0.1.13

5 years ago

0.1.12

5 years ago

0.1.11

5 years ago

0.1.10

5 years ago

0.1.9

5 years ago

0.1.8

5 years ago

0.1.7

5 years ago

0.1.5

5 years ago

0.1.4

5 years ago

0.1.3

5 years ago

0.1.2

5 years ago

0.1.1

5 years ago

0.0.26

5 years ago

0.0.25

5 years ago

0.0.24

5 years ago

0.0.23

5 years ago

0.0.22

5 years ago

0.0.21

5 years ago

0.0.20

5 years ago

0.0.19

5 years ago

0.0.18

5 years ago

0.0.17

5 years ago

0.0.16

5 years ago

0.0.15

5 years ago

0.0.14

5 years ago

0.0.13

5 years ago

0.0.12

5 years ago

0.0.11

5 years ago

0.0.10

5 years ago

0.0.9

5 years ago

0.0.8

5 years ago

0.0.7

5 years ago

0.0.6

5 years ago

0.0.5

5 years ago

0.0.4

5 years ago

0.0.3

5 years ago