fix: type check error
parent
b06d3c58b3
commit
ced9f8ca2c
|
@ -2,6 +2,7 @@ import CronParser from 'cron-parser'
|
|||
import type { ValidatorRule } from 'ant-design-vue/lib/form/interface'
|
||||
|
||||
const cronRule: ValidatorRule = {
|
||||
// eslint-disable-next-line no-empty-pattern
|
||||
validator({}, value) {
|
||||
// 没填写就不校验
|
||||
if (!value)
|
||||
|
|
|
@ -119,6 +119,7 @@ export default defineComponent({
|
|||
return null
|
||||
|
||||
const getField = get(_data, field)
|
||||
// eslint-disable-next-line no-prototype-builtins
|
||||
if (getField && !toRefs(_data).hasOwnProperty(field))
|
||||
return isFunction(render) ? render('', _data) : ''
|
||||
|
||||
|
|
|
@ -28,6 +28,7 @@ const activeClass = computed(() => {
|
|||
*/
|
||||
function handleDelete() {
|
||||
const traverse = (schemas: IVFormComponent[]) => {
|
||||
// eslint-disable-next-line array-callback-return
|
||||
schemas.some((formItem, index) => {
|
||||
const { component, key } = formItem;
|
||||
// 处理栅格和标签页布局
|
||||
|
|
|
@ -160,6 +160,7 @@ function handleCopy(item: IVFormComponent = formConfig.value.currentItem as IVFo
|
|||
*/
|
||||
const traverse = (schemas: IVFormComponent[]) => {
|
||||
// 使用some遍历,找到目标后停止遍历
|
||||
// eslint-disable-next-line array-callback-return
|
||||
schemas.some((formItem: IVFormComponent, index: number) => {
|
||||
if (formItem.key === key) {
|
||||
// 判断是不是复制
|
||||
|
|
|
@ -132,6 +132,7 @@ export function useVFormMethods<E extends EmitsOptions = EmitsOptions>(
|
|||
* 获取formData中的值
|
||||
* @return {Promise<IAnyObject<any>>}
|
||||
*/
|
||||
// eslint-disable-next-line @typescript-eslint/require-await
|
||||
const getData: IGetData = async () => {
|
||||
return cloneDeep(props.formModel)
|
||||
}
|
||||
|
|
|
@ -195,6 +195,7 @@ export default defineComponent({
|
|||
|
||||
const onChange = unref(getComponentProps)?.onChangeTemp
|
||||
if (onChange && isFunction(onChange))
|
||||
// eslint-disable-next-line prefer-rest-params
|
||||
onChange(...arguments)
|
||||
|
||||
table.emit?.('edit-change', {
|
||||
|
|
Loading…
Reference in New Issue