优化DictionaryCascader
parent
37d2e66485
commit
e623015fc4
|
|
@ -4,7 +4,7 @@ import type { BasicCascaderProps } from "../Basic";
|
|||
/**
|
||||
* 组件属性
|
||||
*/
|
||||
export interface DictionarySelectTreeProps extends Omit<BasicCascaderProps, "options" | "nameKey" | "idKey" | "childrenKey"> {
|
||||
export interface DictionaryCascaderProps extends Omit<BasicCascaderProps, "options" | "nameKey" | "idKey" | "childrenKey"> {
|
||||
/** appKey,默认 DICTIONARY_APP_KEY_ENUM.DEFAULT(0bb989ecada5470c87635018ece9f327) */
|
||||
appKey?: string;
|
||||
/** 要获取的字典 */
|
||||
|
|
@ -18,6 +18,6 @@ export interface DictionarySelectTreeProps extends Omit<BasicCascaderProps, "opt
|
|||
/**
|
||||
* 数据字典级联组件
|
||||
*/
|
||||
declare const DictionarySelectTree: FC<DictionarySelectTreeProps>;
|
||||
declare const DictionaryCascader: FC<DictionaryCascaderProps>;
|
||||
|
||||
export default DictionarySelectTree;
|
||||
export default DictionaryCascader;
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ import BasicCascader from "../Basic";
|
|||
/**
|
||||
* 数据字典级联组件
|
||||
*/
|
||||
function DictionarySelectTree(props) {
|
||||
function DictionaryCascader(props) {
|
||||
const {
|
||||
appKey = DICTIONARY_APP_KEY_ENUM.DEFAULT,
|
||||
dictValue = "",
|
||||
|
|
@ -35,6 +35,6 @@ function DictionarySelectTree(props) {
|
|||
);
|
||||
}
|
||||
|
||||
DictionarySelectTree.displayName = "DictionarySelectTree";
|
||||
DictionaryCascader.displayName = "DictionaryCascader";
|
||||
|
||||
export default DictionarySelectTree;
|
||||
export default DictionaryCascader;
|
||||
|
|
|
|||
Loading…
Reference in New Issue