@xiaohaih/condition-el-plus
Advanced tools
Comparing version 0.1.9 to 0.1.10
# @xiaohaih/condition-el-plus | ||
## 0.1.10 | ||
## 0.1.9 | ||
@@ -4,0 +6,0 @@ |
@@ -0,2 +1,3 @@ | ||
import { UnwrapNestedRefs } from 'vue'; | ||
import { HCondition } from './interface'; | ||
export declare function defineCondition<T extends Record<string, HCondition.Condition | false | 0 | undefined>>(config: T): T; | ||
export declare function defineCondition<T extends Record<string, HCondition.Condition | false | 0 | undefined>>(config: T): UnwrapNestedRefs<T>; |
@@ -7,3 +7,4 @@ import { CoreCondition } from '@xiaohaih/condition-core'; | ||
} | ||
type Condition = SelectProps | InputProps | DatepickerProps | CascaderProps; | ||
/** 条件声明集合 */ | ||
type Condition = CoreCondition.DeepMaybeRef<SelectProps> | CoreCondition.DeepMaybeRef<InputProps> | CoreCondition.DeepMaybeRef<DatepickerProps> | CoreCondition.DeepMaybeRef<CascaderProps>; | ||
interface SelectProps extends CoreCondition.SelectProps, Omit<Props<InstanceType<typeof ElSelect>>, 'disabled' | 'filterMethod' | 'valueKey' | 'multiple'> { | ||
@@ -21,2 +22,3 @@ t: 'select'; | ||
} | ||
/** 获取 vue 组件的 props 值 */ | ||
type Props<T extends Record<'$props', any>> = Partial<Writeable<T['$props']>>; | ||
@@ -23,0 +25,0 @@ /** 将数据改为可写 */ |
{ | ||
"name": "@xiaohaih/condition-el-plus", | ||
"version": "0.1.9", | ||
"version": "0.1.10", | ||
"description": "", | ||
@@ -23,3 +23,3 @@ "main": "dist/index.cjs.js", | ||
"dependencies": { | ||
"@xiaohaih/condition-core": "0.1.9" | ||
"@xiaohaih/condition-core": "0.1.10" | ||
}, | ||
@@ -26,0 +26,0 @@ "devDependencies": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
606271
2207
+ Added@xiaohaih/condition-core@0.1.10(transitive)
- Removed@xiaohaih/condition-core@0.1.9(transitive)