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