vue-devui 1.5.12 → 1.5.13-hotfix.1
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/auto-complete/index.es.js +139 -61
- package/auto-complete/index.umd.js +16 -16
- package/auto-complete/style.css +1 -1
- package/checkbox/index.es.js +115 -61
- package/checkbox/index.umd.js +15 -15
- package/checkbox/style.css +1 -1
- package/code-editor/index.es.js +5 -2
- package/code-editor/index.umd.js +6 -6
- package/code-review/index.es.js +12 -1
- package/code-review/index.umd.js +18 -18
- package/code-review/style.css +1 -1
- package/date-picker-pro/index.es.js +213 -109
- package/date-picker-pro/index.umd.js +19 -19
- package/date-picker-pro/style.css +1 -1
- package/editor-md/index.es.js +1 -1
- package/editor-md/index.umd.js +1 -1
- package/form/index.es.js +142 -64
- package/form/index.umd.js +14 -14
- package/form/style.css +1 -1
- package/image-preview/index.es.js +2 -6
- package/image-preview/index.umd.js +2 -2
- package/image-preview/style.css +1 -1
- package/input/index.es.js +207 -79
- package/input/index.umd.js +18 -18
- package/input/style.css +1 -1
- package/input-number/index.es.js +123 -46
- package/input-number/index.umd.js +20 -20
- package/input-number/style.css +1 -1
- package/mention/index.es.js +138 -60
- package/mention/index.umd.js +16 -16
- package/mention/style.css +1 -1
- package/nuxt/components/STYLE_TOKEN.js +3 -0
- package/nuxt/components/formControlProps.js +3 -0
- package/package.json +1 -1
- package/pagination/index.es.js +155 -89
- package/pagination/index.umd.js +13 -13
- package/pagination/style.css +1 -1
- package/progress/index.es.js +6 -6
- package/progress/index.umd.js +1 -1
- package/radio/index.es.js +115 -61
- package/radio/index.umd.js +16 -16
- package/radio/style.css +1 -1
- package/search/index.es.js +211 -83
- package/search/index.umd.js +19 -19
- package/search/style.css +1 -1
- package/select/index.es.js +148 -82
- package/select/index.umd.js +11 -11
- package/select/style.css +1 -1
- package/skeleton/index.es.js +1 -0
- package/skeleton/index.umd.js +2 -2
- package/steps/index.es.js +35 -11
- package/steps/index.umd.js +1 -1
- package/style.css +1 -1
- package/switch/index.es.js +115 -61
- package/switch/index.umd.js +14 -14
- package/switch/style.css +1 -1
- package/table/index.es.js +88 -34
- package/table/index.umd.js +15 -15
- package/table/style.css +1 -1
- package/textarea/index.es.js +141 -63
- package/textarea/index.umd.js +17 -17
- package/textarea/style.css +1 -1
- package/time-picker/index.es.js +159 -55
- package/time-picker/index.umd.js +11 -11
- package/time-picker/style.css +1 -1
- package/time-select/index.es.js +148 -82
- package/time-select/index.umd.js +17 -17
- package/time-select/style.css +1 -1
- package/tree/index.es.js +86 -32
- package/tree/index.umd.js +11 -11
- package/tree/style.css +1 -1
- package/types/auto-focus/index.d.ts +9 -0
- package/types/auto-focus/src/auto-focus-directive.d.ts +4 -0
- package/types/code-review/src/code-review-types.d.ts +6 -0
- package/types/code-review/src/code-review.d.ts +9 -0
- package/types/form/index.d.ts +1 -0
- package/types/form/src/components/form-control/use-form-control.d.ts +11 -2
- package/types/form/src/components/form-item/form-item-types.d.ts +10 -2
- package/types/form/src/components/form-item/form-item.d.ts +3 -3
- package/types/form/src/components/form-label/form-label.d.ts +1 -13
- package/types/form/src/components/form-label/use-form-label.d.ts +14 -2
- package/types/form/src/form-types.d.ts +11 -0
- package/types/form/src/form.d.ts +18 -0
- package/types/input/src/composables/use-input-event.d.ts +12 -2
- package/types/input/src/input-types.d.ts +8 -0
- package/types/input/src/input.d.ts +18 -0
- package/types/input-icon/src/input-icon.d.ts +18 -0
- package/types/list/index.d.ts +0 -1
- package/types/select/src/composables/use-select-menu-size.d.ts +5 -0
- package/types/vue-devui.d.ts +2 -1
- package/vue-devui.es.js +202 -70
- package/vue-devui.umd.js +78 -78
package/mention/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.devui-fixed-overlay{position:fixed;top:0;right:0;bottom:0;left:0;background-color:var(--devui-shadow, rgba(37, 43, 58, .24));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, 2px);background-color:var(--devui-connected-overlay-bg, #ffffff);box-shadow:var(--devui-shadow-length-connected-overlay, 0 2px 12px 0) var(--devui-shadow, rgba(37, 43, 58, .24));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--required-hide:before{display:none}.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-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, 12px);color:var(--devui-danger, #f66f6a)}.devui-form__control .devui-form__control-info .devui-form__control-extra{font-size:var(--devui-font-size, 12px);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-textarea{width:100%;box-sizing:border-box;padding:4px 8px;color:var(--devui-text, #252b3a);vertical-align:middle;outline:none;border:1px solid var(--devui-form-control-line, #d7d8da);border-radius:var(--devui-border-radius, 2px);background:var(--devui-form-control-bg, #ffffff);transition:border-color .3s var(--devui-animation-ease-in-out-smooth, cubic-bezier(.645, .045, .355, 1))}.devui-textarea:not(.devui-textarea--error):not(.devui-textarea--disabled):not(.devui-textarea--focus):hover{border-color:var(--devui-form-control-line-hover, #9b9fa8)}.devui-textarea--focus:not(.devui-textarea--error){border-color:var(--devui-form-control-line-active, #5e7ce0)}.devui-textarea--disabled{border-color:var(--devui-disabled-line, #dfe1e6);background-color:var(--devui-disabled-bg, #f5f5f5);color:var(--devui-disabled-text, #cfd0d3);cursor:not-allowed}.devui-textarea--disabled:hover{border-color:var(--devui-disabled-line, #dfe1e6)}.devui-textarea--disabled .devui-textarea__inner{color:var(--devui-disabled-text, #cfd0d3);cursor:not-allowed}.devui-textarea--error{border-color:var(--devui-danger-line, #f66f6a);background-color:var(--devui-danger-bg, #ffd5d4)}.devui-textarea__show-count{text-align:right;color:inherit;white-space:nowrap;pointer-events:none;font-size:var(--devui-font-size, 12px)}.devui-textarea--feedback{padding-right:28px}.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--no-slots i,.devui-icon--no-slots img{display:block}.devui-icon--disabled{color:var(--devui-disabled-text, #cfd0d3);cursor:not-allowed}.devui-icon--disabled i{color:var(--devui-disabled-text, #cfd0d3)}.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, 2px);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-mention{position:relative}.devui-mention__suggestions{position:absolute;left:24px;z-index:var(--devui-z-index-framework, 1000);background:#ffffff;min-width:120px;max-height:250px;overflow-x:hidden;overflow-y:auto;box-shadow:var(--devui-shadow-length-base, 0 1px 4px 0) var(--devui-light-shadow, rgba(37, 43, 58, .1))}.devui-mention__suggestions-item{display:flex;align-items:center;padding:6px 14px;cursor:pointer}.devui-mention__suggestions-item:hover{background:#eeeeee}.devui-mention__suggestions-item-active{background:#f2f5fa}.devui-mention__suggestions-loading{height:40px;width:40px;display:flex;justify-content:center;align-items:center;top:10px;padding:6px 10px;cursor:pointer}
|
|
1
|
+
.devui-fixed-overlay{position:fixed;top:0;right:0;bottom:0;left:0;background-color:var(--devui-shadow, rgba(37, 43, 58, .24));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, 2px);background-color:var(--devui-connected-overlay-bg, #ffffff);box-shadow:var(--devui-shadow-length-connected-overlay, 0 2px 12px 0) var(--devui-shadow, rgba(37, 43, 58, .24));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;font-size:var(--devui-font-size, 12px);color:var(--devui-aide-text, #71757f)}.devui-form__label--required:before{content:"*";color:red;display:inline-block;margin-right:8px;margin-left:-12px}.devui-form__label--required-hide:before{display:none}.devui-form__label-help{position:relative;top:-.1em;display:inline-block;vertical-align:middle;margin-left:4px;cursor:pointer}.devui-form__label-tips-popover .dv-popover__icon-wrap+span{flex:1}.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-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, 12px);color:var(--devui-danger, #f66f6a)}.devui-form__control .devui-form__control-info .devui-form__control-extra{font-size:var(--devui-font-size, 12px);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-textarea{width:100%;box-sizing:border-box;padding:4px 8px;color:var(--devui-text, #252b3a);vertical-align:middle;outline:none;border:1px solid var(--devui-form-control-line, #d7d8da);border-radius:var(--devui-border-radius, 2px);background:var(--devui-form-control-bg, #ffffff);transition:border-color .3s var(--devui-animation-ease-in-out-smooth, cubic-bezier(.645, .045, .355, 1))}.devui-textarea:not(.devui-textarea--error):not(.devui-textarea--disabled):not(.devui-textarea--focus):hover{border-color:var(--devui-form-control-line-hover, #9b9fa8)}.devui-textarea--focus:not(.devui-textarea--error){border-color:var(--devui-form-control-line-active, #5e7ce0)}.devui-textarea--disabled{border-color:var(--devui-disabled-line, #dfe1e6);background-color:var(--devui-disabled-bg, #f5f5f5);color:var(--devui-disabled-text, #cfd0d3);cursor:not-allowed}.devui-textarea--disabled:hover{border-color:var(--devui-disabled-line, #dfe1e6)}.devui-textarea--disabled .devui-textarea__inner{color:var(--devui-disabled-text, #cfd0d3);cursor:not-allowed}.devui-textarea--error{border-color:var(--devui-danger-line, #f66f6a);background-color:var(--devui-danger-bg, #ffd5d4)}.devui-textarea__show-count{text-align:right;color:inherit;white-space:nowrap;pointer-events:none;font-size:var(--devui-font-size, 12px)}.devui-textarea--feedback{padding-right:28px}.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--no-slots i,.devui-icon--no-slots img{display:block}.devui-icon--disabled{color:var(--devui-disabled-text, #cfd0d3);cursor:not-allowed}.devui-icon--disabled i{color:var(--devui-disabled-text, #cfd0d3)}.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, 2px);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-mention{position:relative}.devui-mention__suggestions{position:absolute;left:24px;z-index:var(--devui-z-index-framework, 1000);background:#ffffff;min-width:120px;max-height:250px;overflow-x:hidden;overflow-y:auto;box-shadow:var(--devui-shadow-length-base, 0 1px 4px 0) var(--devui-light-shadow, rgba(37, 43, 58, .1))}.devui-mention__suggestions-item{display:flex;align-items:center;padding:6px 14px;cursor:pointer}.devui-mention__suggestions-item:hover{background:#eeeeee}.devui-mention__suggestions-item-active{background:#f2f5fa}.devui-mention__suggestions-loading{height:40px;width:40px;display:flex;justify-content:center;align-items:center;top:10px;padding:6px 10px;cursor:pointer}
|
package/package.json
CHANGED
package/pagination/index.es.js
CHANGED
|
@@ -31,8 +31,8 @@ var __objRest = (source, exclude) => {
|
|
|
31
31
|
};
|
|
32
32
|
import { defineComponent, watch, provide, reactive, toRefs, createVNode, onUnmounted, Transition, mergeProps, ref, unref, nextTick, withModifiers, Comment, Text, h, Fragment, inject, withDirectives, cloneVNode, computed, onMounted, Teleport, createTextVNode, onBeforeUnmount, toRef, onBeforeMount, vShow, resolveComponent, getCurrentInstance, resolveDirective, resolveDynamicComponent } from "vue";
|
|
33
33
|
import { onClickOutside } from "@vueuse/core";
|
|
34
|
-
import { offset, autoPlacement, arrow, shift, computePosition } from "@floating-ui/dom";
|
|
35
34
|
import "clipboard";
|
|
35
|
+
import { offset, autoPlacement, arrow, shift, computePosition } from "@floating-ui/dom";
|
|
36
36
|
function className(classStr, classOpt) {
|
|
37
37
|
let classname = classStr;
|
|
38
38
|
if (typeof classOpt === "object") {
|
|
@@ -5523,9 +5523,73 @@ const formProps = {
|
|
|
5523
5523
|
hideRequiredMark: {
|
|
5524
5524
|
type: Boolean,
|
|
5525
5525
|
default: false
|
|
5526
|
+
},
|
|
5527
|
+
styleType: {
|
|
5528
|
+
type: String,
|
|
5529
|
+
default: "default"
|
|
5530
|
+
},
|
|
5531
|
+
appendToBodyScrollStrategy: {
|
|
5532
|
+
type: String,
|
|
5533
|
+
default: "reposition"
|
|
5526
5534
|
}
|
|
5527
5535
|
};
|
|
5528
5536
|
const FORM_TOKEN = Symbol("dForm");
|
|
5537
|
+
const STYLE_TOKEN = Symbol("dForm");
|
|
5538
|
+
const inBrowser = typeof window !== "undefined";
|
|
5539
|
+
function getElement(element) {
|
|
5540
|
+
if (element instanceof Element) {
|
|
5541
|
+
return element;
|
|
5542
|
+
}
|
|
5543
|
+
if (element && typeof element === "object" && element.$el instanceof Element) {
|
|
5544
|
+
return element.$el;
|
|
5545
|
+
}
|
|
5546
|
+
return null;
|
|
5547
|
+
}
|
|
5548
|
+
function lockScroll() {
|
|
5549
|
+
if (document.documentElement.scrollHeight > document.documentElement.clientHeight) {
|
|
5550
|
+
const scrollTop = document.documentElement.scrollTop;
|
|
5551
|
+
const style = document.documentElement.getAttribute("style");
|
|
5552
|
+
document.documentElement.style.position = "fixed";
|
|
5553
|
+
document.documentElement.style.top = `-${scrollTop}px`;
|
|
5554
|
+
document.documentElement.style.width = document.documentElement.style.width || "100%";
|
|
5555
|
+
document.documentElement.style.overflowY = "scroll";
|
|
5556
|
+
return () => {
|
|
5557
|
+
if (style) {
|
|
5558
|
+
document.documentElement.setAttribute("style", style);
|
|
5559
|
+
} else {
|
|
5560
|
+
document.documentElement.removeAttribute("style");
|
|
5561
|
+
}
|
|
5562
|
+
document.documentElement.scrollTop = scrollTop;
|
|
5563
|
+
};
|
|
5564
|
+
}
|
|
5565
|
+
return;
|
|
5566
|
+
}
|
|
5567
|
+
function createBem(namespace, element, modifier) {
|
|
5568
|
+
let cls = namespace;
|
|
5569
|
+
if (element) {
|
|
5570
|
+
cls += `__${element}`;
|
|
5571
|
+
}
|
|
5572
|
+
if (modifier) {
|
|
5573
|
+
cls += `--${modifier}`;
|
|
5574
|
+
}
|
|
5575
|
+
return cls;
|
|
5576
|
+
}
|
|
5577
|
+
function useNamespace(block, needDot = false) {
|
|
5578
|
+
const namespace = needDot ? `.devui-${block}` : `devui-${block}`;
|
|
5579
|
+
const b = () => createBem(namespace);
|
|
5580
|
+
const e = (element) => element ? createBem(namespace, element) : "";
|
|
5581
|
+
const m = (modifier) => modifier ? createBem(namespace, "", modifier) : "";
|
|
5582
|
+
const em = (element, modifier) => element && modifier ? createBem(namespace, element, modifier) : "";
|
|
5583
|
+
return {
|
|
5584
|
+
b,
|
|
5585
|
+
e,
|
|
5586
|
+
m,
|
|
5587
|
+
em
|
|
5588
|
+
};
|
|
5589
|
+
}
|
|
5590
|
+
function isUrl(value) {
|
|
5591
|
+
return /^((http|https):)?\/\//.test(value);
|
|
5592
|
+
}
|
|
5529
5593
|
function useFieldCollection() {
|
|
5530
5594
|
const itemContexts = [];
|
|
5531
5595
|
const addItemContext = (field) => {
|
|
@@ -5593,7 +5657,7 @@ defineComponent({
|
|
|
5593
5657
|
props: formProps,
|
|
5594
5658
|
emits: ["validate"],
|
|
5595
5659
|
setup(props, ctx2) {
|
|
5596
|
-
const ns2 = useNamespace
|
|
5660
|
+
const ns2 = useNamespace("form");
|
|
5597
5661
|
const {
|
|
5598
5662
|
itemContexts,
|
|
5599
5663
|
addItemContext,
|
|
@@ -5620,6 +5684,7 @@ defineComponent({
|
|
|
5620
5684
|
addItemContext,
|
|
5621
5685
|
removeItemContext
|
|
5622
5686
|
})));
|
|
5687
|
+
provide(STYLE_TOKEN, props.styleType);
|
|
5623
5688
|
ctx2.expose({
|
|
5624
5689
|
validate,
|
|
5625
5690
|
validateFields,
|
|
@@ -5661,7 +5726,7 @@ const formItemProps = {
|
|
|
5661
5726
|
default: void 0
|
|
5662
5727
|
},
|
|
5663
5728
|
helpTips: {
|
|
5664
|
-
type: String,
|
|
5729
|
+
type: [String, Object],
|
|
5665
5730
|
default: ""
|
|
5666
5731
|
},
|
|
5667
5732
|
feedbackStatus: {
|
|
@@ -5674,12 +5739,6 @@ const formItemProps = {
|
|
|
5674
5739
|
};
|
|
5675
5740
|
const FORM_ITEM_TOKEN = Symbol("dFormItem");
|
|
5676
5741
|
const LABEL_DATA = Symbol("labelData");
|
|
5677
|
-
const formLabelProps = {
|
|
5678
|
-
helpTips: {
|
|
5679
|
-
type: String,
|
|
5680
|
-
default: ""
|
|
5681
|
-
}
|
|
5682
|
-
};
|
|
5683
5742
|
const fixedOverlayProps = {
|
|
5684
5743
|
modelValue: {
|
|
5685
5744
|
type: Boolean,
|
|
@@ -5694,25 +5753,6 @@ const fixedOverlayProps = {
|
|
|
5694
5753
|
default: true
|
|
5695
5754
|
}
|
|
5696
5755
|
};
|
|
5697
|
-
function lockScroll() {
|
|
5698
|
-
if (document.documentElement.scrollHeight > document.documentElement.clientHeight) {
|
|
5699
|
-
const scrollTop = document.documentElement.scrollTop;
|
|
5700
|
-
const style = document.documentElement.getAttribute("style");
|
|
5701
|
-
document.documentElement.style.position = "fixed";
|
|
5702
|
-
document.documentElement.style.top = `-${scrollTop}px`;
|
|
5703
|
-
document.documentElement.style.width = document.documentElement.style.width || "100%";
|
|
5704
|
-
document.documentElement.style.overflowY = "scroll";
|
|
5705
|
-
return () => {
|
|
5706
|
-
if (style) {
|
|
5707
|
-
document.documentElement.setAttribute("style", style);
|
|
5708
|
-
} else {
|
|
5709
|
-
document.documentElement.removeAttribute("style");
|
|
5710
|
-
}
|
|
5711
|
-
document.documentElement.scrollTop = scrollTop;
|
|
5712
|
-
};
|
|
5713
|
-
}
|
|
5714
|
-
return;
|
|
5715
|
-
}
|
|
5716
5756
|
function useFixedOverlay(props, ctx2) {
|
|
5717
5757
|
let lockScrollCb;
|
|
5718
5758
|
const onClick = (event) => {
|
|
@@ -5938,7 +5978,6 @@ const FlexibleOverlay = defineComponent({
|
|
|
5938
5978
|
};
|
|
5939
5979
|
}
|
|
5940
5980
|
});
|
|
5941
|
-
const inBrowser = typeof window !== "undefined";
|
|
5942
5981
|
const POPPER_TRIGGER_TOKEN = Symbol("popper-trigger");
|
|
5943
5982
|
const isObject = (val) => val !== null && typeof val === "object";
|
|
5944
5983
|
const ns$1 = useNamespace$1("popper-trigger");
|
|
@@ -6400,7 +6439,13 @@ function useFormLabel() {
|
|
|
6400
6439
|
const formContext = inject(FORM_TOKEN);
|
|
6401
6440
|
const formItemContext = inject(FORM_ITEM_TOKEN);
|
|
6402
6441
|
const labelData = inject(LABEL_DATA);
|
|
6403
|
-
const ns2 = useNamespace
|
|
6442
|
+
const ns2 = useNamespace("form");
|
|
6443
|
+
const defaultTipsPopover = {
|
|
6444
|
+
content: "",
|
|
6445
|
+
position: ["top"],
|
|
6446
|
+
trigger: "hover",
|
|
6447
|
+
popType: "info"
|
|
6448
|
+
};
|
|
6404
6449
|
const labelClasses = computed(() => ({
|
|
6405
6450
|
[`${ns2.e("label")}`]: true,
|
|
6406
6451
|
[`${ns2.em("label", "vertical")}`]: labelData.value.layout === "vertical",
|
|
@@ -6412,17 +6457,24 @@ function useFormLabel() {
|
|
|
6412
6457
|
[`${ns2.em("label", "required")}`]: formItemContext.isRequired,
|
|
6413
6458
|
[`${ns2.em("label", "required-hide")}`]: formItemContext.isRequired && formContext.hideRequiredMark
|
|
6414
6459
|
}));
|
|
6415
|
-
|
|
6460
|
+
const tipsPopover = computed(() => {
|
|
6461
|
+
if (typeof labelData.value.helpTips === "string") {
|
|
6462
|
+
return __spreadProps(__spreadValues({}, defaultTipsPopover), { content: labelData.value.helpTips });
|
|
6463
|
+
} else {
|
|
6464
|
+
return __spreadValues(__spreadValues({}, defaultTipsPopover), labelData.value.helpTips);
|
|
6465
|
+
}
|
|
6466
|
+
});
|
|
6467
|
+
return { labelClasses, labelInnerClasses, tipsPopover };
|
|
6416
6468
|
}
|
|
6417
6469
|
var formLabel = "";
|
|
6418
6470
|
var FormLabel = defineComponent({
|
|
6419
6471
|
name: "DFormLabel",
|
|
6420
|
-
|
|
6421
|
-
|
|
6422
|
-
const ns2 = useNamespace$1("form");
|
|
6472
|
+
setup(_, ctx2) {
|
|
6473
|
+
const ns2 = useNamespace("form");
|
|
6423
6474
|
const {
|
|
6424
6475
|
labelClasses,
|
|
6425
|
-
labelInnerClasses
|
|
6476
|
+
labelInnerClasses,
|
|
6477
|
+
tipsPopover
|
|
6426
6478
|
} = useFormLabel();
|
|
6427
6479
|
return () => {
|
|
6428
6480
|
var _a, _b;
|
|
@@ -6430,12 +6482,9 @@ var FormLabel = defineComponent({
|
|
|
6430
6482
|
"class": labelClasses.value
|
|
6431
6483
|
}, [createVNode("span", {
|
|
6432
6484
|
"class": labelInnerClasses.value
|
|
6433
|
-
}, [(_b = (_a = ctx2.slots).default) == null ? void 0 : _b.call(_a)]),
|
|
6434
|
-
"
|
|
6435
|
-
|
|
6436
|
-
"trigger": "hover",
|
|
6437
|
-
"pop-type": "info"
|
|
6438
|
-
}, {
|
|
6485
|
+
}, [(_b = (_a = ctx2.slots).default) == null ? void 0 : _b.call(_a)]), tipsPopover.value.content && createVNode(Popover, mergeProps({
|
|
6486
|
+
"class": ns2.e("label-tips-popover")
|
|
6487
|
+
}, tipsPopover.value), {
|
|
6439
6488
|
default: () => [createVNode(HelpTipsIcon, {
|
|
6440
6489
|
"class": ns2.e("label-help")
|
|
6441
6490
|
}, null), createTextVNode(",")]
|
|
@@ -6454,7 +6503,7 @@ const formControlProps = {
|
|
|
6454
6503
|
};
|
|
6455
6504
|
function useFormControl(props) {
|
|
6456
6505
|
const labelData = inject(LABEL_DATA);
|
|
6457
|
-
const ns2 = useNamespace
|
|
6506
|
+
const ns2 = useNamespace("form");
|
|
6458
6507
|
const { feedbackStatus } = toRefs(props);
|
|
6459
6508
|
const controlClasses = computed(() => ({
|
|
6460
6509
|
[ns2.e("control")]: true,
|
|
@@ -6466,7 +6515,7 @@ function useFormControl(props) {
|
|
|
6466
6515
|
[ns2.em("control-container", "has-feedback")]: Boolean(feedbackStatus == null ? void 0 : feedbackStatus.value),
|
|
6467
6516
|
[ns2.em("control-container", "feedback-error")]: Boolean((feedbackStatus == null ? void 0 : feedbackStatus.value) === "error")
|
|
6468
6517
|
}));
|
|
6469
|
-
return { controlClasses, controlContainerClasses };
|
|
6518
|
+
return { controlClasses, controlContainerClasses, labelData };
|
|
6470
6519
|
}
|
|
6471
6520
|
function useFormControlValidate() {
|
|
6472
6521
|
const formItemContext = inject(FORM_ITEM_TOKEN);
|
|
@@ -6483,11 +6532,15 @@ var FormControl = defineComponent({
|
|
|
6483
6532
|
name: "DFormControl",
|
|
6484
6533
|
props: formControlProps,
|
|
6485
6534
|
setup(props, ctx2) {
|
|
6535
|
+
const formContext = inject(FORM_TOKEN);
|
|
6486
6536
|
const formControl2 = ref();
|
|
6487
|
-
const
|
|
6537
|
+
const popoverRef = ref();
|
|
6538
|
+
const ns2 = useNamespace("form");
|
|
6539
|
+
const showPopoverClick = ref(true);
|
|
6488
6540
|
const {
|
|
6489
6541
|
controlClasses,
|
|
6490
|
-
controlContainerClasses
|
|
6542
|
+
controlContainerClasses,
|
|
6543
|
+
labelData
|
|
6491
6544
|
} = useFormControl(props);
|
|
6492
6545
|
const {
|
|
6493
6546
|
feedbackStatus,
|
|
@@ -6497,17 +6550,52 @@ var FormControl = defineComponent({
|
|
|
6497
6550
|
errorMessage,
|
|
6498
6551
|
popPosition
|
|
6499
6552
|
} = useFormControlValidate();
|
|
6553
|
+
const align = computed(() => {
|
|
6554
|
+
var _a, _b;
|
|
6555
|
+
if ((_a = popPosition.value) == null ? void 0 : _a.some((item) => item.includes("start"))) {
|
|
6556
|
+
return "start";
|
|
6557
|
+
}
|
|
6558
|
+
if ((_b = popPosition.value) == null ? void 0 : _b.some((item) => item.includes("end"))) {
|
|
6559
|
+
return "end";
|
|
6560
|
+
}
|
|
6561
|
+
return void 0;
|
|
6562
|
+
});
|
|
6563
|
+
const onDocumentClick = (e) => {
|
|
6564
|
+
const composedPath = e.composedPath();
|
|
6565
|
+
if (composedPath.includes(popoverRef.value.triggerEl)) {
|
|
6566
|
+
showPopoverClick.value = true;
|
|
6567
|
+
} else {
|
|
6568
|
+
showPopoverClick.value = false;
|
|
6569
|
+
}
|
|
6570
|
+
};
|
|
6571
|
+
watch(showPopover, (val) => {
|
|
6572
|
+
if (val) {
|
|
6573
|
+
setTimeout(() => {
|
|
6574
|
+
document.addEventListener("click", onDocumentClick);
|
|
6575
|
+
});
|
|
6576
|
+
} else {
|
|
6577
|
+
showPopoverClick.value = true;
|
|
6578
|
+
document.removeEventListener("click", onDocumentClick);
|
|
6579
|
+
}
|
|
6580
|
+
});
|
|
6581
|
+
onUnmounted(() => {
|
|
6582
|
+
document.removeEventListener("click", onDocumentClick);
|
|
6583
|
+
});
|
|
6500
6584
|
return () => createVNode("div", {
|
|
6501
6585
|
"class": controlClasses.value,
|
|
6502
6586
|
"ref": formControl2
|
|
6503
6587
|
}, [createVNode("div", {
|
|
6504
6588
|
"class": controlContainerClasses.value
|
|
6505
6589
|
}, [createVNode(Popover, {
|
|
6506
|
-
"
|
|
6590
|
+
"ref": popoverRef,
|
|
6591
|
+
"is-open": showPopover.value && showPopoverClick.value,
|
|
6507
6592
|
"trigger": "manually",
|
|
6508
6593
|
"content": errorMessage.value,
|
|
6509
6594
|
"pop-type": "error",
|
|
6510
|
-
"position": popPosition.value
|
|
6595
|
+
"position": popPosition.value,
|
|
6596
|
+
"align": align.value,
|
|
6597
|
+
"scroll-element": "auto",
|
|
6598
|
+
"append-to-body-scroll-strategy": formContext.appendToBodyScrollStrategy
|
|
6511
6599
|
}, {
|
|
6512
6600
|
default: () => {
|
|
6513
6601
|
var _a, _b;
|
|
@@ -6519,7 +6607,7 @@ var FormControl = defineComponent({
|
|
|
6519
6607
|
"class": ns2.e("control-info")
|
|
6520
6608
|
}, [showMessage.value && createVNode("div", {
|
|
6521
6609
|
"class": "error-message"
|
|
6522
|
-
}, [errorMessage.value]), props.extraInfo && createVNode("div", {
|
|
6610
|
+
}, [errorMessage.value]), labelData.value.formItemCtx.slots.extraInfo ? labelData.value.formItemCtx.slots.extraInfo() : props.extraInfo && createVNode("div", {
|
|
6523
6611
|
"class": ns2.e("control-extra")
|
|
6524
6612
|
}, [props.extraInfo])])]);
|
|
6525
6613
|
}
|
|
@@ -7538,7 +7626,7 @@ function getFieldValue(obj, path) {
|
|
|
7538
7626
|
}
|
|
7539
7627
|
function useFormItem(messageType, _rules, validateState) {
|
|
7540
7628
|
const formContext = inject(FORM_TOKEN);
|
|
7541
|
-
const ns2 = useNamespace
|
|
7629
|
+
const ns2 = useNamespace("form");
|
|
7542
7630
|
const itemClasses = computed(() => ({
|
|
7543
7631
|
[`${ns2.em("item", "horizontal")}`]: formContext.layout === "horizontal",
|
|
7544
7632
|
[`${ns2.em("item", "vertical")}`]: formContext.layout === "vertical",
|
|
@@ -7702,7 +7790,9 @@ defineComponent({
|
|
|
7702
7790
|
const labelData = computed(() => ({
|
|
7703
7791
|
layout: formContext.layout,
|
|
7704
7792
|
labelSize: formContext.labelSize,
|
|
7705
|
-
labelAlign: formContext.labelAlign
|
|
7793
|
+
labelAlign: formContext.labelAlign,
|
|
7794
|
+
helpTips: helpTips.value,
|
|
7795
|
+
formItemCtx: ctx2
|
|
7706
7796
|
}));
|
|
7707
7797
|
provide(LABEL_DATA, labelData);
|
|
7708
7798
|
const context = reactive(__spreadProps(__spreadValues({}, otherProps), {
|
|
@@ -7718,6 +7808,7 @@ defineComponent({
|
|
|
7718
7808
|
}));
|
|
7719
7809
|
provide(FORM_ITEM_TOKEN, context);
|
|
7720
7810
|
ctx2.expose({
|
|
7811
|
+
validate,
|
|
7721
7812
|
resetField,
|
|
7722
7813
|
clearValidate
|
|
7723
7814
|
});
|
|
@@ -7731,9 +7822,7 @@ defineComponent({
|
|
|
7731
7822
|
});
|
|
7732
7823
|
return () => createVNode("div", {
|
|
7733
7824
|
"class": itemClasses.value
|
|
7734
|
-
}, [createVNode(FormLabel, {
|
|
7735
|
-
"help-tips": helpTips.value
|
|
7736
|
-
}, {
|
|
7825
|
+
}, [createVNode(FormLabel, null, {
|
|
7737
7826
|
default: () => [ctx2.slots.label ? ctx2.slots.label() : label == null ? void 0 : label.value]
|
|
7738
7827
|
}), createVNode(FormControl, {
|
|
7739
7828
|
"feedback-status": feedbackStatus == null ? void 0 : feedbackStatus.value,
|
|
@@ -8302,41 +8391,6 @@ const checkboxGroupProps = __spreadProps(__spreadValues({}, commonProps), {
|
|
|
8302
8391
|
}
|
|
8303
8392
|
});
|
|
8304
8393
|
const checkboxGroupInjectionKey = Symbol("d-checkbox-group");
|
|
8305
|
-
function getElement(element) {
|
|
8306
|
-
if (element instanceof Element) {
|
|
8307
|
-
return element;
|
|
8308
|
-
}
|
|
8309
|
-
if (element && typeof element === "object" && element.$el instanceof Element) {
|
|
8310
|
-
return element.$el;
|
|
8311
|
-
}
|
|
8312
|
-
return null;
|
|
8313
|
-
}
|
|
8314
|
-
function createBem(namespace, element, modifier) {
|
|
8315
|
-
let cls = namespace;
|
|
8316
|
-
if (element) {
|
|
8317
|
-
cls += `__${element}`;
|
|
8318
|
-
}
|
|
8319
|
-
if (modifier) {
|
|
8320
|
-
cls += `--${modifier}`;
|
|
8321
|
-
}
|
|
8322
|
-
return cls;
|
|
8323
|
-
}
|
|
8324
|
-
function useNamespace(block, needDot = false) {
|
|
8325
|
-
const namespace = needDot ? `.devui-${block}` : `devui-${block}`;
|
|
8326
|
-
const b = () => createBem(namespace);
|
|
8327
|
-
const e = (element) => element ? createBem(namespace, element) : "";
|
|
8328
|
-
const m = (modifier) => modifier ? createBem(namespace, "", modifier) : "";
|
|
8329
|
-
const em = (element, modifier) => element && modifier ? createBem(namespace, element, modifier) : "";
|
|
8330
|
-
return {
|
|
8331
|
-
b,
|
|
8332
|
-
e,
|
|
8333
|
-
m,
|
|
8334
|
-
em
|
|
8335
|
-
};
|
|
8336
|
-
}
|
|
8337
|
-
function isUrl(value) {
|
|
8338
|
-
return /^((http|https):)?\/\//.test(value);
|
|
8339
|
-
}
|
|
8340
8394
|
function useCheckbox(props, ctx2) {
|
|
8341
8395
|
const formContext = inject(FORM_TOKEN, void 0);
|
|
8342
8396
|
const formItemContext = inject(FORM_ITEM_TOKEN, void 0);
|
|
@@ -9356,6 +9410,7 @@ var Select = defineComponent({
|
|
|
9356
9410
|
toggleChange,
|
|
9357
9411
|
isShowCreateOption
|
|
9358
9412
|
} = useSelect(props, selectRef, ctx2, focus, blur, isSelectFocus, t);
|
|
9413
|
+
const dropdownContainer = ref();
|
|
9359
9414
|
const scrollbarNs = useNamespace$1("scrollbar");
|
|
9360
9415
|
const ns2 = useNamespace$1("select");
|
|
9361
9416
|
const dropdownCls = ns2.e("dropdown");
|
|
@@ -9382,10 +9437,20 @@ var Select = defineComponent({
|
|
|
9382
9437
|
updateDropdownWidth();
|
|
9383
9438
|
}
|
|
9384
9439
|
});
|
|
9440
|
+
const scrollToBottom = () => {
|
|
9441
|
+
const compareHeight = dropdownContainer.value.scrollHeight - dropdownContainer.value.clientHeight;
|
|
9442
|
+
const scrollTop = dropdownContainer.value.scrollTop;
|
|
9443
|
+
if (scrollTop === compareHeight) {
|
|
9444
|
+
ctx2.emit("load-more");
|
|
9445
|
+
}
|
|
9446
|
+
};
|
|
9385
9447
|
onMounted(() => {
|
|
9386
9448
|
isRender.value = true;
|
|
9387
9449
|
updateDropdownWidth();
|
|
9388
9450
|
window.addEventListener("resize", updateDropdownWidth);
|
|
9451
|
+
nextTick(() => {
|
|
9452
|
+
dropdownContainer.value.addEventListener("scroll", scrollToBottom);
|
|
9453
|
+
});
|
|
9389
9454
|
});
|
|
9390
9455
|
onUnmounted(() => {
|
|
9391
9456
|
window.removeEventListener("resize", updateDropdownWidth);
|
|
@@ -9440,7 +9505,8 @@ var Select = defineComponent({
|
|
|
9440
9505
|
visibility: isOpen.value ? "visible" : "hidden"
|
|
9441
9506
|
}
|
|
9442
9507
|
}, [withDirectives(createVNode("ul", {
|
|
9443
|
-
"class": listCls
|
|
9508
|
+
"class": listCls,
|
|
9509
|
+
"ref": dropdownContainer
|
|
9444
9510
|
}, [isShowCreateOption.value && createVNode(Option, {
|
|
9445
9511
|
"value": filterQuery.value,
|
|
9446
9512
|
"name": filterQuery.value,
|