Commit 96fc3929c704c8eba243256a08f050c15d3fcab1

Authored by xp.Huang
2 parents f77c2d93 391de3bc

Merge branch 'dev-fix-ww' into 'main_dev'

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

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