@xiaohaih/condition-core
Advanced tools
Comparing version 0.1.10 to 0.1.12
# @xiaohaih/condition-core | ||
## 0.1.12 | ||
### Patch Changes | ||
- 调整 props 参数, 并将其导出为全局模块 | ||
## 0.1.11 | ||
## 0.1.10 | ||
@@ -4,0 +12,0 @@ |
@@ -1,2 +0,3 @@ | ||
import * as vue_demi from 'vue-demi'; | ||
import * as _vue_composition_api from '@vue/composition-api'; | ||
import * as vue from 'vue'; | ||
import { Ref, PropType, UnwrapRef, ExtractPropTypes } from 'vue-demi'; | ||
@@ -61,3 +62,16 @@ | ||
*/ | ||
declare const _default$4: vue_demi.DefineComponent<{ | ||
declare const _default$4: vue.ComponentOptions<vue.default, _vue_composition_api.ShallowUnwrapRef<{ | ||
child: CommonMethod[]; | ||
wrapperInstance: ProvideValue; | ||
query: _vue_composition_api.Ref<{ | ||
[x: string]: string; | ||
}>; | ||
getQuery: () => { | ||
[x: string]: string; | ||
}; | ||
initQuery: () => void; | ||
querySearch: () => Promise<string | undefined>; | ||
resetAndSearch: () => void; | ||
reset: () => void; | ||
}> & _vue_composition_api.Data, {}, {}, { | ||
readonly tag: { | ||
@@ -87,17 +101,3 @@ readonly type: PropType<string | object>; | ||
}; | ||
}, { | ||
child: CommonMethod[]; | ||
wrapperInstance: ProvideValue; | ||
query: vue_demi.Ref<Record<string, string>>; | ||
getQuery: () => { | ||
[x: string]: string; | ||
}; | ||
initQuery: () => void; | ||
querySearch: () => Promise<string | undefined>; | ||
resetAndSearch: () => void; | ||
reset: () => void; | ||
}, unknown, {}, {}, vue_demi.ComponentOptionsMixin, vue_demi.ComponentOptionsMixin, { | ||
ready: (query: Record<string, any>) => boolean; | ||
search: (query: Record<string, any>) => boolean; | ||
}, string, vue_demi.VNodeProps & vue_demi.AllowedComponentProps & vue_demi.ComponentCustomProps, Readonly<vue_demi.ExtractPropTypes<{ | ||
}, _vue_composition_api.ExtractPropTypes<{ | ||
readonly tag: { | ||
@@ -127,5 +127,42 @@ readonly type: PropType<string | object>; | ||
}; | ||
}>> & { | ||
}>> & Omit<vue.VueConstructor<vue.default>, never> & (new (...args: any[]) => _vue_composition_api.ComponentRenderProxy<{ | ||
readonly tag: string | object; | ||
readonly datum: Record<string, any>; | ||
readonly toast: (msg: string) => void; | ||
} & { | ||
readonly resetToInitialValue?: boolean | undefined; | ||
readonly backfill?: Record<string, any> | undefined; | ||
readonly realtime?: boolean | undefined; | ||
readonly immediateSearch?: boolean | undefined; | ||
} & { | ||
onReady?: ((query: Record<string, any>) => any) | undefined; | ||
onSearch?: ((query: Record<string, any>) => any) | undefined; | ||
}, _vue_composition_api.ShallowUnwrapRef<{ | ||
child: CommonMethod[]; | ||
wrapperInstance: ProvideValue; | ||
query: _vue_composition_api.Ref<{ | ||
[x: string]: string; | ||
}>; | ||
getQuery: () => { | ||
[x: string]: string; | ||
}; | ||
initQuery: () => void; | ||
querySearch: () => Promise<string | undefined>; | ||
resetAndSearch: () => void; | ||
reset: () => void; | ||
}>, _vue_composition_api.Data, {}, {}, {}, {}, { | ||
ready: (query: Record<string, any>) => boolean; | ||
search: (query: Record<string, any>) => boolean; | ||
}, { | ||
readonly tag: string | object; | ||
readonly datum: Record<string, any>; | ||
readonly toast: (msg: string) => void; | ||
} & { | ||
readonly resetToInitialValue?: boolean | undefined; | ||
readonly backfill?: Record<string, any> | undefined; | ||
readonly realtime?: boolean | undefined; | ||
readonly immediateSearch?: boolean | undefined; | ||
} & { | ||
onReady?: ((query: Record<string, any>) => any) | undefined; | ||
onSearch?: ((query: Record<string, any>) => any) | undefined; | ||
}, { | ||
@@ -135,3 +172,3 @@ readonly tag: string | object; | ||
readonly toast: (msg: string) => void; | ||
}>; | ||
}, true>); | ||
@@ -141,3 +178,16 @@ /** | ||
*/ | ||
declare const _default$3: vue_demi.DefineComponent<{ | ||
declare const _default$3: vue.ComponentOptions<vue.default, _vue_composition_api.ShallowUnwrapRef<{ | ||
checked: _vue_composition_api.Ref<string | string[]>; | ||
getQuery: () => { | ||
[x: string]: any; | ||
}; | ||
insetDisabled: _vue_composition_api.Ref<boolean>; | ||
insetHide: _vue_composition_api.Ref<boolean>; | ||
finalOption: _vue_composition_api.ComputedRef<Record<string, any>[]>; | ||
customFilterMethod: _vue_composition_api.ComputedRef<((value: string) => void) | undefined>; | ||
blur: () => void; | ||
updateCheckedValue: (value: string | string[]) => void; | ||
change: (value: string | string[]) => void; | ||
reset: () => CommonMethod; | ||
}> & _vue_composition_api.Data, {}, {}, { | ||
readonly valueKey: { | ||
@@ -200,16 +250,3 @@ readonly type: PropType<string>; | ||
}; | ||
}, { | ||
checked: vue_demi.Ref<string | string[]>; | ||
getQuery: () => { | ||
[x: string]: any; | ||
}; | ||
insetDisabled: vue_demi.Ref<boolean>; | ||
insetHide: vue_demi.Ref<boolean>; | ||
finalOption: vue_demi.ComputedRef<Record<string, any>[]>; | ||
customFilterMethod: vue_demi.ComputedRef<((value: string) => void) | undefined>; | ||
blur: () => void; | ||
updateCheckedValue: (value: string | string[]) => void; | ||
change: (value: string | string[]) => void; | ||
reset: () => CommonMethod; | ||
}, unknown, {}, {}, vue_demi.ComponentOptionsMixin, vue_demi.ComponentOptionsMixin, {}, string, vue_demi.VNodeProps & vue_demi.AllowedComponentProps & vue_demi.ComponentCustomProps, Readonly<vue_demi.ExtractPropTypes<{ | ||
}, _vue_composition_api.ExtractPropTypes<{ | ||
readonly valueKey: { | ||
@@ -272,6 +309,57 @@ readonly type: PropType<string>; | ||
}; | ||
}>>, { | ||
}>> & Omit<vue.VueConstructor<vue.default>, never> & (new (...args: any[]) => _vue_composition_api.ComponentRenderProxy<{ | ||
readonly query: Record<string, any>; | ||
readonly options: Record<string, any>[]; | ||
readonly field: string; | ||
readonly emptyValue: string | null | undefined; | ||
}>; | ||
readonly valueKey: string; | ||
readonly labelKey: string; | ||
} & { | ||
readonly resetToInitialValue?: boolean | undefined; | ||
readonly backfill?: Record<string, any> | undefined; | ||
readonly as?: string | undefined; | ||
readonly disabled?: boolean | ((query: Record<string, any>) => any) | undefined; | ||
readonly hide?: boolean | ((query: Record<string, any>) => any) | undefined; | ||
readonly validator?: ((query: Record<string, any>) => any) | ((query: Record<string, any>) => Promise<any>) | undefined; | ||
readonly depend?: boolean | undefined; | ||
readonly dependFields?: string | string[] | undefined; | ||
readonly multiple?: boolean | undefined; | ||
readonly getOptions?: ((cb: (data: Record<string, any>[]) => void, query: Record<string, any>) => any) | undefined; | ||
readonly filterMethod?: ((val: string, data: Record<string, any>) => boolean) | undefined; | ||
}, _vue_composition_api.ShallowUnwrapRef<{ | ||
checked: _vue_composition_api.Ref<string | string[]>; | ||
getQuery: () => { | ||
[x: string]: any; | ||
}; | ||
insetDisabled: _vue_composition_api.Ref<boolean>; | ||
insetHide: _vue_composition_api.Ref<boolean>; | ||
finalOption: _vue_composition_api.ComputedRef<Record<string, any>[]>; | ||
customFilterMethod: _vue_composition_api.ComputedRef<((value: string) => void) | undefined>; | ||
blur: () => void; | ||
updateCheckedValue: (value: string | string[]) => void; | ||
change: (value: string | string[]) => void; | ||
reset: () => CommonMethod; | ||
}>, _vue_composition_api.Data, {}, {}, {}, {}, {}, { | ||
readonly query: Record<string, any>; | ||
readonly options: Record<string, any>[]; | ||
readonly field: string; | ||
readonly emptyValue: string | null | undefined; | ||
readonly valueKey: string; | ||
readonly labelKey: string; | ||
} & { | ||
readonly resetToInitialValue?: boolean | undefined; | ||
readonly backfill?: Record<string, any> | undefined; | ||
readonly as?: string | undefined; | ||
readonly disabled?: boolean | ((query: Record<string, any>) => any) | undefined; | ||
readonly hide?: boolean | ((query: Record<string, any>) => any) | undefined; | ||
readonly validator?: ((query: Record<string, any>) => any) | ((query: Record<string, any>) => Promise<any>) | undefined; | ||
readonly depend?: boolean | undefined; | ||
readonly dependFields?: string | string[] | undefined; | ||
readonly multiple?: boolean | undefined; | ||
readonly getOptions?: ((cb: (data: Record<string, any>[]) => void, query: Record<string, any>) => any) | undefined; | ||
readonly filterMethod?: ((val: string, data: Record<string, any>) => boolean) | undefined; | ||
}, { | ||
readonly options: Record<string, any>[]; | ||
readonly emptyValue: string | null | undefined; | ||
}, true>); | ||
@@ -281,3 +369,13 @@ /** | ||
*/ | ||
declare const _default$2: vue_demi.DefineComponent<{ | ||
declare const _default$2: vue.ComponentOptions<vue.default, _vue_composition_api.ShallowUnwrapRef<{ | ||
checked: _vue_composition_api.Ref<string>; | ||
getQuery: () => { | ||
[x: string]: any; | ||
}; | ||
insetDisabled: _vue_composition_api.Ref<boolean>; | ||
insetHide: _vue_composition_api.Ref<boolean>; | ||
debounceChange: (value: string) => void; | ||
enterHandler: (ev: KeyboardEvent | string) => void; | ||
reset: () => CommonMethod; | ||
}> & _vue_composition_api.Data, {}, {}, { | ||
/** | ||
@@ -330,13 +428,3 @@ * debounce change 事件 | ||
}; | ||
}, { | ||
checked: vue_demi.Ref<string>; | ||
getQuery: () => { | ||
[x: string]: any; | ||
}; | ||
insetDisabled: vue_demi.Ref<boolean>; | ||
insetHide: vue_demi.Ref<boolean>; | ||
debounceChange: (value: string) => void; | ||
enterHandler: (ev: KeyboardEvent | string) => void; | ||
reset: () => CommonMethod; | ||
}, unknown, {}, {}, vue_demi.ComponentOptionsMixin, vue_demi.ComponentOptionsMixin, {}, string, vue_demi.VNodeProps & vue_demi.AllowedComponentProps & vue_demi.ComponentCustomProps, Readonly<vue_demi.ExtractPropTypes<{ | ||
}, _vue_composition_api.ExtractPropTypes<{ | ||
/** | ||
@@ -389,6 +477,46 @@ * debounce change 事件 | ||
}; | ||
}>>, { | ||
}>> & Omit<vue.VueConstructor<vue.default>, never> & (new (...args: any[]) => _vue_composition_api.ComponentRenderProxy<{ | ||
readonly query: Record<string, any>; | ||
readonly field: string; | ||
readonly emptyValue: string | null | undefined; | ||
readonly waitTime: number; | ||
}>; | ||
} & { | ||
readonly resetToInitialValue?: boolean | undefined; | ||
readonly backfill?: Record<string, any> | undefined; | ||
readonly realtime?: boolean | undefined; | ||
readonly as?: string | undefined; | ||
readonly disabled?: boolean | ((query: Record<string, any>) => any) | undefined; | ||
readonly hide?: boolean | ((query: Record<string, any>) => any) | undefined; | ||
readonly validator?: ((query: Record<string, any>) => any) | ((query: Record<string, any>) => Promise<any>) | undefined; | ||
readonly depend?: boolean | undefined; | ||
readonly dependFields?: string | string[] | undefined; | ||
}, _vue_composition_api.ShallowUnwrapRef<{ | ||
checked: _vue_composition_api.Ref<string>; | ||
getQuery: () => { | ||
[x: string]: any; | ||
}; | ||
insetDisabled: _vue_composition_api.Ref<boolean>; | ||
insetHide: _vue_composition_api.Ref<boolean>; | ||
debounceChange: (value: string) => void; | ||
enterHandler: (ev: KeyboardEvent | string) => void; | ||
reset: () => CommonMethod; | ||
}>, _vue_composition_api.Data, {}, {}, {}, {}, {}, { | ||
readonly query: Record<string, any>; | ||
readonly field: string; | ||
readonly emptyValue: string | null | undefined; | ||
readonly waitTime: number; | ||
} & { | ||
readonly resetToInitialValue?: boolean | undefined; | ||
readonly backfill?: Record<string, any> | undefined; | ||
readonly realtime?: boolean | undefined; | ||
readonly as?: string | undefined; | ||
readonly disabled?: boolean | ((query: Record<string, any>) => any) | undefined; | ||
readonly hide?: boolean | ((query: Record<string, any>) => any) | undefined; | ||
readonly validator?: ((query: Record<string, any>) => any) | ((query: Record<string, any>) => Promise<any>) | undefined; | ||
readonly depend?: boolean | undefined; | ||
readonly dependFields?: string | string[] | undefined; | ||
}, { | ||
readonly emptyValue: string | null | undefined; | ||
readonly waitTime: number; | ||
}, true>); | ||
@@ -398,3 +526,13 @@ /** | ||
*/ | ||
declare const _default$1: vue_demi.DefineComponent<{ | ||
declare const _default$1: vue.ComponentOptions<vue.default, _vue_composition_api.ShallowUnwrapRef<{ | ||
checked: _vue_composition_api.Ref<string | string[]>; | ||
getQuery: () => { | ||
[x: string]: any; | ||
}; | ||
insetDisabled: _vue_composition_api.Ref<boolean>; | ||
insetHide: _vue_composition_api.Ref<boolean>; | ||
updateCheckedValue: (value: null | string | string[]) => void; | ||
change: (value: string | string[]) => void; | ||
reset: () => CommonMethod; | ||
}> & _vue_composition_api.Data, {}, {}, { | ||
readonly range: { | ||
@@ -446,13 +584,3 @@ readonly type: PropType<boolean>; | ||
}; | ||
}, { | ||
checked: vue_demi.Ref<string | string[]>; | ||
getQuery: () => { | ||
[x: string]: any; | ||
}; | ||
insetDisabled: vue_demi.Ref<boolean>; | ||
insetHide: vue_demi.Ref<boolean>; | ||
updateCheckedValue: (value: null | string | string[]) => void; | ||
change: (value: string | string[]) => void; | ||
reset: () => CommonMethod; | ||
}, unknown, {}, {}, vue_demi.ComponentOptionsMixin, vue_demi.ComponentOptionsMixin, {}, string, vue_demi.VNodeProps & vue_demi.AllowedComponentProps & vue_demi.ComponentCustomProps, Readonly<vue_demi.ExtractPropTypes<{ | ||
}, _vue_composition_api.ExtractPropTypes<{ | ||
readonly range: { | ||
@@ -504,6 +632,48 @@ readonly type: PropType<boolean>; | ||
}; | ||
}>>, { | ||
}>> & Omit<vue.VueConstructor<vue.default>, never> & (new (...args: any[]) => _vue_composition_api.ComponentRenderProxy<{ | ||
readonly query: Record<string, any>; | ||
readonly field: string; | ||
readonly emptyValue: string | null | undefined; | ||
readonly range: boolean; | ||
}>; | ||
} & { | ||
readonly resetToInitialValue?: boolean | undefined; | ||
readonly backfill?: Record<string, any> | undefined; | ||
readonly as?: string | undefined; | ||
readonly disabled?: boolean | ((query: Record<string, any>) => any) | undefined; | ||
readonly hide?: boolean | ((query: Record<string, any>) => any) | undefined; | ||
readonly validator?: ((query: Record<string, any>) => any) | ((query: Record<string, any>) => Promise<any>) | undefined; | ||
readonly depend?: boolean | undefined; | ||
readonly dependFields?: string | string[] | undefined; | ||
readonly beginField?: string | undefined; | ||
readonly endField?: string | undefined; | ||
}, _vue_composition_api.ShallowUnwrapRef<{ | ||
checked: _vue_composition_api.Ref<string | string[]>; | ||
getQuery: () => { | ||
[x: string]: any; | ||
}; | ||
insetDisabled: _vue_composition_api.Ref<boolean>; | ||
insetHide: _vue_composition_api.Ref<boolean>; | ||
updateCheckedValue: (value: null | string | string[]) => void; | ||
change: (value: string | string[]) => void; | ||
reset: () => CommonMethod; | ||
}>, _vue_composition_api.Data, {}, {}, {}, {}, {}, { | ||
readonly query: Record<string, any>; | ||
readonly field: string; | ||
readonly emptyValue: string | null | undefined; | ||
readonly range: boolean; | ||
} & { | ||
readonly resetToInitialValue?: boolean | undefined; | ||
readonly backfill?: Record<string, any> | undefined; | ||
readonly as?: string | undefined; | ||
readonly disabled?: boolean | ((query: Record<string, any>) => any) | undefined; | ||
readonly hide?: boolean | ((query: Record<string, any>) => any) | undefined; | ||
readonly validator?: ((query: Record<string, any>) => any) | ((query: Record<string, any>) => Promise<any>) | undefined; | ||
readonly depend?: boolean | undefined; | ||
readonly dependFields?: string | string[] | undefined; | ||
readonly beginField?: string | undefined; | ||
readonly endField?: string | undefined; | ||
}, { | ||
readonly emptyValue: string | null | undefined; | ||
readonly range: boolean; | ||
}, true>); | ||
@@ -514,3 +684,11 @@ type ValueType = string | number | null | undefined; | ||
*/ | ||
declare const _default: vue_demi.DefineComponent<{ | ||
declare const _default: vue.ComponentOptions<vue.default, _vue_composition_api.ShallowUnwrapRef<{ | ||
checked: _vue_composition_api.Ref<ValueType[]>; | ||
getQuery: () => {}; | ||
finalOption: _vue_composition_api.ComputedRef<Record<string, any>[]>; | ||
insetDisabled: _vue_composition_api.Ref<boolean>; | ||
insetHide: _vue_composition_api.Ref<boolean>; | ||
change: (values: ValueType[] | ValueType) => void; | ||
reset: () => CommonMethod; | ||
}> & _vue_composition_api.Data, {}, {}, { | ||
readonly fields: { | ||
@@ -576,11 +754,3 @@ readonly type: PropType<string[]>; | ||
}; | ||
}, { | ||
checked: vue_demi.Ref<ValueType[]>; | ||
getQuery: () => {}; | ||
finalOption: vue_demi.ComputedRef<Record<string, any>[]>; | ||
insetDisabled: vue_demi.Ref<boolean>; | ||
insetHide: vue_demi.Ref<boolean>; | ||
change: (values: ValueType[] | ValueType) => void; | ||
reset: () => CommonMethod; | ||
}, unknown, {}, {}, vue_demi.ComponentOptionsMixin, vue_demi.ComponentOptionsMixin, {}, string, vue_demi.VNodeProps & vue_demi.AllowedComponentProps & vue_demi.ComponentCustomProps, Readonly<vue_demi.ExtractPropTypes<{ | ||
}, _vue_composition_api.ExtractPropTypes<{ | ||
readonly fields: { | ||
@@ -646,7 +816,53 @@ readonly type: PropType<string[]>; | ||
}; | ||
}>>, { | ||
}>> & Omit<vue.VueConstructor<vue.default>, never> & (new (...args: any[]) => _vue_composition_api.ComponentRenderProxy<{ | ||
readonly query: Record<string, any>; | ||
readonly options: Record<string, any>[]; | ||
readonly field: string; | ||
readonly emptyValue: string | null | undefined; | ||
readonly valueKey: string; | ||
readonly emitPath: boolean; | ||
}>; | ||
} & { | ||
readonly resetToInitialValue?: boolean | undefined; | ||
readonly backfill?: Record<string, any> | undefined; | ||
readonly as?: string | undefined; | ||
readonly disabled?: boolean | ((query: Record<string, any>) => any) | undefined; | ||
readonly hide?: boolean | ((query: Record<string, any>) => any) | undefined; | ||
readonly validator?: ((query: Record<string, any>) => any) | ((query: Record<string, any>) => Promise<any>) | undefined; | ||
readonly depend?: boolean | undefined; | ||
readonly dependFields?: string | string[] | undefined; | ||
readonly getOptions?: ((cb: (data: Record<string, any>[]) => void, query: Record<string, any>) => any) | undefined; | ||
readonly fields?: string[] | undefined; | ||
readonly childrenKey?: string | undefined; | ||
}, _vue_composition_api.ShallowUnwrapRef<{ | ||
checked: _vue_composition_api.Ref<ValueType[]>; | ||
getQuery: () => {}; | ||
finalOption: _vue_composition_api.ComputedRef<Record<string, any>[]>; | ||
insetDisabled: _vue_composition_api.Ref<boolean>; | ||
insetHide: _vue_composition_api.Ref<boolean>; | ||
change: (values: ValueType[] | ValueType) => void; | ||
reset: () => CommonMethod; | ||
}>, _vue_composition_api.Data, {}, {}, {}, {}, {}, { | ||
readonly query: Record<string, any>; | ||
readonly options: Record<string, any>[]; | ||
readonly field: string; | ||
readonly emptyValue: string | null | undefined; | ||
readonly valueKey: string; | ||
readonly emitPath: boolean; | ||
} & { | ||
readonly resetToInitialValue?: boolean | undefined; | ||
readonly backfill?: Record<string, any> | undefined; | ||
readonly as?: string | undefined; | ||
readonly disabled?: boolean | ((query: Record<string, any>) => any) | undefined; | ||
readonly hide?: boolean | ((query: Record<string, any>) => any) | undefined; | ||
readonly validator?: ((query: Record<string, any>) => any) | ((query: Record<string, any>) => Promise<any>) | undefined; | ||
readonly depend?: boolean | undefined; | ||
readonly dependFields?: string | string[] | undefined; | ||
readonly getOptions?: ((cb: (data: Record<string, any>[]) => void, query: Record<string, any>) => any) | undefined; | ||
readonly fields?: string[] | undefined; | ||
readonly childrenKey?: string | undefined; | ||
}, { | ||
readonly options: Record<string, any>[]; | ||
readonly emptyValue: string | null | undefined; | ||
readonly emitPath: boolean; | ||
}, true>); | ||
@@ -653,0 +869,0 @@ /** 公共 props */ |
{ | ||
"name": "@xiaohaih/condition-core", | ||
"version": "0.1.10", | ||
"version": "0.1.12", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.cjs.js", |
515046
5213