0.0.7 • Published 9 months ago

use-avue v0.0.7

Weekly downloads
-
License
-
Repository
-
Last release
9 months ago

例子:

import { useCrud } from 'use-avue'
import type { CrudOptionType } from 'use-avue' // 所有选项
import { getListApi,submitApi,removeApi  } from '@/api/xxx'
const {crudDataList, crudParams, crudLoading, crudPage, onEvent, bindAttr} = useCrud({
	httpListApi: getListApi, // 搜索接口
	httpAddApi: submitApi,// 添加接口
	httpUpdateApi: submitApi,// 更新接口
	httpDelApi: removeApi // 删除接口
})
bindAttr.value.option = {
   height: 'auto',
   calcHeight: 30,
   tip: false,
   searchShow: true,
   searchMenuSpan: 6,
   border: true,
   dialogWidth: "65%",
   labelWidth: 130,
   menuWidth: 250,
   index: true,
   viewBtn: true,
   selection: true,
   dialogClickModal: false,
   columnBtn: false,
   column: [
     //...
   ]
}
    <avue-crud v-bind="bindAttr"
               v-on="onEvent"
               v-model="crudForm"
               v-model:page="crudPage"
    >
    </avue-crud>
0.0.7

9 months ago

0.0.6

9 months ago

0.0.5

9 months ago

0.0.4

9 months ago

0.0.2

9 months ago

0.0.1

9 months ago