1.0.2 • Published 2 years ago

mock_datas v1.0.2

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

插件说明(Introduction)

本插件可用于API接口联调前的数据mock阶段。 This plug-in can be used in the data mock stage before API interface joint commissioning.

安装(Install)

npm install mock_datas

使用(Use)

const make_a_name = require('mock_datas')

或者 or

import make_a_name from "mock_datas"

然后引用插件内部的方法(for example):

const mockdata = require('mock_datas');

let aUINeedToShowDataObj = {}; // 指代你要显示在界面上的数据对象

aUINeedToShowDataObj = mockdata.generalData; // 使用普通数据
aUINeedToShowDataObj = mockdata.recordsTable; // 使用常用数据
aUINeedToShowDataObj = mockdata.recordsEnum; // 使用枚举数据
// ......