Commit 391de3bcf59dede55663cba7ef8d3fb5a481f7d2

Authored by ww
1 parent f2461962

fix: 修复组织下拉选择树高度过长

@@ -44,6 +44,7 @@ @@ -44,6 +44,7 @@
44 maxLength: 250, 44 maxLength: 250,
45 ...apiTreeSelectProps, 45 ...apiTreeSelectProps,
46 value, 46 value,
  47 + dropdownStyle: { maxHeight: '300px' },
47 api: async (params: OrganizationListItem) => { 48 api: async (params: OrganizationListItem) => {
48 try { 49 try {
49 if (!unref(needReload)) return unref(orgList); 50 if (!unref(needReload)) return unref(orgList);
@@ -88,6 +88,8 @@ @@ -88,6 +88,8 @@
88 88
89 <style scoped lang="less"> 89 <style scoped lang="less">
90 .organization-tree { 90 .organization-tree {
  91 + max-height: 100vh;
  92 +
91 .expand { 93 .expand {
92 opacity: 0; 94 opacity: 0;
93 } 95 }
@@ -145,6 +145,7 @@ @@ -145,6 +145,7 @@
145 onChange(value: string, option: Recordable) { 145 onChange(value: string, option: Recordable) {
146 handleEmit(FormFieldsEnum.ORGANIZATION, value, option); 146 handleEmit(FormFieldsEnum.ORGANIZATION, value, option);
147 }, 147 },
  148 + dropdownStyle: { maxHeight: '300px' },
148 getPopupContainer: () => document.body, 149 getPopupContainer: () => document.body,
149 }; 150 };
150 }, 151 },