3.0.1 • Published 5 years ago

@stbui/prophet-data-json-server v3.0.1

Weekly downloads
18
License
ISC
Repository
github
Last release
5 years ago

@stbui/prophet-data-json-server

RESTFUL 规范适配器

Usage

npm install @stbui/prophet@latest @stbui/prophet-data-json-server@latest

配合组件使用

import { Admin, Resource } from '@stbui/prophet-core';
import dataJsonServer from '@stbui/prophet-data-json-server';

<Admin dataProvider={dataJsonServer('http://127.0.0.1:3001')}>
    <Resource
        name="users"
        list={props => <div>list</div>}
        edit={props => <div>edit</div>}
        create={props => <div>create</div>}
        show={props => <div>show</div>}
    />
</Admin>;

直接调用

import dataProvider from '@stbui/prophet-data-json-server';
dataProvider('http://127.0.0.1')('GET_LIST', 'users').then(response => {
    console.log(response);
});
3.0.1

5 years ago

2.2.2

5 years ago

3.0.0

5 years ago

2.2.0

5 years ago

2.1.2

5 years ago

2.1.0

5 years ago

2.0.1

5 years ago

2.0.0

5 years ago

1.4.1

6 years ago

1.4.0

6 years ago

1.3.5

6 years ago

1.3.4

6 years ago

1.3.2

6 years ago

1.3.0

6 years ago

1.2.0

6 years ago

1.1.1

6 years ago

1.1.0

6 years ago