@das-fed/upf-ui 6.4.0-dev.249 → 6.4.0-dev.250

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (36) hide show
  1. package/front-end/i18n/front-end-page/dasui_en-US.js +2 -2
  2. package/front-end/i18n/front-end-page/dasui_zh-CN.js +2 -2
  3. package/front-end/i18n/front-end-page/dasui_zh-MO.js +2 -2
  4. package/package.json +3 -3
  5. package/packages/components/checkbox/index.d.ts +9 -9
  6. package/packages/components/checkbox/src/Index.vue.d.ts +1 -1
  7. package/packages/components/date-picker/index.js +637 -636
  8. package/packages/components/date-picker/index.js.gz +0 -0
  9. package/packages/components/date-picker/style.css +1 -1
  10. package/packages/components/date-picker/style.css.gz +0 -0
  11. package/packages/components/loading/index.js +176 -174
  12. package/packages/components/loading/index.js.gz +0 -0
  13. package/packages/components/progress/index.js +207 -213
  14. package/packages/components/progress/index.js.gz +0 -0
  15. package/packages/components/progress/style.css +1 -1
  16. package/packages/components/progress/style.css.gz +0 -0
  17. package/packages/components/radio/index.d.ts +9 -9
  18. package/packages/components/radio/src/Index.vue.d.ts +1 -1
  19. package/packages/components/search-form/index.js +124 -124
  20. package/packages/components/search-form/index.js.gz +0 -0
  21. package/packages/components/search-form/src/InputSelect.vue.d.ts +2 -2
  22. package/packages/components/search-form/src/SearchDateRange.vue.d.ts +2 -2
  23. package/packages/components/search-form/src/hooks/searchFormItem.d.ts +1 -1
  24. package/packages/components/search-form/style.css +1 -1
  25. package/packages/components/search-form/style.css.gz +0 -0
  26. package/packages/components/select/index.js +139 -138
  27. package/packages/components/select/index.js.gz +0 -0
  28. package/packages/components/select/src/type.d.ts +2 -0
  29. package/packages/components/select/style.css +1 -1
  30. package/packages/components/select/style.css.gz +0 -0
  31. package/packages/components/spin/index.js +46 -52
  32. package/packages/components/spin/index.js.gz +0 -0
  33. package/packages/components/tree-select/src/App.vue.d.ts +2 -0
  34. package/packages/components/tree-select/src/hooks/use-tree-select.d.ts +2 -0
  35. package/packages/components/virtual-tree/index.js +99 -105
  36. package/packages/components/virtual-tree/index.js.gz +0 -0
@@ -11,6 +11,8 @@ export interface Props {
11
11
 
12
12
  mode?: 'multiple' | 'tags' | 'combobox'
13
13
 
14
+ showSearch?: boolean
15
+
14
16
  fieldNames?: any
15
17
 
16
18
  borderType?: 'underline' | 'bordered' | 'none'
@@ -1 +1 @@
1
- .das-ui-select[data-v-93b3fa17]{--upf-select-text-color: var(--upf-text-primary);--upf-select-placeholder-color: var(--upf-text-placeholder);--upf-select-border-color: var(--upf-border-color, #d9d9d9);--upf-select-underline-color: var(--upf-text-disabled);--upf-select-active-border-color: var(--upf-form-active-border-color, var(--upf-color-primary));--upf-select-primary-color: var(--upf-color-primary);--upf-select-error-color: var(--upf-color-error);--upf-select-disabled-text-color: var(--upf-text-disabled);--upf-select-disabled-border-color: var(--upf-border-color, #d9d9d9);--upf-select-disabled-bg-color: var(--upf-bg-secondary);--upf-select-option-active-bg: var(--upf-menu-hover-bg);--upf-select-help-color: var(--upf-text-secondary);--upf-select-overlay-error-color: var(--upf-color-error);--upf-select-height-sm: 24px;--upf-select-height-md: 32px;--upf-select-height-lg: 36px;--upf-select-max-height-sm: 66px;--upf-select-max-height-md: 82px;--upf-select-max-height-lg: 85px;--upf-select-tag-font-size-sm: 14px;--upf-select-tag-font-size-md: 14px;--upf-select-tag-font-size-lg: 15px;display:inline-block;position:relative}.das-ui-select .das-select-overlay-error-label-content[data-v-93b3fa17]{position:absolute;top:100%;left:0;width:var(--c89c8c78)}.das-ui-select.show-ellipsis[data-v-93b3fa17] .ant-select-selection-overflow-item.ellipsis .ant-tag{display:flex;align-items:center}.das-ui-select.show-ellipsis[data-v-93b3fa17] .ant-select-selection-overflow-item.ellipsis .ant-tag span:nth-of-type(1){width:50px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.das-ui-select[data-v-93b3fa17] .ant-select{width:100%;height:var(--v7e92f62e)}.das-ui-select[data-v-93b3fa17] .ant-select .das-select-error-label-content{width:var(--c89c8c78);font-size:12px}.das-ui-select[data-v-93b3fa17] .ant-select .das-select-error-label-content .label{display:block;color:var(--upf-select-overlay-error-color);white-space:break-spaces}.das-ui-select[data-v-93b3fa17] .ant-select .ant-select-arrow{color:var(--upf-text-secondary);width:16px;height:16px;margin-top:0;transform:translateY(-50%)}.das-ui-select[data-v-93b3fa17] .ant-select:hover .ant-select-arrow{color:var(--upf-select-primary-color)}.das-ui-select[data-v-93b3fa17] .ant-select .ant-select-clear{color:var(--upf-text-placeholder);width:16px;height:16px;margin-top:0;transform:translateY(-50%);z-index:auto}.das-ui-select[data-v-93b3fa17] .ant-select .ant-select-clear:hover{color:var(--upf-text-secondary)}.das-ui-select[data-v-93b3fa17] .ant-select .os-scrollbar.os-scrollbar-vertical{z-index:1}.das-ui-select[data-v-93b3fa17] .ant-select .ant-select-selector{box-sizing:border-box;box-shadow:none!important}.das-ui-select[data-v-93b3fa17] .ant-select .ant-select-selector .ant-tag{margin-bottom:1px;background-color:transparent}.das-ui-select[data-v-93b3fa17] .ant-select .ant-select-selector .ant-select-selection-search{left:0}.das-ui-select[data-v-93b3fa17] .ant-select .ant-select-selector .ant-select-selection-placeholder{padding-left:0;left:0}.das-ui-select[data-v-93b3fa17] .ant-select.ant-select-single:not(.ant-select-customize-input) .ant-select-selector{height:var(--upf-select-height-md)}.das-ui-select[data-v-93b3fa17] .ant-select.ant-select-single:not(.ant-select-customize-input) .ant-select-selector .ant-select-selection-search-input,.das-ui-select[data-v-93b3fa17] .ant-select.ant-select-single:not(.ant-select-customize-input) .ant-select-selector .ant-select-selection-placeholder:after{height:calc(var(--upf-select-height-md) - 2px)}.das-ui-select[data-v-93b3fa17] .ant-select.ant-select-single:not(.ant-select-customize-input) .ant-select-selector:after{height:calc(var(--upf-select-height-md) - 2px)}.das-ui-select[data-v-93b3fa17] .ant-select.ant-select-single.ant-select-sm:not(.ant-select-customize-input) .ant-select-selector{height:var(--upf-select-height-sm)}.das-ui-select[data-v-93b3fa17] .ant-select.ant-select-single.ant-select-sm:not(.ant-select-customize-input) .ant-select-selector .ant-select-selection-search-input,.das-ui-select[data-v-93b3fa17] .ant-select.ant-select-single.ant-select-sm:not(.ant-select-customize-input) .ant-select-selector .ant-select-selection-placeholder:after{height:calc(var(--upf-select-height-sm) - 2px)}.das-ui-select[data-v-93b3fa17] .ant-select.ant-select-single.ant-select-sm:not(.ant-select-customize-input) .ant-select-selector:after{height:calc(var(--upf-select-height-sm) - 2px)}.das-ui-select[data-v-93b3fa17] .ant-select.ant-select-single.ant-select-lg:not(.ant-select-customize-input) .ant-select-selector{height:var(--upf-select-height-lg)}.das-ui-select[data-v-93b3fa17] .ant-select.ant-select-single.ant-select-lg:not(.ant-select-customize-input) .ant-select-selector .ant-select-selection-search-input,.das-ui-select[data-v-93b3fa17] .ant-select.ant-select-single.ant-select-lg:not(.ant-select-customize-input) .ant-select-selector .ant-select-selection-placeholder:after{height:calc(var(--upf-select-height-lg) - 2px)}.das-ui-select[data-v-93b3fa17] .ant-select.ant-select-single.ant-select-lg:not(.ant-select-customize-input) .ant-select-selector:after{height:calc(var(--upf-select-height-lg) - 2px)}.das-ui-select[data-v-93b3fa17] .ant-select .ant-select-selection-item{color:var(--upf-select-text-color)}.das-ui-select[data-v-93b3fa17] .ant-select.ant-select-multiple .ant-select-selector{min-height:var(--upf-select-height-md)}.das-ui-select[data-v-93b3fa17] .ant-select.ant-select-multiple .ant-select-selection-search{margin-inline-start:0px;-webkit-margin-start:0px;height:calc(var(--upf-select-height-md) - 2px);line-height:calc(var(--upf-select-height-md) - 2px)}.das-ui-select[data-v-93b3fa17] .ant-select.ant-select-multiple .ant-tag{color:var(--upf-select-text-color);height:calc(var(--upf-select-height-md) - 4px);line-height:calc(var(--upf-select-height-md) - 5px);font-size:var(--upf-select-tag-font-size-md);margin-bottom:0;margin-right:0}.das-ui-select[data-v-93b3fa17] .ant-select.ant-select-multiple .ant-select-selection-item{height:calc(var(--upf-select-height-md) - 4px);font-size:var(--upf-select-tag-font-size-md);margin-top:0;margin-bottom:0;border:none;background-color:transparent;-webkit-margin-end:0px;margin-inline-end:0px;-webkit-padding-start:0px;padding-inline-start:0px;-webkit-padding-end:0px;padding-inline-end:0px}.das-ui-select[data-v-93b3fa17] .ant-select.ant-select-multiple .ant-select-selection-overflow{max-height:var(--upf-select-max-height-md)}.das-ui-select[data-v-93b3fa17] .ant-select.ant-select-multiple.ant-select-sm .ant-select-selector{min-height:var(--upf-select-height-sm)}.das-ui-select[data-v-93b3fa17] .ant-select.ant-select-multiple.ant-select-sm .ant-select-selection-search{height:calc(var(--upf-select-height-sm) - 2px);line-height:calc(var(--upf-select-height-sm) - 2px)}.das-ui-select[data-v-93b3fa17] .ant-select.ant-select-multiple.ant-select-sm .ant-tag{height:calc(var(--upf-select-height-sm) - 4px);line-height:calc(var(--upf-select-height-sm) - 5px);font-size:var(--upf-select-tag-font-size-sm)}.das-ui-select[data-v-93b3fa17] .ant-select.ant-select-multiple.ant-select-sm .ant-select-selection-item{height:calc(var(--upf-select-height-sm) - 2px);line-height:calc(var(--upf-select-height-sm) - 2px);font-size:var(--upf-select-tag-font-size-sm)}.das-ui-select[data-v-93b3fa17] .ant-select.ant-select-multiple.ant-select-sm .ant-select-selection-overflow{max-height:var(--upf-select-max-height-sm)}.das-ui-select[data-v-93b3fa17] .ant-select.ant-select-multiple.ant-select-lg .ant-select-selector{min-height:var(--upf-select-height-lg)}.das-ui-select[data-v-93b3fa17] .ant-select.ant-select-multiple.ant-select-lg .ant-select-selection-search{height:calc(var(--upf-select-height-lg) - 2px);line-height:calc(var(--upf-select-height-lg) - 2px)}.das-ui-select[data-v-93b3fa17] .ant-select.ant-select-multiple.ant-select-lg .ant-tag{height:calc(var(--upf-select-height-lg) - 8px);line-height:calc(var(--upf-select-height-lg) - 8px);font-size:var(--upf-select-tag-font-size-lg)}.das-ui-select[data-v-93b3fa17] .ant-select.ant-select-multiple.ant-select-lg .ant-select-selection-item{height:calc(var(--upf-select-height-lg) - 7px);line-height:calc(var(--upf-select-height-lg) - 7px);font-size:var(--upf-select-tag-font-size-lg)}.das-ui-select[data-v-93b3fa17] .ant-select.ant-select-multiple.ant-select-lg .ant-select-selection-overflow{max-height:var(--upf-select-max-height-lg)}.das-ui-select[data-v-93b3fa17] .ant-select.ant-select-single .ant-select-selector{padding:0!important}.das-ui-select[data-v-93b3fa17] .ant-select-multiple .ant-select-selector{padding-top:0;padding-bottom:0}.das-ui-select[data-v-93b3fa17] .ant-select-multiple .ant-select-selector:after{margin:0}.das-ui-select[data-v-93b3fa17] .ant-select-multiple .anticon svg{vertical-align:baseline}.das-ui-select[data-v-93b3fa17] .ant-select-disabled.ant-select .ant-select-arrow,.das-ui-select[data-v-93b3fa17] .ant-select-disabled.ant-select .ant-select-selection-item,.das-ui-select[data-v-93b3fa17] .ant-select-disabled.ant-select .ant-tag{color:var(--upf-select-disabled-text-color)}.das-ui-select[data-v-93b3fa17] .ant-select .das-suffix-icon{transition:transform .5s}.das-ui-select[data-v-93b3fa17] .ant-select.ant-select-open .das-suffix-icon{transform:rotate(180deg)}.das-ui-select.underline[data-v-93b3fa17] .ant-select .ant-select-selector{border-radius:0;border-color:transparent!important;border-bottom-color:var(--upf-select-underline-color)!important;background-color:transparent!important;padding:0!important}.das-ui-select.underline[data-v-93b3fa17] .ant-select .ant-select-selector:hover,.das-ui-select.underline[data-v-93b3fa17] .ant-select.ant-select-focused .ant-select-selector{border-bottom-color:var(--upf-select-active-border-color)!important}.das-ui-select.underline[data-v-93b3fa17] .ant-select .ant-select-arrow,.das-ui-select.underline[data-v-93b3fa17] .ant-select .ant-select-clear{right:0}.das-ui-select.underline.is-error[data-v-93b3fa17] .ant-select .ant-select-selector,.das-ui-select.underline.is-error[data-v-93b3fa17] .ant-select .ant-select-selector:hover{border-bottom-color:var(--upf-select-error-color)!important}.das-ui-select.underline[data-v-93b3fa17] .ant-select-disabled.ant-select .ant-select-selector,.das-ui-select.underline[data-v-93b3fa17] .ant-select-disabled.ant-select .ant-select-selector:hover{border-bottom-color:var(--upf-select-disabled-border-color)!important}.das-ui-select.bordered[data-v-93b3fa17] .ant-select .ant-select-selector{border-color:var(--upf-select-border-color)!important}.das-ui-select.bordered[data-v-93b3fa17] .ant-select .ant-select-selector:hover,.das-ui-select.bordered[data-v-93b3fa17] .ant-select.ant-select-focused .ant-select-selector{border-color:var(--upf-select-active-border-color)!important}.das-ui-select.bordered[data-v-93b3fa17] .ant-select .ant-select-selector .ant-select-selection-search{-webkit-user-select:text;user-select:text;cursor:text;left:8px}.das-ui-select.bordered[data-v-93b3fa17] .ant-select .ant-select-selector .ant-select-selection-placeholder,.das-ui-select.bordered[data-v-93b3fa17] .ant-select .ant-select-selector .ant-select-selection-item{padding-left:8px}.das-ui-select.bordered[data-v-93b3fa17] .ant-select.ant-select-single.ant-select-show-arrow .ant-select-selection-item,.das-ui-select.bordered[data-v-93b3fa17] .ant-select.ant-select-single.ant-select-show-arrow .ant-select-selection-placeholder{padding-right:24px;-webkit-user-select:text;user-select:text}.das-ui-select.bordered[data-v-93b3fa17] .ant-select.ant-select-multiple .ant-select-selector{padding-left:3px}.das-ui-select.bordered[data-v-93b3fa17] .ant-select.ant-select-multiple .ant-select-selector .ant-select-selection-item{padding-left:0;height:auto}.das-ui-select.bordered[data-v-93b3fa17] .ant-select.ant-select-multiple .ant-select-selector .ant-select-selection-search{left:5px}.das-ui-select.bordered.is-error[data-v-93b3fa17] .ant-select .ant-select-selector,.das-ui-select.bordered.is-error[data-v-93b3fa17] .ant-select .ant-select-selector:hover{border-color:var(--upf-select-error-color)!important}.das-ui-select.bordered[data-v-93b3fa17] .ant-select-disabled.ant-select .ant-select-selector,.das-ui-select.bordered[data-v-93b3fa17] .ant-select-disabled.ant-select .ant-select-selector:hover{border-color:var(--upf-select-disabled-border-color)!important}.das-ui-select.none[data-v-93b3fa17] .ant-select .ant-select-arrow,.das-ui-select.none[data-v-93b3fa17] .ant-select .ant-select-clear{right:0}.das-ui-select.none[data-v-93b3fa17] .ant-select-disabled.ant-select .ant-select-selector{background-color:transparent!important}.das-ui-select.readonly[data-v-93b3fa17] .ant-select-disabled.ant-select .ant-select-selector{background-color:transparent!important;cursor:default;-webkit-user-select:text;user-select:text}.das-ui-select.readonly[data-v-93b3fa17] .ant-select-disabled.ant-select .ant-select-selector input{cursor:text;-webkit-user-select:text;user-select:text}.das-ui-select.readonly[data-v-93b3fa17] .ant-select-disabled.ant-select .ant-select-selection-item{color:var(--upf-select-text-color);cursor:default}.das-ui-select.readonly[data-v-93b3fa17] .ant-select-disabled.ant-select .ant-tag,.das-ui-select.readonly[data-v-93b3fa17] .ant-select-disabled.ant-select .ant-select-selection-placeholder{color:var(--upf-select-text-color)}.das-ui-select.readonly[data-v-93b3fa17] .ant-select-disabled.ant-select-multiple .ant-select-selection-item{color:var(--upf-select-text-color);border-color:transparent}.das-ui-select.readonly[data-v-93b3fa17] .ant-select-disabled.ant-select-multiple .ant-select-selection-placeholder{color:var(--upf-select-text-color)}.das-ui-select.readonly[data-v-93b3fa17] .ant-select .ant-select-arrow{display:none}.das-ui-select.readonly.underline[data-v-93b3fa17] .ant-select .ant-select-clear{right:0}.das-ui-select .das-select-label-content[data-v-93b3fa17]{font-size:12px}.das-ui-select .das-select-label-content .das-select-error-label[data-v-93b3fa17]{display:block;color:var(--upf-select-error-color)}.das-ui-select-dorpdown .hasNoData{padding:2px 0 6px;color:var(--upf-text-primary);font-size:12px}.das-ui-select-dorpdown .das-select-checkbox.das-ui-checkbox .ant-checkbox-wrapper .ant-checkbox+span{padding:0!important}.das-ui-select-dorpdown .das-multiple-option-item{display:flex}.das-ui-select-dorpdown .ant-select-item-option-selected:not(.ant-select-item-option-disabled){background:var(--upf-color-primary-bg);font-weight:400;color:var(--upf-color-primary)}.das-ui-select-dorpdown .ant-select-item-option-selected:not(.ant-select-item-option-disabled) .das-multiple-option-item{color:var(--upf-text-primary)}.das-ui-select-dorpdown .das-ui-select-dropdown-checkall{height:40px;line-height:40px;padding:0 12px;border-top:1px solid var(--upf-border-color)}.das-ui-select-dorpdown .das-ui-select-dropdown-checkall .das-ui-dropdown-has-checked{font-size:12px;color:var(--upf-text-secondary)}.das-ui-select-dorpdown .das-ui-select-dropdown-checkall .das-ui-dropdown-has-checked .key{color:var(--upf-color-primary)}.das-ui-select-dorpdown .ant-select-item-option-state{display:none}.das-ui-select-dorpdown .das-ui-checkbox{display:inline-block;margin-right:5px}.das-ui-select-dorpdown .rc-virtual-list-scrollbar-show{right:4px!important}.das-ui-select-dorpdown .rc-virtual-list-scrollbar-thumb{width:8px!important;left:1px!important;background:#b2b2b2!important}.das-ui-select-dorpdown .rc-virtual-list-scrollbar-thumb:hover{width:10px!important;left:0!important;background:#999!important}.das-ui-select-dorpdown .customDropdown{display:flex;align-items:center;padding:6px 12px 2px;cursor:pointer;border-top:1px solid var(--upf-border-color)}.das-ui-select-dorpdown .customDropdown .el-input{height:28px}.das-ui-select-dorpdown .customDropdown .addBtn{margin-left:12px;cursor:pointer;flex-shrink:0;font-family:Microsoft YaHei;font-size:12px;font-weight:400;height:28px;line-height:28px;text-align:center;letter-spacing:0px;color:var(--upf-text-primary)}
1
+ .das-ui-select[data-v-00ff3a8a]{--upf-select-text-color: var(--upf-text-primary);--upf-select-placeholder-color: var(--upf-text-placeholder);--upf-select-border-color: var(--upf-border-color, #d9d9d9);--upf-select-underline-color: var(--upf-text-disabled);--upf-select-active-border-color: var(--upf-form-active-border-color, var(--upf-color-primary));--upf-select-primary-color: var(--upf-color-primary);--upf-select-error-color: var(--upf-color-error);--upf-select-disabled-text-color: var(--upf-text-disabled);--upf-select-disabled-border-color: var(--upf-border-color, #d9d9d9);--upf-select-disabled-bg-color: var(--upf-bg-secondary);--upf-select-option-active-bg: var(--upf-menu-hover-bg);--upf-select-help-color: var(--upf-text-secondary);--upf-select-overlay-error-color: var(--upf-color-error);--upf-select-height-sm: 24px;--upf-select-height-md: 32px;--upf-select-height-lg: 36px;--upf-select-max-height-sm: 66px;--upf-select-max-height-md: 82px;--upf-select-max-height-lg: 85px;--upf-select-tag-font-size-sm: 14px;--upf-select-tag-font-size-md: 14px;--upf-select-tag-font-size-lg: 15px;display:inline-block;position:relative}.das-ui-select .das-select-overlay-error-label-content[data-v-00ff3a8a]{position:absolute;top:100%;left:0;width:var(--v508aeef9)}.das-ui-select.show-ellipsis[data-v-00ff3a8a] .ant-select-selection-overflow-item.ellipsis .ant-tag{display:flex;align-items:center}.das-ui-select.show-ellipsis[data-v-00ff3a8a] .ant-select-selection-overflow-item.ellipsis .ant-tag span:nth-of-type(1){width:50px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.das-ui-select[data-v-00ff3a8a] .ant-select{width:100%;height:var(--b1f81358)}.das-ui-select[data-v-00ff3a8a] .ant-select .das-select-error-label-content{width:var(--v508aeef9);font-size:12px}.das-ui-select[data-v-00ff3a8a] .ant-select .das-select-error-label-content .label{display:block;color:var(--upf-select-overlay-error-color);white-space:break-spaces}.das-ui-select[data-v-00ff3a8a] .ant-select .ant-select-arrow{color:var(--upf-text-secondary);width:16px;height:16px;margin-top:0;transform:translateY(-50%)}.das-ui-select[data-v-00ff3a8a] .ant-select:hover .ant-select-arrow{color:var(--upf-select-primary-color)}.das-ui-select[data-v-00ff3a8a] .ant-select .ant-select-clear{color:var(--upf-text-placeholder);width:16px;height:16px;margin-top:0;transform:translateY(-50%);z-index:auto}.das-ui-select[data-v-00ff3a8a] .ant-select .ant-select-clear:hover{color:var(--upf-text-secondary)}.das-ui-select[data-v-00ff3a8a] .ant-select .os-scrollbar.os-scrollbar-vertical{z-index:1}.das-ui-select[data-v-00ff3a8a] .ant-select .ant-select-selector{box-sizing:border-box;box-shadow:none!important}.das-ui-select[data-v-00ff3a8a] .ant-select .ant-select-selector .ant-tag{margin-bottom:1px;background-color:transparent}.das-ui-select[data-v-00ff3a8a] .ant-select .ant-select-selector .ant-select-selection-search{left:0}.das-ui-select[data-v-00ff3a8a] .ant-select .ant-select-selector .ant-select-selection-placeholder{padding-left:0;left:0}.das-ui-select[data-v-00ff3a8a] .ant-select.ant-select-single:not(.ant-select-customize-input) .ant-select-selector{height:var(--upf-select-height-md)}.das-ui-select[data-v-00ff3a8a] .ant-select.ant-select-single:not(.ant-select-customize-input) .ant-select-selector .ant-select-selection-search-input,.das-ui-select[data-v-00ff3a8a] .ant-select.ant-select-single:not(.ant-select-customize-input) .ant-select-selector .ant-select-selection-placeholder:after{height:calc(var(--upf-select-height-md) - 2px)}.das-ui-select[data-v-00ff3a8a] .ant-select.ant-select-single:not(.ant-select-customize-input) .ant-select-selector:after{height:calc(var(--upf-select-height-md) - 2px)}.das-ui-select[data-v-00ff3a8a] .ant-select.ant-select-single.ant-select-sm:not(.ant-select-customize-input) .ant-select-selector{height:var(--upf-select-height-sm)}.das-ui-select[data-v-00ff3a8a] .ant-select.ant-select-single.ant-select-sm:not(.ant-select-customize-input) .ant-select-selector .ant-select-selection-search-input,.das-ui-select[data-v-00ff3a8a] .ant-select.ant-select-single.ant-select-sm:not(.ant-select-customize-input) .ant-select-selector .ant-select-selection-placeholder:after{height:calc(var(--upf-select-height-sm) - 2px)}.das-ui-select[data-v-00ff3a8a] .ant-select.ant-select-single.ant-select-sm:not(.ant-select-customize-input) .ant-select-selector:after{height:calc(var(--upf-select-height-sm) - 2px)}.das-ui-select[data-v-00ff3a8a] .ant-select.ant-select-single.ant-select-lg:not(.ant-select-customize-input) .ant-select-selector{height:var(--upf-select-height-lg)}.das-ui-select[data-v-00ff3a8a] .ant-select.ant-select-single.ant-select-lg:not(.ant-select-customize-input) .ant-select-selector .ant-select-selection-search-input,.das-ui-select[data-v-00ff3a8a] .ant-select.ant-select-single.ant-select-lg:not(.ant-select-customize-input) .ant-select-selector .ant-select-selection-placeholder:after{height:calc(var(--upf-select-height-lg) - 2px)}.das-ui-select[data-v-00ff3a8a] .ant-select.ant-select-single.ant-select-lg:not(.ant-select-customize-input) .ant-select-selector:after{height:calc(var(--upf-select-height-lg) - 2px)}.das-ui-select[data-v-00ff3a8a] .ant-select .ant-select-selection-item{color:var(--upf-select-text-color)}.das-ui-select[data-v-00ff3a8a] .ant-select.ant-select-multiple .ant-select-selector{min-height:var(--upf-select-height-md)}.das-ui-select[data-v-00ff3a8a] .ant-select.ant-select-multiple .ant-select-selection-search{margin-inline-start:0px;-webkit-margin-start:0px;height:calc(var(--upf-select-height-md) - 2px);line-height:calc(var(--upf-select-height-md) - 2px)}.das-ui-select[data-v-00ff3a8a] .ant-select.ant-select-multiple .ant-tag{color:var(--upf-select-text-color);height:calc(var(--upf-select-height-md) - 4px);line-height:calc(var(--upf-select-height-md) - 5px);font-size:var(--upf-select-tag-font-size-md);margin-bottom:0;margin-right:0}.das-ui-select[data-v-00ff3a8a] .ant-select.ant-select-multiple .ant-select-selection-item{height:calc(var(--upf-select-height-md) - 4px);font-size:var(--upf-select-tag-font-size-md);margin-top:0;margin-bottom:0;border:none;background-color:transparent;-webkit-margin-end:0px;margin-inline-end:0px;-webkit-padding-start:0px;padding-inline-start:0px;-webkit-padding-end:0px;padding-inline-end:0px}.das-ui-select[data-v-00ff3a8a] .ant-select.ant-select-multiple .ant-select-selection-overflow{max-height:var(--upf-select-max-height-md)}.das-ui-select[data-v-00ff3a8a] .ant-select.ant-select-multiple.ant-select-sm .ant-select-selector{min-height:var(--upf-select-height-sm)}.das-ui-select[data-v-00ff3a8a] .ant-select.ant-select-multiple.ant-select-sm .ant-select-selection-search{height:calc(var(--upf-select-height-sm) - 2px);line-height:calc(var(--upf-select-height-sm) - 2px)}.das-ui-select[data-v-00ff3a8a] .ant-select.ant-select-multiple.ant-select-sm .ant-tag{height:calc(var(--upf-select-height-sm) - 4px);line-height:calc(var(--upf-select-height-sm) - 5px);font-size:var(--upf-select-tag-font-size-sm)}.das-ui-select[data-v-00ff3a8a] .ant-select.ant-select-multiple.ant-select-sm .ant-select-selection-item{height:calc(var(--upf-select-height-sm) - 2px);line-height:calc(var(--upf-select-height-sm) - 2px);font-size:var(--upf-select-tag-font-size-sm)}.das-ui-select[data-v-00ff3a8a] .ant-select.ant-select-multiple.ant-select-sm .ant-select-selection-overflow{max-height:var(--upf-select-max-height-sm)}.das-ui-select[data-v-00ff3a8a] .ant-select.ant-select-multiple.ant-select-lg .ant-select-selector{min-height:var(--upf-select-height-lg)}.das-ui-select[data-v-00ff3a8a] .ant-select.ant-select-multiple.ant-select-lg .ant-select-selection-search{height:calc(var(--upf-select-height-lg) - 2px);line-height:calc(var(--upf-select-height-lg) - 2px)}.das-ui-select[data-v-00ff3a8a] .ant-select.ant-select-multiple.ant-select-lg .ant-tag{height:calc(var(--upf-select-height-lg) - 8px);line-height:calc(var(--upf-select-height-lg) - 8px);font-size:var(--upf-select-tag-font-size-lg)}.das-ui-select[data-v-00ff3a8a] .ant-select.ant-select-multiple.ant-select-lg .ant-select-selection-item{height:calc(var(--upf-select-height-lg) - 7px);line-height:calc(var(--upf-select-height-lg) - 7px);font-size:var(--upf-select-tag-font-size-lg)}.das-ui-select[data-v-00ff3a8a] .ant-select.ant-select-multiple.ant-select-lg .ant-select-selection-overflow{max-height:var(--upf-select-max-height-lg)}.das-ui-select[data-v-00ff3a8a] .ant-select.ant-select-single .ant-select-selector{padding:0!important}.das-ui-select[data-v-00ff3a8a] .ant-select-multiple .ant-select-selector{padding-top:0;padding-bottom:0}.das-ui-select[data-v-00ff3a8a] .ant-select-multiple .ant-select-selector:after{margin:0}.das-ui-select[data-v-00ff3a8a] .ant-select-multiple .anticon svg{vertical-align:baseline}.das-ui-select[data-v-00ff3a8a] .ant-select-disabled.ant-select .ant-select-arrow,.das-ui-select[data-v-00ff3a8a] .ant-select-disabled.ant-select .ant-select-selection-item,.das-ui-select[data-v-00ff3a8a] .ant-select-disabled.ant-select .ant-tag{color:var(--upf-select-disabled-text-color)}.das-ui-select[data-v-00ff3a8a] .ant-select .das-suffix-icon{transition:transform .5s}.das-ui-select[data-v-00ff3a8a] .ant-select.ant-select-open .das-suffix-icon{transform:rotate(180deg)}.das-ui-select.underline[data-v-00ff3a8a] .ant-select .ant-select-selector{border-radius:0;border-color:transparent!important;border-bottom-color:var(--upf-select-underline-color)!important;background-color:transparent!important;padding:0!important}.das-ui-select.underline[data-v-00ff3a8a] .ant-select .ant-select-selector:hover,.das-ui-select.underline[data-v-00ff3a8a] .ant-select.ant-select-focused .ant-select-selector{border-bottom-color:var(--upf-select-active-border-color)!important}.das-ui-select.underline[data-v-00ff3a8a] .ant-select .ant-select-arrow,.das-ui-select.underline[data-v-00ff3a8a] .ant-select .ant-select-clear{right:0}.das-ui-select.underline.is-error[data-v-00ff3a8a] .ant-select .ant-select-selector,.das-ui-select.underline.is-error[data-v-00ff3a8a] .ant-select .ant-select-selector:hover{border-bottom-color:var(--upf-select-error-color)!important}.das-ui-select.underline[data-v-00ff3a8a] .ant-select-disabled.ant-select .ant-select-selector,.das-ui-select.underline[data-v-00ff3a8a] .ant-select-disabled.ant-select .ant-select-selector:hover{border-bottom-color:var(--upf-select-disabled-border-color)!important}.das-ui-select.bordered[data-v-00ff3a8a] .ant-select .ant-select-selector{border-color:var(--upf-select-border-color)!important}.das-ui-select.bordered[data-v-00ff3a8a] .ant-select .ant-select-selector:hover,.das-ui-select.bordered[data-v-00ff3a8a] .ant-select.ant-select-focused .ant-select-selector{border-color:var(--upf-select-active-border-color)!important}.das-ui-select.bordered[data-v-00ff3a8a] .ant-select .ant-select-selector .ant-select-selection-search{-webkit-user-select:text;user-select:text;cursor:text;left:8px}.das-ui-select.bordered[data-v-00ff3a8a] .ant-select .ant-select-selector .ant-select-selection-placeholder,.das-ui-select.bordered[data-v-00ff3a8a] .ant-select .ant-select-selector .ant-select-selection-item{padding-left:8px}.das-ui-select.bordered[data-v-00ff3a8a] .ant-select.ant-select-single.ant-select-show-arrow .ant-select-selection-item,.das-ui-select.bordered[data-v-00ff3a8a] .ant-select.ant-select-single.ant-select-show-arrow .ant-select-selection-placeholder{padding-right:24px;-webkit-user-select:text;user-select:text}.das-ui-select.bordered[data-v-00ff3a8a] .ant-select.ant-select-multiple .ant-select-selector{padding-left:3px}.das-ui-select.bordered[data-v-00ff3a8a] .ant-select.ant-select-multiple .ant-select-selector .ant-select-selection-item{padding-left:0;height:auto}.das-ui-select.bordered[data-v-00ff3a8a] .ant-select.ant-select-multiple .ant-select-selector .ant-select-selection-search{left:5px}.das-ui-select.bordered.is-error[data-v-00ff3a8a] .ant-select .ant-select-selector,.das-ui-select.bordered.is-error[data-v-00ff3a8a] .ant-select .ant-select-selector:hover{border-color:var(--upf-select-error-color)!important}.das-ui-select.bordered[data-v-00ff3a8a] .ant-select-disabled.ant-select .ant-select-selector,.das-ui-select.bordered[data-v-00ff3a8a] .ant-select-disabled.ant-select .ant-select-selector:hover{border-color:var(--upf-select-disabled-border-color)!important}.das-ui-select.none[data-v-00ff3a8a] .ant-select .ant-select-arrow,.das-ui-select.none[data-v-00ff3a8a] .ant-select .ant-select-clear{right:0}.das-ui-select.none[data-v-00ff3a8a] .ant-select-disabled.ant-select .ant-select-selector{background-color:transparent!important}.das-ui-select.readonly[data-v-00ff3a8a] .ant-select-disabled.ant-select .ant-select-selector{background-color:transparent!important;cursor:default;-webkit-user-select:text;user-select:text}.das-ui-select.readonly[data-v-00ff3a8a] .ant-select-disabled.ant-select .ant-select-selector input{cursor:text;-webkit-user-select:text;user-select:text}.das-ui-select.readonly[data-v-00ff3a8a] .ant-select-disabled.ant-select .ant-select-selection-item{color:var(--upf-select-text-color);cursor:default}.das-ui-select.readonly[data-v-00ff3a8a] .ant-select-disabled.ant-select .ant-tag,.das-ui-select.readonly[data-v-00ff3a8a] .ant-select-disabled.ant-select .ant-select-selection-placeholder{color:var(--upf-select-text-color)}.das-ui-select.readonly[data-v-00ff3a8a] .ant-select-disabled.ant-select-multiple .ant-select-selection-item{color:var(--upf-select-text-color);border-color:transparent}.das-ui-select.readonly[data-v-00ff3a8a] .ant-select-disabled.ant-select-multiple .ant-select-selection-placeholder{color:var(--upf-select-text-color)}.das-ui-select.readonly[data-v-00ff3a8a] .ant-select .ant-select-arrow{display:none}.das-ui-select.readonly.underline[data-v-00ff3a8a] .ant-select .ant-select-clear{right:0}.das-ui-select .das-select-label-content[data-v-00ff3a8a]{font-size:12px}.das-ui-select .das-select-label-content .das-select-error-label[data-v-00ff3a8a]{display:block;color:var(--upf-select-error-color)}.das-ui-select-dorpdown .hasNoData{padding:2px 0 6px;color:var(--upf-text-primary);font-size:12px}.das-ui-select-dorpdown .das-select-checkbox.das-ui-checkbox .ant-checkbox-wrapper .ant-checkbox+span{padding:0!important}.das-ui-select-dorpdown .das-multiple-option-item{display:flex}.das-ui-select-dorpdown .ant-select-item-option-selected:not(.ant-select-item-option-disabled){background:var(--upf-color-primary-bg);font-weight:400;color:var(--upf-color-primary)}.das-ui-select-dorpdown .ant-select-item-option-selected:not(.ant-select-item-option-disabled) .das-multiple-option-item{color:var(--upf-text-primary)}.das-ui-select-dorpdown .das-ui-select-dropdown-checkall{height:40px;line-height:40px;padding:0 12px;border-top:1px solid var(--upf-border-color)}.das-ui-select-dorpdown .das-ui-select-dropdown-checkall .das-ui-dropdown-has-checked{font-size:12px;color:var(--upf-text-secondary)}.das-ui-select-dorpdown .das-ui-select-dropdown-checkall .das-ui-dropdown-has-checked .key{color:var(--upf-color-primary)}.das-ui-select-dorpdown .ant-select-item-option-state{display:none}.das-ui-select-dorpdown .das-ui-checkbox{display:inline-block;margin-right:5px}.das-ui-select-dorpdown .rc-virtual-list-scrollbar-show{right:4px!important}.das-ui-select-dorpdown .rc-virtual-list-scrollbar-thumb{width:8px!important;left:1px!important;background:#b2b2b2!important}.das-ui-select-dorpdown .rc-virtual-list-scrollbar-thumb:hover{width:10px!important;left:0!important;background:#999!important}.das-ui-select-dorpdown .customDropdown{display:flex;align-items:center;padding:6px 12px 2px;cursor:pointer;border-top:1px solid var(--upf-border-color)}.das-ui-select-dorpdown .customDropdown .el-input{height:28px}.das-ui-select-dorpdown .customDropdown .addBtn{margin-left:12px;cursor:pointer;flex-shrink:0;font-family:Microsoft YaHei;font-size:12px;font-weight:400;height:28px;line-height:28px;text-align:center;letter-spacing:0px;color:var(--upf-text-primary)}
@@ -1,44 +1,44 @@
1
- import { setI18nRule as u, t as v } from "@das-fed/upf-web/packages/i18n/index";
2
- import { withInstall as _ } from "@das-fed/upf-utils/with-install/index";
3
- import { openBlock as n, createElementBlock as d, createStaticVNode as m, createElementVNode as l, defineComponent as $, ref as C, useAttrs as g, watch as f, h as o, normalizeClass as z, createVNode as S, unref as p, mergeProps as h, withCtx as x, renderSlot as y } from "vue";
4
- import { Spin as I } from "ant-design-vue";
1
+ import { setI18nRule as f, t as l } from "@das-fed/upf-web/packages/i18n/index";
2
+ import { withInstall as m } from "@das-fed/upf-utils/with-install/index";
3
+ import { openBlock as e, createElementBlock as o, createStaticVNode as p, createElementVNode as c, defineComponent as u, useAttrs as _, computed as v, h as i, normalizeClass as $, createVNode as C, unref as g, mergeProps as y, withCtx as z, renderSlot as S } from "vue";
4
+ import { Spin as x } from "ant-design-vue";
5
5
  import "ant-design-vue/es/spin/style/css";
6
- import { DasIconLoad as L } from "@das-fed/upf-ui/packages/icons/load/index";
6
+ import { DasIconLoad as h } from "@das-fed/upf-ui/packages/icons/load/index";
7
7
  import "@das-fed/upf-ui/packages/global/theme"
8
8
  import '@das-fed/upf-ui/packages/components/spin/style.css';
9
9
  ;
10
- const r = (a, t) => {
11
- const i = a.__vccOpts || a;
12
- for (const [e, s] of t)
13
- i[e] = s;
14
- return i;
15
- }, k = {}, N = { class: "das-spin-container das-spin-page" };
16
- function B(a, t) {
17
- return n(), d("div", N, [...t[0] || (t[0] = [
18
- m('<div class="das-spin-dot-spin" data-v-323f37a9><i class="das-spin-dot-item" data-v-323f37a9></i><i class="das-spin-dot-item" data-v-323f37a9></i><i class="das-spin-dot-item" data-v-323f37a9></i><i class="das-spin-dot-item" data-v-323f37a9></i></div>', 1)
10
+ const r = (s, t) => {
11
+ const a = s.__vccOpts || s;
12
+ for (const [d, n] of t)
13
+ a[d] = n;
14
+ return a;
15
+ }, I = {}, L = { class: "das-spin-container das-spin-page" };
16
+ function k(s, t) {
17
+ return e(), o("div", L, [...t[0] || (t[0] = [
18
+ p('<div class="das-spin-dot-spin" data-v-323f37a9><i class="das-spin-dot-item" data-v-323f37a9></i><i class="das-spin-dot-item" data-v-323f37a9></i><i class="das-spin-dot-item" data-v-323f37a9></i><i class="das-spin-dot-item" data-v-323f37a9></i></div>', 1)
19
19
  ])]);
20
20
  }
21
- const V = /* @__PURE__ */ r(k, [["render", B], ["__scopeId", "data-v-323f37a9"]]), w = {}, D = { class: "das-spin-container das-spin-component" };
22
- function E(a, t) {
23
- return n(), d("div", D, [...t[0] || (t[0] = [
24
- l(
21
+ const N = /* @__PURE__ */ r(I, [["render", k], ["__scopeId", "data-v-323f37a9"]]), w = {}, B = { class: "das-spin-container das-spin-component" };
22
+ function V(s, t) {
23
+ return e(), o("div", B, [...t[0] || (t[0] = [
24
+ c(
25
25
  "div",
26
26
  { class: "das-spin-dot-spin" },
27
27
  [
28
- l("i", { class: "das-spin-dot-item" })
28
+ c("i", { class: "das-spin-dot-item" })
29
29
  ],
30
30
  -1
31
31
  /* CACHED */
32
32
  )
33
33
  ])]);
34
34
  }
35
- const O = /* @__PURE__ */ r(w, [["render", E], ["__scopeId", "data-v-f47a1ae6"]]), P = {}, b = { class: "das-spin-container das-spin-containerload" };
36
- function A(a, t) {
37
- return n(), d("div", b, [...t[0] || (t[0] = [
38
- m('<div class="das-spin-dot-spin" data-v-f7548f22><i class="das-spin-dot-item" data-v-f7548f22></i><i class="das-spin-dot-item" data-v-f7548f22></i><i class="das-spin-dot-item" data-v-f7548f22></i><i class="das-spin-dot-item" data-v-f7548f22></i></div>', 1)
35
+ const D = /* @__PURE__ */ r(w, [["render", V], ["__scopeId", "data-v-f47a1ae6"]]), E = {}, O = { class: "das-spin-container das-spin-containerload" };
36
+ function P(s, t) {
37
+ return e(), o("div", O, [...t[0] || (t[0] = [
38
+ p('<div class="das-spin-dot-spin" data-v-f7548f22><i class="das-spin-dot-item" data-v-f7548f22></i><i class="das-spin-dot-item" data-v-f7548f22></i><i class="das-spin-dot-item" data-v-f7548f22></i><i class="das-spin-dot-item" data-v-f7548f22></i></div>', 1)
39
39
  ])]);
40
40
  }
41
- const M = /* @__PURE__ */ r(P, [["render", A], ["__scopeId", "data-v-f7548f22"]]), R = /* @__PURE__ */ $({
41
+ const b = /* @__PURE__ */ r(E, [["render", P], ["__scopeId", "data-v-f7548f22"]]), A = /* @__PURE__ */ u({
42
42
  __name: "index",
43
43
  props: {
44
44
  type: { default: "page" },
@@ -47,35 +47,29 @@ const M = /* @__PURE__ */ r(P, [["render", A], ["__scopeId", "data-v-f7548f22"]]
47
47
  iconColor: { default: "var(--upf-loading-color-5, var(--upf-color-primary))" },
48
48
  full: { type: Boolean, default: !0 }
49
49
  },
50
- setup(a) {
51
- let t = a, i = C("");
52
- const e = g();
53
- return f(
54
- () => t.type,
55
- (s, c) => {
56
- s == "page" && (i.value = o(V)), s == "container" && (i.value = o(M)), s == "component" && (i.value = o(O)), s == "load" && (i.value = o(L, {
50
+ setup(s) {
51
+ const t = s, a = _(), d = v(() => {
52
+ if (a.indicator) return a.indicator;
53
+ if (t.type == "page") return i(N);
54
+ if (t.type == "container") return i(b);
55
+ if (t.type == "component") return i(D);
56
+ if (t.type == "load")
57
+ return i(h, {
57
58
  iconColor: t.iconColor,
58
59
  customSize: t.customSize
59
- }));
60
- },
61
- { immediate: !0 }
62
- ), f(
63
- () => e,
64
- (s, c) => {
65
- e.indicator && (i.value = e.indicator);
66
- },
67
- { immediate: !0 }
68
- ), (s, c) => (n(), d(
60
+ });
61
+ });
62
+ return (n, R) => (e(), o(
69
63
  "div",
70
64
  {
71
- class: z({ "das-spin-container": !0, full: a.full })
65
+ class: $({ "das-spin-container": !0, full: s.full })
72
66
  },
73
67
  [
74
- S(p(I), h({
75
- class: `das-slef-spin ${a.size} ${a.type} `
76
- }, s.$attrs, { indicator: p(i) }), {
77
- default: x(() => [
78
- y(s.$slots, "default")
68
+ C(g(x), y({
69
+ class: `das-slef-spin ${s.size} ${s.type} `
70
+ }, n.$attrs, { indicator: d.value }), {
71
+ default: z(() => [
72
+ S(n.$slots, "default")
79
73
  ]),
80
74
  _: 3
81
75
  /* FORWARDED */
@@ -85,10 +79,10 @@ const M = /* @__PURE__ */ r(P, [["render", A], ["__scopeId", "data-v-f7548f22"]]
85
79
  /* CLASS */
86
80
  ));
87
81
  }
88
- }), j = { 加载中: { "zh-CN": "加载中", en: "Loading", "zh-MO": "加載中", _appCode: "framework" } };
89
- u(j);
90
- const T = _(R), U = { name: `Spin ${v("加载中")}` };
82
+ }), M = { 加载中: { "zh-CN": "加载中", en: "Loading", "zh-MO": "加載中", _appCode: "framework" } };
83
+ f(M);
84
+ const Q = m(A), T = { name: `Spin ${l("加载中")}` };
91
85
  export {
92
- T as DasSpin,
93
- U as default
86
+ Q as DasSpin,
87
+ T as default
94
88
  };
@@ -10,6 +10,7 @@ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<Props, {
10
10
  readonly options?: any;
11
11
  readonly preserveLabelWhenMissing?: boolean | undefined;
12
12
  readonly mode?: ("multiple" | "tags" | "combobox") | undefined;
13
+ readonly showSearch?: boolean | undefined;
13
14
  readonly fieldNames?: any;
14
15
  readonly borderType?: ("underline" | "bordered" | "none") | undefined;
15
16
  readonly placeholder?: string | undefined;
@@ -225,6 +226,7 @@ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<Props, {
225
226
  readonly options?: any;
226
227
  readonly preserveLabelWhenMissing?: boolean | undefined;
227
228
  readonly mode?: ("multiple" | "tags" | "combobox") | undefined;
229
+ readonly showSearch?: boolean | undefined;
228
230
  readonly fieldNames?: any;
229
231
  readonly borderType?: ("underline" | "bordered" | "none") | undefined;
230
232
  readonly placeholder?: string | undefined;
@@ -13,6 +13,7 @@ export declare const useTreeSelect: (props: Props, emit: Emits, nodeKey: any, at
13
13
  readonly options?: any;
14
14
  readonly preserveLabelWhenMissing?: boolean | undefined;
15
15
  readonly mode?: ("multiple" | "tags" | "combobox") | undefined;
16
+ readonly showSearch?: boolean | undefined;
16
17
  readonly fieldNames?: any;
17
18
  readonly borderType?: ("underline" | "bordered" | "none") | undefined;
18
19
  readonly placeholder?: string | undefined;
@@ -228,6 +229,7 @@ export declare const useTreeSelect: (props: Props, emit: Emits, nodeKey: any, at
228
229
  readonly options?: any;
229
230
  readonly preserveLabelWhenMissing?: boolean | undefined;
230
231
  readonly mode?: ("multiple" | "tags" | "combobox") | undefined;
232
+ readonly showSearch?: boolean | undefined;
231
233
  readonly fieldNames?: any;
232
234
  readonly borderType?: ("underline" | "bordered" | "none") | undefined;
233
235
  readonly placeholder?: string | undefined;
@@ -1,4 +1,4 @@
1
- import { defineComponent as k, openBlock as d, createElementBlock as f, createElementVNode as v, renderSlot as x, createTextVNode as H, toDisplayString as B, createStaticVNode as A, ref as u, useAttrs as P, watch as h, h as y, normalizeClass as J, createVNode as K, unref as $, mergeProps as L, withCtx as g, createBlock as T, computed as m, onMounted as W, onBeforeUnmount as U, normalizeStyle as j, Fragment as E, createCommentVNode as D, createSlots as q, nextTick as G } from "vue";
1
+ import { defineComponent as x, openBlock as i, createElementBlock as l, createElementVNode as h, renderSlot as g, createTextVNode as H, toDisplayString as B, createStaticVNode as A, useAttrs as P, computed as u, h as y, normalizeClass as J, createVNode as w, unref as T, mergeProps as K, withCtx as _, createBlock as z, ref as p, watch as C, onMounted as W, onBeforeUnmount as U, normalizeStyle as j, Fragment as E, createCommentVNode as D, createSlots as q, nextTick as G } from "vue";
2
2
  import { withInstall as Q } from "@das-fed/upf-utils/with-install/index";
3
3
  import { ElTreeV2 as X } from "element-plus";
4
4
  import "element-plus/es/components/tree-v2/style/css";
@@ -9,20 +9,20 @@ import { DasIconLoad as te } from "@das-fed/upf-ui/packages/icons/load/index";
9
9
  import "@das-fed/upf-ui/packages/components/icon/index";
10
10
  import { DasIconCaretRight as ae } from "@das-fed/upf-ui/packages/icons/caret-right/index";
11
11
  import { SizeWatcher as ne } from "@das-fed/upf-utils/size-watcher";
12
- import { flatTree as z } from "@das-fed/upf-utils/common-tools"
12
+ import { flatTree as N } from "@das-fed/upf-utils/common-tools"
13
13
  import '@das-fed/upf-ui/packages/components/virtual-tree/style.css';
14
14
  ;
15
- const se = { class: "tree-empty-block" }, ie = { class: "tree-empty-text" }, oe = /* @__PURE__ */ k({
15
+ const se = { class: "tree-empty-block" }, oe = { class: "tree-empty-text" }, ie = /* @__PURE__ */ x({
16
16
  __name: "empty",
17
17
  props: {
18
18
  emptyText: {}
19
19
  },
20
- setup(t) {
21
- return (a, s) => (d(), f("div", se, [
22
- v("div", ie, [
23
- x(a.$slots, "default", {}, () => [
20
+ setup(a) {
21
+ return (t, d) => (i(), l("div", se, [
22
+ h("div", oe, [
23
+ g(t.$slots, "default", {}, () => [
24
24
  H(
25
- B(t.emptyText),
25
+ B(a.emptyText),
26
26
  1
27
27
  /* TEXT */
28
28
  )
@@ -30,38 +30,38 @@ const se = { class: "tree-empty-block" }, ie = { class: "tree-empty-text" }, oe
30
30
  ])
31
31
  ]));
32
32
  }
33
- }), _ = (t, a) => {
34
- const s = t.__vccOpts || t;
35
- for (const [r, o] of a)
36
- s[r] = o;
37
- return s;
38
- }, le = /* @__PURE__ */ _(oe, [["__scopeId", "data-v-507e2bf9"]]), de = {}, re = { class: "das-spin-container das-spin-page" };
39
- function ce(t, a) {
40
- return d(), f("div", re, [...a[0] || (a[0] = [
33
+ }), v = (a, t) => {
34
+ const d = a.__vccOpts || a;
35
+ for (const [c, f] of t)
36
+ d[c] = f;
37
+ return d;
38
+ }, de = /* @__PURE__ */ v(ie, [["__scopeId", "data-v-507e2bf9"]]), re = {}, le = { class: "das-spin-container das-spin-page" };
39
+ function ce(a, t) {
40
+ return i(), l("div", le, [...t[0] || (t[0] = [
41
41
  A('<div class="das-spin-dot-spin" data-v-323f37a9><i class="das-spin-dot-item" data-v-323f37a9></i><i class="das-spin-dot-item" data-v-323f37a9></i><i class="das-spin-dot-item" data-v-323f37a9></i><i class="das-spin-dot-item" data-v-323f37a9></i></div>', 1)
42
42
  ])]);
43
43
  }
44
- const fe = /* @__PURE__ */ _(de, [["render", ce], ["__scopeId", "data-v-323f37a9"]]), ue = {}, pe = { class: "das-spin-container das-spin-component" };
45
- function me(t, a) {
46
- return d(), f("div", pe, [...a[0] || (a[0] = [
47
- v(
44
+ const fe = /* @__PURE__ */ v(re, [["render", ce], ["__scopeId", "data-v-323f37a9"]]), ue = {}, pe = { class: "das-spin-container das-spin-component" };
45
+ function me(a, t) {
46
+ return i(), l("div", pe, [...t[0] || (t[0] = [
47
+ h(
48
48
  "div",
49
49
  { class: "das-spin-dot-spin" },
50
50
  [
51
- v("i", { class: "das-spin-dot-item" })
51
+ h("i", { class: "das-spin-dot-item" })
52
52
  ],
53
53
  -1
54
54
  /* CACHED */
55
55
  )
56
56
  ])]);
57
57
  }
58
- const he = /* @__PURE__ */ _(ue, [["render", me], ["__scopeId", "data-v-f47a1ae6"]]), ve = {}, _e = { class: "das-spin-container das-spin-containerload" };
59
- function ye(t, a) {
60
- return d(), f("div", _e, [...a[0] || (a[0] = [
58
+ const he = /* @__PURE__ */ v(ue, [["render", me], ["__scopeId", "data-v-f47a1ae6"]]), ve = {}, ye = { class: "das-spin-container das-spin-containerload" };
59
+ function _e(a, t) {
60
+ return i(), l("div", ye, [...t[0] || (t[0] = [
61
61
  A('<div class="das-spin-dot-spin" data-v-f7548f22><i class="das-spin-dot-item" data-v-f7548f22></i><i class="das-spin-dot-item" data-v-f7548f22></i><i class="das-spin-dot-item" data-v-f7548f22></i><i class="das-spin-dot-item" data-v-f7548f22></i></div>', 1)
62
62
  ])]);
63
63
  }
64
- const ge = /* @__PURE__ */ _(ve, [["render", ye], ["__scopeId", "data-v-f7548f22"]]), xe = /* @__PURE__ */ k({
64
+ const ge = /* @__PURE__ */ v(ve, [["render", _e], ["__scopeId", "data-v-f7548f22"]]), xe = /* @__PURE__ */ x({
65
65
  __name: "index",
66
66
  props: {
67
67
  type: { default: "page" },
@@ -70,35 +70,29 @@ const ge = /* @__PURE__ */ _(ve, [["render", ye], ["__scopeId", "data-v-f7548f22
70
70
  iconColor: { default: "var(--upf-loading-color-5, var(--upf-color-primary))" },
71
71
  full: { type: Boolean, default: !0 }
72
72
  },
73
- setup(t) {
74
- let a = t, s = u("");
75
- const r = P();
76
- return h(
77
- () => a.type,
78
- (o, e) => {
79
- o == "page" && (s.value = y(fe)), o == "container" && (s.value = y(ge)), o == "component" && (s.value = y(he)), o == "load" && (s.value = y(te, {
80
- iconColor: a.iconColor,
81
- customSize: a.customSize
82
- }));
83
- },
84
- { immediate: !0 }
85
- ), h(
86
- () => r,
87
- (o, e) => {
88
- r.indicator && (s.value = r.indicator);
89
- },
90
- { immediate: !0 }
91
- ), (o, e) => (d(), f(
73
+ setup(a) {
74
+ const t = a, d = P(), c = u(() => {
75
+ if (d.indicator) return d.indicator;
76
+ if (t.type == "page") return y(fe);
77
+ if (t.type == "container") return y(ge);
78
+ if (t.type == "component") return y(he);
79
+ if (t.type == "load")
80
+ return y(te, {
81
+ iconColor: t.iconColor,
82
+ customSize: t.customSize
83
+ });
84
+ });
85
+ return (f, e) => (i(), l(
92
86
  "div",
93
87
  {
94
- class: J({ "das-spin-container": !0, full: t.full })
88
+ class: J({ "das-spin-container": !0, full: a.full })
95
89
  },
96
90
  [
97
- K($(ee), L({
98
- class: `das-slef-spin ${t.size} ${t.type} `
99
- }, o.$attrs, { indicator: $(s) }), {
100
- default: g(() => [
101
- x(o.$slots, "default")
91
+ w(T(ee), K({
92
+ class: `das-slef-spin ${a.size} ${a.type} `
93
+ }, f.$attrs, { indicator: c.value }), {
94
+ default: _(() => [
95
+ g(f.$slots, "default")
102
96
  ]),
103
97
  _: 3
104
98
  /* FORWARDED */
@@ -108,15 +102,15 @@ const ge = /* @__PURE__ */ _(ve, [["render", ye], ["__scopeId", "data-v-f7548f22
108
102
  /* CLASS */
109
103
  ));
110
104
  }
111
- }), $e = /* @__PURE__ */ k({
105
+ }), $e = /* @__PURE__ */ x({
112
106
  __name: "expand-icon",
113
- setup(t) {
114
- return (a, s) => (d(), T($(ae), {
107
+ setup(a) {
108
+ return (t, d) => (i(), z(T(ae), {
115
109
  class: "das-tree__expand-icon",
116
110
  size: "medium"
117
111
  }));
118
112
  }
119
- }), ke = /* @__PURE__ */ _($e, [["__scopeId", "data-v-e225c8a8"]]), Ce = { class: "tree-normal-node" }, Ne = /* @__PURE__ */ k({
113
+ }), ke = /* @__PURE__ */ v($e, [["__scopeId", "data-v-e225c8a8"]]), Ce = { class: "tree-normal-node" }, Ne = /* @__PURE__ */ x({
120
114
  name: "DasVirtualTree",
121
115
  inheritAttrs: !1,
122
116
  __name: "App",
@@ -133,90 +127,90 @@ const ge = /* @__PURE__ */ _(ve, [["render", ye], ["__scopeId", "data-v-f7548f22
133
127
  emptyText: { default: "" },
134
128
  filterMethod: {}
135
129
  },
136
- setup(t, { expose: a }) {
137
- const s = u(), r = u(), o = u(0), e = t, I = m(() => e.emptyText || Y("暂无数据")), c = m(() => ({ label: "name", children: "children", disabled: "disabled", ...e.props, value: e.nodeKey })), O = m(() => e != null && e.height ? e.height + "px" : "100%"), R = m(() => e != null && e.height ? e.height : o.value), V = (n, l) => l[c.value.label].toLowerCase().includes(n.toLowerCase()), M = m(() => (e == null ? void 0 : e.filterMethod) ?? V), S = () => {
130
+ setup(a, { expose: t }) {
131
+ const d = p(), c = p(), f = p(0), e = a, I = u(() => e.emptyText || Y("暂无数据")), r = u(() => ({ label: "name", children: "children", disabled: "disabled", ...e.props, value: e.nodeKey })), L = u(() => e != null && e.height ? e.height + "px" : "100%"), O = u(() => e != null && e.height ? e.height : f.value), R = (n, o) => o[r.value.label].toLowerCase().includes(n.toLowerCase()), V = u(() => (e == null ? void 0 : e.filterMethod) ?? R), S = () => {
138
132
  if (e.data && e.data.length) {
139
- const l = z(e.data, c.value.children, !1).filter((i) => i[c.value.children] && i[c.value.children].length).map((i) => i[e.nodeKey]);
133
+ const o = N(e.data, r.value.children, !1).filter((s) => s[r.value.children] && s[r.value.children].length).map((s) => s[e.nodeKey]);
140
134
  G(() => {
141
- var i;
142
- (i = r.value) == null || i.setExpandedKeys(l);
135
+ var s;
136
+ (s = c.value) == null || s.setExpandedKeys(o);
143
137
  });
144
138
  }
145
139
  };
146
- h(
140
+ C(
147
141
  () => e.defaultExpandAll,
148
142
  (n) => {
149
143
  n && S();
150
144
  },
151
145
  { immediate: !0 }
152
- ), h(
146
+ ), C(
153
147
  () => e.data,
154
- (n, l) => {
148
+ (n, o) => {
155
149
  if (!e.defaultExpandAll) return;
156
- const i = n && n.length ? n : [], p = l && l.length ? l : [], w = z(i).map((N) => N[e.nodeKey]), F = z(p).map((N) => N[e.nodeKey]);
157
- p.length && JSON.stringify(w) === JSON.stringify(F) || S();
150
+ const s = n && n.length ? n : [], m = o && o.length ? o : [], M = N(s).map((k) => k[e.nodeKey]), F = N(m).map((k) => k[e.nodeKey]);
151
+ m.length && JSON.stringify(M) === JSON.stringify(F) || S();
158
152
  }
159
153
  );
160
- const C = u(!1);
161
- h(
154
+ const $ = p(!1);
155
+ C(
162
156
  () => e.data,
163
157
  (n) => {
164
158
  if (n && n.length) {
165
- const l = n.find(
166
- (i) => i[c.value.children] && i[c.value.children].length
159
+ const o = n.find(
160
+ (s) => s[r.value.children] && s[r.value.children].length
167
161
  );
168
- C.value = !l;
162
+ $.value = !o;
169
163
  } else
170
- C.value = !1;
164
+ $.value = !1;
171
165
  },
172
166
  { immediate: !0, deep: !0 }
173
167
  );
174
- const b = u();
168
+ const b = p();
175
169
  return W(() => {
176
170
  b.value = ne(
177
171
  (n) => {
178
- o.value = n.height;
172
+ f.value = n.height;
179
173
  },
180
- s.value.parentElement
174
+ d.value.parentElement
181
175
  );
182
176
  }), U(() => {
183
177
  b.value.disconnect();
184
- }), a({
185
- treeRef: r
186
- }), (n, l) => (d(), f(
178
+ }), t({
179
+ treeRef: c
180
+ }), (n, o) => (i(), l(
187
181
  "div",
188
182
  {
189
183
  ref_key: "cotainerRef",
190
- ref: s,
184
+ ref: d,
191
185
  class: "das-ui-tree das-ui-virtual-tree",
192
- style: j({ height: O.value })
186
+ style: j({ height: L.value })
193
187
  },
194
188
  [
195
- t.data && t.data.length ? (d(), T($(X), L({
189
+ a.data && a.data.length ? (i(), z(T(X), K({
196
190
  key: 0,
197
191
  ref_key: "treeRef",
198
- ref: r,
199
- data: t.data,
200
- class: { "is-root-all-left": C.value },
192
+ ref: c,
193
+ data: a.data,
194
+ class: { "is-root-all-left": $.value },
201
195
  icon: ke,
202
- props: c.value,
196
+ props: r.value,
203
197
  "show-checkbox": !1,
204
- "expand-on-click-node": t.expandOnClickNode,
205
- height: R.value,
198
+ "expand-on-click-node": a.expandOnClickNode,
199
+ height: O.value,
206
200
  "item-size": 32,
207
201
  "default-expand-all": "",
208
- "filter-method": M.value,
202
+ "filter-method": V.value,
209
203
  "empty-text": I.value
210
204
  }, n.$attrs), {
211
- default: g(({ node: i, data: p }) => [
212
- x(n.$slots, "default", {
213
- node: i,
214
- data: p
205
+ default: _(({ node: s, data: m }) => [
206
+ g(n.$slots, "default", {
207
+ node: s,
208
+ data: m
215
209
  }, () => [
216
- v(
210
+ h(
217
211
  "div",
218
212
  Ce,
219
- B(p[c.value.label]),
213
+ B(m[r.value.label]),
220
214
  1
221
215
  /* TEXT */
222
216
  )
@@ -224,22 +218,22 @@ const ge = /* @__PURE__ */ _(ve, [["render", ye], ["__scopeId", "data-v-f7548f22
224
218
  ]),
225
219
  _: 3
226
220
  /* FORWARDED */
227
- }, 16, ["data", "class", "props", "expand-on-click-node", "height", "filter-method", "empty-text"])) : (d(), f(
221
+ }, 16, ["data", "class", "props", "expand-on-click-node", "height", "filter-method", "empty-text"])) : (i(), l(
228
222
  E,
229
223
  { key: 1 },
230
224
  [
231
225
  D(" 空状态 "),
232
- t.loading ? (d(), f(
226
+ a.loading ? (i(), l(
233
227
  E,
234
228
  { key: 1 },
235
229
  [
236
230
  D(" 加载状态 "),
237
- K(xe, {
231
+ w(xe, {
238
232
  size: "small",
239
- spinning: t.loading
233
+ spinning: a.loading
240
234
  }, {
241
- default: g(() => [...l[0] || (l[0] = [
242
- v(
235
+ default: _(() => [...o[0] || (o[0] = [
236
+ h(
243
237
  "div",
244
238
  { style: { width: "100%", height: "100%" } },
245
239
  null,
@@ -253,7 +247,7 @@ const ge = /* @__PURE__ */ _(ve, [["render", ye], ["__scopeId", "data-v-f7548f22
253
247
  ],
254
248
  2112
255
249
  /* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
256
- )) : (d(), T(le, {
250
+ )) : (i(), z(de, {
257
251
  key: 0,
258
252
  "empty-text": I.value
259
253
  }, q({
@@ -262,8 +256,8 @@ const ge = /* @__PURE__ */ _(ve, [["render", ye], ["__scopeId", "data-v-f7548f22
262
256
  }, [
263
257
  n.$slots["empty-text"] ? {
264
258
  name: "default",
265
- fn: g(() => [
266
- x(n.$slots, "empty-text")
259
+ fn: _(() => [
260
+ g(n.$slots, "empty-text")
267
261
  ]),
268
262
  key: "0"
269
263
  } : void 0
@@ -279,9 +273,9 @@ const ge = /* @__PURE__ */ _(ve, [["render", ye], ["__scopeId", "data-v-f7548f22
279
273
  }
280
274
  }), ze = { 暂无数据: { "zh-CN": "暂无数据", en: "No Data", "zh-MO": "暫無數據", _appCode: "framework" } };
281
275
  Z(ze);
282
- const Ve = Q(Ne), Me = () => u(null), we = { title: "virtual-tree 虚拟树" };
276
+ const Re = Q(Ne), Ve = () => p(null), Me = { title: "virtual-tree 虚拟树" };
283
277
  export {
284
- Ve as DasVirtualTree,
285
- Me as DasVirtualTreeRef,
286
- we as default
278
+ Re as DasVirtualTree,
279
+ Ve as DasVirtualTreeRef,
280
+ Me as default
287
281
  };