基于 Element UI 的关区报关代码表展示组件
npm i customs-clearance-code-table -S
app.js 中
import Vue from 'vue'
import CustomsClearanceCodeTable from 'customs-clearance-code-table'
Vue.use(CustomsClearanceCodeTable)
组件调用
<CustomsClearanceCodeTable :api="api"></CustomsClearanceCodeTable>
模拟数据接口
export default {
data() {
return {
api: "http://rap2api.taobao.org/app/mock/161472/cutomsCode"
};
}
}