@zgfe/business-lib 1.2.70-hxd.9 → 1.2.71-hxd.5
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/README.md +12 -12
- package/config.js +41 -41
- package/es/AUMFormulaTarget/components/formula/index.js +16 -14
- package/es/AUMFormulaTarget/components/formula/index.less +86 -86
- package/es/AUMFormulaTarget/components/formula/util.js +6 -6
- package/es/AUMFormulaTarget/components/formulaItem/index.js +23 -23
- package/es/AUMFormulaTarget/components/panel/cdpCshCondition.js +52 -52
- package/es/AUMFormulaTarget/components/panel/index.js +30 -30
- package/es/AUMFormulaTarget/components/panel/index.less +269 -269
- package/es/AUMFormulaTarget/components/panel/item.js +22 -22
- package/es/AUMFormulaTarget/components/symbol/index.js +5 -5
- package/es/AUMFormulaTarget/components/symbol/index.less +49 -49
- package/es/AUMFormulaTarget/demo/group.js +13 -13
- package/es/AUMFormulaTarget/demo/index.js +1 -1
- package/es/AUMFormulaTarget/index.d.ts +4 -1
- package/es/AUMFormulaTarget/index.js +11 -11
- package/es/AUMFormulaTarget/styles/index.less +74 -74
- package/es/addToPanel/components/addPanel.js +5 -5
- package/es/addToPanel/components/numberChart.js +5 -5
- package/es/addToPanel/components/radioGroup.d.ts +4 -1
- package/es/addToPanel/components/styleList.d.ts +4 -1
- package/es/addToPanel/components/styleList.js +5 -5
- package/es/addToPanel/components/wholeChart.js +5 -5
- package/es/addToPanel/demo/edit.js +7 -7
- package/es/addToPanel/demo/index.js +7 -7
- package/es/addToPanel/index.d.ts +4 -1
- package/es/addToPanel/index.js +22 -22
- package/es/addToPanel/styles/addPanel.less +25 -25
- package/es/addToPanel/styles/index.less +17 -17
- package/es/addToPanel/styles/style.less +66 -66
- package/es/addToScene/demo/index.js +7 -7
- package/es/addToScene/index.js +11 -16
- package/es/addToScene/styles/index.less +30 -30
- package/es/amountSelector/demo/index.d.ts +3 -0
- package/es/amountSelector/demo/index.js +9 -0
- package/es/amountSelector/index.d.ts +10 -0
- package/es/amountSelector/index.js +21 -0
- package/es/amountSelector/styles/index.less +27 -0
- package/es/amountSelector/types.d.ts +4 -0
- package/es/amountSelector/types.js +1 -0
- package/es/amountSelector/util.d.ts +3 -0
- package/es/amountSelector/util.js +18 -0
- package/es/assets/colorIcon/demo.css +539 -539
- package/es/assets/colorIcon/demo_index.html +1985 -1454
- package/es/assets/colorIcon/iconfont.css +329 -236
- package/es/assets/colorIcon/iconfont.js +13 -14
- package/es/assets/colorIcon/iconfont.json +555 -394
- package/es/assets/colorIcon/iconfont.ttf +0 -0
- package/es/assets/colorIcon/iconfont.woff +0 -0
- package/es/assets/colorIcon/iconfont.woff2 +0 -0
- package/es/assets/demo/dropdown.js +5 -5
- package/es/assets/demo/input.js +5 -5
- package/es/assets/iconfont/demo.css +539 -539
- package/es/assets/iconfont/demo_index.html +5563 -5708
- package/es/assets/iconfont/iconfont.css +1015 -975
- package/es/assets/iconfont/iconfont.js +1 -1
- package/es/assets/iconfont/iconfont.json +1584 -1689
- package/es/assets/styles/chunks.less +183 -183
- package/es/assets/styles/inner.less +3 -3
- package/es/assets/styles/resetAntd.less +568 -564
- package/es/assets/styles/variable.less +21 -21
- package/es/assets/theme.js +2 -2
- package/es/attrCondition/demo/group.js +1 -1
- package/es/attrCondition/group.js +15 -10
- package/es/attrCondition/index.js +20 -15
- package/es/attrCondition/styles/index.less +101 -101
- package/es/attrCondition/useAttrCondition.js +14 -12
- package/es/attrCondition/useConditionGroup.js +8 -8
- package/es/attrConditions/components/operateList.js +16 -13
- package/es/attrConditions/components/stringList.js +26 -31
- package/es/attrConditions/components/valuesList.js +5 -5
- package/es/attrConditions/demo/group.js +7 -7
- package/es/attrConditions/demo/index.js +5 -5
- package/es/attrConditions/group.js +3 -3
- package/es/attrConditions/index.d.ts +4 -1
- package/es/attrConditions/index.js +4 -2
- package/es/attrConditions/styles/group.less +49 -49
- package/es/attrConditions/styles/index.less +151 -151
- package/es/attrConditions/types.d.ts +4 -0
- package/es/attrConditions/utils/operates.d.ts +4 -0
- package/es/attrConditions/utils/operates.js +37 -0
- package/es/attributeSelector/demo/disable.js +5 -5
- package/es/attributeSelector/demo/extra.js +5 -5
- package/es/attributeSelector/demo/funnel.js +5 -5
- package/es/attributeSelector/demo/index.js +5 -5
- package/es/attributeSelector/index.js +43 -37
- package/es/attributeSelector/listPanel.js +332 -125
- package/es/attributeSelector/styles/index.less +141 -141
- package/es/attributeSelector/types.d.ts +2 -0
- package/es/attributeSelector/util.js +3 -0
- package/es/chart/demo/data/data5 copy.js +2 -2
- package/es/chart/demo/index.js +6 -6
- package/es/chart/demo/line_bar_stack.js +25 -25
- package/es/chart/demo/stack.js +6 -6
- package/es/chart/index.js +21 -23
- package/es/chart/styles/index.less +113 -113
- package/es/chart/util/chartOptionConfig.js +6 -6
- package/es/chart/util/color.js +1 -1
- package/es/chart/util/data/china.js +18 -18
- package/es/chart/util/formatData.js +6 -6
- package/es/chart/util/mapUtil.js +11 -11
- package/es/colorIcon/index.js +2 -4
- package/es/constants/apis.d.ts +4 -0
- package/es/constants/apis.js +6 -2
- package/es/constants/common.d.ts +11 -0
- package/es/constants/common.js +31 -0
- package/es/context/index.d.ts +2 -0
- package/es/cycleTime/demo/hour.js +5 -5
- package/es/cycleTime/index.js +22 -24
- package/es/cycleTime/month.js +9 -12
- package/es/cycleTime/styles/index.less +24 -24
- package/es/cycleTime/styles/month.less +95 -95
- package/es/dataSetGroup/index.js +5 -6
- package/es/dataSetGroup/overlay.js +10 -10
- package/es/dataSetGroup/styles/index.less +146 -146
- package/es/datePicker/datePicker.js +8 -8
- package/es/datePicker/demo/customType.js +5 -5
- package/es/datePicker/demo/day.js +5 -5
- package/es/datePicker/demo/index.js +5 -5
- package/es/datePicker/index.d.ts +4 -1
- package/es/datePicker/index.js +19 -19
- package/es/datePicker/shortcut.js +5 -5
- package/es/datePicker/styles/index.less +53 -53
- package/es/datePickerV2/datePicker.d.ts +1 -1
- package/es/datePickerV2/datePicker.js +11 -8
- package/es/datePickerV2/demo/customType.js +5 -5
- package/es/datePickerV2/demo/day.js +5 -5
- package/es/datePickerV2/demo/index.js +6 -6
- package/es/datePickerV2/index.d.ts +4 -1
- package/es/datePickerV2/index.js +40 -26
- package/es/datePickerV2/popoverContent.d.ts +1 -1
- package/es/datePickerV2/popoverContent.js +9 -9
- package/es/datePickerV2/shortcut.js +8 -8
- package/es/datePickerV2/styles/index.less +194 -194
- package/es/datePickerV2/types.d.ts +3 -1
- package/es/datePickerV2/types.js +1 -0
- package/es/datePickerV2/utils.js +24 -2
- package/es/demoWrapper/content.js +46 -47
- package/es/demoWrapper/index.js +15 -15
- package/es/demoWrapper/index.less +3 -3
- package/es/demoWrapper/innerDemo.js +1 -1
- package/es/dialog/demo/index.js +5 -5
- package/es/dialog/index.d.ts +4 -1
- package/es/dialog/index.js +6 -6
- package/es/dialog/styles/index.less +22 -22
- package/es/dnd/demo/data.js +5 -5
- package/es/dnd/demo/handle.js +5 -5
- package/es/dnd/demo/index.js +5 -1
- package/es/dnd/demo/styles/index.less +34 -34
- package/es/dnd/index.d.ts +4 -1
- package/es/dnd/index.js +10 -11
- package/es/dnd/item.js +20 -6
- package/es/dnd/styles/index.less +19 -19
- package/es/empty/index.js +6 -6
- package/es/eventSelector/demo/index.js +5 -5
- package/es/eventSelector/demo/multiple.js +5 -5
- package/es/eventSelector/index.d.ts +4 -1
- package/es/eventSelector/index.js +10 -9
- package/es/eventSelector/listPanel.js +42 -46
- package/es/eventSelector/option.d.ts +1 -0
- package/es/eventSelector/option.js +15 -4
- package/es/eventSelector/styles/index.less +127 -123
- package/es/eventSelector/types.d.ts +1 -0
- package/es/formulaTarget/components/formula/index.js +9 -8
- package/es/formulaTarget/components/formula/index.less +76 -76
- package/es/formulaTarget/components/formula/types.d.ts +1 -0
- package/es/formulaTarget/components/formula/util.js +6 -6
- package/es/formulaTarget/components/formulaItem/index.js +27 -22
- package/es/formulaTarget/components/formulaItem/types.d.ts +1 -0
- package/es/formulaTarget/components/panel/index.js +34 -33
- package/es/formulaTarget/components/panel/index.less +139 -139
- package/es/formulaTarget/components/panel/item.js +17 -10
- package/es/formulaTarget/components/panel/types.d.ts +2 -0
- package/es/formulaTarget/components/symbol/index.js +5 -5
- package/es/formulaTarget/components/symbol/index.less +49 -49
- package/es/formulaTarget/demo/group.js +13 -13
- package/es/formulaTarget/index.d.ts +4 -1
- package/es/formulaTarget/index.js +27 -26
- package/es/formulaTarget/styles/index.less +74 -74
- package/es/formulaTarget/types.d.ts +1 -0
- package/es/hooks/types/subject.d.ts +14 -14
- package/es/hooks/useBizStore.js +38 -44
- package/es/hooks/useChanged.js +5 -5
- package/es/hooks/useSubject.js +5 -5
- package/es/icon/demo/list.less +32 -32
- package/es/icon/iconFont.d.ts +4 -1
- package/es/icon/iconFont.js +8 -8
- package/es/index.d.ts +2 -1
- package/es/index.js +2 -1
- package/es/layout/analysisLayout/demo/index.less +12 -12
- package/es/layout/analysisLayout/index.d.ts +4 -1
- package/es/layout/analysisLayout/index.js +8 -8
- package/es/layout/analysisLayout/index.less +118 -118
- package/es/layout/columnLayout/demo/data.js +9 -9
- package/es/layout/columnLayout/demo/index.js +5 -5
- package/es/layout/columnLayout/demo/index.less +15 -15
- package/es/layout/columnLayout/demo/panel.js +5 -5
- package/es/layout/columnLayout/index.d.ts +4 -1
- package/es/layout/columnLayout/index.js +10 -10
- package/es/layout/columnLayout/index.less +81 -81
- package/es/layout/detail/index.less +27 -27
- package/es/layout/optionTitle/components/btnMenu/demo.js +2 -2
- package/es/layout/optionTitle/components/btnMenu/index.js +6 -6
- package/es/layout/optionTitle/components/btnMenu/index.less +18 -18
- package/es/layout/optionTitle/components/changePanelModal/index.js +14 -14
- package/es/layout/optionTitle/components/changePanelModal/panelItem.js +10 -10
- package/es/layout/optionTitle/components/changePanelModal/styles/index.less +92 -92
- package/es/layout/optionTitle/components/title/demo.js +5 -5
- package/es/layout/optionTitle/components/title/index.d.ts +1 -2
- package/es/layout/optionTitle/components/title/index.js +19 -15
- package/es/layout/optionTitle/components/title/index.less +43 -43
- package/es/layout/optionTitle/demo/index.js +5 -5
- package/es/layout/optionTitle/demo/index.less +12 -12
- package/es/layout/optionTitle/demo/layout.js +5 -5
- package/es/layout/optionTitle/demo/panelCreate.js +5 -5
- package/es/layout/optionTitle/index.js +16 -16
- package/es/layout/optionTitle/layout.js +9 -9
- package/es/layout/optionTitle/styles/index.less +30 -30
- package/es/layout/optionTitle/styles/layout.less +90 -90
- package/es/layout/optionTitle/styles/search.less +27 -27
- package/es/loading/styles/index.less +20 -20
- package/es/loginForm/index.js +5 -5
- package/es/loginForm/index.less +7 -7
- package/es/platformSelector/index.js +5 -5
- package/es/platformSelector/styles/index.less +26 -26
- package/es/productCondition/conditionTypeList.d.ts +4 -1
- package/es/productCondition/conditionTypeList.js +2 -2
- package/es/productCondition/conditions/cdpCshCondition.js +54 -51
- package/es/productCondition/conditions/constants.d.ts +2 -0
- package/es/productCondition/conditions/constants.js +2 -0
- package/es/productCondition/conditions/eventCondition.js +8 -8
- package/es/productCondition/conditions/order/runPeriodCondition.js +8 -10
- package/es/productCondition/conditions/order/runTimesCondition.js +13 -13
- package/es/productCondition/conditions/periodCondition.d.ts +4 -1
- package/es/productCondition/conditions/periodCondition.js +8 -8
- package/es/productCondition/conditions/propCondition.d.ts +4 -1
- package/es/productCondition/conditions/propCondition.js +14 -14
- package/es/productCondition/conditions/runTimesCondition.js +6 -6
- package/es/productCondition/conditions/styles/cdpCondition.less +31 -31
- package/es/productCondition/conditions/styles/cdpCshCondition.less +41 -41
- package/es/productCondition/conditions/styles/eventCondition.less +51 -51
- package/es/productCondition/conditions/styles/periodCondition.less +26 -26
- package/es/productCondition/conditions/styles/propCondition.less +43 -43
- package/es/productCondition/conditions/styles/runTimesCondition.less +19 -19
- package/es/productCondition/conditions/styles/tagsCondition.less +20 -20
- package/es/productCondition/conditions/styles/textDesc.less +17 -17
- package/es/productCondition/conditions/textDesc.js +6 -6
- package/es/productCondition/conditions/timeDimension.js +18 -18
- package/es/productCondition/demo/business.js +5 -5
- package/es/productCondition/demo/index.js +5 -5
- package/es/productCondition/index.d.ts +4 -1
- package/es/productCondition/index.js +17 -17
- package/es/productCondition/orConditions.js +8 -8
- package/es/productCondition/relationLabel.js +2 -2
- package/es/productCondition/styles/conditionTypeList.less +32 -30
- package/es/productCondition/styles/conditionWrap.less +18 -18
- package/es/productCondition/styles/index.less +33 -33
- package/es/productCondition/styles/orConditions.less +34 -34
- package/es/productCondition/styles/relationLabel.less +19 -19
- package/es/productCondition/types.d.ts +3 -1
- package/es/productCondition/util.d.ts +4 -0
- package/es/productCondition/util.js +10 -8
- package/es/quickDatePicker/demo/index.js +36 -16
- package/es/quickDatePicker/index.js +119 -22
- package/es/quickDatePicker/styles/index.less +141 -138
- package/es/quickDatePicker/types.d.ts +13 -0
- package/es/quickDatePicker/utils.d.ts +6 -0
- package/es/quickDatePicker/utils.js +54 -1
- package/es/select/demo/children.js +5 -5
- package/es/select/demo/group.js +5 -5
- package/es/select/demo/index.js +7 -6
- package/es/select/demo/loading.js +5 -5
- package/es/select/demo/multiple.js +5 -5
- package/es/select/handle.js +14 -21
- package/es/select/index.d.ts +4 -1
- package/es/select/index.js +16 -17
- package/es/select/option.js +14 -14
- package/es/select/overlay.js +17 -18
- package/es/select/styles/handle.less +206 -193
- package/es/select/styles/index.less +129 -129
- package/es/socket/demo/demo.js +10 -10
- package/es/socket/demo/index.less +27 -27
- package/es/socket/index.js +23 -26
- package/es/subjectWrapper/index.js +16 -14
- package/es/subjectWrapper/index.less +12 -12
- package/es/table/demo/data/color.js +1 -1
- package/es/table/demo/index.js +15 -15
- package/es/table/demo/index2.js +5 -5
- package/es/table/demo/index3.js +8 -8
- package/es/table/index.js +11 -38
- package/es/table/styles/index.less +5 -5
- package/es/targetConditionGroup/components/targetDimension.js +157 -64
- package/es/targetConditionGroup/demo/group.js +18 -31
- package/es/targetConditionGroup/demo/index.js +5 -5
- package/es/targetConditionGroup/demo/styles/index.less +29 -29
- package/es/targetConditionGroup/index.d.ts +4 -1
- package/es/targetConditionGroup/index.js +41 -39
- package/es/targetConditionGroup/styles/index.less +53 -53
- package/es/targetConditionGroup/types.d.ts +1 -0
- package/es/targetSelector/demo/index.js +5 -5
- package/es/targetSelector/editBox.d.ts +1 -0
- package/es/targetSelector/editBox.js +13 -8
- package/es/targetSelector/index.js +9 -8
- package/es/targetSelector/optionIcon.d.ts +4 -1
- package/es/targetSelector/optionIcon.js +3 -0
- package/es/targetSelector/styles/index.less +142 -110
- package/es/userCondition/conditionTypeList.d.ts +4 -1
- package/es/userCondition/conditionTypeList.js +13 -12
- package/es/userCondition/conditions/business/operatorCondition.js +15 -15
- package/es/userCondition/conditions/business/paramsCondition.js +10 -10
- package/es/userCondition/conditions/businessCondition.js +15 -15
- package/es/userCondition/conditions/cdpCondition.js +36 -33
- package/es/userCondition/conditions/cdpCshCondition.js +54 -51
- package/es/userCondition/conditions/constants.d.ts +2 -0
- package/es/userCondition/conditions/constants.js +2 -0
- package/es/userCondition/conditions/dataAttribute.js +22 -18
- package/es/userCondition/conditions/eventCondition.js +31 -39
- package/es/userCondition/conditions/order/runPeriodCondition.d.ts +4 -1
- package/es/userCondition/conditions/order/runPeriodCondition.js +6 -6
- package/es/userCondition/conditions/order/runTimesCondition.js +13 -13
- package/es/userCondition/conditions/periodCondition.d.ts +4 -1
- package/es/userCondition/conditions/periodCondition.js +26 -18
- package/es/userCondition/conditions/propCondition.js +23 -23
- package/es/userCondition/conditions/runTimesCondition.js +6 -6
- package/es/userCondition/conditions/styles/cdpCondition.less +37 -37
- package/es/userCondition/conditions/styles/cdpCshCondition.less +47 -47
- package/es/userCondition/conditions/styles/eventCondition.less +71 -57
- package/es/userCondition/conditions/styles/periodCondition.less +32 -26
- package/es/userCondition/conditions/styles/propCondition.less +43 -43
- package/es/userCondition/conditions/styles/runTimesCondition.less +19 -19
- package/es/userCondition/conditions/styles/tagsCondition.less +20 -20
- package/es/userCondition/conditions/styles/textDesc.less +16 -17
- package/es/userCondition/conditions/tagsCondition.js +23 -16
- package/es/userCondition/conditions/textDesc.js +20 -16
- package/es/userCondition/conditions/timeDimension.js +18 -18
- package/es/userCondition/demo/business.js +5 -5
- package/es/userCondition/demo/index.js +25 -19
- package/es/userCondition/demo/mockData.d.ts +20 -94
- package/es/userCondition/demo/mockData.js +31 -76
- package/es/userCondition/index.d.ts +5 -1
- package/es/userCondition/index.js +91 -72
- package/es/userCondition/orConditions.js +8 -8
- package/es/userCondition/relationLabel.js +2 -2
- package/es/userCondition/styles/conditionTypeList.less +32 -30
- package/es/userCondition/styles/conditionWrap.less +18 -18
- package/es/userCondition/styles/index.less +33 -33
- package/es/userCondition/styles/orConditions.less +34 -34
- package/es/userCondition/styles/relationLabel.less +19 -19
- package/es/userCondition/types.d.ts +5 -2
- package/es/userCondition/util.d.ts +4 -0
- package/es/userCondition/util.js +10 -8
- package/es/userGroup/demo/group.js +13 -13
- package/es/userGroup/demo/index.js +8 -15
- package/es/userGroup/index.d.ts +4 -1
- package/es/userGroup/index.js +71 -24
- package/es/userGroup/overlay.js +32 -18
- package/es/userGroup/styles/index.less +199 -145
- package/es/userGroup/types.d.ts +2 -0
- package/es/userGroup/util.d.ts +2 -0
- package/es/userGroup/util.js +47 -0
- package/es/userGroupHeader/demo/index.js +1 -1
- package/es/userGroupHeader/index.d.ts +1 -0
- package/es/userGroupHeader/index.js +61 -14
- package/es/userGroupHeader/styles/index.less +50 -31
- package/es/userTagsSelector/cascaderOverlay.d.ts +4 -1
- package/es/userTagsSelector/cascaderOverlay.js +36 -29
- package/es/userTagsSelector/components/search/index.less +6 -6
- package/es/userTagsSelector/components/tagList/index.d.ts +4 -1
- package/es/userTagsSelector/components/tagList/index.js +5 -5
- package/es/userTagsSelector/components/tagList/index.less +13 -13
- package/es/userTagsSelector/demo/index.js +5 -5
- package/es/userTagsSelector/groups/index.d.ts +4 -1
- package/es/userTagsSelector/groups/index.js +5 -5
- package/es/userTagsSelector/groups/styles/option.less +55 -55
- package/es/userTagsSelector/index.d.ts +4 -1
- package/es/userTagsSelector/index.js +43 -13
- package/es/userTagsSelector/multipleCheckPanel/index.js +5 -5
- package/es/userTagsSelector/multipleCheckPanel/styles/option.less +40 -40
- package/es/userTagsSelector/styles/cascaderOverlay.less +34 -34
- package/es/userTagsSelector/styles/index.less +20 -10
- package/es/userTagsSelector/types.d.ts +2 -0
- package/es/userTagsSelector/util.d.ts +1 -0
- package/es/userTagsSelector/util.js +20 -0
- package/es/utils/ajax.js +83 -49
- package/es/utils/demo/interruption.js +5 -5
- package/es/utils/eventApi.d.ts +14 -0
- package/es/utils/eventApi.js +120 -0
- package/es/utils/index.d.ts +2 -1
- package/es/utils/index.js +2 -1
- package/es/utils/type.d.ts +1 -0
- package/es/utils/type.js +6 -6
- package/es/utils/util.d.ts +1 -0
- package/es/utils/util.js +18 -0
- package/package.json +2 -2
- package/es/assets/colorIcon/iconfont.svg +0 -129
package/es/select/index.js
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
function _typeof(
|
|
1
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
2
2
|
var _excluded = ["overlayWidth", "minDropdownWidth", "labelField", "aliasField", "keyField", "enableClear"];
|
|
3
|
-
function ownKeys(
|
|
4
|
-
function _objectSpread(
|
|
5
|
-
function _defineProperty(
|
|
6
|
-
function _toPropertyKey(
|
|
7
|
-
function _toPrimitive(
|
|
8
|
-
function _slicedToArray(
|
|
3
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
4
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
5
|
+
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
6
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
7
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
8
|
+
function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
|
|
9
9
|
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
10
|
-
function _unsupportedIterableToArray(
|
|
11
|
-
function _arrayLikeToArray(
|
|
12
|
-
function _iterableToArrayLimit(
|
|
13
|
-
function _arrayWithHoles(
|
|
14
|
-
function _objectWithoutProperties(
|
|
15
|
-
function _objectWithoutPropertiesLoose(
|
|
10
|
+
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
|
11
|
+
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
12
|
+
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
13
|
+
function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
|
|
14
|
+
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
|
|
15
|
+
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
|
|
16
16
|
import { Dropdown } from 'antd';
|
|
17
17
|
import React, { useEffect, useRef, useState } from 'react';
|
|
18
18
|
import SelectHandle from './handle';
|
|
@@ -126,7 +126,6 @@ var BizSelect = function BizSelect(props) {
|
|
|
126
126
|
props.onVisibleChange && props.onVisibleChange(flag);
|
|
127
127
|
};
|
|
128
128
|
var onCreate = function onCreate(val) {
|
|
129
|
-
var _data;
|
|
130
129
|
if (!props.enableCreate) return;
|
|
131
130
|
if (current) {
|
|
132
131
|
var flag = true;
|
|
@@ -137,7 +136,7 @@ var BizSelect = function BizSelect(props) {
|
|
|
137
136
|
});
|
|
138
137
|
if (!flag) return;
|
|
139
138
|
}
|
|
140
|
-
var data = (
|
|
139
|
+
var data = _defineProperty(_defineProperty({}, keyField, val), labelField, val);
|
|
141
140
|
var originData = current || [];
|
|
142
141
|
originData.push(data);
|
|
143
142
|
setCurrent(originData);
|
|
@@ -183,7 +182,7 @@ var BizSelect = function BizSelect(props) {
|
|
|
183
182
|
className: "".concat(classPrefix, "-handle ").concat(props.className ? props.className : ''),
|
|
184
183
|
ref: selectRef,
|
|
185
184
|
id: selectId
|
|
186
|
-
}, props.children ? props.children : /*#__PURE__*/React.createElement(SelectHandle, {
|
|
185
|
+
}, props.children ? props.children : (/*#__PURE__*/React.createElement(SelectHandle, {
|
|
187
186
|
ref: boxRef,
|
|
188
187
|
value: current,
|
|
189
188
|
labelField: labelField,
|
|
@@ -208,7 +207,7 @@ var BizSelect = function BizSelect(props) {
|
|
|
208
207
|
onCreate: onCreate,
|
|
209
208
|
onVisible: onVisible,
|
|
210
209
|
disableItemList: props.disableItemList
|
|
211
|
-
})));
|
|
210
|
+
}))));
|
|
212
211
|
};
|
|
213
212
|
BizSelect.defaultProps = {
|
|
214
213
|
labelField: 'label',
|
package/es/select/option.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
function _slicedToArray(
|
|
1
|
+
function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
|
|
2
2
|
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
3
|
-
function _unsupportedIterableToArray(
|
|
4
|
-
function _arrayLikeToArray(
|
|
5
|
-
function _iterableToArrayLimit(
|
|
6
|
-
function _arrayWithHoles(
|
|
3
|
+
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
|
4
|
+
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
5
|
+
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
6
|
+
function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
|
|
7
7
|
import { Tooltip } from 'antd';
|
|
8
8
|
import React, { useEffect, useMemo, useRef, useState } from 'react';
|
|
9
9
|
import { classPrefix } from '.';
|
|
@@ -25,13 +25,13 @@ export var SelectAll = function SelectAll(props) {
|
|
|
25
25
|
return /*#__PURE__*/React.createElement("div", {
|
|
26
26
|
className: "".concat(classPrefix, "-option ").concat(classPrefix, "-option-multiple ").concat(classPrefix, "-option-all").concat(checkCode === 2 ? ' active' : ''),
|
|
27
27
|
onClick: onClick
|
|
28
|
-
}, checkCode === 2 ? /*#__PURE__*/React.createElement(IconFont, {
|
|
28
|
+
}, checkCode === 2 ? (/*#__PURE__*/React.createElement(IconFont, {
|
|
29
29
|
className: "".concat(classPrefix, "-checkbox ").concat(classPrefix, "-checked"),
|
|
30
30
|
type: 'a-Property1xuanzhong'
|
|
31
|
-
}) : /*#__PURE__*/React.createElement(IconFont, {
|
|
31
|
+
})) : (/*#__PURE__*/React.createElement(IconFont, {
|
|
32
32
|
className: "".concat(classPrefix, "-checkbox ").concat(classPrefix, "-check"),
|
|
33
33
|
type: 'a-Property1moren'
|
|
34
|
-
}), checkCode === 1 ? /*#__PURE__*/React.createElement("div", {
|
|
34
|
+
})), checkCode === 1 ? /*#__PURE__*/React.createElement("div", {
|
|
35
35
|
className: "".concat(classPrefix, "-checkbox-indeterminate")
|
|
36
36
|
}) : null, "\u5168\u9009");
|
|
37
37
|
};
|
|
@@ -71,7 +71,7 @@ var SelectOption = function SelectOption(props) {
|
|
|
71
71
|
});
|
|
72
72
|
}
|
|
73
73
|
function renderLabel(option) {
|
|
74
|
-
var dom = getLabel(option[props.aliasField || ''] || option[props.labelField]);
|
|
74
|
+
var dom = getLabel((option === null || option === void 0 ? void 0 : option.replaceLabel) || option[props.aliasField || ''] || option[props.labelField]);
|
|
75
75
|
return customLabel ? customLabel(dom, option) : dom;
|
|
76
76
|
}
|
|
77
77
|
if (group) {
|
|
@@ -88,19 +88,19 @@ var SelectOption = function SelectOption(props) {
|
|
|
88
88
|
}, /*#__PURE__*/React.createElement("div", {
|
|
89
89
|
className: "".concat(classPrefix, "-option ").concat(multiple ? classPrefix + '-option-multiple' : '', " ").concat(checked ? 'active' : '', " ").concat(disabled ? 'disabled' : ''),
|
|
90
90
|
onClick: onClick
|
|
91
|
-
}, multiple && (checked ? /*#__PURE__*/React.createElement(IconFont, {
|
|
91
|
+
}, multiple && (checked ? (/*#__PURE__*/React.createElement(IconFont, {
|
|
92
92
|
className: "".concat(classPrefix, "-checkbox ").concat(classPrefix, "-checked"),
|
|
93
93
|
type: 'a-Property1xuanzhong'
|
|
94
|
-
}) : /*#__PURE__*/React.createElement(IconFont, {
|
|
94
|
+
})) : (/*#__PURE__*/React.createElement(IconFont, {
|
|
95
95
|
className: "".concat(classPrefix, "-checkbox ").concat(classPrefix, "-check"),
|
|
96
96
|
type: 'a-Property1moren'
|
|
97
|
-
})), (option === null || option === void 0 ? void 0 : option.icon) && /*#__PURE__*/React.createElement("span", {
|
|
97
|
+
}))), (option === null || option === void 0 ? void 0 : option.icon) && /*#__PURE__*/React.createElement("span", {
|
|
98
98
|
className: "".concat(classPrefix, "-option-icon")
|
|
99
99
|
}, option === null || option === void 0 ? void 0 : option.icon), /*#__PURE__*/React.createElement("span", {
|
|
100
100
|
className: "".concat(classPrefix, "-option-label"),
|
|
101
101
|
ref: optionRef
|
|
102
|
-
}, renderLabel(option)), !disabled && /*#__PURE__*/React.createElement("span", {
|
|
102
|
+
}, renderLabel(option)), !disabled && (/*#__PURE__*/React.createElement("span", {
|
|
103
103
|
className: "".concat(classPrefix, "-option-btn")
|
|
104
|
-
}, props.extra && props.extra(option))));
|
|
104
|
+
}, props.extra && props.extra(option)))));
|
|
105
105
|
};
|
|
106
106
|
export default SelectOption;
|
package/es/select/overlay.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
function _typeof(
|
|
2
|
-
function _toConsumableArray(
|
|
1
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
2
|
+
function _toConsumableArray(r) { return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread(); }
|
|
3
3
|
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
4
|
-
function _iterableToArray(
|
|
5
|
-
function _arrayWithoutHoles(
|
|
6
|
-
function _defineProperty(
|
|
7
|
-
function _toPropertyKey(
|
|
8
|
-
function _toPrimitive(
|
|
9
|
-
function _slicedToArray(
|
|
4
|
+
function _iterableToArray(r) { if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r); }
|
|
5
|
+
function _arrayWithoutHoles(r) { if (Array.isArray(r)) return _arrayLikeToArray(r); }
|
|
6
|
+
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
7
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
8
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
9
|
+
function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
|
|
10
10
|
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
11
|
-
function _unsupportedIterableToArray(
|
|
12
|
-
function _arrayLikeToArray(
|
|
13
|
-
function _iterableToArrayLimit(
|
|
14
|
-
function _arrayWithHoles(
|
|
11
|
+
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
|
12
|
+
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
13
|
+
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
14
|
+
function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
|
|
15
15
|
import React, { useEffect, useState } from 'react';
|
|
16
16
|
import { Spin, message } from 'antd';
|
|
17
17
|
import BizSearchInput from '../searchInput';
|
|
@@ -92,13 +92,12 @@ var SelectOverlay = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
92
92
|
var optionsDom = [];
|
|
93
93
|
var list = _.cloneDeep(data);
|
|
94
94
|
if (props.enableCreate && searchValue) {
|
|
95
|
-
|
|
96
|
-
list.push((_list$push = {}, _defineProperty(_list$push, props.keyField, searchValue), _defineProperty(_list$push, props.labelField, searchValue), _defineProperty(_list$push, "isTemp", true), _list$push));
|
|
95
|
+
list.push(_defineProperty(_defineProperty(_defineProperty({}, props.keyField, searchValue), props.labelField, searchValue), "isTemp", true));
|
|
97
96
|
}
|
|
98
97
|
var tempOption = null;
|
|
99
98
|
var useTemp = true;
|
|
100
99
|
list.forEach(function (option) {
|
|
101
|
-
if (searchValue && !new RegExp(_.escapeRegExp(searchValue), 'i').test(option[aliasField || ''] || option[labelField])) return;
|
|
100
|
+
if (searchValue && !new RegExp(_.escapeRegExp(searchValue), 'i').test((option === null || option === void 0 ? void 0 : option.replaceLabel) || option[aliasField || ''] || option[labelField])) return;
|
|
102
101
|
if (searchValue && searchValue === option[labelField] && !option.isTemp) useTemp = false;
|
|
103
102
|
var disabled = false;
|
|
104
103
|
disableItemList === null || disableItemList === void 0 ? void 0 : disableItemList.forEach(function (item) {
|
|
@@ -197,15 +196,15 @@ var SelectOverlay = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
197
196
|
return /*#__PURE__*/React.createElement("div", {
|
|
198
197
|
className: "".concat(classPrefix, "-overlay ").concat(overlayClassName),
|
|
199
198
|
ref: ref
|
|
200
|
-
}, props.enableSearch &&
|
|
199
|
+
}, props.enableSearch && (/*#__PURE__*/React.createElement(BizSearchInput, {
|
|
201
200
|
className: "".concat(classPrefix, "-search"),
|
|
202
201
|
onChange: onSearch,
|
|
203
202
|
placeholder: props.searchPlaceholder || '请输入'
|
|
204
|
-
}), dropdownExtra, props.enableSelectAll && props.multiple && showList.length ? /*#__PURE__*/React.createElement(SelectAll, {
|
|
203
|
+
})), dropdownExtra, props.enableSelectAll && props.multiple && showList.length ? (/*#__PURE__*/React.createElement(SelectAll, {
|
|
205
204
|
options: props.options,
|
|
206
205
|
value: current,
|
|
207
206
|
onChange: onCheckAllChange
|
|
208
|
-
}) : null, /*#__PURE__*/React.createElement("div", {
|
|
207
|
+
})) : null, /*#__PURE__*/React.createElement("div", {
|
|
209
208
|
className: "".concat(classPrefix, "-list-panel")
|
|
210
209
|
}, render()));
|
|
211
210
|
});
|
|
@@ -1,193 +1,206 @@
|
|
|
1
|
-
@import '../../assets/styles/inner.less';
|
|
2
|
-
|
|
3
|
-
.biz-select-handle {
|
|
4
|
-
&-input {
|
|
5
|
-
position: relative;
|
|
6
|
-
display: flex;
|
|
7
|
-
flex: 1;
|
|
8
|
-
padding: 0px 6px 0 8px;
|
|
9
|
-
&.disable {
|
|
10
|
-
.__disable();
|
|
11
|
-
.bsicon {
|
|
12
|
-
color: @disabled-color;
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
.__select-default();
|
|
17
|
-
|
|
18
|
-
&.secondary {
|
|
19
|
-
.__select-normal-secondary();
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
&.borderless {
|
|
23
|
-
border: none;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
&.large {
|
|
27
|
-
height: @height-lg;
|
|
28
|
-
font-size: @font-size-lg;
|
|
29
|
-
line-height: @height-lg;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
&.small {
|
|
33
|
-
height: @height-sm;
|
|
34
|
-
line-height: @height-sm;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
&.middle {
|
|
38
|
-
height: @height-base;
|
|
39
|
-
line-height: @height-base;
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
&-input-multiple {
|
|
44
|
-
display: flex;
|
|
45
|
-
align-items: center;
|
|
46
|
-
height: auto;
|
|
47
|
-
line-height: 1;
|
|
48
|
-
&.small {
|
|
49
|
-
height: auto;
|
|
50
|
-
min-height: @height-sm;
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
&.middle {
|
|
54
|
-
height: auto;
|
|
55
|
-
min-height: @height-base;
|
|
56
|
-
}
|
|
57
|
-
.biz-select-handle-tag {
|
|
58
|
-
display: flex;
|
|
59
|
-
align-items: center;
|
|
60
|
-
margin: 2px 4px 2px 0;
|
|
61
|
-
padding: 0 4px;
|
|
62
|
-
padding-top: 1px;
|
|
63
|
-
padding-bottom: 1px;
|
|
64
|
-
background: none;
|
|
65
|
-
border-color: #cacdd4;
|
|
66
|
-
border-radius: @border-radius-small;
|
|
67
|
-
&-label {
|
|
68
|
-
min-width: 0;
|
|
69
|
-
max-width: 100px;
|
|
70
|
-
overflow: hidden;
|
|
71
|
-
text-overflow: ellipsis;
|
|
72
|
-
}
|
|
73
|
-
&:not(.disable) {
|
|
74
|
-
&:hover {
|
|
75
|
-
.__default-hover();
|
|
76
|
-
.anticon {
|
|
77
|
-
color: @primary-color;
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
&.disable {
|
|
82
|
-
&:hover {
|
|
83
|
-
cursor: not-allowed;
|
|
84
|
-
.anticon-close {
|
|
85
|
-
cursor: not-allowed;
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
.biz-select-handle-tag-label,
|
|
89
|
-
.ant-tag-close-icon {
|
|
90
|
-
color: #ccd0d4 !important;
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
padding: 0
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
}
|
|
170
|
-
}
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
1
|
+
@import '../../assets/styles/inner.less';
|
|
2
|
+
|
|
3
|
+
.biz-select-handle {
|
|
4
|
+
&-input {
|
|
5
|
+
position: relative;
|
|
6
|
+
display: flex;
|
|
7
|
+
flex: 1;
|
|
8
|
+
padding: 0px 6px 0 8px;
|
|
9
|
+
&.disable {
|
|
10
|
+
.__disable();
|
|
11
|
+
.bsicon {
|
|
12
|
+
color: @disabled-color;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.__select-default();
|
|
17
|
+
|
|
18
|
+
&.secondary {
|
|
19
|
+
.__select-normal-secondary();
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
&.borderless {
|
|
23
|
+
border: none;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
&.large {
|
|
27
|
+
height: @height-lg;
|
|
28
|
+
font-size: @font-size-lg;
|
|
29
|
+
line-height: @height-lg;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
&.small {
|
|
33
|
+
height: @height-sm;
|
|
34
|
+
line-height: @height-sm;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
&.middle {
|
|
38
|
+
height: @height-base;
|
|
39
|
+
line-height: @height-base;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
&-input-multiple {
|
|
44
|
+
display: flex;
|
|
45
|
+
align-items: center;
|
|
46
|
+
height: auto;
|
|
47
|
+
line-height: 1;
|
|
48
|
+
&.small {
|
|
49
|
+
height: auto;
|
|
50
|
+
min-height: @height-sm;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
&.middle {
|
|
54
|
+
height: auto;
|
|
55
|
+
min-height: @height-base;
|
|
56
|
+
}
|
|
57
|
+
.biz-select-handle-tag {
|
|
58
|
+
display: flex;
|
|
59
|
+
align-items: center;
|
|
60
|
+
margin: 2px 4px 2px 0;
|
|
61
|
+
padding: 0 4px;
|
|
62
|
+
padding-top: 1px;
|
|
63
|
+
padding-bottom: 1px;
|
|
64
|
+
background: none;
|
|
65
|
+
border-color: #cacdd4;
|
|
66
|
+
border-radius: @border-radius-small;
|
|
67
|
+
&-label {
|
|
68
|
+
min-width: 0;
|
|
69
|
+
max-width: 100px;
|
|
70
|
+
overflow: hidden;
|
|
71
|
+
text-overflow: ellipsis;
|
|
72
|
+
}
|
|
73
|
+
&:not(.disable) {
|
|
74
|
+
&:hover {
|
|
75
|
+
.__default-hover();
|
|
76
|
+
.anticon {
|
|
77
|
+
color: @primary-color;
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
&.disable {
|
|
82
|
+
&:hover {
|
|
83
|
+
cursor: not-allowed;
|
|
84
|
+
.anticon-close {
|
|
85
|
+
cursor: not-allowed;
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
.biz-select-handle-tag-label,
|
|
89
|
+
.ant-tag-close-icon {
|
|
90
|
+
color: #ccd0d4 !important;
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
.biz-select-handle-tag:is(.state-2, .state-3, .state-4) {
|
|
95
|
+
color: #fb5547;
|
|
96
|
+
border-color: #fb5547;
|
|
97
|
+
.ant-tag-close-icon {
|
|
98
|
+
color: #fb5547 !important;
|
|
99
|
+
}
|
|
100
|
+
&:not(.disable) {
|
|
101
|
+
&:hover {
|
|
102
|
+
color: #fb5547;
|
|
103
|
+
border-color: #fb5547;
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
&-multiple-content {
|
|
109
|
+
display: flex;
|
|
110
|
+
flex: 1;
|
|
111
|
+
flex-wrap: wrap;
|
|
112
|
+
align-items: center;
|
|
113
|
+
overflow: visible;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
&-search.ant-input {
|
|
117
|
+
width: auto;
|
|
118
|
+
padding: 0;
|
|
119
|
+
background-color: transparent;
|
|
120
|
+
border: none !important;
|
|
121
|
+
box-shadow: none;
|
|
122
|
+
|
|
123
|
+
&:focus,
|
|
124
|
+
&.active {
|
|
125
|
+
box-shadow: none !important;
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
&-temp {
|
|
129
|
+
position: absolute;
|
|
130
|
+
top: -999999999999999px;
|
|
131
|
+
padding: 0 @padding-sm;
|
|
132
|
+
font-size: @font-size-base;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
&-holder {
|
|
136
|
+
color: @input-placeholder-color;
|
|
137
|
+
line-height: 20px;
|
|
138
|
+
}
|
|
139
|
+
&-content {
|
|
140
|
+
display: flex;
|
|
141
|
+
flex: 1;
|
|
142
|
+
align-items: center;
|
|
143
|
+
width: calc(100% - 19px);
|
|
144
|
+
&-label {
|
|
145
|
+
// width: 100%;
|
|
146
|
+
.__default-overflow();
|
|
147
|
+
}
|
|
148
|
+
&-icon-list {
|
|
149
|
+
display: flex;
|
|
150
|
+
// flex: 1;
|
|
151
|
+
flex-direction: row;
|
|
152
|
+
align-items: center;
|
|
153
|
+
justify-content: end;
|
|
154
|
+
}
|
|
155
|
+
&-icon-qingchu-box {
|
|
156
|
+
display: none;
|
|
157
|
+
gap: 10px;
|
|
158
|
+
align-items: center;
|
|
159
|
+
justify-content: center;
|
|
160
|
+
width: 16px;
|
|
161
|
+
height: 24px;
|
|
162
|
+
margin-left: 8px;
|
|
163
|
+
padding: 10px;
|
|
164
|
+
border-radius: 4px;
|
|
165
|
+
}
|
|
166
|
+
&-icon-qingchu-box:hover {
|
|
167
|
+
color: #fb5547;
|
|
168
|
+
background: #feddda;
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
&-input:hover {
|
|
172
|
+
.biz-select-handle-content-icon-qingchu-box {
|
|
173
|
+
display: flex;
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
&-expand-icon {
|
|
177
|
+
width: 14px;
|
|
178
|
+
margin-left: 5px;
|
|
179
|
+
color: @text-color-secondary;
|
|
180
|
+
&.open {
|
|
181
|
+
transform: rotate(180deg);
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
&-tooltip {
|
|
186
|
+
.ant-tooltip-inner {
|
|
187
|
+
color: @black;
|
|
188
|
+
background-color: @white;
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
&-icon {
|
|
193
|
+
margin-right: @margin-xss;
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
&-status-error {
|
|
197
|
+
border-color: @error-color;
|
|
198
|
+
&.biz-select-handle-input:hover {
|
|
199
|
+
border-color: @error-color;
|
|
200
|
+
}
|
|
201
|
+
&.biz-select-handle-input.active:not(.disable) {
|
|
202
|
+
border-color: @error-color;
|
|
203
|
+
box-shadow: 0 0 0 4px rgba(#ff8170, 0.2) !important;
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
}
|