kui-vue 3.4.8 → 3.5.0
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/LICENSE +1 -1
- package/components/affix/affix.jsx +42 -42
- package/components/alert/alert.jsx +12 -7
- package/components/avatar/AvatarGroup.jsx +8 -5
- package/components/avatar/avatar.jsx +10 -7
- package/components/avatar/demo/base.md +1 -0
- package/components/avatar/demo/info.md +2 -5
- package/components/backtop/backtop.jsx +39 -32
- package/components/badge/badge.jsx +7 -7
- package/components/badge/demo/color.md +0 -1
- package/components/badge/styles/index.less +0 -4
- package/components/base/{collapse.js → collapse.jsx} +2 -7
- package/components/base/drop.jsx +181 -195
- package/components/base/input.jsx +27 -46
- package/components/base/pop.jsx +21 -17
- package/components/base/transition.js +1 -4
- package/components/breadcrumb/breadcrumb.jsx +6 -3
- package/components/breadcrumb/breadcrumbItem.jsx +4 -2
- package/components/breadcrumb/styles/index.less +1 -1
- package/components/button/button.jsx +95 -56
- package/components/button/buttonGroup.jsx +5 -3
- package/components/button/demo/base.md +3 -3
- package/components/button/demo/block.md +1 -1
- package/components/button/demo/color.md +30 -0
- package/components/button/demo/disabled.md +2 -2
- package/components/button/demo/index.vue +4 -4
- package/components/button/demo/light.md +8 -8
- package/components/button/demo/loading.md +10 -7
- package/components/button/demo/outline.md +22 -0
- package/components/button/demo/size.md +3 -4
- package/components/button/demo/with-icon.md +5 -5
- package/components/button/styles/index.less +269 -44
- package/components/card/card.jsx +4 -2
- package/components/carousel/carousel.jsx +143 -97
- package/components/carousel/carouselItem.jsx +13 -14
- package/components/carousel/styles/index.less +1 -1
- package/components/checkbox/checkbox.jsx +6 -4
- package/components/checkbox/demo/disabled.md +1 -3
- package/components/checkbox/group.jsx +6 -3
- package/components/collapse/collapse.jsx +14 -12
- package/components/collapse/demo/{accrodion.md → accordion.md} +2 -2
- package/components/collapse/demo/index.vue +2 -2
- package/components/collapse/panel.jsx +15 -16
- package/components/collapse/styles/index.less +3 -3
- package/components/colorPicker/alpha.jsx +107 -0
- package/components/colorPicker/colorpicker.jsx +177 -384
- package/components/colorPicker/demo/base.md +1 -3
- package/components/colorPicker/demo/customTriggle.md +34 -0
- package/components/colorPicker/demo/disabled.md +22 -0
- package/components/colorPicker/demo/disabledAlpha.md +20 -0
- package/components/colorPicker/demo/index.vue +11 -5
- package/components/colorPicker/demo/mode.md +16 -18
- package/components/colorPicker/demo/placement.md +25 -0
- package/components/colorPicker/demo/{colors.md → presets.md} +2 -2
- package/components/colorPicker/demo/size.md +14 -13
- package/components/colorPicker/hue.jsx +114 -0
- package/components/colorPicker/index.md +11 -11
- package/components/colorPicker/mode.jsx +176 -0
- package/components/colorPicker/paint.jsx +126 -0
- package/components/colorPicker/presets.jsx +69 -0
- package/components/colorPicker/styles/index.less +144 -46
- package/components/components.js +155 -0
- package/components/const/var.js +3 -0
- package/components/datePicker/datecalendar.jsx +34 -34
- package/components/datePicker/datepicker.jsx +24 -23
- package/components/datePicker/styles/calendar.less +3 -3
- package/components/descriptions/descriptions.jsx +12 -8
- package/components/descriptions/descriptionsItem.jsx +5 -2
- package/components/divider/divider.jsx +4 -2
- package/components/drawer/drawer.jsx +74 -69
- package/components/dropdown/dropdown.jsx +5 -2
- package/components/dropdown/styles/index.less +14 -3
- package/components/empty/empty.jsx +5 -5
- package/components/flex/demo/align.md +1 -1
- package/components/flex/demo/size.md +1 -1
- package/components/flex/flex.jsx +12 -4
- package/components/form/demo/length.md +1 -1
- package/components/form/demo/valid.md +1 -1
- package/components/form/form.jsx +9 -8
- package/components/form/formitem.jsx +14 -11
- package/components/grid/col.jsx +5 -2
- package/components/grid/row.jsx +11 -8
- package/components/icon/demo/base.md +8 -7
- package/components/icon/demo/index.vue +3 -1
- package/components/icon/demo/info.md +1 -38
- package/components/icon/demo/search.vue +16 -15
- package/components/icon/demo/use.md +30 -0
- package/components/icon/icon.jsx +5 -2
- package/components/image/group.jsx +4 -2
- package/components/image/image.jsx +16 -13
- package/components/image/index.js +6 -9
- package/components/image/{instance.js → instance.jsx} +6 -6
- package/components/image/preview.jsx +219 -195
- package/components/image/styles/index.less +1 -1
- package/components/index.js +36 -142
- package/components/input/input.jsx +6 -4
- package/components/input/inputGroup.jsx +16 -14
- package/components/input/textarea.jsx +16 -7
- package/components/inputNumber/demo/base.md +16 -8
- package/components/inputNumber/demo/format.md +7 -19
- package/components/inputNumber/demo/size.md +2 -6
- package/components/inputNumber/inputNumber.jsx +112 -104
- package/components/inputNumber/styles/index.less +47 -11
- package/components/layout/demo/base.md +11 -6
- package/components/layout/demo/layout1.md +82 -63
- package/components/layout/demo/layout2.md +93 -56
- package/components/layout/demo/layout3.md +95 -53
- package/components/layout/demo/layout4.md +97 -45
- package/components/layout/demo/layout5.md +81 -80
- package/components/layout/index.js +0 -4
- package/components/layout/layout.jsx +3 -2
- package/components/loading/demo/info.md +3 -3
- package/components/loading/{index.js → index.jsx} +29 -24
- package/components/locale/index.js +27 -69
- package/components/locale/lang/de.js +1 -1
- package/components/locale/lang/el.js +1 -1
- package/components/locale/lang/en.js +1 -1
- package/components/locale/lang/fr.js +2 -2
- package/components/locale/lang/it.js +1 -1
- package/components/locale/lang/ja.js +1 -1
- package/components/locale/lang/ko.js +1 -1
- package/components/locale/lang/ru.js +1 -1
- package/components/locale/lang/th.js +1 -1
- package/components/locale/lang/ua.js +1 -1
- package/components/locale/lang/vi.js +1 -1
- package/components/locale/lang/zh-CN.js +1 -1
- package/components/locale/lang/zh-TW.js +1 -1
- package/components/menu/demo/index.vue +2 -2
- package/components/menu/menu.jsx +6 -3
- package/components/menu/menudivider.jsx +5 -3
- package/components/menu/menugroup.jsx +4 -2
- package/components/menu/menuitem.jsx +6 -4
- package/components/menu/styles/index.less +88 -20
- package/components/menu/submenu.jsx +11 -28
- package/components/message/group.jsx +31 -28
- package/components/message/index.js +2 -2
- package/components/modal/demo/index.vue +2 -3
- package/components/modal/demo/info.md +5 -4
- package/components/modal/index.js +5 -7
- package/components/modal/modal.jsx +116 -121
- package/components/notice/index.js +2 -1
- package/components/page/page.jsx +15 -12
- package/components/page/styles/index.less +4 -4
- package/components/popconfirm/popconfirm.jsx +9 -8
- package/components/popconfirm/styles/index.less +15 -8
- package/components/poptip/poptip.jsx +7 -6
- package/components/poptip/styles/index.less +10 -4
- package/components/progress/progress.jsx +11 -8
- package/components/radio/button.jsx +4 -1
- package/components/radio/demo/button.md +1 -2
- package/components/radio/group.jsx +10 -19
- package/components/radio/radio.jsx +7 -9
- package/components/radio/styles/index.less +1 -1
- package/components/rate/rate.jsx +7 -10
- package/components/select/demo/base.md +5 -2
- package/components/select/demo/info.md +3 -1
- package/components/select/demo/multiple.md +1 -1
- package/components/select/demo/theme.md +0 -5
- package/components/select/index.md +4 -0
- package/components/select/option.jsx +8 -5
- package/components/select/select.jsx +247 -237
- package/components/select/styles/index.less +7 -13
- package/components/skeleton/demo/items.md +3 -3
- package/components/skeleton/skeleton.jsx +6 -2
- package/components/skeleton/skeletonAvatar.jsx +6 -2
- package/components/skeleton/skeletonButton.jsx +6 -2
- package/components/skeleton/skeletonImage.jsx +6 -2
- package/components/skeleton/skeletonText.jsx +6 -2
- package/components/slider/slider.jsx +15 -11
- package/components/slider/thumb.jsx +9 -8
- package/components/space/demo/align.md +5 -6
- package/components/space/demo/size.md +8 -8
- package/components/space/space.jsx +19 -17
- package/components/spin/demo/container.md +10 -10
- package/components/spin/spin.jsx +5 -2
- package/components/styles/color.less +57 -37
- package/components/styles/sys.less +31 -0
- package/components/styles/var.less +40 -11
- package/components/switch/styles/index.less +2 -2
- package/components/switch/switch.jsx +11 -8
- package/components/table/demo/edit.md +4 -4
- package/components/table/demo/expand.md +1 -2
- package/components/table/demo/filter.md +1 -1
- package/components/table/extend.jsx +172 -157
- package/components/table/styles/index.less +2 -1
- package/components/table/table.jsx +8 -6
- package/components/tabs/demo/base.md +6 -6
- package/components/tabs/demo/card.md +6 -6
- package/components/tabs/demo/centered.md +6 -6
- package/components/tabs/demo/closable.md +3 -3
- package/components/tabs/demo/disabled.md +6 -6
- package/components/tabs/demo/extra.md +6 -6
- package/components/tabs/demo/icon.md +4 -4
- package/components/tabs/demo/index.vue +3 -4
- package/components/tabs/demo/sample.md +6 -6
- package/components/tabs/index.js +2 -2
- package/components/tabs/index.md +1 -1
- package/components/tabs/styles/index.less +47 -9
- package/components/tabs/tabpanel.jsx +28 -0
- package/components/tabs/tabs.jsx +198 -151
- package/components/tag/demo/color.md +0 -1
- package/components/tag/styles/index.less +0 -6
- package/components/tag/tag.jsx +6 -3
- package/components/timeline/timeline.jsx +3 -1
- package/components/timeline/timelineitem.jsx +5 -2
- package/components/tooltip/demo/color.md +2 -3
- package/components/tooltip/styles/index.less +15 -26
- package/components/tooltip/tooltip.jsx +8 -6
- package/components/tree/demo/directory.md +3 -3
- package/components/tree/node.jsx +39 -50
- package/components/tree/styles/index.less +3 -3
- package/components/tree/tree.jsx +18 -28
- package/components/treeselect/styles/index.less +1 -1
- package/components/treeselect/treeselect.jsx +21 -22
- package/components/upload/demo/form.md +1 -1
- package/components/upload/upload.jsx +13 -27
- package/components/{_tool → utils}/animate.js +1 -1
- package/components/{_tool → utils}/clone.js +2 -2
- package/components/utils/color.js +5 -0
- package/components/{_tool/utils.js → utils/element.js} +8 -5
- package/components/utils/number.js +81 -0
- package/components/utils/theme.js +62 -0
- package/components/utils/vue.js +7 -0
- package/dist/k-ui.cjs.js +7 -0
- package/dist/k-ui.css +6 -7
- package/dist/k-ui.d.ts +162 -0
- package/dist/k-ui.esm.js +7 -0
- package/dist/k-ui.umd.js +7 -0
- package/dist/locale/de.js +5 -7
- package/dist/locale/el.js +5 -7
- package/dist/locale/en.js +5 -7
- package/dist/locale/fr.js +5 -7
- package/dist/locale/it.js +5 -7
- package/dist/locale/ja.js +5 -7
- package/dist/locale/ko.js +5 -7
- package/dist/locale/ru.js +5 -7
- package/dist/locale/th.js +5 -7
- package/dist/locale/ua.js +5 -7
- package/dist/locale/vi.js +5 -7
- package/dist/locale/zh-CN.js +7 -0
- package/dist/locale/zh-TW.js +7 -0
- package/package.json +53 -20
- package/readme.md +105 -0
- package/test/i18n@8.x.html +65 -0
- package/types/affix/Affix.d.ts +17 -0
- package/types/alert/Alert.d.ts +18 -0
- package/types/anchor/Anchor.d.ts +16 -0
- package/types/anchor/Link.d.ts +15 -0
- package/types/avatar/Avatar.d.ts +17 -0
- package/types/avatar/AvatarGroup.d.ts +15 -0
- package/types/backtop/BackTop.d.ts +16 -0
- package/types/badge/Badge.d.ts +20 -0
- package/types/base/BasePop.d.ts +24 -0
- package/types/base/Collapse.d.ts +15 -0
- package/types/base/Drop.d.ts +27 -0
- package/types/base/baseInput.d.ts +32 -0
- package/types/base/input.d.ts +32 -0
- package/types/base/pop.d.ts +36 -0
- package/types/breadcrumb/Breadcrumb.d.ts +11 -0
- package/types/breadcrumb/BreadcrumbItem.d.ts +17 -0
- package/types/button/Button.d.ts +27 -0
- package/types/button/ButtonGroup.d.ts +15 -0
- package/types/card/Card.d.ts +16 -0
- package/types/carousel/Carousel.d.ts +22 -0
- package/types/carousel/CarouselItem.d.ts +11 -0
- package/types/checkbox/Checkbox.d.ts +19 -0
- package/types/checkbox/CheckboxGroup.d.ts +20 -0
- package/types/collapse/Collapse.d.ts +15 -0
- package/types/collapse/Panel.d.ts +14 -0
- package/types/colorPicker/Alpha.d.ts +13 -0
- package/types/colorPicker/ColorPicker.d.ts +26 -0
- package/types/colorPicker/Hue.d.ts +13 -0
- package/types/colorPicker/Mode.d.ts +15 -0
- package/types/colorPicker/Paint.d.ts +14 -0
- package/types/colorPicker/Presets.d.ts +15 -0
- package/types/datePicker/DateCalendar.d.ts +27 -0
- package/types/datePicker/DatePicker.d.ts +36 -0
- package/types/descriptions/Descriptions.d.ts +21 -0
- package/types/descriptions/DescriptionsItem.d.ts +18 -0
- package/types/divider/Divider.d.ts +18 -0
- package/types/drawer/Drawer.d.ts +35 -0
- package/types/dropdown/Dropdown.d.ts +21 -0
- package/types/empty/Empty.d.ts +15 -0
- package/types/flex/Flex.d.ts +17 -0
- package/types/form/Form.d.ts +25 -0
- package/types/form/FormItem.d.ts +17 -0
- package/types/grid/Col.d.ts +15 -0
- package/types/grid/Row.d.ts +17 -0
- package/types/icon/Icon.d.ts +17 -0
- package/types/image/ImageGroup.d.ts +11 -0
- package/types/image/ImagePreview.d.ts +24 -0
- package/types/image/KImage.d.ts +21 -0
- package/types/image/imageProps.d.ts +19 -0
- package/types/image/instance.d.ts +19 -0
- package/types/index.d.ts +188 -0
- package/types/input/Input.d.ts +31 -0
- package/types/input/InputGroup.d.ts +17 -0
- package/types/input/TextArea.d.ts +16 -0
- package/types/inputNumber/InputNumber.d.ts +33 -0
- package/types/layout/layout.d.ts +13 -0
- package/types/layout/prop.d.ts +13 -0
- package/types/loading/Loading.d.ts +11 -0
- package/types/menu/Menu.d.ts +21 -0
- package/types/menu/MenuDivider.d.ts +11 -0
- package/types/menu/MenuGroup.d.ts +13 -0
- package/types/menu/MenuItem.d.ts +15 -0
- package/types/menu/SubMenu.d.ts +15 -0
- package/types/menu/show.d.ts +15 -0
- package/types/message/group.d.ts +13 -0
- package/types/message/inner.d.ts +24 -0
- package/types/modal/Modal.d.ts +31 -0
- package/types/page/Page.d.ts +26 -0
- package/types/popconfirm/Popconfirm.d.ts +21 -0
- package/types/poptip/Poptip.d.ts +22 -0
- package/types/progress/Progress.d.ts +33 -0
- package/types/radio/Radio.d.ts +19 -0
- package/types/radio/RadioButton.d.ts +18 -0
- package/types/radio/RadioGroup.d.ts +23 -0
- package/types/rate/Rate.d.ts +26 -0
- package/types/rate/Star.d.ts +22 -0
- package/types/select/Option.d.ts +15 -0
- package/types/select/Select.d.ts +38 -0
- package/types/skeleton/Skeleton.d.ts +21 -0
- package/types/skeleton/SkeletonAvatar.d.ts +19 -0
- package/types/skeleton/SkeletonButton.d.ts +20 -0
- package/types/skeleton/SkeletonImage.d.ts +18 -0
- package/types/skeleton/SkeletonText.d.ts +18 -0
- package/types/slider/Slider.d.ts +29 -0
- package/types/slider/thumb.d.ts +24 -0
- package/types/space/Space.d.ts +18 -0
- package/types/spin/Spin.d.ts +20 -0
- package/types/switch/KSwitch.d.ts +20 -0
- package/types/switch/Switch.d.ts +20 -0
- package/types/table/ExtendTable.d.ts +21 -0
- package/types/table/Table.d.ts +24 -0
- package/types/table/extend.d.ts +21 -0
- package/types/tabs/TabPanel.d.ts +17 -0
- package/types/tabs/Tabs.d.ts +18 -0
- package/types/tag/Tag.d.ts +18 -0
- package/types/timeline/TimeLine.d.ts +14 -0
- package/types/timeline/TimeLineItem.d.ts +16 -0
- package/types/tooltip/Tooltip.d.ts +23 -0
- package/types/tree/Tree.d.ts +28 -0
- package/types/tree/TreeNode.d.ts +17 -0
- package/types/treeselect/TreeSelect.d.ts +41 -0
- package/types/upload/Upload.d.ts +39 -0
- package/README.md +0 -106
- package/components/_tool/directives.js +0 -31
- package/components/_tool/number.js +0 -177
- package/components/bin/index.js +0 -3
- package/components/button/demo/normal.md +0 -41
- package/components/button/demo/solid.md +0 -16
- package/components/colorPicker/canvasHelper.js +0 -274
- package/components/colorPicker/demo/shape.md +0 -36
- package/components/tabs/tabpane.jsx +0 -25
- package/dist/k-ui.js +0 -9
- package/dist/locale/zhCN.js +0 -9
- package/dist/locale/zhTW.js +0 -9
- package/test/i18n@6.x.html +0 -52
- /package/components/{_tool → directives}/outsiteclick.js +0 -0
- /package/components/{_tool → directives}/resize.js +0 -0
- /package/components/{_tool → directives}/scroll.js +0 -0
- /package/components/{_tool → directives}/transfer.js +0 -0
- /package/components/menu/demo/{accrodion.md → accordion.md} +0 -0
- /package/components/modal/demo/{confrim.md → confirm.md} +0 -0
- /package/components/{_tool → utils}/docClick.js +0 -0
|
@@ -1,26 +1,27 @@
|
|
|
1
|
-
import Option from
|
|
1
|
+
import Option from "./option";
|
|
2
2
|
import Icon from "../icon";
|
|
3
|
-
import Empty from
|
|
4
|
-
import { hasProp,
|
|
3
|
+
import Empty from "../empty";
|
|
4
|
+
import { hasProp, getChildren, isNotEmpty, isEmpty } from "../utils/element";
|
|
5
5
|
|
|
6
|
-
import Drop from
|
|
7
|
-
import { t } from
|
|
8
|
-
import {
|
|
6
|
+
import Drop from "../base/drop";
|
|
7
|
+
import { t } from "../locale";
|
|
8
|
+
import { Loading, Close, CloseCircle, ChevronDown } from "kui-icons";
|
|
9
|
+
import { withInstall } from '../utils/vue'
|
|
9
10
|
|
|
10
|
-
|
|
11
|
+
const Select = {
|
|
11
12
|
name: "Select",
|
|
12
13
|
props: {
|
|
13
14
|
placeholder: String,
|
|
14
15
|
size: {
|
|
15
|
-
default:
|
|
16
|
+
default: "default",
|
|
16
17
|
validator(value) {
|
|
17
18
|
return ["small", "large", "default"].indexOf(value) >= 0;
|
|
18
|
-
}
|
|
19
|
+
},
|
|
19
20
|
},
|
|
20
21
|
transfer: { type: Boolean, default: true },
|
|
21
22
|
width: Number,
|
|
22
23
|
value: [String, Number, Array],
|
|
23
|
-
clearable: Boolean,
|
|
24
|
+
clearable: { type: Boolean, default: false },
|
|
24
25
|
filterable: Boolean,
|
|
25
26
|
disabled: Boolean,
|
|
26
27
|
multiple: Boolean,
|
|
@@ -33,109 +34,81 @@ export default {
|
|
|
33
34
|
icon: [String, Array],
|
|
34
35
|
shape: String,
|
|
35
36
|
arrowIcon: [String, Array],
|
|
37
|
+
maxTagCount: Number,
|
|
38
|
+
extendWidth: { type: Boolean, default: true },
|
|
36
39
|
},
|
|
37
40
|
provide() {
|
|
38
41
|
return {
|
|
39
|
-
Select: this
|
|
40
|
-
}
|
|
42
|
+
Select: this,
|
|
43
|
+
};
|
|
41
44
|
},
|
|
42
45
|
data() {
|
|
43
46
|
return {
|
|
44
47
|
label: "",
|
|
45
48
|
opened: false,
|
|
46
|
-
currentValue: this.value ||
|
|
49
|
+
currentValue: this.value || "",
|
|
47
50
|
showSearch: false,
|
|
48
|
-
queryKey:
|
|
51
|
+
queryKey: "",
|
|
49
52
|
selectWidth: this.width,
|
|
50
|
-
isFocus: false
|
|
53
|
+
isFocus: false,
|
|
51
54
|
};
|
|
52
55
|
},
|
|
53
56
|
watch: {
|
|
54
57
|
value(value) {
|
|
55
58
|
if (isNotEmpty(value)) {
|
|
56
|
-
this.currentValue = value
|
|
59
|
+
this.currentValue = value;
|
|
57
60
|
} else {
|
|
58
|
-
this.currentValue = this.multiple ? [] :
|
|
61
|
+
this.currentValue = this.multiple ? [] : "";
|
|
59
62
|
}
|
|
60
63
|
},
|
|
61
|
-
currentValue(n, o) {
|
|
62
|
-
this.setLabel()
|
|
63
|
-
}
|
|
64
64
|
},
|
|
65
65
|
methods: {
|
|
66
66
|
hideDrop() {
|
|
67
67
|
if (this.showSearch) {
|
|
68
|
-
this.queryKey =
|
|
69
|
-
this.$refs.search.value =
|
|
70
|
-
this.$refs.search.style.width =
|
|
68
|
+
this.queryKey = "";
|
|
69
|
+
this.$refs.search.value = "";
|
|
70
|
+
this.$refs.search.style.width = "";
|
|
71
71
|
}
|
|
72
|
-
this.showSearch = false
|
|
72
|
+
this.showSearch = false;
|
|
73
73
|
},
|
|
74
|
-
getLabel(
|
|
75
|
-
let Label =
|
|
76
|
-
|
|
77
|
-
let { value, label } = c.componentOptions.propsData
|
|
74
|
+
getLabel(children, labelValue) {
|
|
75
|
+
let Label = null;
|
|
76
|
+
children.forEach((c) => {
|
|
77
|
+
let { value, label } = c.componentOptions.propsData;
|
|
78
78
|
if (labelValue === value) {
|
|
79
|
-
Label = label || (c.componentOptions.children[0].text ||
|
|
79
|
+
Label = label || (c.componentOptions.children[0].text || "").trim();
|
|
80
80
|
return;
|
|
81
81
|
}
|
|
82
|
-
})
|
|
83
|
-
return Label
|
|
84
|
-
},
|
|
85
|
-
setLabel() {
|
|
86
|
-
let { currentValue, multiple, label } = this
|
|
87
|
-
|
|
88
|
-
currentValue = isNotEmpty(currentValue) ? currentValue : (multiple ? [] : '')
|
|
89
|
-
let currentLabel = isNotEmpty(label) ? label : (multiple ? [] : '')
|
|
90
|
-
|
|
91
|
-
let childs = this.getOptions()
|
|
92
|
-
if (multiple) {
|
|
93
|
-
if (currentValue.length) {
|
|
94
|
-
let labels = []
|
|
95
|
-
currentValue.forEach((value) => {
|
|
96
|
-
let label = this.getLabel(childs, value)
|
|
97
|
-
labels.push({ label, key: `label_${value}`, value })
|
|
98
|
-
})
|
|
99
|
-
currentLabel = labels
|
|
100
|
-
} else {
|
|
101
|
-
currentLabel = []
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
} else {
|
|
105
|
-
currentLabel = this.getLabel(childs, currentValue)
|
|
106
|
-
}
|
|
107
|
-
this.label = currentLabel
|
|
108
|
-
|
|
109
|
-
setTimeout(e => { this.setPosition() }, 230);
|
|
110
|
-
|
|
82
|
+
});
|
|
83
|
+
return Label;
|
|
111
84
|
},
|
|
112
85
|
clear(e) {
|
|
113
|
-
let label = this.multiple ? [] : ""
|
|
114
|
-
let value = this.multiple ? [] : ""
|
|
115
|
-
this.label = label
|
|
116
|
-
this.currentValue = value
|
|
86
|
+
let label = this.multiple ? [] : "";
|
|
87
|
+
let value = this.multiple ? [] : "";
|
|
88
|
+
this.label = label;
|
|
89
|
+
this.currentValue = value;
|
|
117
90
|
this.$emit("input", value);
|
|
118
91
|
this.$emit("change", value);
|
|
119
|
-
e.stopPropagation()
|
|
92
|
+
e.stopPropagation();
|
|
120
93
|
},
|
|
121
94
|
showDrops() {
|
|
122
|
-
let isSearch =
|
|
95
|
+
let isSearch = "search" in this.$listeners;
|
|
123
96
|
|
|
124
97
|
this.opened = !this.opened;
|
|
125
98
|
if (this.filterable || isSearch) {
|
|
126
|
-
this.showSearch = this.opened
|
|
99
|
+
this.showSearch = this.opened;
|
|
127
100
|
if (this.opened) {
|
|
128
|
-
this.$nextTick(
|
|
129
|
-
this.isFocus = true
|
|
130
|
-
this.$refs.search.focus()
|
|
131
|
-
})
|
|
101
|
+
this.$nextTick(() => {
|
|
102
|
+
this.isFocus = true;
|
|
103
|
+
this.$refs.search.focus();
|
|
104
|
+
});
|
|
132
105
|
} else {
|
|
133
|
-
this.$refs.search.blur()
|
|
134
|
-
this.isFocus = false
|
|
106
|
+
this.$refs.search.blur();
|
|
107
|
+
this.isFocus = false;
|
|
135
108
|
|
|
136
109
|
setTimeout(() => {
|
|
137
|
-
this.queryKey =
|
|
138
|
-
this.$refs.search.value =
|
|
110
|
+
this.queryKey = "";
|
|
111
|
+
this.$refs.search.value = "";
|
|
139
112
|
}, 200);
|
|
140
113
|
}
|
|
141
114
|
}
|
|
@@ -145,273 +118,310 @@ export default {
|
|
|
145
118
|
if (this.disabled) {
|
|
146
119
|
return false;
|
|
147
120
|
}
|
|
148
|
-
let isSearch =
|
|
121
|
+
let isSearch = "search" in this.$listeners;
|
|
149
122
|
if (isSearch) {
|
|
150
|
-
|
|
151
|
-
this
|
|
152
|
-
|
|
153
|
-
this
|
|
154
|
-
|
|
155
|
-
})
|
|
156
|
-
// })
|
|
123
|
+
this.showSearch = true;
|
|
124
|
+
this.$nextTick(() => {
|
|
125
|
+
this.$refs.search.focus();
|
|
126
|
+
this.isFocus = true;
|
|
127
|
+
});
|
|
157
128
|
return;
|
|
158
129
|
}
|
|
159
|
-
this.showDrops()
|
|
130
|
+
this.showDrops();
|
|
160
131
|
},
|
|
161
132
|
setPosition() {
|
|
162
|
-
// if (!hasProp(this, 'width')) {
|
|
163
|
-
// this.selectWidth = this.$el.offsetWidth
|
|
164
|
-
// }
|
|
165
133
|
if (this.opened) {
|
|
166
|
-
this.$refs.overlay.setPosition()
|
|
134
|
+
this.$refs.overlay.setPosition();
|
|
167
135
|
}
|
|
168
136
|
},
|
|
169
137
|
change(item) {
|
|
170
|
-
let { multiple, value, currentValue } = this
|
|
138
|
+
let { multiple, value, currentValue } = this;
|
|
171
139
|
// console.log(value, currentValue)
|
|
172
140
|
|
|
173
141
|
if (this.showSearch) {
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
142
|
+
setTimeout(() => {
|
|
143
|
+
this.queryKey = "";
|
|
144
|
+
this.$refs.search.value = "";
|
|
145
|
+
this.$refs.search.style.width = "";
|
|
146
|
+
}, 300);
|
|
177
147
|
}
|
|
178
148
|
if (!multiple) {
|
|
179
|
-
this.opened = false
|
|
180
|
-
this.showSearch = false
|
|
181
|
-
} else if (
|
|
182
|
-
this.$nextTick(
|
|
183
|
-
this.$refs.search.focus()
|
|
184
|
-
this.isFocus = true
|
|
185
|
-
|
|
186
|
-
})
|
|
149
|
+
this.opened = false;
|
|
150
|
+
this.showSearch = false;
|
|
151
|
+
} else if ("search" in this.$listeners || this.filterable) {
|
|
152
|
+
this.$nextTick(() => {
|
|
153
|
+
this.$refs.search.focus();
|
|
154
|
+
this.isFocus = true;
|
|
155
|
+
});
|
|
187
156
|
}
|
|
188
|
-
let hasValue = hasProp(this,
|
|
157
|
+
let hasValue = hasProp(this, "value");
|
|
189
158
|
//set value
|
|
190
159
|
if (multiple) {
|
|
191
160
|
if (!hasValue) {
|
|
192
|
-
value = currentValue || []
|
|
161
|
+
value = currentValue || [];
|
|
193
162
|
}
|
|
194
|
-
let index = value.indexOf(item.value)
|
|
163
|
+
let index = value.indexOf(item.value);
|
|
195
164
|
if (index === -1) {
|
|
196
|
-
value.push(item.value)
|
|
165
|
+
value.push(item.value);
|
|
197
166
|
} else {
|
|
198
|
-
value.splice(index, 1)
|
|
167
|
+
value.splice(index, 1);
|
|
199
168
|
}
|
|
200
169
|
} else {
|
|
201
|
-
value = item.value
|
|
170
|
+
value = item.value;
|
|
202
171
|
}
|
|
203
|
-
this.currentValue = value
|
|
172
|
+
this.currentValue = value;
|
|
204
173
|
|
|
205
174
|
//set label
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
let currentLabel = this.label || []
|
|
209
|
-
let index = currentLabel.findIndex(x => x.value === item.value)// .map(x => x.label).indexOf(item.label)
|
|
210
|
-
if (index === -1) {
|
|
211
|
-
currentLabel.push({ label: item.label, key: item.label + item.value, value: item.value })
|
|
212
|
-
} else {
|
|
213
|
-
currentLabel.splice(index, 1)
|
|
214
|
-
}
|
|
215
|
-
this.label = currentLabel
|
|
216
|
-
} else {
|
|
217
|
-
this.label = item.label
|
|
218
|
-
}
|
|
219
|
-
setTimeout(e => { this.setPosition() }, 230);
|
|
220
|
-
} else {
|
|
221
|
-
this.$nextTick(e => this.setPosition())
|
|
222
|
-
}
|
|
175
|
+
|
|
176
|
+
this.$nextTick(() => this.setPosition());
|
|
223
177
|
this.$emit("input", value);
|
|
224
178
|
this.$emit("change", item);
|
|
225
179
|
},
|
|
226
|
-
removeTag(e,
|
|
227
|
-
if (this.disabled) return
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
this.change({ value: values[i], label: labels[i].label })
|
|
231
|
-
e.stopPropagation()
|
|
180
|
+
removeTag(e, c) {
|
|
181
|
+
if (this.disabled) return;
|
|
182
|
+
this.change({ value: c.value, label: c.label });
|
|
183
|
+
e.stopPropagation();
|
|
232
184
|
},
|
|
233
185
|
searchInput(e) {
|
|
234
|
-
this.queryKey = e.target.value
|
|
186
|
+
this.queryKey = e.target.value;
|
|
235
187
|
//todo:
|
|
236
|
-
this.$nextTick(
|
|
188
|
+
this.$nextTick(() => {
|
|
237
189
|
// let max = this.selectWidth - 15 - (this.showArrow ? 25 : 0)
|
|
238
|
-
e.target.style.width = this.$refs.mirror.offsetWidth +
|
|
239
|
-
this.setPosition()
|
|
240
|
-
})
|
|
241
|
-
if (
|
|
242
|
-
clearTimeout(this.timer)
|
|
190
|
+
e.target.style.width = this.$refs.mirror.offsetWidth + "px";
|
|
191
|
+
this.setPosition();
|
|
192
|
+
});
|
|
193
|
+
if ("search" in this.$listeners) {
|
|
194
|
+
clearTimeout(this.timer);
|
|
243
195
|
this.timer = setTimeout(() => {
|
|
244
196
|
this.opened = true;
|
|
245
|
-
this.$emit(
|
|
197
|
+
this.$emit("search", e);
|
|
246
198
|
}, 500);
|
|
247
199
|
}
|
|
248
200
|
},
|
|
249
|
-
emptyClick(
|
|
201
|
+
emptyClick() {
|
|
250
202
|
if (this.showSearch) {
|
|
251
|
-
this.$nextTick(
|
|
252
|
-
this.$refs.search.focus()
|
|
253
|
-
this.isFocus = true
|
|
254
|
-
|
|
255
|
-
})
|
|
203
|
+
this.$nextTick(() => {
|
|
204
|
+
this.$refs.search.focus();
|
|
205
|
+
this.isFocus = true;
|
|
206
|
+
});
|
|
256
207
|
}
|
|
257
208
|
},
|
|
258
|
-
getOptions() {
|
|
259
|
-
let { queryKey, options, $slots } = this
|
|
260
|
-
let
|
|
209
|
+
getOptions(filterable) {
|
|
210
|
+
let { queryKey, options, $slots } = this;
|
|
211
|
+
let children = null;
|
|
261
212
|
if (Array.isArray(options)) {
|
|
262
|
-
|
|
213
|
+
children = options.map((k) => {
|
|
263
214
|
let prop = {
|
|
264
215
|
props: { ...k },
|
|
265
|
-
key: k.key ||
|
|
266
|
-
}
|
|
267
|
-
return <Option {...prop}
|
|
268
|
-
})
|
|
216
|
+
key: k.key || k.label + k.value,
|
|
217
|
+
};
|
|
218
|
+
return <Option {...prop} />;
|
|
219
|
+
});
|
|
269
220
|
} else {
|
|
270
|
-
|
|
221
|
+
children = getChildren($slots.default);
|
|
271
222
|
}
|
|
223
|
+
if (!filterable) return children;
|
|
224
|
+
|
|
272
225
|
if (this.filterable && queryKey && !this.$listeners.search) {
|
|
273
226
|
let parsedQuery = String(queryKey).replace(/(\^|\(|\)|\[|\]|\$|\*|\+|\.|\?|\\|\{|\}|\|)/g, "\\$1");
|
|
274
|
-
let Reg = new RegExp(parsedQuery,
|
|
227
|
+
let Reg = new RegExp(parsedQuery, "i");
|
|
275
228
|
|
|
276
|
-
|
|
277
|
-
let label = c.componentOptions.propsData.label || c.componentOptions.children[0].text
|
|
278
|
-
return Reg.test(label)
|
|
279
|
-
})
|
|
229
|
+
children = children.filter((c) => {
|
|
230
|
+
let label = c.componentOptions.propsData.label || c.componentOptions.children[0].text;
|
|
231
|
+
return Reg.test(label);
|
|
232
|
+
});
|
|
280
233
|
}
|
|
281
|
-
return
|
|
282
|
-
}
|
|
283
|
-
},
|
|
284
|
-
mounted() {
|
|
285
|
-
if (hasProp(this, 'value'))
|
|
286
|
-
this.setLabel()
|
|
234
|
+
return children;
|
|
235
|
+
},
|
|
287
236
|
},
|
|
288
237
|
render() {
|
|
289
|
-
let { disabled, size, multiple,
|
|
290
|
-
|
|
291
|
-
clear, removeTag, queryKey, theme, arrowIcon, icon, shape, filterable,
|
|
292
|
-
clearable, label, toggleDrop, isFocus } = this
|
|
293
|
-
let childNode = []
|
|
238
|
+
let { disabled, size, multiple, opened, placeholder, currentValue, showArrow, bordered, clear, removeTag, queryKey, theme, arrowIcon, icon, shape, filterable, clearable, toggleDrop, isFocus } = this;
|
|
239
|
+
let childNode = [];
|
|
294
240
|
if (arrowIcon == undefined) {
|
|
295
|
-
arrowIcon = ChevronDown
|
|
241
|
+
arrowIcon = ChevronDown;
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
let children = this.getOptions();
|
|
245
|
+
|
|
246
|
+
let label = null;
|
|
247
|
+
let values = isNotEmpty(currentValue) ? currentValue : multiple ? [] : "";
|
|
248
|
+
if (multiple) {
|
|
249
|
+
if (currentValue.length) {
|
|
250
|
+
let labels = [];
|
|
251
|
+
values.forEach((value) => {
|
|
252
|
+
let label = this.getLabel(children, value);
|
|
253
|
+
if (!label) return;
|
|
254
|
+
labels.push({ label, key: `label_${value}`, value });
|
|
255
|
+
});
|
|
256
|
+
label = labels;
|
|
257
|
+
} else {
|
|
258
|
+
label = [];
|
|
259
|
+
}
|
|
260
|
+
} else {
|
|
261
|
+
label = this.getLabel(children, values);
|
|
296
262
|
}
|
|
263
|
+
|
|
297
264
|
const classes = [
|
|
298
265
|
"k-select",
|
|
299
266
|
{
|
|
300
267
|
"k-select-disabled": disabled,
|
|
301
268
|
"k-select-open": opened,
|
|
302
|
-
|
|
303
|
-
"k-select-lg": size ==
|
|
304
|
-
"k-select-sm": size ==
|
|
305
|
-
"k-select-light": theme ==
|
|
269
|
+
"k-select-borderless": bordered === false,
|
|
270
|
+
"k-select-lg": size == "large",
|
|
271
|
+
"k-select-sm": size == "small",
|
|
272
|
+
"k-select-light": theme == "light",
|
|
306
273
|
"k-select-has-icon": !!icon,
|
|
307
|
-
"k-select-circle": shape ==
|
|
274
|
+
"k-select-circle": shape == "circle" && !multiple,
|
|
308
275
|
"k-select-multiple": multiple,
|
|
309
276
|
"k-select-show-search": isFocus,
|
|
310
|
-
"k-select-show-tags": multiple && (label || []).length
|
|
311
|
-
}
|
|
312
|
-
]
|
|
277
|
+
"k-select-show-tags": multiple && (label || []).length,
|
|
278
|
+
},
|
|
279
|
+
];
|
|
313
280
|
|
|
314
281
|
const queryProps = {
|
|
315
282
|
on: {
|
|
316
283
|
input: this.searchInput,
|
|
317
284
|
blur: () => {
|
|
318
|
-
if (!this.opened) this.showSearch = false
|
|
319
|
-
this.isFocus = false
|
|
320
|
-
|
|
321
|
-
}
|
|
285
|
+
if (!this.opened) this.showSearch = false;
|
|
286
|
+
this.isFocus = false;
|
|
287
|
+
},
|
|
322
288
|
},
|
|
323
|
-
ref:
|
|
324
|
-
class:
|
|
289
|
+
ref: "search",
|
|
290
|
+
class: "k-select-search",
|
|
325
291
|
attrs: {
|
|
326
|
-
autoComplete:
|
|
327
|
-
}
|
|
328
|
-
}
|
|
329
|
-
const queryNode =
|
|
330
|
-
<
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
292
|
+
autoComplete: "off",
|
|
293
|
+
},
|
|
294
|
+
};
|
|
295
|
+
const queryNode = (
|
|
296
|
+
<div v-show={this.showSearch} key="search" class="k-select-search-wrap">
|
|
297
|
+
<input {...queryProps} type="text" />
|
|
298
|
+
<span class="k-select-search-mirror" ref="mirror">
|
|
299
|
+
{queryKey}
|
|
300
|
+
</span>
|
|
301
|
+
</div>
|
|
302
|
+
);
|
|
335
303
|
|
|
336
|
-
const loadingNode =
|
|
304
|
+
const loadingNode = (
|
|
305
|
+
<div class="k-select-loading">
|
|
306
|
+
<Icon type={Loading} spin />
|
|
307
|
+
<span>{t("k.select.loading")}</span>
|
|
308
|
+
</div>
|
|
309
|
+
);
|
|
337
310
|
const props = {
|
|
338
|
-
ref:
|
|
311
|
+
ref: "overlay",
|
|
339
312
|
props: {
|
|
340
313
|
width: this.selectWidth,
|
|
341
314
|
value: opened,
|
|
342
315
|
selection: this.$el,
|
|
343
316
|
transfer: true,
|
|
344
|
-
extendWidth:
|
|
345
|
-
transitionName:
|
|
346
|
-
className: [
|
|
317
|
+
extendWidth: this.extendWidth,
|
|
318
|
+
transitionName: "k-select",
|
|
319
|
+
className: [
|
|
320
|
+
"k-select-dropdown",
|
|
321
|
+
{
|
|
322
|
+
"k-select-dropdown-multiple": this.multiple,
|
|
323
|
+
"k-select-dropdown-sm": size == "small",
|
|
324
|
+
},
|
|
325
|
+
],
|
|
347
326
|
},
|
|
348
327
|
on: {
|
|
349
|
-
input: e => {
|
|
350
|
-
this.opened = e
|
|
328
|
+
input: (e) => {
|
|
329
|
+
this.opened = e;
|
|
351
330
|
},
|
|
352
331
|
hide: () => {
|
|
353
|
-
this.opened = false
|
|
332
|
+
this.opened = false;
|
|
354
333
|
setTimeout(() => {
|
|
355
|
-
this.hideDrop()
|
|
356
|
-
}, 300)
|
|
357
|
-
}
|
|
358
|
-
}
|
|
359
|
-
}
|
|
360
|
-
|
|
334
|
+
this.hideDrop();
|
|
335
|
+
}, 300);
|
|
336
|
+
},
|
|
337
|
+
},
|
|
338
|
+
};
|
|
339
|
+
children = this.getOptions(true);
|
|
361
340
|
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
)
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
341
|
+
let overlay = <Drop {...props}>{this.loading ? loadingNode : !children.length ? <Empty onClick={this.emptyClick} description={this.emptyText} /> : <ul>{children}</ul>}</Drop>;
|
|
342
|
+
|
|
343
|
+
label = multiple ? label || [] : label;
|
|
344
|
+
placeholder = placeholder || t("k.select.placeholder");
|
|
345
|
+
// console.log('placeholder:', placeholder)
|
|
346
|
+
// console.log('label:', label)
|
|
347
|
+
// console.log('queryKey:', queryKey)
|
|
348
|
+
const placeNode = (placeholder && isEmpty(label) && !queryKey) ? <div class="k-select-placeholder">{placeholder}</div> : null;
|
|
349
|
+
// console.log('???:', placeholder, !isEmpty(label), !queryKey)
|
|
350
|
+
// console.log('placeNode:', placeNode)
|
|
351
|
+
const renderTags = () => {
|
|
352
|
+
if (!multiple) return null;
|
|
353
|
+
let tags = label.map((c) => {
|
|
354
|
+
return (
|
|
355
|
+
<span class="k-select-tag" key={c.key}>
|
|
356
|
+
{c.label}
|
|
357
|
+
<Icon type={Close} onClick={(e) => removeTag(e, c)} />
|
|
358
|
+
</span>
|
|
359
|
+
);
|
|
371
360
|
})
|
|
372
|
-
|
|
361
|
+
if (
|
|
362
|
+
this.maxTagCount &&
|
|
363
|
+
this.maxTagCount > 0 &&
|
|
364
|
+
tags.length > this.maxTagCount
|
|
365
|
+
) {
|
|
366
|
+
tags = tags.slice(0, this.maxTagCount);
|
|
367
|
+
tags.push(
|
|
368
|
+
<span class="k-select-tag">
|
|
369
|
+
+{label.length - this.maxTagCount}...
|
|
370
|
+
</span>
|
|
371
|
+
);
|
|
372
|
+
}
|
|
373
|
+
return tags;
|
|
373
374
|
|
|
374
|
-
const labelStyle = {
|
|
375
|
-
// opacity: this.showSearch ? .4 : 1,
|
|
376
|
-
display: queryKey.length ? 'none' : ''
|
|
377
375
|
}
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
376
|
+
|
|
377
|
+
const labelStyle = {
|
|
378
|
+
display: queryKey.length ? "none" : "",
|
|
379
|
+
};
|
|
380
|
+
const labelsNode = multiple ? (
|
|
381
|
+
[
|
|
382
|
+
<div class="k-select-labels" name="k-select-tag">
|
|
383
|
+
{renderTags()}
|
|
384
|
+
{queryNode}
|
|
385
|
+
</div>,
|
|
386
|
+
]
|
|
387
|
+
) : label ? (
|
|
388
|
+
<div class="k-select-label" style={labelStyle}>
|
|
389
|
+
{label}
|
|
390
|
+
</div>
|
|
391
|
+
) : null;
|
|
392
|
+
let isSearch = "search" in this.$listeners;
|
|
385
393
|
childNode.push(labelsNode);
|
|
394
|
+
// console.log(placeNode)
|
|
386
395
|
placeNode && childNode.push(placeNode);
|
|
387
396
|
|
|
388
|
-
|
|
389
397
|
if ((filterable || isSearch) && !multiple) {
|
|
390
|
-
childNode.push(queryNode)
|
|
398
|
+
childNode.push(queryNode);
|
|
391
399
|
}
|
|
392
400
|
// label = "1"
|
|
393
|
-
const styles = { width: `${this.width}px` }
|
|
394
|
-
let showClear = !disabled && clearable && isNotEmpty(label) && label.length > 0
|
|
401
|
+
const styles = { width: `${this.width}px` };
|
|
402
|
+
let showClear = !disabled && clearable && isNotEmpty(label) && label.length > 0;
|
|
395
403
|
|
|
396
|
-
classes[1][
|
|
397
|
-
const iconNodes = []
|
|
404
|
+
classes[1]["k-select-has-clear"] = showClear;
|
|
405
|
+
const iconNodes = [];
|
|
398
406
|
|
|
399
407
|
if (!isSearch && showArrow) {
|
|
400
|
-
iconNodes.push(<Icon class="k-select-arrow" type={arrowIcon} />)
|
|
408
|
+
iconNodes.push(<Icon class="k-select-arrow" type={arrowIcon} />);
|
|
401
409
|
}
|
|
402
410
|
if (showClear) {
|
|
403
|
-
iconNodes.push(<Icon class="k-select-clearable" type={CloseCircle} onClick={clear} />)
|
|
411
|
+
iconNodes.push(<Icon class="k-select-clearable" type={CloseCircle} onClick={clear} />);
|
|
404
412
|
}
|
|
405
413
|
// console.log(iconNodes)
|
|
406
414
|
|
|
407
|
-
iconNodes.push(" ")
|
|
415
|
+
iconNodes.push(" ");
|
|
408
416
|
return (
|
|
409
417
|
<div tabIndex="0" class={classes} style={styles} onClick={toggleDrop} ref="rel">
|
|
410
418
|
{icon ? <Icon type={icon} class="k-select-icon" /> : null}
|
|
411
419
|
<div class="k-select-selection">{childNode}</div>
|
|
412
420
|
{iconNodes}
|
|
413
421
|
{overlay}
|
|
414
|
-
</div
|
|
415
|
-
)
|
|
416
|
-
}
|
|
422
|
+
</div>
|
|
423
|
+
);
|
|
424
|
+
},
|
|
417
425
|
};
|
|
426
|
+
|
|
427
|
+
export default withInstall(Select);
|