vue-devui 1.0.0-rc.14 → 1.0.0-rc.17
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 +3 -0
- package/alert/index.umd.js +1 -1
- package/auto-complete/index.es.js +92 -81
- package/auto-complete/index.umd.js +24 -13
- package/auto-complete/style.css +1 -1
- package/avatar/index.umd.js +1 -1
- package/badge/index.umd.js +1 -1
- package/button/index.es.js +21 -42
- package/button/index.umd.js +9 -9
- package/button/style.css +1 -1
- package/card/index.umd.js +1 -1
- package/checkbox/index.es.js +96 -77
- package/checkbox/index.umd.js +26 -15
- package/collapse/index.es.js +3 -21
- package/collapse/index.umd.js +1 -1
- package/countdown/index.umd.js +1 -1
- package/date-picker-pro/index.es.js +133 -114
- package/date-picker-pro/index.umd.js +23 -12
- package/date-picker-pro/style.css +1 -1
- package/drawer/index.es.js +5 -18
- package/drawer/index.umd.js +1 -1
- package/dropdown/index.es.js +6 -31
- package/dropdown/index.umd.js +1 -1
- package/editable-select/index.es.js +104 -99
- package/editable-select/index.umd.js +1 -1
- package/editable-select/style.css +1 -1
- package/form/index.es.js +87 -71
- package/form/index.umd.js +22 -11
- package/fullscreen/index.umd.js +1 -1
- package/grid/index.es.js +7 -20
- package/grid/index.umd.js +1 -1
- package/icon/index.umd.js +1 -1
- package/image-preview/index.es.js +12 -23
- package/image-preview/index.umd.js +1 -1
- package/input/index.es.js +88 -72
- package/input/index.umd.js +24 -13
- package/input-number/index.es.js +1 -16
- package/input-number/index.umd.js +1 -1
- package/layout/index.umd.js +1 -1
- package/loading/index.es.js +15 -38
- package/loading/index.umd.js +1 -1
- package/loading/style.css +1 -1
- package/mention/index.d.ts +7 -0
- package/mention/index.es.js +8326 -0
- package/mention/index.umd.js +47 -0
- package/mention/package.json +7 -0
- package/mention/style.css +1 -0
- package/menu/index.d.ts +7 -0
- package/menu/index.es.js +927 -0
- package/menu/index.umd.js +1 -0
- package/menu/package.json +7 -0
- package/menu/style.css +1 -0
- package/message/index.d.ts +7 -0
- package/message/index.es.js +533 -0
- package/message/index.umd.js +1 -0
- package/message/package.json +7 -0
- package/message/style.css +1 -0
- package/modal/index.es.js +14 -44
- package/modal/index.umd.js +1 -1
- package/notification/index.es.js +16 -22
- package/notification/index.umd.js +1 -1
- package/nuxt/components/Mention.js +3 -0
- package/nuxt/components/Menu.js +3 -0
- package/nuxt/components/MenuItem.js +3 -0
- package/nuxt/components/Message.js +3 -0
- package/nuxt/components/SubMenu.js +3 -0
- package/nuxt/components/animationInjectionKey.js +3 -0
- package/nuxt/components/mentionProps.js +3 -0
- package/nuxt/components/messageProps.js +3 -0
- package/nuxt/components/roundInjectionKey.js +3 -0
- package/nuxt/components/skeletonItemProps.js +3 -0
- package/nuxt/components/treeNodeProps.js +3 -0
- package/overlay/index.es.js +1 -1
- package/overlay/index.umd.js +1 -1
- package/package.json +5 -3
- package/pagination/index.umd.js +1 -1
- package/panel/index.umd.js +1 -1
- package/popover/index.es.js +3 -1
- package/popover/index.umd.js +6 -6
- package/progress/index.umd.js +3 -3
- package/radio/index.es.js +93 -75
- package/radio/index.umd.js +27 -16
- package/radio/style.css +1 -1
- package/rate/index.umd.js +1 -1
- package/result/index.umd.js +1 -1
- package/ripple/index.es.js +5 -18
- package/ripple/index.umd.js +1 -1
- package/search/index.es.js +104 -75
- package/search/index.umd.js +26 -15
- package/search/style.css +1 -1
- package/select/index.es.js +132 -111
- package/select/index.umd.js +26 -15
- package/select/style.css +1 -1
- package/skeleton/index.es.js +87 -261
- package/skeleton/index.umd.js +1 -1
- package/skeleton/style.css +1 -1
- package/slider/index.umd.js +1 -1
- package/splitter/index.es.js +22 -29
- package/splitter/index.umd.js +9 -9
- package/statistic/index.es.js +0 -21
- package/statistic/index.umd.js +1 -1
- package/status/index.umd.js +1 -1
- package/steps/index.umd.js +1 -1
- package/style.css +1 -1
- package/switch/index.es.js +87 -71
- package/switch/index.umd.js +25 -14
- package/switch/style.css +1 -1
- package/table/index.es.js +153 -102
- package/table/index.umd.js +22 -11
- package/table/style.css +1 -1
- package/tabs/index.umd.js +1 -1
- package/tag/index.umd.js +1 -1
- package/textarea/index.es.js +91 -73
- package/textarea/index.umd.js +26 -15
- package/time-picker/index.es.js +99 -88
- package/time-picker/index.umd.js +25 -14
- package/time-picker/style.css +1 -1
- package/time-select/index.es.js +132 -111
- package/time-select/index.umd.js +25 -14
- package/time-select/style.css +1 -1
- package/timeline/index.umd.js +1 -1
- package/tooltip/index.es.js +1 -1
- package/tooltip/index.umd.js +4 -4
- package/tree/index.es.js +11148 -9855
- package/tree/index.umd.js +29 -18
- package/tree/style.css +1 -1
- package/upload/index.es.js +17 -48
- package/upload/index.umd.js +1 -1
- package/vue-devui.es.js +11421 -8832
- package/vue-devui.umd.js +34 -22
package/search/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.devui-icon__container{display:inline-block;color:var(--devui-icon-fill, #71757f)}.devui-icon__container>*:not(:last-child){vertical-align:middle;margin-right:8px}.devui-icon__container i{vertical-align:middle;transition:all var(--devui-animation-duration-slow, .3s) var(--devui-animation-ease-in-out-smooth, cubic-bezier(.645, .045, .355, 1))}.devui-icon--disabled{color:var(--devui-disabled-text, #adb0b8);cursor:not-allowed}.devui-icon--disabled i{color:var(--devui-disabled-text, #adb0b8)}.devui-icon--operable:not(.devui-icon--disabled){cursor:pointer;transition:color var(--devui-animation-duration-slow, .3s) var(--devui-animation-ease-in-out-smooth, cubic-bezier(.645, .045, .355, 1))}.devui-icon--operable:not(.devui-icon--disabled) i{cursor:pointer}.devui-icon--operable:hover:not(.devui-icon--disabled){color:var(--devui-icon-fill-hover, #252b3a)}.devui-icon--operable:hover:not(.devui-icon--disabled).devui-icon__container{background-color:var(--devui-icon-background-hover, var(--devui-list-item-hover-bg, #f2f2f3))}.devui-icon--operable:hover:not(.devui-icon--disabled) i{color:var(--devui-icon-fill-hover, #252b3a)}.devui-icon--operable:active:not(.devui-icon--disabled){color:var(--devui-icon-active-color, var(--devui-icon-fill-active, #252b3a))}.devui-icon--operable:active:not(.devui-icon--disabled).devui-icon__container{background-color:var(--devui-icon-background-active, var(--devui-list-item-active-bg, #f2f5fc))}.devui-icon--operable:active:not(.devui-icon--disabled) i{color:var(--devui-icon-active-color, var(--devui-icon-fill-active, #252b3a))}.devui-icon--operable.devui-icon__container{height:32px;line-height:32px;padding:0 8px;margin-left:-8px;border-radius:var(--devui-border-radius, 4px);transition:all var(--devui-animation-duration-slow, .3s) var(--devui-animation-ease-in-out-smooth, cubic-bezier(.645, .045, .355, 1))}.devui-icon--spin{animation:iconSpin 2.5s linear infinite}.devui-svg-icon{vertical-align:middle}@keyframes iconSpin{0%{transform:rotate(0)}50%{transform:rotate(180deg)}to{transform:rotate(360deg)}}.devui-fixed-overlay{position:fixed;top:0;right:0;bottom:0;left:0;background-color:var(--devui-shadow, rgba(37, 43, 58, .2));z-index:1050}.devui-fixed-overlay--fade-enter-active,.devui-fixed-overlay--fade-leave-active{transition:opacity .1s cubic-bezier(0,0,1,1)}.devui-fixed-overlay--fade-enter-from,.devui-fixed-overlay--fade-leave-to{opacity:0}.devui-flexible-overlay{position:fixed;border-radius:var(--devui-border-radius, 4px);background-color:var(--devui-connected-overlay-bg, #ffffff);box-shadow:var(--devui-shadow-length-connected-overlay, 0 4px 8px 0) var(--devui-shadow, rgba(37, 43, 58, .2));z-index:1000}.devui-flexible-overlay__arrow{position:absolute;width:8px;height:8px;transform:rotate(45deg);background-color:inherit}.devui-popover__icon-wrap{width:16px;height:16px;margin-right:8px}.devui-popover__icon-wrap .devui-popover__icon.devui-popover__icon--success>g>path{fill:var(--devui-success, #50d4ab)}.devui-popover__icon-wrap .devui-popover__icon.devui-popover__icon--success>g>circle,.devui-popover__icon-wrap .devui-popover__icon.devui-popover__icon--success>g>polygon{fill:var(--devui-light-text, #ffffff)}.devui-popover__icon-wrap .devui-popover__icon.devui-popover__icon--warning>g>path{fill:var(--devui-warning, #fac20a)}.devui-popover__icon-wrap .devui-popover__icon.devui-popover__icon--warning>g>polygon{fill:var(--devui-light-text, #ffffff)}.devui-popover__icon-wrap .devui-popover__icon.devui-popover__icon--info>g>g{fill:var(--devui-info, #5e7ce0)}.devui-popover__icon-wrap .devui-popover__icon.devui-popover__icon--info>g>circle{fill:var(--devui-light-text, #ffffff)}.devui-popover__icon-wrap .devui-popover__icon.devui-popover__icon--error>g>path{fill:var(--devui-danger, #f66f6a)}.devui-popover__icon-wrap .devui-popover__icon.devui-popover__icon--error>g>circle{fill:var(--devui-light-text, #ffffff)}.devui-popover__content.devui-flexible-overlay{display:flex;flex-wrap:wrap;align-items:center;white-space:nowrap;padding:4px 12px;line-height:1.5;border-radius:var(--devui-border-radius-feedback, 4px);color:var(--devui-feedback-overlay-text, #dfe1e6);background-color:var(--devui-feedback-overlay-bg, #464d6e);font-size:var(--devui-font-size-sm, 12px)}.devui-popover__content.devui-flexible-overlay.is-icon{flex-wrap:nowrap}.devui-popover--fade-bottom-enter-from,.devui-popover--fade-bottom-leave-to,.devui-popover--fade-top-enter-from,.devui-popover--fade-top-leave-to{opacity:.8;transform:scaleY(.8)}.devui-popover--fade-bottom-enter-to,.devui-popover--fade-bottom-leave-from,.devui-popover--fade-top-enter-to,.devui-popover--fade-top-leave-from{opacity:1;transform:scaleY(1)}.devui-popover--fade-bottom-enter-active,.devui-popover--fade-top-enter-active{transition:transform .1s cubic-bezier(.16,.75,.5,1),opacity .1s cubic-bezier(.16,.75,.5,1)}.devui-popover--fade-bottom-leave-active,.devui-popover--fade-top-leave-active{transition:transform .1s cubic-bezier(.5,0,.84,.25),opacity .1s cubic-bezier(.5,0,.84,.25)}.devui-popover--fade-left-enter-from,.devui-popover--fade-left-leave-to,.devui-popover--fade-right-enter-from,.devui-popover--fade-right-leave-to{opacity:.8;transform:scaleX(.8)}.devui-popover--fade-left-enter-to,.devui-popover--fade-left-leave-from,.devui-popover--fade-right-enter-to,.devui-popover--fade-right-leave-from{opacity:1;transform:scaleX(1)}.devui-popover--fade-left-enter-active,.devui-popover--fade-right-enter-active{transition:transform .1s cubic-bezier(.16,.75,.5,1),opacity .1s cubic-bezier(.16,.75,.5,1)}.devui-popover--fade-left-leave-active,.devui-popover--fade-right-leave-active{transition:transform .1s cubic-bezier(.5,0,.84,.25),opacity .1s cubic-bezier(.5,0,.84,.25)}.devui-form__label{align-self:flex-start}.devui-form__label--vertical{padding-bottom:8px}.devui-form__label--sm{flex:0 0 80px}.devui-form__label--md{flex:0 0 100px}.devui-form__label--lg{flex:0 0 150px}.devui-form__label--start{text-align:left}.devui-form__label--center{text-align:center}.devui-form__label--end{text-align:end}.devui-form__label-span{display:inline-block;vertical-align:middle;color:var(--devui-text, #252b3a)}.devui-form__label--required:before{content:"*";color:red;display:inline-block;margin-right:8px;margin-left:-12px}.devui-form__label-help{position:relative;top:-.1em;display:inline-block;vertical-align:middle;margin-left:4px;cursor:pointer}.devui-form__control{flex:1 1 auto;position:relative;width:100%}.devui-form__control--horizontal{margin-left:16px}.devui-form__control .devui-star{color:red}.devui-form__control .devui-form__control-container{position:relative}.devui-form__control .devui-form__control-container--horizontal{display:flex;width:100%}.devui-form__control .devui-form__control-container--horizontal .devui-validate-tip{margin:0}.devui-form__control .devui-form__control-container .devui-form__feedback-icon{position:absolute;top:50%;right:0;z-index:1;width:32px;height:16px;text-align:center;visibility:visible;pointer-events:none;transform:translateY(-50%);display:flex;align-items:center;justify-content:center}.devui-form__control .devui-form__control-container .devui-form__feedback-icon--error svg circle{fill:var(--devui-danger, #f66f6a)}.devui-form__control .devui-form__control-container .devui-form__feedback-icon--error svg polygon{fill:var(--devui-base-bg, #ffffff)}.devui-form__control .devui-form__control-container .devui-form__feedback-icon--success svg circle{fill:var(--devui-success, #50d4ab)}.devui-form__control .devui-form__control-container .devui-form__feedback-icon--success svg polygon{fill:var(--devui-base-bg, #ffffff)}.devui-form__control .devui-form__control-container .devui-form__feedback-icon--pending svg{animation:loading-keyframes 1s infinite linear}.devui-form__control .devui-form__control-container .devui-form__feedback-icon--pending svg path{fill:var(--devui-brand, #5e7ce0)}.devui-form__control .devui-form__control-content{width:100%}.devui-form__control .devui-form__control-container--has-feedback{display:flex;align-items:center}.devui-form__control .devui-form__control-container--has-feedback input{padding-right:28px}.devui-form__control .devui-form__control-container--feedback-error{border:1px solid #f66f6a;border-radius:2px}.devui-form__control .devui-form__control-container--feedback-error input{background-color:#ffeeed;border-color:transparent}.devui-form__control .devui-form__control-container--feedback-error input:hover{border-color:transparent!important}.devui-form__control .devui-form__control-container--feedback-error input:focus{border-color:transparent!important}.devui-form__control .devui-form__control-container--feedback-error .devui-select-arrow{right:24px!important}.devui-form__control .devui-form__control-info{line-height:1}.devui-form__control .devui-form__control-info .error-message{display:inline-block;min-height:20px;line-height:1.5;font-size:var(--devui-font-size, 14px);color:var(--devui-danger, #f66f6a)}.devui-form__control .devui-form__control-info .devui-form__control-extra{font-size:var(--devui-font-size, 14px);color:var(--devui-aide-text, #71757f);min-height:20px;line-height:1.5;text-align:justify}@keyframes loading-keyframes{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.devui-form__item--horizontal{display:flex;align-items:center;margin-bottom:20px}.devui-form__item--vertical{display:flex;flex-direction:column;margin-bottom:20px}.devui-form__item--error{margin-bottom:0}.devui-form-operation .star{color:red}.devui-input{height:28px;font-size:var(--devui-font-size, 14px)}.devui-input__wrapper{display:inline-flex;align-items:center;justify-content:center;width:100%;padding:0 8px;box-sizing:border-box;border:1px solid var(--devui-form-control-line, #d7d8da);border-radius:var(--devui-border-radius, 4px);background-color:var(--devui-form-control-bg, #ffffff);transition:border-color .3s var(--devui-animation-ease-in-out-smooth, cubic-bezier(.645, .045, .355, 1));height:100%}.devui-input__wrapper:not(.devui-input--error):not(.devui-input--disabled):not(.devui-input--focus):hover{border-color:var(--devui-form-control-line-hover, #575d6c)}.devui-input--focus:not(.devui-input--error){border-color:var(--devui-form-control-line-active, #5e7ce0)}.devui-input--disabled{color:var(--devui-disabled-text, #adb0b8);border-color:var(--devui-disabled-line, #dfe1e6);background-color:var(--devui-disabled-bg, #f5f5f5);cursor:not-allowed}.devui-input--disabled:hover{border-color:var(--devui-disabled-line, #dfe1e6)}.devui-input--disabled .devui-input__inner{color:var(--devui-disabled-text, #adb0b8);cursor:not-allowed}.devui-input--error{border-color:var(--devui-danger-line, #f66f6a);background-color:var(--devui-danger-bg, #ffeeed)}.devui-input--sm{height:26px;font-size:var(--devui-font-size-sm, 12px)}.devui-input--lg{height:46px;font-size:var(--devui-font-size-lg, 14px)}.devui-input--feedback{padding-right:28px}.devui-input__inner{width:100%;height:100%;color:var(--devui-text, #252b3a);font-size:inherit;padding:4px 0;border:none;background:none;outline:none;box-sizing:border-box}.devui-input--prepend .devui-input__wrapper{border-top-left-radius:0;border-bottom-left-radius:0}.devui-input--append .devui-input__wrapper{border-top-right-radius:0;border-bottom-right-radius:0}.devui-input-slot{display:inline-flex;width:100%;align-items:stretch}.devui-input-slot__prepend,.devui-input-slot__append{color:var(--devui-text);position:relative;display:inline-flex;align-items:center;justify-content:center;min-height:100%;padding:0 20px;white-space:nowrap;border:1px solid var(--devui-form-control-line, #d7d8da);border-radius:var(--devui-border-radius, 4px);background-color:var(--devui-form-control-bg, #ffffff)}.devui-input-slot__prepend .devui-button,.devui-input-slot__prepend .devui-select .devui-select__selection,.devui-input-slot__append .devui-button,.devui-input-slot__append .devui-select .devui-select__selection{border:none!important;background-color:transparent!important;color:inherit}.devui-input-slot__prepend .devui-button,.devui-input-slot__prepend .devui-select__selection,.devui-input-slot__append .devui-button,.devui-input-slot__append .devui-select__selection{margin:0 -20px}.devui-input-slot__prepend{border-right:0;border-top-right-radius:0;border-bottom-right-radius:0}.devui-input-slot__append{border-left:0;border-top-left-radius:0;border-bottom-left-radius:0}.devui-input-slot__prefix,.devui-input-slot__suffix{display:inline-flex;white-space:nowrap;flex-shrink:0;flex-wrap:nowrap;align-items:center}.devui-input-slot__prefix>*{margin-right:8px}.devui-input-slot__suffix>*{margin-left:8px}.devui-input__clear--icon,.devui-input__password--icon{cursor:pointer}.devui-search{position:relative;display:flex;justify-content:center;align-items:center}.devui-search:not(.devui-search--error):not(.devui-search--disabled):not(.devui-search--focus):hover .devui-input{border-color:var(--devui-form-control-line-hover, #575d6c)}.devui-search .devui-input{padding:4px 60px 4px 8px;display:inline-flex;align-items:center;justify-content:center;width:100%;color:var(--devui-text, #252b3a);box-sizing:border-box;border:1px solid var(--devui-form-control-line, #d7d8da);border-radius:var(--devui-border-radius, 4px);background-color:var(--devui-form-control-bg, #ffffff);transition:border-color .3s var(--devui-animation-ease-in-out-smooth, cubic-bezier(.645, .045, .355, 1))}.devui-search .devui-input__inner{padding:0}.devui-search .devui-input__wrapper{border:none;padding:0}.devui-search--focus .devui-input{border-color:var(--devui-form-control-line-active, #5e7ce0)}.devui-search svg.svg-icon-clear path,.devui-search svg.svg-icon-search path{fill:var(--devui-icon-text, #71757f)}.devui-search__clear{position:absolute;right:36px;cursor:pointer;font-size:10px;width:30px;height:100%;display:flex;justify-content:center;align-items:center}.devui-search__clear:after{content:"";position:absolute;right:0;top:50%;transform:translateY(-50%);width:1px;height:46%;border-left:1px solid var(--devui-dividing-line, #f2f2f3)}.devui-search__icon{pointer-events:all;cursor:pointer;position:absolute;z-index:1;right:0;top:0;font-size:16px;width:36px;height:100%;display:flex;justify-content:center;align-items:center}.devui-search--sm .devui-input.devui-input--sm{font-size:var(--devui-font-size, 14px);padding-right:60px}.devui-search--sm .devui-search__icon{font-size:14px;width:34px;height:26px}.devui-search--sm .devui-search__clear{width:26px;height:100%;right:34px}.devui-search--lg .devui-input{padding:4px 36px 4px 10px}.devui-search--lg .devui-input.devui-input--lg{padding-right:75px}.devui-search--lg .devui-search__icon{font-size:18px;width:46px;height:46px}.devui-search--lg .devui-search__clear{width:40px;height:100%;right:46px}.devui-search--disabled .devui-input{cursor:not-allowed;color:var(--devui-disabled-text, #adb0b8);border-color:var(--devui-disabled-line, #dfe1e6);background-color:var(--devui-disabled-bg, #f5f5f5)}.devui-search--disabled .devui-search__icon{cursor:not-allowed}.devui-search--disabled .icon-search{color:var(--devui-disabled-text, #adb0b8)!important}.devui-search--left .devui-input{padding:4px 26px 4px 30px}.devui-search--left .devui-input.devui-input--lg{padding-right:28px;padding-left:48px}.devui-search--left .devui-input.devui-input--sm{padding-right:24px}.devui-search--left .devui-search__clear{right:0}.devui-search--left .devui-search__clear:after{display:none}.devui-search--left .devui-search__icon{left:0}.devui-search--no-border .devui-input{border:none}
|
|
1
|
+
.devui-icon__container{display:inline-block;color:var(--devui-icon-fill, #71757f)}.devui-icon__container>*:not(:last-child){vertical-align:middle;margin-right:8px}.devui-icon__container i{vertical-align:middle;transition:all var(--devui-animation-duration-slow, .3s) var(--devui-animation-ease-in-out-smooth, cubic-bezier(.645, .045, .355, 1))}.devui-icon--disabled{color:var(--devui-disabled-text, #adb0b8);cursor:not-allowed}.devui-icon--disabled i{color:var(--devui-disabled-text, #adb0b8)}.devui-icon--operable:not(.devui-icon--disabled){cursor:pointer;transition:color var(--devui-animation-duration-slow, .3s) var(--devui-animation-ease-in-out-smooth, cubic-bezier(.645, .045, .355, 1))}.devui-icon--operable:not(.devui-icon--disabled) i{cursor:pointer}.devui-icon--operable:hover:not(.devui-icon--disabled){color:var(--devui-icon-fill-hover, #252b3a)}.devui-icon--operable:hover:not(.devui-icon--disabled).devui-icon__container{background-color:var(--devui-icon-background-hover, var(--devui-list-item-hover-bg, #f2f2f3))}.devui-icon--operable:hover:not(.devui-icon--disabled) i{color:var(--devui-icon-fill-hover, #252b3a)}.devui-icon--operable:active:not(.devui-icon--disabled){color:var(--devui-icon-active-color, var(--devui-icon-fill-active, #252b3a))}.devui-icon--operable:active:not(.devui-icon--disabled).devui-icon__container{background-color:var(--devui-icon-background-active, var(--devui-list-item-active-bg, #f2f5fc))}.devui-icon--operable:active:not(.devui-icon--disabled) i{color:var(--devui-icon-active-color, var(--devui-icon-fill-active, #252b3a))}.devui-icon--operable.devui-icon__container{height:32px;line-height:32px;padding:0 8px;margin-left:-8px;border-radius:var(--devui-border-radius, 4px);transition:all var(--devui-animation-duration-slow, .3s) var(--devui-animation-ease-in-out-smooth, cubic-bezier(.645, .045, .355, 1))}.devui-icon--spin{animation:iconSpin 2.5s linear infinite}.devui-svg-icon{vertical-align:middle}@keyframes iconSpin{0%{transform:rotate(0)}50%{transform:rotate(180deg)}to{transform:rotate(360deg)}}.devui-fixed-overlay{position:fixed;top:0;right:0;bottom:0;left:0;background-color:var(--devui-shadow, rgba(37, 43, 58, .2));z-index:1050}.devui-fixed-overlay--fade-enter-active,.devui-fixed-overlay--fade-leave-active{transition:opacity .1s cubic-bezier(0,0,1,1)}.devui-fixed-overlay--fade-enter-from,.devui-fixed-overlay--fade-leave-to{opacity:0}.devui-flexible-overlay{position:fixed;border-radius:var(--devui-border-radius, 4px);background-color:var(--devui-connected-overlay-bg, #ffffff);box-shadow:var(--devui-shadow-length-connected-overlay, 0 4px 8px 0) var(--devui-shadow, rgba(37, 43, 58, .2));z-index:1000}.devui-flexible-overlay__arrow{position:absolute;width:8px;height:8px;transform:rotate(45deg);background-color:inherit}.devui-popover__icon-wrap{width:16px;height:16px;margin-right:8px}.devui-popover__icon-wrap .devui-popover__icon.devui-popover__icon--success>g>path{fill:var(--devui-success, #50d4ab)}.devui-popover__icon-wrap .devui-popover__icon.devui-popover__icon--success>g>circle,.devui-popover__icon-wrap .devui-popover__icon.devui-popover__icon--success>g>polygon{fill:var(--devui-light-text, #ffffff)}.devui-popover__icon-wrap .devui-popover__icon.devui-popover__icon--warning>g>path{fill:var(--devui-warning, #fac20a)}.devui-popover__icon-wrap .devui-popover__icon.devui-popover__icon--warning>g>polygon{fill:var(--devui-light-text, #ffffff)}.devui-popover__icon-wrap .devui-popover__icon.devui-popover__icon--info>g>g{fill:var(--devui-info, #5e7ce0)}.devui-popover__icon-wrap .devui-popover__icon.devui-popover__icon--info>g>circle{fill:var(--devui-light-text, #ffffff)}.devui-popover__icon-wrap .devui-popover__icon.devui-popover__icon--error>g>path{fill:var(--devui-danger, #f66f6a)}.devui-popover__icon-wrap .devui-popover__icon.devui-popover__icon--error>g>circle{fill:var(--devui-light-text, #ffffff)}.devui-popover__content.devui-flexible-overlay{display:flex;flex-wrap:wrap;align-items:center;white-space:nowrap;padding:4px 12px;line-height:1.5;border-radius:var(--devui-border-radius-feedback, 4px);color:var(--devui-feedback-overlay-text, #dfe1e6);background-color:var(--devui-feedback-overlay-bg, #464d6e);font-size:var(--devui-font-size-sm, 12px)}.devui-popover__content.devui-flexible-overlay.is-icon{flex-wrap:nowrap}.devui-popover--fade-bottom-enter-from,.devui-popover--fade-bottom-leave-to,.devui-popover--fade-top-enter-from,.devui-popover--fade-top-leave-to{opacity:.8;transform:scaleY(.8)}.devui-popover--fade-bottom-enter-to,.devui-popover--fade-bottom-leave-from,.devui-popover--fade-top-enter-to,.devui-popover--fade-top-leave-from{opacity:1;transform:scaleY(1)}.devui-popover--fade-bottom-enter-active,.devui-popover--fade-top-enter-active{transition:transform .1s cubic-bezier(.16,.75,.5,1),opacity .1s cubic-bezier(.16,.75,.5,1)}.devui-popover--fade-bottom-leave-active,.devui-popover--fade-top-leave-active{transition:transform .1s cubic-bezier(.5,0,.84,.25),opacity .1s cubic-bezier(.5,0,.84,.25)}.devui-popover--fade-left-enter-from,.devui-popover--fade-left-leave-to,.devui-popover--fade-right-enter-from,.devui-popover--fade-right-leave-to{opacity:.8;transform:scaleX(.8)}.devui-popover--fade-left-enter-to,.devui-popover--fade-left-leave-from,.devui-popover--fade-right-enter-to,.devui-popover--fade-right-leave-from{opacity:1;transform:scaleX(1)}.devui-popover--fade-left-enter-active,.devui-popover--fade-right-enter-active{transition:transform .1s cubic-bezier(.16,.75,.5,1),opacity .1s cubic-bezier(.16,.75,.5,1)}.devui-popover--fade-left-leave-active,.devui-popover--fade-right-leave-active{transition:transform .1s cubic-bezier(.5,0,.84,.25),opacity .1s cubic-bezier(.5,0,.84,.25)}.devui-form__label{align-self:flex-start}.devui-form__label--vertical{padding-bottom:8px}.devui-form__label--sm{flex:0 0 80px}.devui-form__label--md{flex:0 0 100px}.devui-form__label--lg{flex:0 0 150px}.devui-form__label--start{text-align:left}.devui-form__label--center{text-align:center}.devui-form__label--end{text-align:end}.devui-form__label-span{display:inline-block;vertical-align:middle;color:var(--devui-text, #252b3a)}.devui-form__label--required:before{content:"*";color:red;display:inline-block;margin-right:8px;margin-left:-12px}.devui-form__label-help{position:relative;top:-.1em;display:inline-block;vertical-align:middle;margin-left:4px;cursor:pointer}.devui-form__control{flex:1 1 auto;position:relative;width:100%}.devui-form__control--horizontal{margin-left:16px}.devui-form__control .devui-star{color:red}.devui-form__control .devui-form__control-container{position:relative}.devui-form__control .devui-form__control-container--horizontal{display:flex;width:100%}.devui-form__control .devui-form__control-container--horizontal .devui-validate-tip{margin:0}.devui-form__control .devui-form__control-container .devui-form__feedback-icon{position:absolute;top:50%;right:0;z-index:1;width:32px;height:16px;text-align:center;visibility:visible;pointer-events:none;transform:translateY(-50%);display:flex;align-items:center;justify-content:center}.devui-form__control .devui-form__control-container .devui-form__feedback-icon--error svg circle{fill:var(--devui-danger, #f66f6a)}.devui-form__control .devui-form__control-container .devui-form__feedback-icon--error svg polygon{fill:var(--devui-base-bg, #ffffff)}.devui-form__control .devui-form__control-container .devui-form__feedback-icon--success svg circle{fill:var(--devui-success, #50d4ab)}.devui-form__control .devui-form__control-container .devui-form__feedback-icon--success svg polygon{fill:var(--devui-base-bg, #ffffff)}.devui-form__control .devui-form__control-container .devui-form__feedback-icon--pending svg{animation:loading-keyframes 1s infinite linear}.devui-form__control .devui-form__control-container .devui-form__feedback-icon--pending svg path{fill:var(--devui-brand, #5e7ce0)}.devui-form__control .devui-form__control-content{width:100%}.devui-form__control .devui-form__control-container--has-feedback{display:flex;align-items:center}.devui-form__control .devui-form__control-container--has-feedback input{padding-right:28px}.devui-form__control .devui-form__control-container--feedback-error{border:1px solid #f66f6a;border-radius:2px}.devui-form__control .devui-form__control-container--feedback-error input{background-color:#ffeeed;border-color:transparent}.devui-form__control .devui-form__control-container--feedback-error input:hover{border-color:transparent!important}.devui-form__control .devui-form__control-container--feedback-error input:focus{border-color:transparent!important}.devui-form__control .devui-form__control-container--feedback-error .devui-select-arrow{right:24px!important}.devui-form__control .devui-form__control-info{line-height:1}.devui-form__control .devui-form__control-info .error-message{display:inline-block;min-height:20px;line-height:1.5;font-size:var(--devui-font-size, 14px);color:var(--devui-danger, #f66f6a)}.devui-form__control .devui-form__control-info .devui-form__control-extra{font-size:var(--devui-font-size, 14px);color:var(--devui-aide-text, #71757f);min-height:20px;line-height:1.5;text-align:justify}@keyframes loading-keyframes{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.devui-form__item--horizontal{display:flex;align-items:center;margin-bottom:20px}.devui-form__item--vertical{display:flex;flex-direction:column;margin-bottom:20px}.devui-form__item--error{margin-bottom:0}.devui-form-operation .star{color:red}.devui-input{height:28px;font-size:var(--devui-font-size, 14px)}.devui-input__wrapper{display:inline-flex;align-items:center;justify-content:center;width:100%;padding:0 8px;box-sizing:border-box;border:1px solid var(--devui-form-control-line, #d7d8da);border-radius:var(--devui-border-radius, 4px);background-color:var(--devui-form-control-bg, #ffffff);transition:border-color .3s var(--devui-animation-ease-in-out-smooth, cubic-bezier(.645, .045, .355, 1));height:100%}.devui-input__wrapper:not(.devui-input--error):not(.devui-input--disabled):not(.devui-input--focus):hover{border-color:var(--devui-form-control-line-hover, #575d6c)}.devui-input--focus:not(.devui-input--error){border-color:var(--devui-form-control-line-active, #5e7ce0)}.devui-input--disabled{color:var(--devui-disabled-text, #adb0b8);border-color:var(--devui-disabled-line, #dfe1e6);background-color:var(--devui-disabled-bg, #f5f5f5);cursor:not-allowed}.devui-input--disabled:hover{border-color:var(--devui-disabled-line, #dfe1e6)}.devui-input--disabled .devui-input__inner{color:var(--devui-disabled-text, #adb0b8);cursor:not-allowed}.devui-input--error{border-color:var(--devui-danger-line, #f66f6a);background-color:var(--devui-danger-bg, #ffeeed)}.devui-input--sm{height:26px;font-size:var(--devui-font-size-sm, 12px)}.devui-input--lg{height:46px;font-size:var(--devui-font-size-lg, 14px)}.devui-input--feedback{padding-right:28px}.devui-input__inner{width:100%;height:100%;color:var(--devui-text, #252b3a);font-size:inherit;padding:4px 0;border:none;background:none;outline:none;box-sizing:border-box}.devui-input--prepend .devui-input__wrapper{border-top-left-radius:0;border-bottom-left-radius:0}.devui-input--append .devui-input__wrapper{border-top-right-radius:0;border-bottom-right-radius:0}.devui-input-slot{display:inline-flex;width:100%;align-items:stretch}.devui-input-slot__prepend,.devui-input-slot__append{color:var(--devui-text);position:relative;display:inline-flex;align-items:center;justify-content:center;min-height:100%;padding:0 20px;white-space:nowrap;border:1px solid var(--devui-form-control-line, #d7d8da);border-radius:var(--devui-border-radius, 4px);background-color:var(--devui-form-control-bg, #ffffff)}.devui-input-slot__prepend .devui-button,.devui-input-slot__prepend .devui-select .devui-select__selection,.devui-input-slot__append .devui-button,.devui-input-slot__append .devui-select .devui-select__selection{border:none!important;background-color:transparent!important;color:inherit}.devui-input-slot__prepend .devui-button,.devui-input-slot__prepend .devui-select__selection,.devui-input-slot__append .devui-button,.devui-input-slot__append .devui-select__selection{margin:0 -20px}.devui-input-slot__prepend{border-right:0;border-top-right-radius:0;border-bottom-right-radius:0}.devui-input-slot__append{border-left:0;border-top-left-radius:0;border-bottom-left-radius:0}.devui-input-slot__prefix,.devui-input-slot__suffix{display:inline-flex;white-space:nowrap;flex-shrink:0;flex-wrap:nowrap;align-items:center}.devui-input-slot__prefix>*{margin-right:8px}.devui-input-slot__suffix>*{margin-left:8px}.devui-input__clear--icon,.devui-input__password--icon{cursor:pointer}.devui-icon-group{display:inline-flex;align-items:center}.devui-icon-group>.devui-icon__container:not(.devui-icon--operable){padding:8px;margin-left:0}.devui-icon-group>.devui-icon__container:not(.devui-icon--operable):first-child{margin-left:-8px}.devui-icon-group>*:not(:first-child){margin-left:0}.devui-search{position:relative;display:flex;justify-content:center;align-items:center}.devui-search:not(.devui-search--error):not(.devui-search--disabled):not(.devui-search--focus):hover .devui-input{border-color:var(--devui-form-control-line-hover, #575d6c)}.devui-search .devui-input{padding:4px 60px 4px 8px;display:inline-flex;align-items:center;justify-content:center;width:100%;color:var(--devui-text, #252b3a);box-sizing:border-box;border:1px solid var(--devui-form-control-line, #d7d8da);border-radius:var(--devui-border-radius, 4px);background-color:var(--devui-form-control-bg, #ffffff);transition:border-color .3s var(--devui-animation-ease-in-out-smooth, cubic-bezier(.645, .045, .355, 1))}.devui-search .devui-input__inner{padding:0}.devui-search .devui-input__wrapper{border:none;padding:0}.devui-search--focus .devui-input{border-color:var(--devui-form-control-line-active, #5e7ce0)}.devui-search svg.svg-icon-clear path,.devui-search svg.svg-icon-search path{fill:var(--devui-icon-text, #71757f)}.devui-search__clear{position:absolute;right:36px;cursor:pointer;font-size:10px;width:30px;height:100%;display:flex;justify-content:center;align-items:center}.devui-search__clear:after{content:"";position:absolute;right:0;top:50%;transform:translateY(-50%);width:1px;height:46%;border-left:1px solid var(--devui-dividing-line, #f2f2f3)}.devui-search__icon{pointer-events:all;cursor:pointer;position:absolute;z-index:1;right:0;top:0;font-size:16px;width:36px;height:100%;display:flex;justify-content:center;align-items:center}.devui-search--sm .devui-input.devui-input--sm{font-size:var(--devui-font-size, 14px);padding-right:60px}.devui-search--sm .devui-search__icon{font-size:14px;width:34px;height:26px}.devui-search--sm .devui-search__clear{width:26px;height:100%;right:34px}.devui-search--lg .devui-input{padding:4px 36px 4px 10px}.devui-search--lg .devui-input.devui-input--lg{padding-right:75px}.devui-search--lg .devui-search__icon{font-size:18px;width:46px;height:46px}.devui-search--lg .devui-search__clear{width:40px;height:100%;right:46px}.devui-search--disabled .devui-input{cursor:not-allowed;color:var(--devui-disabled-text, #adb0b8);border-color:var(--devui-disabled-line, #dfe1e6);background-color:var(--devui-disabled-bg, #f5f5f5)}.devui-search--disabled .devui-search__icon{cursor:not-allowed}.devui-search--disabled .icon-search{color:var(--devui-disabled-text, #adb0b8)!important}.devui-search--left .devui-input{padding:4px 26px 4px 30px}.devui-search--left .devui-input.devui-input--lg{padding-right:28px;padding-left:48px}.devui-search--left .devui-input.devui-input--sm{padding-right:24px}.devui-search--left .devui-search__clear{right:0}.devui-search--left .devui-search__clear:after{display:none}.devui-search--left .devui-search__icon{left:0}.devui-search--no-border .devui-input{border:none}
|
package/select/index.es.js
CHANGED
|
@@ -1,35 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
var __defProps = Object.defineProperties;
|
|
3
|
-
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
4
|
-
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
7
|
-
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
8
|
-
var __spreadValues = (a, b) => {
|
|
9
|
-
for (var prop in b || (b = {}))
|
|
10
|
-
if (__hasOwnProp.call(b, prop))
|
|
11
|
-
__defNormalProp(a, prop, b[prop]);
|
|
12
|
-
if (__getOwnPropSymbols)
|
|
13
|
-
for (var prop of __getOwnPropSymbols(b)) {
|
|
14
|
-
if (__propIsEnum.call(b, prop))
|
|
15
|
-
__defNormalProp(a, prop, b[prop]);
|
|
16
|
-
}
|
|
17
|
-
return a;
|
|
18
|
-
};
|
|
19
|
-
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
|
-
var __objRest = (source, exclude) => {
|
|
21
|
-
var target = {};
|
|
22
|
-
for (var prop in source)
|
|
23
|
-
if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
24
|
-
target[prop] = source[prop];
|
|
25
|
-
if (source != null && __getOwnPropSymbols)
|
|
26
|
-
for (var prop of __getOwnPropSymbols(source)) {
|
|
27
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
|
|
28
|
-
target[prop] = source[prop];
|
|
29
|
-
}
|
|
30
|
-
return target;
|
|
31
|
-
};
|
|
32
|
-
import { defineComponent, watch, provide, reactive, toRefs, createVNode, onUnmounted, Transition, mergeProps, ref, unref, nextTick, Comment, Text, h, Fragment, inject, withDirectives, cloneVNode, computed, onMounted, Teleport, createTextVNode, onBeforeUnmount, toRef, onBeforeMount, vShow, resolveComponent, getCurrentInstance } from "vue";
|
|
1
|
+
import { defineComponent, watch, provide, reactive, toRefs, createVNode, onUnmounted, Transition, mergeProps, ref, nextTick, unref, Comment, Text, Fragment, h, inject, withDirectives, cloneVNode, computed, onMounted, Teleport, withModifiers, createTextVNode, onBeforeUnmount, toRef, onBeforeMount, vShow, resolveComponent, getCurrentInstance } from "vue";
|
|
33
2
|
import { onClickOutside } from "@vueuse/core";
|
|
34
3
|
import { offset, autoPlacement, arrow, shift, computePosition } from "@floating-ui/dom";
|
|
35
4
|
function className(classStr, classOpt) {
|
|
@@ -775,7 +744,7 @@ var lodash = { exports: {} };
|
|
|
775
744
|
var objectCtorString = funcToString.call(Object2);
|
|
776
745
|
var oldDash = root._;
|
|
777
746
|
var reIsNative = RegExp2("^" + funcToString.call(hasOwnProperty).replace(reRegExpChar, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$");
|
|
778
|
-
var
|
|
747
|
+
var Buffer = moduleExports ? context.Buffer : undefined$1, Symbol2 = context.Symbol, Uint8Array = context.Uint8Array, allocUnsafe = Buffer ? Buffer.allocUnsafe : undefined$1, getPrototype = overArg(Object2.getPrototypeOf, Object2), objectCreate = Object2.create, propertyIsEnumerable = objectProto.propertyIsEnumerable, splice = arrayProto.splice, spreadableSymbol = Symbol2 ? Symbol2.isConcatSpreadable : undefined$1, symIterator = Symbol2 ? Symbol2.iterator : undefined$1, symToStringTag = Symbol2 ? Symbol2.toStringTag : undefined$1;
|
|
779
748
|
var defineProperty = function() {
|
|
780
749
|
try {
|
|
781
750
|
var func = getNative(Object2, "defineProperty");
|
|
@@ -785,11 +754,11 @@ var lodash = { exports: {} };
|
|
|
785
754
|
}
|
|
786
755
|
}();
|
|
787
756
|
var ctxClearTimeout = context.clearTimeout !== root.clearTimeout && context.clearTimeout, ctxNow = Date2 && Date2.now !== root.Date.now && Date2.now, ctxSetTimeout = context.setTimeout !== root.setTimeout && context.setTimeout;
|
|
788
|
-
var nativeCeil = Math2.ceil, nativeFloor = Math2.floor, nativeGetSymbols = Object2.getOwnPropertySymbols, nativeIsBuffer =
|
|
789
|
-
var DataView = getNative(context, "DataView"), Map2 = getNative(context, "Map"), Promise2 = getNative(context, "Promise"), Set2 = getNative(context, "Set"),
|
|
790
|
-
var metaMap =
|
|
757
|
+
var nativeCeil = Math2.ceil, nativeFloor = Math2.floor, nativeGetSymbols = Object2.getOwnPropertySymbols, nativeIsBuffer = Buffer ? Buffer.isBuffer : undefined$1, nativeIsFinite = context.isFinite, nativeJoin = arrayProto.join, nativeKeys = overArg(Object2.keys, Object2), nativeMax = Math2.max, nativeMin = Math2.min, nativeNow = Date2.now, nativeParseInt = context.parseInt, nativeRandom = Math2.random, nativeReverse = arrayProto.reverse;
|
|
758
|
+
var DataView = getNative(context, "DataView"), Map2 = getNative(context, "Map"), Promise2 = getNative(context, "Promise"), Set2 = getNative(context, "Set"), WeakMap = getNative(context, "WeakMap"), nativeCreate = getNative(Object2, "create");
|
|
759
|
+
var metaMap = WeakMap && new WeakMap();
|
|
791
760
|
var realNames = {};
|
|
792
|
-
var dataViewCtorString = toSource(DataView), mapCtorString = toSource(Map2), promiseCtorString = toSource(Promise2), setCtorString = toSource(Set2), weakMapCtorString = toSource(
|
|
761
|
+
var dataViewCtorString = toSource(DataView), mapCtorString = toSource(Map2), promiseCtorString = toSource(Promise2), setCtorString = toSource(Set2), weakMapCtorString = toSource(WeakMap);
|
|
793
762
|
var symbolProto = Symbol2 ? Symbol2.prototype : undefined$1, symbolValueOf = symbolProto ? symbolProto.valueOf : undefined$1, symbolToString = symbolProto ? symbolProto.toString : undefined$1;
|
|
794
763
|
function lodash2(value) {
|
|
795
764
|
if (isObjectLike(value) && !isArray(value) && !(value instanceof LazyWrapper)) {
|
|
@@ -1244,7 +1213,7 @@ var lodash = { exports: {} };
|
|
|
1244
1213
|
if (typeof func != "function") {
|
|
1245
1214
|
throw new TypeError2(FUNC_ERROR_TEXT);
|
|
1246
1215
|
}
|
|
1247
|
-
return
|
|
1216
|
+
return setTimeout2(function() {
|
|
1248
1217
|
func.apply(undefined$1, args);
|
|
1249
1218
|
}, wait);
|
|
1250
1219
|
}
|
|
@@ -2037,7 +2006,7 @@ var lodash = { exports: {} };
|
|
|
2037
2006
|
}
|
|
2038
2007
|
function cloneArrayBuffer(arrayBuffer) {
|
|
2039
2008
|
var result2 = new arrayBuffer.constructor(arrayBuffer.byteLength);
|
|
2040
|
-
new
|
|
2009
|
+
new Uint8Array(result2).set(new Uint8Array(arrayBuffer));
|
|
2041
2010
|
return result2;
|
|
2042
2011
|
}
|
|
2043
2012
|
function cloneDataView(dataView, isDeep) {
|
|
@@ -2619,7 +2588,7 @@ var lodash = { exports: {} };
|
|
|
2619
2588
|
object4 = object4.buffer;
|
|
2620
2589
|
other = other.buffer;
|
|
2621
2590
|
case arrayBufferTag:
|
|
2622
|
-
if (object4.byteLength != other.byteLength || !equalFunc(new
|
|
2591
|
+
if (object4.byteLength != other.byteLength || !equalFunc(new Uint8Array(object4), new Uint8Array(other))) {
|
|
2623
2592
|
return false;
|
|
2624
2593
|
}
|
|
2625
2594
|
return true;
|
|
@@ -2781,7 +2750,7 @@ var lodash = { exports: {} };
|
|
|
2781
2750
|
return result2;
|
|
2782
2751
|
};
|
|
2783
2752
|
var getTag = baseGetTag;
|
|
2784
|
-
if (DataView && getTag(new DataView(new ArrayBuffer(1))) != dataViewTag || Map2 && getTag(new Map2()) != mapTag || Promise2 && getTag(Promise2.resolve()) != promiseTag || Set2 && getTag(new Set2()) != setTag ||
|
|
2753
|
+
if (DataView && getTag(new DataView(new ArrayBuffer(1))) != dataViewTag || Map2 && getTag(new Map2()) != mapTag || Promise2 && getTag(Promise2.resolve()) != promiseTag || Set2 && getTag(new Set2()) != setTag || WeakMap && getTag(new WeakMap()) != weakMapTag) {
|
|
2785
2754
|
getTag = function(value) {
|
|
2786
2755
|
var result2 = baseGetTag(value), Ctor = result2 == objectTag ? value.constructor : undefined$1, ctorString = Ctor ? toSource(Ctor) : "";
|
|
2787
2756
|
if (ctorString) {
|
|
@@ -3053,7 +3022,7 @@ var lodash = { exports: {} };
|
|
|
3053
3022
|
return object4[key];
|
|
3054
3023
|
}
|
|
3055
3024
|
var setData = shortOut(baseSetData);
|
|
3056
|
-
var
|
|
3025
|
+
var setTimeout2 = ctxSetTimeout || function(func, wait) {
|
|
3057
3026
|
return root.setTimeout(func, wait);
|
|
3058
3027
|
};
|
|
3059
3028
|
var setToString = shortOut(baseSetToString);
|
|
@@ -3845,7 +3814,7 @@ var lodash = { exports: {} };
|
|
|
3845
3814
|
}
|
|
3846
3815
|
function leadingEdge(time) {
|
|
3847
3816
|
lastInvokeTime = time;
|
|
3848
|
-
timerId =
|
|
3817
|
+
timerId = setTimeout2(timerExpired, wait);
|
|
3849
3818
|
return leading ? invokeFunc(time) : result2;
|
|
3850
3819
|
}
|
|
3851
3820
|
function remainingWait(time) {
|
|
@@ -3861,7 +3830,7 @@ var lodash = { exports: {} };
|
|
|
3861
3830
|
if (shouldInvoke(time)) {
|
|
3862
3831
|
return trailingEdge(time);
|
|
3863
3832
|
}
|
|
3864
|
-
timerId =
|
|
3833
|
+
timerId = setTimeout2(timerExpired, remainingWait(time));
|
|
3865
3834
|
}
|
|
3866
3835
|
function trailingEdge(time) {
|
|
3867
3836
|
timerId = undefined$1;
|
|
@@ -3892,12 +3861,12 @@ var lodash = { exports: {} };
|
|
|
3892
3861
|
}
|
|
3893
3862
|
if (maxing) {
|
|
3894
3863
|
clearTimeout(timerId);
|
|
3895
|
-
timerId =
|
|
3864
|
+
timerId = setTimeout2(timerExpired, wait);
|
|
3896
3865
|
return invokeFunc(lastCallTime);
|
|
3897
3866
|
}
|
|
3898
3867
|
}
|
|
3899
3868
|
if (timerId === undefined$1) {
|
|
3900
|
-
timerId =
|
|
3869
|
+
timerId = setTimeout2(timerExpired, wait);
|
|
3901
3870
|
}
|
|
3902
3871
|
return result2;
|
|
3903
3872
|
}
|
|
@@ -5553,7 +5522,10 @@ function useFormValidation(itemContexts) {
|
|
|
5553
5522
|
try {
|
|
5554
5523
|
await field.validate("");
|
|
5555
5524
|
} catch (err) {
|
|
5556
|
-
errors =
|
|
5525
|
+
errors = {
|
|
5526
|
+
...errors,
|
|
5527
|
+
...err
|
|
5528
|
+
};
|
|
5557
5529
|
}
|
|
5558
5530
|
}
|
|
5559
5531
|
if (!Object.keys(errors).length) {
|
|
@@ -5610,11 +5582,12 @@ defineComponent({
|
|
|
5610
5582
|
}, {
|
|
5611
5583
|
deep: true
|
|
5612
5584
|
});
|
|
5613
|
-
provide(FORM_TOKEN, reactive(
|
|
5585
|
+
provide(FORM_TOKEN, reactive({
|
|
5586
|
+
...toRefs(props),
|
|
5614
5587
|
emit: ctx.emit,
|
|
5615
5588
|
addItemContext,
|
|
5616
5589
|
removeItemContext
|
|
5617
|
-
}))
|
|
5590
|
+
}));
|
|
5618
5591
|
ctx.expose({
|
|
5619
5592
|
validate,
|
|
5620
5593
|
validateFields,
|
|
@@ -6277,6 +6250,8 @@ var Popover = defineComponent({
|
|
|
6277
6250
|
"style": overlayStyles.value
|
|
6278
6251
|
}, attrs, {
|
|
6279
6252
|
"onPositionChange": handlePositionChange,
|
|
6253
|
+
"onClick": withModifiers(() => ({}), ["stop"]),
|
|
6254
|
+
"onPointerup": withModifiers(() => ({}), ["stop"]),
|
|
6280
6255
|
"onMouseenter": onMouseenter,
|
|
6281
6256
|
"onMouseleave": onMouseleave
|
|
6282
6257
|
}), {
|
|
@@ -6491,7 +6466,7 @@ var FormControl = defineComponent({
|
|
|
6491
6466
|
}
|
|
6492
6467
|
});
|
|
6493
6468
|
function _extends() {
|
|
6494
|
-
_extends = Object.assign
|
|
6469
|
+
_extends = Object.assign ? Object.assign.bind() : function(target) {
|
|
6495
6470
|
for (var i = 1; i < arguments.length; i++) {
|
|
6496
6471
|
var source = arguments[i];
|
|
6497
6472
|
for (var key in source) {
|
|
@@ -6510,13 +6485,13 @@ function _inheritsLoose(subClass, superClass) {
|
|
|
6510
6485
|
_setPrototypeOf(subClass, superClass);
|
|
6511
6486
|
}
|
|
6512
6487
|
function _getPrototypeOf(o) {
|
|
6513
|
-
_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf2(o2) {
|
|
6488
|
+
_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf2(o2) {
|
|
6514
6489
|
return o2.__proto__ || Object.getPrototypeOf(o2);
|
|
6515
6490
|
};
|
|
6516
6491
|
return _getPrototypeOf(o);
|
|
6517
6492
|
}
|
|
6518
6493
|
function _setPrototypeOf(o, p) {
|
|
6519
|
-
_setPrototypeOf = Object.setPrototypeOf
|
|
6494
|
+
_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf2(o2, p2) {
|
|
6520
6495
|
o2.__proto__ = p2;
|
|
6521
6496
|
return o2;
|
|
6522
6497
|
};
|
|
@@ -6539,7 +6514,7 @@ function _isNativeReflectConstruct() {
|
|
|
6539
6514
|
}
|
|
6540
6515
|
function _construct(Parent, args, Class) {
|
|
6541
6516
|
if (_isNativeReflectConstruct()) {
|
|
6542
|
-
_construct = Reflect.construct;
|
|
6517
|
+
_construct = Reflect.construct.bind();
|
|
6543
6518
|
} else {
|
|
6544
6519
|
_construct = function _construct2(Parent2, args2, Class2) {
|
|
6545
6520
|
var a = [null];
|
|
@@ -6817,9 +6792,45 @@ var whitespace = function whitespace2(rule, value, source, errors, options) {
|
|
|
6817
6792
|
errors.push(format(options.messages.whitespace, rule.fullField));
|
|
6818
6793
|
}
|
|
6819
6794
|
};
|
|
6795
|
+
var urlReg;
|
|
6796
|
+
var getUrlRegex = function() {
|
|
6797
|
+
if (urlReg) {
|
|
6798
|
+
return urlReg;
|
|
6799
|
+
}
|
|
6800
|
+
var word = "[a-fA-F\\d:]";
|
|
6801
|
+
var b = function b2(options) {
|
|
6802
|
+
return options && options.includeBoundaries ? "(?:(?<=\\s|^)(?=" + word + ")|(?<=" + word + ")(?=\\s|$))" : "";
|
|
6803
|
+
};
|
|
6804
|
+
var v4 = "(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}";
|
|
6805
|
+
var v6seg = "[a-fA-F\\d]{1,4}";
|
|
6806
|
+
var v6 = ("\n(?:\n(?:" + v6seg + ":){7}(?:" + v6seg + "|:)| // 1:2:3:4:5:6:7:: 1:2:3:4:5:6:7:8\n(?:" + v6seg + ":){6}(?:" + v4 + "|:" + v6seg + "|:)| // 1:2:3:4:5:6:: 1:2:3:4:5:6::8 1:2:3:4:5:6::8 1:2:3:4:5:6::1.2.3.4\n(?:" + v6seg + ":){5}(?::" + v4 + "|(?::" + v6seg + "){1,2}|:)| // 1:2:3:4:5:: 1:2:3:4:5::7:8 1:2:3:4:5::8 1:2:3:4:5::7:1.2.3.4\n(?:" + v6seg + ":){4}(?:(?::" + v6seg + "){0,1}:" + v4 + "|(?::" + v6seg + "){1,3}|:)| // 1:2:3:4:: 1:2:3:4::6:7:8 1:2:3:4::8 1:2:3:4::6:7:1.2.3.4\n(?:" + v6seg + ":){3}(?:(?::" + v6seg + "){0,2}:" + v4 + "|(?::" + v6seg + "){1,4}|:)| // 1:2:3:: 1:2:3::5:6:7:8 1:2:3::8 1:2:3::5:6:7:1.2.3.4\n(?:" + v6seg + ":){2}(?:(?::" + v6seg + "){0,3}:" + v4 + "|(?::" + v6seg + "){1,5}|:)| // 1:2:: 1:2::4:5:6:7:8 1:2::8 1:2::4:5:6:7:1.2.3.4\n(?:" + v6seg + ":){1}(?:(?::" + v6seg + "){0,4}:" + v4 + "|(?::" + v6seg + "){1,6}|:)| // 1:: 1::3:4:5:6:7:8 1::8 1::3:4:5:6:7:1.2.3.4\n(?::(?:(?::" + v6seg + "){0,5}:" + v4 + "|(?::" + v6seg + "){1,7}|:)) // ::2:3:4:5:6:7:8 ::2:3:4:5:6:7:8 ::8 ::1.2.3.4\n)(?:%[0-9a-zA-Z]{1,})? // %eth0 %1\n").replace(/\s*\/\/.*$/gm, "").replace(/\n/g, "").trim();
|
|
6807
|
+
var v46Exact = new RegExp("(?:^" + v4 + "$)|(?:^" + v6 + "$)");
|
|
6808
|
+
var v4exact = new RegExp("^" + v4 + "$");
|
|
6809
|
+
var v6exact = new RegExp("^" + v6 + "$");
|
|
6810
|
+
var ip = function ip2(options) {
|
|
6811
|
+
return options && options.exact ? v46Exact : new RegExp("(?:" + b(options) + v4 + b(options) + ")|(?:" + b(options) + v6 + b(options) + ")", "g");
|
|
6812
|
+
};
|
|
6813
|
+
ip.v4 = function(options) {
|
|
6814
|
+
return options && options.exact ? v4exact : new RegExp("" + b(options) + v4 + b(options), "g");
|
|
6815
|
+
};
|
|
6816
|
+
ip.v6 = function(options) {
|
|
6817
|
+
return options && options.exact ? v6exact : new RegExp("" + b(options) + v6 + b(options), "g");
|
|
6818
|
+
};
|
|
6819
|
+
var protocol = "(?:(?:[a-z]+:)?//)";
|
|
6820
|
+
var auth = "(?:\\S+(?::\\S*)?@)?";
|
|
6821
|
+
var ipv4 = ip.v4().source;
|
|
6822
|
+
var ipv6 = ip.v6().source;
|
|
6823
|
+
var host = "(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)";
|
|
6824
|
+
var domain = "(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*";
|
|
6825
|
+
var tld = "(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))";
|
|
6826
|
+
var port = "(?::\\d{2,5})?";
|
|
6827
|
+
var path = '(?:[/?#][^\\s"]*)?';
|
|
6828
|
+
var regex = "(?:" + protocol + "|www\\.)" + auth + "(?:localhost|" + ipv4 + "|" + ipv6 + "|" + host + domain + tld + ")" + port + path;
|
|
6829
|
+
urlReg = new RegExp("(?:^" + regex + "$)", "i");
|
|
6830
|
+
return urlReg;
|
|
6831
|
+
};
|
|
6820
6832
|
var pattern$2 = {
|
|
6821
6833
|
email: /^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,
|
|
6822
|
-
url: new RegExp("^(?!mailto:)(?:(?:http|https|ftp)://|//)(?:\\S+(?::\\S*)?@)?(?:(?:(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[0-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:(?:[a-z\\u00a1-\\uffff0-9]+-*)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]+-*)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,})))|localhost)(?::\\d{2,5})?(?:(/|\\?|#)[^\\s]*)?$", "i"),
|
|
6823
6834
|
hex: /^#?([a-f0-9]{6}|[a-f0-9]{3})$/i
|
|
6824
6835
|
};
|
|
6825
6836
|
var types = {
|
|
@@ -6861,7 +6872,7 @@ var types = {
|
|
|
6861
6872
|
return typeof value === "string" && value.length <= 320 && !!value.match(pattern$2.email);
|
|
6862
6873
|
},
|
|
6863
6874
|
url: function url(value) {
|
|
6864
|
-
return typeof value === "string" && value.length <= 2048 && !!value.match(
|
|
6875
|
+
return typeof value === "string" && value.length <= 2048 && !!value.match(getUrlRegex());
|
|
6865
6876
|
},
|
|
6866
6877
|
hex: function hex(value) {
|
|
6867
6878
|
return typeof value === "string" && !!value.match(pattern$2.hex);
|
|
@@ -7436,7 +7447,17 @@ var Schema = /* @__PURE__ */ function() {
|
|
|
7436
7447
|
if (rule.asyncValidator) {
|
|
7437
7448
|
res = rule.asyncValidator(rule, data.value, cb, data.source, options);
|
|
7438
7449
|
} else if (rule.validator) {
|
|
7439
|
-
|
|
7450
|
+
try {
|
|
7451
|
+
res = rule.validator(rule, data.value, cb, data.source, options);
|
|
7452
|
+
} catch (error) {
|
|
7453
|
+
console.error == null ? void 0 : console.error(error);
|
|
7454
|
+
if (!options.suppressValidatorError) {
|
|
7455
|
+
setTimeout(function() {
|
|
7456
|
+
throw error;
|
|
7457
|
+
}, 0);
|
|
7458
|
+
}
|
|
7459
|
+
cb(error.message);
|
|
7460
|
+
}
|
|
7440
7461
|
if (res === true) {
|
|
7441
7462
|
cb();
|
|
7442
7463
|
} else if (res === false) {
|
|
@@ -7557,10 +7578,7 @@ function useFormItemValidate(props, _rules) {
|
|
|
7557
7578
|
} else {
|
|
7558
7579
|
return rule.trigger === triggerVal;
|
|
7559
7580
|
}
|
|
7560
|
-
}).map((
|
|
7561
|
-
var rule = __objRest(_a, []);
|
|
7562
|
-
return rule;
|
|
7563
|
-
});
|
|
7581
|
+
}).map(({ ...rule }) => rule);
|
|
7564
7582
|
};
|
|
7565
7583
|
const onValidateSuccess = () => {
|
|
7566
7584
|
validateState.value = "success";
|
|
@@ -7633,15 +7651,12 @@ defineComponent({
|
|
|
7633
7651
|
props: formItemProps,
|
|
7634
7652
|
setup(props, ctx) {
|
|
7635
7653
|
const formContext = inject(FORM_TOKEN);
|
|
7636
|
-
const
|
|
7654
|
+
const {
|
|
7637
7655
|
messageType: itemMessageType,
|
|
7638
7656
|
popPosition: itemPopPosition,
|
|
7639
|
-
showFeedback: itemShowFeedback
|
|
7640
|
-
|
|
7641
|
-
|
|
7642
|
-
"popPosition",
|
|
7643
|
-
"showFeedback"
|
|
7644
|
-
]);
|
|
7657
|
+
showFeedback: itemShowFeedback,
|
|
7658
|
+
...otherProps
|
|
7659
|
+
} = toRefs(props);
|
|
7645
7660
|
const {
|
|
7646
7661
|
label,
|
|
7647
7662
|
helpTips,
|
|
@@ -7671,7 +7686,8 @@ defineComponent({
|
|
|
7671
7686
|
labelAlign: formContext.labelAlign
|
|
7672
7687
|
}));
|
|
7673
7688
|
provide(LABEL_DATA, labelData);
|
|
7674
|
-
const context = reactive(
|
|
7689
|
+
const context = reactive({
|
|
7690
|
+
...otherProps,
|
|
7675
7691
|
showFeedback,
|
|
7676
7692
|
messageType,
|
|
7677
7693
|
popPosition,
|
|
@@ -7681,7 +7697,7 @@ defineComponent({
|
|
|
7681
7697
|
validate,
|
|
7682
7698
|
resetField,
|
|
7683
7699
|
clearValidate
|
|
7684
|
-
})
|
|
7700
|
+
});
|
|
7685
7701
|
provide(FORM_ITEM_TOKEN, context);
|
|
7686
7702
|
ctx.expose({
|
|
7687
7703
|
resetField,
|
|
@@ -7706,8 +7722,8 @@ defineComponent({
|
|
|
7706
7722
|
"extra-info": extraInfo.value
|
|
7707
7723
|
}, {
|
|
7708
7724
|
default: () => {
|
|
7709
|
-
var
|
|
7710
|
-
return [(_b = (
|
|
7725
|
+
var _a, _b;
|
|
7726
|
+
return [(_b = (_a = ctx.slots).default) == null ? void 0 : _b.call(_a)];
|
|
7711
7727
|
}
|
|
7712
7728
|
})]);
|
|
7713
7729
|
}
|
|
@@ -7780,10 +7796,11 @@ function useSelect(props, ctx, focus, blur, isSelectFocus, t) {
|
|
|
7780
7796
|
return props.options.map((item) => {
|
|
7781
7797
|
let option;
|
|
7782
7798
|
if (typeof item === "object") {
|
|
7783
|
-
option =
|
|
7799
|
+
option = {
|
|
7784
7800
|
name: item.name ? item.name : item.value + "",
|
|
7785
|
-
_checked: false
|
|
7786
|
-
|
|
7801
|
+
_checked: false,
|
|
7802
|
+
...item
|
|
7803
|
+
};
|
|
7787
7804
|
} else {
|
|
7788
7805
|
option = {
|
|
7789
7806
|
name: item + "",
|
|
@@ -7832,18 +7849,14 @@ function useSelect(props, ctx, focus, blur, isSelectFocus, t) {
|
|
|
7832
7849
|
}
|
|
7833
7850
|
});
|
|
7834
7851
|
};
|
|
7835
|
-
const selectedOptions = ref([]);
|
|
7836
7852
|
const filterQuery = ref("");
|
|
7837
|
-
const
|
|
7838
|
-
var _a;
|
|
7853
|
+
const selectedOptions = computed(() => {
|
|
7839
7854
|
if (props.multiple && Array.isArray(props.modelValue)) {
|
|
7840
|
-
|
|
7841
|
-
return selectedOptions.value.map((item) => (item == null ? void 0 : item.name) || (item == null ? void 0 : item.value) || "").join(",");
|
|
7855
|
+
return getInjectOptions(props.modelValue).filter((item) => item ? true : false);
|
|
7842
7856
|
} else if (!Array.isArray(props.modelValue)) {
|
|
7843
|
-
|
|
7844
|
-
return ((_a = selectedOptions.value[0]) == null ? void 0 : _a.name) || "";
|
|
7857
|
+
return getInjectOptions([props.modelValue]).filter((item) => item ? true : false);
|
|
7845
7858
|
}
|
|
7846
|
-
return
|
|
7859
|
+
return [];
|
|
7847
7860
|
});
|
|
7848
7861
|
const onClick = function(e) {
|
|
7849
7862
|
e.preventDefault();
|
|
@@ -7924,9 +7937,11 @@ function useSelect(props, ctx, focus, blur, isSelectFocus, t) {
|
|
|
7924
7937
|
};
|
|
7925
7938
|
const tagDelete = (data) => {
|
|
7926
7939
|
let { modelValue } = props;
|
|
7927
|
-
data._checked = !data._checked;
|
|
7928
7940
|
const checkedItems = [];
|
|
7929
7941
|
for (const child of injectOptions.value.values()) {
|
|
7942
|
+
if (data.value === child.value) {
|
|
7943
|
+
child._checked = false;
|
|
7944
|
+
}
|
|
7930
7945
|
if (child._checked) {
|
|
7931
7946
|
checkedItems.push(child.value);
|
|
7932
7947
|
}
|
|
@@ -8009,7 +8024,6 @@ function useSelect(props, ctx, focus, blur, isSelectFocus, t) {
|
|
|
8009
8024
|
isOpen,
|
|
8010
8025
|
selectCls,
|
|
8011
8026
|
mergeOptions,
|
|
8012
|
-
inputValue,
|
|
8013
8027
|
selectedOptions,
|
|
8014
8028
|
filterQuery,
|
|
8015
8029
|
emptyText,
|
|
@@ -8138,12 +8152,6 @@ const optionProps = {
|
|
|
8138
8152
|
default: false
|
|
8139
8153
|
}
|
|
8140
8154
|
};
|
|
8141
|
-
const selectContentProps = {
|
|
8142
|
-
value: {
|
|
8143
|
-
type: String,
|
|
8144
|
-
default: ""
|
|
8145
|
-
}
|
|
8146
|
-
};
|
|
8147
8155
|
const optionGroupProps = {
|
|
8148
8156
|
label: {
|
|
8149
8157
|
type: String
|
|
@@ -8192,7 +8200,8 @@ const commonProps = {
|
|
|
8192
8200
|
default: "md"
|
|
8193
8201
|
}
|
|
8194
8202
|
};
|
|
8195
|
-
const checkboxProps =
|
|
8203
|
+
const checkboxProps = {
|
|
8204
|
+
...commonProps,
|
|
8196
8205
|
checked: {
|
|
8197
8206
|
type: Boolean,
|
|
8198
8207
|
default: false
|
|
@@ -8222,8 +8231,9 @@ const checkboxProps = __spreadProps(__spreadValues({}, commonProps), {
|
|
|
8222
8231
|
type: Boolean,
|
|
8223
8232
|
default: false
|
|
8224
8233
|
}
|
|
8225
|
-
}
|
|
8226
|
-
const checkboxGroupProps =
|
|
8234
|
+
};
|
|
8235
|
+
const checkboxGroupProps = {
|
|
8236
|
+
...commonProps,
|
|
8227
8237
|
modelValue: {
|
|
8228
8238
|
type: Array,
|
|
8229
8239
|
required: true
|
|
@@ -8260,7 +8270,7 @@ const checkboxGroupProps = __spreadProps(__spreadValues({}, commonProps), {
|
|
|
8260
8270
|
type: String,
|
|
8261
8271
|
default: ""
|
|
8262
8272
|
}
|
|
8263
|
-
}
|
|
8273
|
+
};
|
|
8264
8274
|
const checkboxGroupInjectionKey = Symbol("d-checkbox-group");
|
|
8265
8275
|
function useCheckbox(props, ctx) {
|
|
8266
8276
|
const formContext = inject(FORM_TOKEN, void 0);
|
|
@@ -8536,9 +8546,10 @@ defineComponent({
|
|
|
8536
8546
|
value: opt
|
|
8537
8547
|
});
|
|
8538
8548
|
} else if (typeof opt === "object") {
|
|
8539
|
-
mergedOpt = Object.assign({}, defaultOpt,
|
|
8549
|
+
mergedOpt = Object.assign({}, defaultOpt, {
|
|
8550
|
+
...opt,
|
|
8540
8551
|
label: opt.name
|
|
8541
|
-
})
|
|
8552
|
+
});
|
|
8542
8553
|
}
|
|
8543
8554
|
return createVNode(Checkbox, mergedOpt, null);
|
|
8544
8555
|
});
|
|
@@ -9013,7 +9024,7 @@ function createI18nTranslate(name, app, newPrefix) {
|
|
|
9013
9024
|
return message;
|
|
9014
9025
|
};
|
|
9015
9026
|
}
|
|
9016
|
-
function useSelectContent(
|
|
9027
|
+
function useSelectContent() {
|
|
9017
9028
|
const ns2 = useNamespace("select");
|
|
9018
9029
|
const select2 = inject(SELECT_TOKEN);
|
|
9019
9030
|
const formItemContext = inject(FORM_ITEM_TOKEN, void 0);
|
|
@@ -9034,8 +9045,16 @@ function useSelectContent(props) {
|
|
|
9034
9045
|
return true;
|
|
9035
9046
|
}
|
|
9036
9047
|
});
|
|
9048
|
+
const displayInputValue = computed(() => {
|
|
9049
|
+
var _a;
|
|
9050
|
+
if (select2 == null ? void 0 : select2.selectedOptions) {
|
|
9051
|
+
return select2.selectedOptions.length > 1 ? select2.selectedOptions.map((item) => (item == null ? void 0 : item.name) || (item == null ? void 0 : item.value) || "").join(",") : ((_a = select2.selectedOptions[0]) == null ? void 0 : _a.name) || "";
|
|
9052
|
+
} else {
|
|
9053
|
+
return "";
|
|
9054
|
+
}
|
|
9055
|
+
});
|
|
9037
9056
|
const mergeClearable = computed(() => {
|
|
9038
|
-
return !isSelectDisable.value && !!(select2 == null ? void 0 : select2.allowClear) &&
|
|
9057
|
+
return !isSelectDisable.value && !!(select2 == null ? void 0 : select2.allowClear) && (displayInputValue.value ? true : false);
|
|
9039
9058
|
});
|
|
9040
9059
|
const isDisabledTooltip = computed(() => {
|
|
9041
9060
|
return !isSupportTagsTooltip.value || !!(select2 == null ? void 0 : select2.isOpen);
|
|
@@ -9053,7 +9072,7 @@ function useSelectContent(props) {
|
|
|
9053
9072
|
});
|
|
9054
9073
|
});
|
|
9055
9074
|
const tagSize = computed(() => (select2 == null ? void 0 : select2.selectSize) || "sm");
|
|
9056
|
-
const placeholder = computed(() =>
|
|
9075
|
+
const placeholder = computed(() => displayInputValue.value ? "" : (select2 == null ? void 0 : select2.placeholder) || t("placeholder"));
|
|
9057
9076
|
const isMultiple = computed(() => !!(select2 == null ? void 0 : select2.multiple));
|
|
9058
9077
|
const handleClear = (e) => {
|
|
9059
9078
|
e.preventDefault();
|
|
@@ -9091,6 +9110,7 @@ function useSelectContent(props) {
|
|
|
9091
9110
|
tagSize,
|
|
9092
9111
|
placeholder,
|
|
9093
9112
|
isMultiple,
|
|
9113
|
+
displayInputValue,
|
|
9094
9114
|
handleClear,
|
|
9095
9115
|
tagDelete,
|
|
9096
9116
|
onFocus,
|
|
@@ -9100,8 +9120,7 @@ function useSelectContent(props) {
|
|
|
9100
9120
|
}
|
|
9101
9121
|
var SelectContent = defineComponent({
|
|
9102
9122
|
name: "SelectContent",
|
|
9103
|
-
|
|
9104
|
-
setup(props) {
|
|
9123
|
+
setup() {
|
|
9105
9124
|
const formItemContext = inject(FORM_ITEM_TOKEN, void 0);
|
|
9106
9125
|
const ns2 = useNamespace("select");
|
|
9107
9126
|
const clearCls = computed(() => ({
|
|
@@ -9126,12 +9145,13 @@ var SelectContent = defineComponent({
|
|
|
9126
9145
|
tagSize,
|
|
9127
9146
|
placeholder,
|
|
9128
9147
|
isMultiple,
|
|
9148
|
+
displayInputValue,
|
|
9129
9149
|
handleClear,
|
|
9130
9150
|
tagDelete,
|
|
9131
9151
|
onFocus,
|
|
9132
9152
|
onBlur,
|
|
9133
9153
|
queryFilter
|
|
9134
|
-
} = useSelectContent(
|
|
9154
|
+
} = useSelectContent();
|
|
9135
9155
|
return () => {
|
|
9136
9156
|
return createVNode("div", {
|
|
9137
9157
|
"class": selectionCls.value
|
|
@@ -9194,7 +9214,7 @@ var SelectContent = defineComponent({
|
|
|
9194
9214
|
"onBlur": onBlur
|
|
9195
9215
|
}, null)])]) : createVNode("input", {
|
|
9196
9216
|
"ref": "input",
|
|
9197
|
-
"value":
|
|
9217
|
+
"value": displayInputValue.value,
|
|
9198
9218
|
"type": "text",
|
|
9199
9219
|
"class": inputCls.value,
|
|
9200
9220
|
"placeholder": placeholder.value,
|
|
@@ -9258,7 +9278,6 @@ var Select = defineComponent({
|
|
|
9258
9278
|
isOpen,
|
|
9259
9279
|
selectCls,
|
|
9260
9280
|
mergeOptions,
|
|
9261
|
-
inputValue,
|
|
9262
9281
|
selectedOptions,
|
|
9263
9282
|
filterQuery,
|
|
9264
9283
|
emptyText,
|
|
@@ -9295,7 +9314,8 @@ var Select = defineComponent({
|
|
|
9295
9314
|
onMounted(() => {
|
|
9296
9315
|
isRender.value = true;
|
|
9297
9316
|
});
|
|
9298
|
-
provide(SELECT_TOKEN, reactive(
|
|
9317
|
+
provide(SELECT_TOKEN, reactive({
|
|
9318
|
+
...toRefs(props),
|
|
9299
9319
|
selectDisabled,
|
|
9300
9320
|
selectSize,
|
|
9301
9321
|
isOpen,
|
|
@@ -9308,7 +9328,7 @@ var Select = defineComponent({
|
|
|
9308
9328
|
onFocus,
|
|
9309
9329
|
onBlur,
|
|
9310
9330
|
debounceQueryFilter
|
|
9311
|
-
}))
|
|
9331
|
+
}));
|
|
9312
9332
|
return () => {
|
|
9313
9333
|
return createVNode("div", {
|
|
9314
9334
|
"class": selectCls.value,
|
|
@@ -9317,8 +9337,7 @@ var Select = defineComponent({
|
|
|
9317
9337
|
}, [createVNode("div", {
|
|
9318
9338
|
"ref": originRef
|
|
9319
9339
|
}, [createVNode(SelectContent, {
|
|
9320
|
-
"ref": selectRef
|
|
9321
|
-
"value": inputValue.value
|
|
9340
|
+
"ref": selectRef
|
|
9322
9341
|
}, null)]), createVNode(Transition, {
|
|
9323
9342
|
"name": "fade"
|
|
9324
9343
|
}, {
|
|
@@ -9353,8 +9372,8 @@ var Select = defineComponent({
|
|
|
9353
9372
|
"modelValue": false,
|
|
9354
9373
|
"label": filterQuery.value
|
|
9355
9374
|
}, null) : filterQuery.value]
|
|
9356
|
-
}), ((_a = ctx.slots) == null ? void 0 : _a.default) && ctx.slots.default(), !((_b = ctx.slots) == null ? void 0 : _b.default) && mergeOptions.value.length >= 1 && mergeOptions.value.map((item
|
|
9357
|
-
"key":
|
|
9375
|
+
}), ((_a = ctx.slots) == null ? void 0 : _a.default) && ctx.slots.default(), !((_b = ctx.slots) == null ? void 0 : _b.default) && mergeOptions.value.length >= 1 && mergeOptions.value.map((item) => createVNode(Option, {
|
|
9376
|
+
"key": item.value,
|
|
9358
9377
|
"value": item.value,
|
|
9359
9378
|
"name": item.name,
|
|
9360
9379
|
"disabled": isDisabled(item)
|
|
@@ -9378,7 +9397,9 @@ var OptionGroup = defineComponent({
|
|
|
9378
9397
|
props: optionGroupProps,
|
|
9379
9398
|
setup(props, ctx) {
|
|
9380
9399
|
const ns2 = useNamespace("select");
|
|
9381
|
-
provide(OPTION_GROUP_TOKEN, reactive(
|
|
9400
|
+
provide(OPTION_GROUP_TOKEN, reactive({
|
|
9401
|
+
...toRefs(props)
|
|
9402
|
+
}));
|
|
9382
9403
|
return () => {
|
|
9383
9404
|
var _a;
|
|
9384
9405
|
return createVNode("ul", {
|