优化DictionaryCascader

master
LiuJiaNan 2025-11-14 14:13:30 +08:00
parent 37d2e66485
commit e623015fc4
2 changed files with 6 additions and 6 deletions

View File

@ -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.DEFAULT0bb989ecada5470c87635018ece9f327 */ /** appKey默认 DICTIONARY_APP_KEY_ENUM.DEFAULT0bb989ecada5470c87635018ece9f327 */
appKey?: string; 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;

View File

@ -6,7 +6,7 @@ import BasicCascader from "../Basic";
/** /**
* 数据字典级联组件 * 数据字典级联组件
*/ */
function DictionarySelectTree(props) { function DictionaryCascader(props) {
const { const {
appKey = DICTIONARY_APP_KEY_ENUM.DEFAULT, appKey = DICTIONARY_APP_KEY_ENUM.DEFAULT,
dictValue = "", dictValue = "",
@ -35,6 +35,6 @@ function DictionarySelectTree(props) {
); );
} }
DictionarySelectTree.displayName = "DictionarySelectTree"; DictionaryCascader.displayName = "DictionaryCascader";
export default DictionarySelectTree; export default DictionaryCascader;