@para-ui/core 2.0.13 → 2.0.14
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/AutoBox/index.css +2 -0
- package/AutoBox/index.js +3 -3
- package/AutoTips/index.css +4 -0
- package/AutoTips/index.js +3 -3
- package/Breadcrumbs/index.css +2 -0
- package/Breadcrumbs/index.js +2 -2
- package/Button/index.css +4 -0
- package/Button/index.js +3 -3
- package/ButtonGroup/index.css +6 -0
- package/ButtonGroup/index.js +3 -3
- package/Cascader/index.css +2 -0
- package/Cascader/index.js +2 -2
- package/Checkbox/index.css +2 -0
- package/Checkbox/index.js +3 -3
- package/CheckboxGroup/index.css +4 -0
- package/CheckboxGroup/index.js +3 -3
- package/ColorPicker/index.css +2 -0
- package/ColorPicker/index.js +1 -1
- package/ComboSelect/index.css +28 -0
- package/ComboSelect/index.js +2 -2
- package/ComboSelect/interface.d.ts +2 -2
- package/Container/index.css +2 -0
- package/Container/index.js +2 -2
- package/DatePicker/index.css +6 -0
- package/DatePicker/index.js +2 -2
- package/Desktop/index.css +2 -0
- package/Desktop/index.js +2 -2
- package/Drawer/index.css +2 -0
- package/Drawer/index.js +3 -3
- package/Form/index.css +26 -0
- package/Form/index.js +2 -2
- package/FormItem/index.css +26 -0
- package/FormItem/index.js +2 -2
- package/FunctionModal/index.css +12 -0
- package/FunctionModal/index.js +3 -3
- package/Help/index.css +4 -0
- package/Help/index.js +3 -3
- package/IconList/index.css +2 -0
- package/IconList/index.js +3 -3
- package/InputLang/index.css +12 -0
- package/InputLang/index.js +3 -3
- package/InputNumber/index.css +10 -0
- package/InputNumber/index.js +3 -3
- package/Loading/index.css +2 -0
- package/Loading/index.js +3 -3
- package/Menu/index.css +2 -0
- package/Menu/index.js +3 -3
- package/Message/index.css +2 -0
- package/Message/index.js +3 -3
- package/Modal/Confirm/index.d.ts +4 -1
- package/Modal/index.css +10 -0
- package/Modal/index.js +2 -2
- package/MultiBox/index.css +10 -0
- package/MultiBox/index.js +3 -3
- package/PageHeader/index.css +6 -0
- package/PageHeader/index.js +3 -3
- package/Pagination/index.css +12 -0
- package/Pagination/index.js +2 -2
- package/ParauiProvider/index.css +2 -0
- package/ParauiProvider/index.js +3 -3
- package/PopConfirm/index.css +6 -0
- package/PopConfirm/index.js +3 -3
- package/Radio/index.css +2 -0
- package/Radio/index.js +3 -3
- package/RadioGroup/index.css +4 -0
- package/RadioGroup/index.js +3 -3
- package/Search/index.css +12 -0
- package/Search/index.js +2 -2
- package/Select/index.css +6 -0
- package/Select/index.js +3 -3
- package/SingleBox/index.css +10 -0
- package/SingleBox/index.js +3 -3
- package/Slider/index.css +2 -0
- package/Slider/index.js +3 -3
- package/Split/index.css +2 -0
- package/Split/index.js +3 -3
- package/Stepper/index.css +2 -0
- package/Stepper/index.js +3 -3
- package/Switch/index.css +2 -0
- package/Switch/index.js +2 -2
- package/Table/index.css +20 -0
- package/Table/index.js +2 -2
- package/Tabs/index.css +4 -0
- package/Tabs/index.js +3 -3
- package/TextField/index.css +8 -0
- package/TextField/index.js +3 -3
- package/TimePicker/index.css +6 -0
- package/TimePicker/index.js +2 -2
- package/Timeline/index.css +2 -0
- package/Timeline/index.js +3 -3
- package/ToggleButton/index.css +6 -0
- package/ToggleButton/index.js +3 -3
- package/Tooltip/index.css +2 -0
- package/Tooltip/index.js +3 -3
- package/Transfer/index.css +16 -0
- package/Transfer/index.js +3 -3
- package/Tree/index.css +8 -0
- package/Tree/index.js +2 -2
- package/Upload/index.css +12 -0
- package/Upload/index.js +3 -3
- package/index.js +2 -2
- package/package.json +4 -3
- package/style.css +17 -17
package/Form/index.css
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
.paraui-tooltip>div{font-size:14px;color:#fff;background-color:rgba(46,55,67,0.701961)}.paraui-tooltip-left-right>div{margin:0 8px}.paraui-tooltip-top-bottom>div{margin:8px 0}
|
|
2
|
+
|
|
3
|
+
.paraui-auto-tips{max-width:100%;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.paraui-auto-tips>.auto-tips-content{display:inline;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
|
|
4
|
+
|
|
5
|
+
@keyframes rotateLoading{0%{transformOrigin:50% 50%}100%{transform:rotate(360deg)}}.paraui-loading{position:absolute;left:0;top:0;width:100%;height:100%}.paraui-loading .paraui-loading-mask{position:absolute;width:100%;height:100%;background-color:white;z-index:1}.paraui-loading .paraui-loading-box{position:absolute;width:100%;height:100%;display:flex;justify-content:center;align-items:center;z-index:2}.paraui-loading .paraui-loading-box>svg{transition:all .3s ease-in-out;animation:rotateLoading 1s infinite linear;font-size:20px}
|
|
6
|
+
|
|
7
|
+
.paraui-text-field{font-family:Source Han Sans CN,Source Han Sans CN-Regular;font-size:14px;font-weight:400;display:inline-block;width:100%;padding-bottom:20px}.paraui-text-field>.text-field-label{color:rgba(46,55,67,0.701961);margin-bottom:8px;display:inline-block}.paraui-text-field>.text-field-label>.text-field-required{margin-left:2px;color:#eb6054}.paraui-text-field>.text-field-content{border:1px solid;border-radius:8px;border-color:rgba(171,176,185,0.4);display:flex;width:100%;position:relative}.paraui-text-field>.text-field-content:hover{border-color:#3666d6}.paraui-text-field>.text-field-content>.text-field-content-before{color:#2e3743;padding:0 12px;border-right:1px solid rgba(171,176,185,0.4);background-color:rgba(171,176,185,0.121569);border-bottom-left-radius:8px;border-top-left-radius:8px;white-space:nowrap;display:flex;align-items:center}.paraui-text-field>.text-field-content>.text-field-content-before svg{font-size:20px}.paraui-text-field>.text-field-content>.text-field-content-within{position:relative;width:100%;display:flex}.paraui-text-field>.text-field-content>.text-field-content-within>.right-icon{display:flex;height:100%;align-items:center;margin-right:12px;cursor:pointer;color:rgba(46,55,67,0.701961);position:relative;z-index:1}.paraui-text-field>.text-field-content>.text-field-content-within>.right-icon svg{color:rgba(46,55,67,0.701961);font-size:20px}.paraui-text-field>.text-field-content>.text-field-content-within>.length-limit{display:flex;height:100%;align-items:center;margin-right:12px;color:rgba(46,55,67,0.701961)}.paraui-text-field>.text-field-content>.text-field-content-within>.text-field-content-within-input{width:100%;line-height:0}.paraui-text-field>.text-field-content>.text-field-content-within>.text-field-content-within-input input::-webkit-outer-spin-button,.paraui-text-field>.text-field-content>.text-field-content-within>.text-field-content-within-input input::-webkit-inner-spin-button{-webkit-appearance:none}.paraui-text-field>.text-field-content>.text-field-content-within>.text-field-content-within-input input[type="number"]{-moz-appearance:textfield}.paraui-text-field>.text-field-content>.text-field-content-within>.text-field-content-within-input>input{width:100%;height:100%}.paraui-text-field>.text-field-content>.text-field-content-within>.text-field-content-within-input>textarea{width:100% !important;padding:12px}.paraui-text-field>.text-field-content>.text-field-content-within>.text-field-content-within-input>input,.paraui-text-field>.text-field-content>.text-field-content-within>.text-field-content-within-input>textarea{font-size:14px;color:#2e3743;border:0;border-radius:8px}.paraui-text-field>.text-field-content>.text-field-content-within>.text-field-content-within-input>input::-ms-clear,.paraui-text-field>.text-field-content>.text-field-content-within>.text-field-content-within-input>textarea::-ms-clear{display:none}.paraui-text-field>.text-field-content>.text-field-content-within>.text-field-content-within-input>input::-ms-reveal,.paraui-text-field>.text-field-content>.text-field-content-within>.text-field-content-within-input>textarea::-ms-reveal{display:none}.paraui-text-field>.text-field-content>.text-field-content-within>.text-field-content-within-input>input:disabled,.paraui-text-field>.text-field-content>.text-field-content-within>.text-field-content-within-input>textarea:disabled{background-color:transparent}.paraui-text-field>.text-field-content>.text-field-content-within>.text-field-content-within-input>.text-field-label-placeholder{width:100%;position:absolute;left:0;top:0;height:100%;padding:0 12px;color:rgba(46,55,67,0.4);cursor:text;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.paraui-text-field>.text-field-content>.text-field-content-within>.text-field-content-within-input>.text-field-label-placeholder>.text-field-required{margin-left:2px;color:#eb6054}.paraui-text-field>.text-field-content>.text-field-content-after{color:#2e3743;padding:0 12px;border-left:1px solid rgba(171,176,185,0.4);background-color:rgba(171,176,185,0.121569);border-bottom-right-radius:8px;border-top-right-radius:8px;white-space:nowrap;display:flex;align-items:center}.paraui-text-field>.text-field-content>.text-field-content-after svg{font-size:20px}.paraui-text-field>.text-field-error-text{margin:8px 0 0 0;padding-left:12px;line-height:1}.paraui-text-field.text-field-multiline>.text-field-content .text-field-content-within>.length-limit{height:14px;position:absolute;right:0;bottom:8px}.paraui-text-field.text-field-multiline>.text-field-content .text-field-content-within>.text-field-content-within-input>.text-field-label-placeholder{padding-top:12px;line-height:1;height:calc(100% - 14px)}.paraui-text-field.text-field-disabled>.text-field-content{background-color:rgba(171,176,185,0.121569)}.paraui-text-field.text-field-disabled>.text-field-content:hover{border-color:rgba(171,176,185,0.4)}.paraui-text-field.text-field-disabled>.text-field-content>.text-field-content-before{background-color:transparent}.paraui-text-field.text-field-disabled>.text-field-content>.text-field-content-within>.text-field-content-within-input>.text-field-label-placeholder{cursor:not-allowed}.paraui-text-field.text-field-disabled>.text-field-content>.text-field-content-within>.text-field-content-within-input>input,.paraui-text-field.text-field-disabled>.text-field-content>.text-field-content-within>.text-field-content-within-input>textarea{cursor:not-allowed}.paraui-text-field.text-field-disabled>.text-field-content>.text-field-content-after{background-color:transparent}.paraui-text-field.text-field-error>.text-field-error-text{color:#eb6054}.paraui-text-field.text-field-error>.text-field-content{border-color:#eb6054}.paraui-text-field.text-field-error>.text-field-content:hover{border-color:#eb6054}.paraui-text-field.text-field-limit>.text-field-content{border-color:#eb6054 !important}.paraui-text-field.text-field-limit>.text-field-content:hover{border-color:#eb6054 !important}.paraui-text-field.text-field-focus>.text-field-content{border-color:#3666d6}.paraui-text-field.text-field-small>.text-field-content{height:28px}.paraui-text-field.text-field-small>.text-field-content>.text-field-content-before{line-height:26px}.paraui-text-field.text-field-small>.text-field-content>.text-field-content-within>.text-field-content-within-input{height:26px}.paraui-text-field.text-field-small>.text-field-content>.text-field-content-within>.text-field-content-within-input>input{padding:6px 12px}.paraui-text-field.text-field-small>.text-field-content>.text-field-content-within>.text-field-content-within-input>.text-field-label-placeholder{line-height:26px}.paraui-text-field.text-field-small>.text-field-content .text-field-content-after{line-height:26px}.paraui-text-field.text-field-medium>.text-field-content{height:32px}.paraui-text-field.text-field-medium>.text-field-content>.text-field-content-before{line-height:30px}.paraui-text-field.text-field-medium>.text-field-content>.text-field-content-within>.text-field-content-within-input{height:30px}.paraui-text-field.text-field-medium>.text-field-content>.text-field-content-within>.text-field-content-within-input>input{padding:8px 12px}.paraui-text-field.text-field-medium>.text-field-content>.text-field-content-within>.text-field-content-within-input>.text-field-label-placeholder{line-height:30px}.paraui-text-field.text-field-medium>.text-field-content .text-field-content-after{line-height:30px}.paraui-text-field.text-field-large>.text-field-content{height:36px}.paraui-text-field.text-field-large>.text-field-content>.text-field-content-before{line-height:34px}.paraui-text-field.text-field-large>.text-field-content>.text-field-content-within>.text-field-content-within-input{height:34px}.paraui-text-field.text-field-large>.text-field-content>.text-field-content-within>.text-field-content-within-input>input{padding:10px 12px}.paraui-text-field.text-field-large>.text-field-content>.text-field-content-within>.text-field-content-within-input>.text-field-label-placeholder{line-height:34px}.paraui-text-field.text-field-large>.text-field-content .text-field-content-after{line-height:34px}.paraui-text-field-select>div{max-width:none;padding:0;background-color:white;box-shadow:0px 2px 8px 0px rgba(171,176,185,0.4);border-radius:8px;font-family:Source Han Sans CN,Source Han Sans CN-Regular;font-size:14px;font-weight:400}.paraui-text-field-select>div>span{color:white}.paraui-text-field-select>div .text-field-select-content{max-height:300px;overflow:auto}.paraui-text-field-select>div .text-field-select-content>.text-field-select-content-item{display:flex;cursor:pointer;color:#2e3743;padding:0 12px}.paraui-text-field-select>div .text-field-select-content>.text-field-select-content-item:hover{background-color:rgba(171,176,185,0.121569);color:#3666d6}.paraui-text-field-select>div .text-field-select-content>.text-field-select-content-item.text-field-select-content-item-keydown{background-color:rgba(171,176,185,0.121569);color:#3666d6}.paraui-text-field-select>div .text-field-select-content.text-field-select-content-loading{height:100px;position:relative;overflow:hidden}.paraui-text-field-select.paraui-text-field-select-small>div .text-field-select-content>.text-field-select-content-item{line-height:28px}.paraui-text-field-select.paraui-text-field-select-medium>div .text-field-select-content>.text-field-select-content-item{line-height:32px}.paraui-text-field-select.paraui-text-field-select-large>div .text-field-select-content>.text-field-select-content-item{line-height:36px}
|
|
8
|
+
|
|
9
|
+
.paraui-radio{font-family:Source Han Sans CN,Source Han Sans CN-Regular;font-size:14px;font-weight:400;cursor:pointer;display:inline-flex;align-items:center;line-height:14px}.paraui-radio:hover>.paraui-radio-label{color:#3666d6}.paraui-radio:hover>.paraui-radio-box>.paraui-radio-box-inner{border-color:#3666d6}.paraui-radio>.paraui-radio-box{position:relative}.paraui-radio>.paraui-radio-box>input{position:absolute;top:0;right:0;bottom:0;left:0;z-index:1;width:100%;height:100%;opacity:0;cursor:pointer}.paraui-radio>.paraui-radio-box>.paraui-radio-box-inner{position:relative;top:0;left:0;display:block;background-color:white;border:1px solid rgba(171,176,185,0.4);border-radius:50%;background-color:white}.paraui-radio>.paraui-radio-box>.paraui-radio-box-inner:after{position:absolute;display:table;content:" ";transform:scale(1) translate(-50%, -50%);width:6px;height:6px;border-radius:50%;left:50%;top:50%}.paraui-radio>.paraui-radio-label{color:#2e3743;padding:0 8px}.paraui-radio.radio-checked>.paraui-radio-box>.paraui-radio-box-inner{border-color:#3666d6}.paraui-radio.radio-checked>.paraui-radio-box>.paraui-radio-box-inner:after{background-color:#3666d6}.paraui-radio.radio-checked>.paraui-radio-label{color:#3666d6}.paraui-radio.radio-disabled{cursor:not-allowed}.paraui-radio.radio-disabled>.paraui-radio-label{color:rgba(46,55,67,0.4)}.paraui-radio.radio-disabled>.paraui-radio-box>input{cursor:not-allowed}.paraui-radio.radio-disabled>.paraui-radio-box>.paraui-radio-box-inner{background-color:rgba(171,176,185,0.121569);border-color:rgba(171,176,185,0.4)}.paraui-radio.radio-disabled.radio-checked>.paraui-radio-box>.paraui-radio-box-inner:after{background-color:rgba(46,55,67,0.4)}.paraui-radio.radio-small>.paraui-radio-box>.paraui-radio-box-inner{width:14px;height:14px}.paraui-radio.radio-medium>.paraui-radio-box>.paraui-radio-box-inner{width:16px;height:16px}.paraui-radio.radio-large>.paraui-radio-box>.paraui-radio-box-inner{width:16px;height:16px}
|
|
10
|
+
|
|
11
|
+
.paraui-radio-group{font-family:Source Han Sans CN,Source Han Sans CN-Regular;font-size:14px;font-weight:400;width:100%;padding-bottom:20px}.paraui-radio-group>.radio-group-label{color:rgba(46,55,67,0.701961);margin-bottom:8px;display:inline-block}.paraui-radio-group>.radio-group-label>.required-char{margin-left:2px;color:#eb6054}.paraui-radio-group>.radio-group-content{line-height:0}.paraui-radio-group>.radio-group-error-text{margin:8px 0 0 0;padding-left:12px;line-height:1}.paraui-radio-group.radio-group-error>.check-box-group-error-text{color:#eb6054}
|
|
12
|
+
|
|
13
|
+
.paraui-select{font-family:Source Han Sans CN,Source Han Sans CN-Regular;font-size:14px;font-weight:400;padding-bottom:20px;display:inline-block;vertical-align:top;width:100%}.paraui-select>.select-label{display:inline-block;margin-bottom:8px;color:rgba(46,55,67,0.701961)}.paraui-select>.select-label>.select-required{margin-left:2px;color:#eb6054}.paraui-select>.select-content{line-height:0;border:1px solid;border-radius:8px;border-color:rgba(171,176,185,0.4);padding-right:40px;position:relative;cursor:pointer}.paraui-select>.select-content:hover{border-color:#3666d6}.paraui-select>.select-content:hover>.select-svg>svg{color:#3666d6}.paraui-select>.select-content>.select-label-placeholder{width:100%;height:100%;padding:0 12px;color:rgba(46,55,67,0.4);display:inline-block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;position:absolute;left:0;top:0;z-index:1}.paraui-select>.select-content>.select-label-placeholder>.select-required{margin-left:2px;color:#eb6054}.paraui-select>.select-content>.select-svg{position:absolute;right:12px;top:0;z-index:2}.paraui-select>.select-content>.select-svg>svg{font-size:20px;transition:all .3s;color:rgba(46,55,67,0.701961)}.paraui-select>.select-content>.radio-select-content{padding-left:12px;font-size:14px;line-height:16px}.paraui-select>.select-content>.radio-search-outside{position:absolute;top:0;left:0;width:100%;height:100%;padding:0 30px 0 10px;font-size:14px;cursor:pointer;color:#2e3743;border:0;border-radius:8px;background:transparent}.paraui-select>.select-content>.check-select-content{padding-left:12px;height:100%;overflow:hidden}.paraui-select>.select-content>.check-select-content>.check-select-content-item{display:inline-block;background-color:rgba(171,176,185,0.2);border-radius:4px;padding:0 12px 0 12px;color:#2e3743;margin-right:8px;vertical-align:top;max-width:100%;white-space:nowrap}.paraui-select>.select-content>.check-select-content>.check-select-content-item.check-select-content-item-more{cursor:pointer;color:#2e3743}.paraui-select>.select-content>.check-select-content>.check-select-content-item.check-select-content-item-more>span{max-width:none}.paraui-select>.select-content>.check-select-content>.check-select-content-item>span{display:inline-block;height:100%;vertical-align:top;max-width:calc(100% - 20px);overflow:hidden;text-overflow:ellipsis}.paraui-select>.select-content>.check-select-content>.check-select-content-item>svg{cursor:pointer;margin-left:8px;color:#2e3743;font-size:16px;position:relative}.paraui-select>.select-content>.check-select-content>.check-select-content-item>svg:hover{color:#3666d6}.paraui-select>.select-content>.check-select-content>.check-select-content-item.check-select-content-item-noclose>span{max-width:none}.paraui-select>.select-content>.check-select-content>.check-search-outside{width:10px;max-width:100% !important;display:none;border:0;color:#2e3743;font-size:14px;cursor:pointer}.paraui-select>.select-error-text{margin:8px 0 0 0;padding-left:12px;line-height:1}.paraui-select.select-disabled>.select-content{background-color:rgba(171,176,185,0.121569);cursor:not-allowed}.paraui-select.select-disabled>.select-content:hover{border-color:rgba(171,176,185,0.4)}.paraui-select.select-disabled>.select-content:hover>.select-svg>svg{color:rgba(46,55,67,0.701961)}.paraui-select.select-disabled>.select-content>.check-select-content>.check-select-content-item>span{max-width:100%}.paraui-select.select-error>.select-content{border-color:#eb6054 !important}.paraui-select.select-error>.select-error-text{color:#eb6054}.paraui-select.select-open>.select-content{border-color:#3666d6}.paraui-select.select-open>.select-content>.select-svg>svg{transform:rotate(180deg);color:#3666d6}.paraui-select.select-open>.select-content>.check-select-content>.check-search-outside{display:inline-block}.paraui-select.select-small>.select-content{height:28px}.paraui-select.select-small>.select-content>.select-label-placeholder{line-height:26px}.paraui-select.select-small>.select-content>.select-svg{top:3px}.paraui-select.select-small>.select-content>.radio-select-content{padding-bottom:5px;padding-top:5px}.paraui-select.select-small>.select-content>.check-select-content{padding-bottom:3px}.paraui-select.select-small>.select-content>.check-select-content>.check-select-content-item{margin-top:3px;height:20px;line-height:20px}.paraui-select.select-small>.select-content>.check-select-content>.check-select-content-item>svg{top:2px}.paraui-select.select-small>.select-content>.check-select-content>.check-search-outside{margin-top:3px;height:20px}.paraui-select.select-medium>.select-content{height:32px}.paraui-select.select-medium>.select-content>.select-label-placeholder{line-height:30px}.paraui-select.select-medium>.select-content>.select-svg{top:6px}.paraui-select.select-medium>.select-content>.radio-select-content{padding-bottom:7px;padding-top:7px}.paraui-select.select-medium>.select-content>.check-select-content{padding-bottom:4px}.paraui-select.select-medium>.select-content>.check-select-content>.check-select-content-item{margin-top:4px;height:22px;line-height:22px}.paraui-select.select-medium>.select-content>.check-select-content>.check-select-content-item>svg{top:3px}.paraui-select.select-medium>.select-content>.check-select-content>.check-search-outside{margin-top:4px;height:22px}.paraui-select.select-large>.select-content{height:36px}.paraui-select.select-large>.select-content>.select-label-placeholder{line-height:34px}.paraui-select.select-large>.select-content>.select-svg{top:8px}.paraui-select.select-large>.select-content>.radio-select-content{padding-bottom:9px;padding-top:9px}.paraui-select.select-large>.select-content>.check-select-content{padding-bottom:5px}.paraui-select.select-large>.select-content>.check-select-content>.check-select-content-item{margin-top:5px;height:24px;line-height:24px}.paraui-select.select-large>.select-content>.check-select-content>.check-select-content-item>svg{top:3px}.paraui-select.select-large>.select-content>.check-select-content>.check-search-outside{margin-top:5px;height:24px}.paraui-select.select-over-line.select-small>.select-content{height:inherit;min-height:28px}.paraui-select.select-over-line.select-medium>.select-content{height:inherit;min-height:32px}.paraui-select.select-over-line.select-large>.select-content{height:inherit;min-height:36px}.paraui-select-popover>div{max-width:none;padding:0;background-color:white;box-shadow:0px 2px 8px 0px rgba(171,176,185,0.4);border-radius:8px}.paraui-select-popover>div>span{color:white}.paraui-select-popover>div .select-popover-content>.select-popover-search{display:flex;align-items:center;padding:0 12px;border-bottom:1px solid;border-color:rgba(171,176,185,0.2)}.paraui-select-popover>div .select-popover-content>.select-popover-search>input{border:0;outline:none;font-size:14px;color:#2e3743;width:100%}.paraui-select-popover>div .select-popover-content>.select-popover-search>input::placeholder{font-size:14px;opacity:1;color:rgba(46,55,67,0.4)}.paraui-select-popover>div .select-popover-content>.select-popover-search>svg{color:rgba(46,55,67,0.4);font-size:20px;cursor:pointer}.paraui-select-popover>div .select-popover-content>.select-popover-list{max-height:200px;overflow:auto}.paraui-select-popover>div .select-popover-content>.select-popover-list .select-popover-list-item{display:flex;cursor:pointer;padding:0 12px;align-items:center}.paraui-select-popover>div .select-popover-content>.select-popover-list .select-popover-list-item>.select-popover-list-item-label{width:calc(100% - 25px);color:#2e3743;font-size:14px}.paraui-select-popover>div .select-popover-content>.select-popover-list .select-popover-list-item>.select-popover-list-item-svg{line-height:0;display:none}.paraui-select-popover>div .select-popover-content>.select-popover-list .select-popover-list-item>.select-popover-list-item-svg>svg{font-size:20px;color:#3666d6}.paraui-select-popover>div .select-popover-content>.select-popover-list .select-popover-list-item.select-popover-list-item-select>.select-popover-list-item-label{color:#3666d6}.paraui-select-popover>div .select-popover-content>.select-popover-list .select-popover-list-item.select-popover-list-item-select>.select-popover-list-item-svg{display:inline-block}.paraui-select-popover>div .select-popover-content>.select-popover-list .select-popover-list-item.select-popover-list-item-hover{background-color:rgba(171,176,185,0.121569)}.paraui-select-popover>div .select-popover-content>.select-popover-list .select-popover-list-item.select-popover-list-item-hover>.select-popover-list-item-label{color:#3666d6}.paraui-select-popover>div .select-popover-content>.select-popover-list .select-popover-list-item.select-popover-list-item-keydown{background-color:rgba(171,176,185,0.121569)}.paraui-select-popover>div .select-popover-content>.select-popover-list .select-popover-list-item.select-popover-list-item-keydown>.select-popover-list-item-label{color:#3666d6}.paraui-select-popover>div .select-popover-content>.select-popover-list .select-popover-list-item.select-popover-list-item-disabled{background-color:rgba(171,176,185,0.121569) !important;cursor:not-allowed}.paraui-select-popover>div .select-popover-content>.select-popover-list .select-popover-list-item.select-popover-list-item-disabled>.select-popover-list-item-label{color:#2e3743 !important}.paraui-select-popover>div .select-popover-content>.select-popover-list>.select-popover-list-group .select-popover-list-group-label{display:inline-block;width:100%;padding:0 12px;color:rgba(46,55,67,0.4);font-size:14px}.paraui-select-popover>div .select-popover-content>.select-popover-list>.select-popover-list-group .select-popover-list-item{padding-left:20px}.paraui-select-popover>div .select-popover-content>.select-popover-list>.select-nodata{text-align:center;font-size:14px;color:#2e3743;padding:10px}.paraui-select-popover.paraui-select-popover-radio>div .select-popover-content>.select-popover-list .select-popover-list-item>.select-popover-list-item-label{width:100%}.paraui-select-popover.paraui-select-popover-small>div .select-popover-content>.select-popover-search{height:28px}.paraui-select-popover.paraui-select-popover-small>div .select-popover-content>.select-popover-list .select-popover-list-item{line-height:28px}.paraui-select-popover.paraui-select-popover-small>div .select-popover-content>.select-popover-list>.select-popover-list-group .select-popover-list-group-label{line-height:28px}.paraui-select-popover.paraui-select-popover-medium>div .select-popover-content>.select-popover-search{height:32px}.paraui-select-popover.paraui-select-popover-medium>div .select-popover-content>.select-popover-list .select-popover-list-item{line-height:32px}.paraui-select-popover.paraui-select-popover-medium>div .select-popover-content>.select-popover-list>.select-popover-list-group .select-popover-list-group-label{line-height:32px}.paraui-select-popover.paraui-select-popover-large>div .select-popover-content>.select-popover-search{height:36px}.paraui-select-popover.paraui-select-popover-large>div .select-popover-content>.select-popover-list .select-popover-list-item{line-height:36px}.paraui-select-popover.paraui-select-popover-large>div .select-popover-content>.select-popover-list>.select-popover-list-group .select-popover-list-group-label{line-height:36px}.paraui-select-more-popover>div:nth-of-type(3),.paraui-select-more-popover>div:nth-of-type(2){margin-left:20px}.paraui-select-more-popover .select-more{width:300px}.paraui-select-more-popover .select-more>.select-more-title{font-size:14px;padding:0 12px;color:rgba(46,55,67,0.701961)}.paraui-select-more-popover .select-more>.select-more-content{max-height:300px;overflow:auto}.paraui-select-more-popover .select-more>.select-more-content>.select-more-content-item{padding:0 12px;display:flex;justify-content:space-around;align-items:center}.paraui-select-more-popover .select-more>.select-more-content>.select-more-content-item>span{width:calc(100% - 25px);display:inline-block;font-size:14px}.paraui-select-more-popover .select-more>.select-more-content>.select-more-content-item>svg{font-size:20px;position:relative;cursor:pointer;color:#2e3743}.paraui-select-more-popover .select-more>.select-more-content>.select-more-content-item>svg:hover{color:#3666d6}.paraui-select-more-popover.paraui-select-more-popover-small .select-more>.select-more-title{line-height:28px}.paraui-select-more-popover.paraui-select-more-popover-small .select-more>.select-more-content>.select-more-content-item{line-height:28px}.paraui-select-more-popover.paraui-select-more-popover-medium .select-more>.select-more-title{line-height:32px}.paraui-select-more-popover.paraui-select-more-popover-medium .select-more>.select-more-content>.select-more-content-item{line-height:32px}.paraui-select-more-popover.paraui-select-more-popover-large .select-more>.select-more-title{line-height:36px}.paraui-select-more-popover.paraui-select-more-popover-large .select-more>.select-more-content>.select-more-content-item{line-height:36px}
|
|
14
|
+
|
|
15
|
+
.paraui-check-box{font-family:Source Han Sans CN,Source Han Sans CN-Regular;font-size:14px;font-weight:400;cursor:pointer;display:inline-flex;align-items:center;line-height:14px}.paraui-check-box:hover>.paraui-check-box-label{color:#3666d6}.paraui-check-box:hover>.paraui-checkbox-box>.paraui-checkbox-box-inner{border-color:#3666d6}.paraui-check-box>.paraui-checkbox-box{position:relative}.paraui-check-box>.paraui-checkbox-box>input{position:absolute;top:0;right:0;bottom:0;left:0;z-index:1;width:100%;height:100%;opacity:0;cursor:pointer}.paraui-check-box>.paraui-checkbox-box>.paraui-checkbox-box-inner{position:relative;top:0;left:0;display:block;border-radius:2px;background-color:white;border:1px solid rgba(171,176,185,0.4)}.paraui-check-box>.paraui-checkbox-box>.paraui-checkbox-box-inner:after{position:absolute;display:table;content:" "}.paraui-check-box>.paraui-check-box-label{color:#2e3743;padding:0 8px}.paraui-check-box.check-box-checked>.paraui-checkbox-box>.paraui-checkbox-box-inner{background-color:#3666d6}.paraui-check-box.check-box-checked>.paraui-checkbox-box>.paraui-checkbox-box-inner:after{border:1px solid white;border-top:0;border-left:0;transform:rotate(45deg) scale(1) translate(-50%, -50%)}.paraui-check-box.check-box-checked>.paraui-check-box-label{color:#3666d6}.paraui-check-box.check-box-indeterminate>.paraui-checkbox-box>.paraui-checkbox-box-inner{background-color:#3666d6}.paraui-check-box.check-box-indeterminate>.paraui-checkbox-box>.paraui-checkbox-box-inner:after{background-color:white;top:50%;left:50%;transform:translate(-50%, -50%) scale(1)}.paraui-check-box.check-box-indeterminate>.paraui-check-box-label{color:#3666d6}.paraui-check-box.check-box-disabled{cursor:not-allowed}.paraui-check-box.check-box-disabled>.paraui-check-box-label{color:rgba(46,55,67,0.4)}.paraui-check-box.check-box-disabled>.paraui-checkbox-box>input{cursor:not-allowed}.paraui-check-box.check-box-disabled>.paraui-checkbox-box>.paraui-checkbox-box-inner{background-color:rgba(171,176,185,0.121569);border-color:rgba(171,176,185,0.4)}.paraui-check-box.check-box-disabled.check-box-checked>.paraui-checkbox-box>.paraui-checkbox-box-inner:after{border-color:rgba(46,55,67,0.4)}.paraui-check-box.check-box-disabled.check-box-indeterminate>.paraui-checkbox-box>.paraui-checkbox-box-inner:after{background-color:rgba(46,55,67,0.4)}.paraui-check-box.check-box-small>.paraui-checkbox-box>.paraui-checkbox-box-inner{width:14px;height:14px}.paraui-check-box.check-box-small.check-box-checked>.paraui-checkbox-box>.paraui-checkbox-box-inner:after{top:45%;left:21%;width:4px;height:7px}.paraui-check-box.check-box-small.check-box-indeterminate>.paraui-checkbox-box>.paraui-checkbox-box-inner:after{width:8px;height:1px}.paraui-check-box.check-box-medium>.paraui-checkbox-box>.paraui-checkbox-box-inner{width:16px;height:16px}.paraui-check-box.check-box-medium.check-box-checked>.paraui-checkbox-box>.paraui-checkbox-box-inner:after{top:45%;left:21%;width:5px;height:8px}.paraui-check-box.check-box-medium.check-box-indeterminate>.paraui-checkbox-box>.paraui-checkbox-box-inner:after{width:8px;height:1px}.paraui-check-box.check-box-large>.paraui-checkbox-box>.paraui-checkbox-box-inner{width:16px;height:16px}.paraui-check-box.check-box-large.check-box-checked>.paraui-checkbox-box>.paraui-checkbox-box-inner:after{top:45%;left:21%;width:5px;height:8px}.paraui-check-box.check-box-large.check-box-indeterminate>.paraui-checkbox-box>.paraui-checkbox-box-inner:after{width:8px;height:1px}
|
|
16
|
+
|
|
17
|
+
.paraui-check-box-group{font-family:Source Han Sans CN,Source Han Sans CN-Regular;font-size:14px;font-weight:400;width:100%;padding-bottom:20px}.paraui-check-box-group>.check-box-group-label{color:rgba(46,55,67,0.701961);margin-bottom:8px;display:inline-block}.paraui-check-box-group>.check-box-group-label>.required-char{margin-left:2px;color:#eb6054}.paraui-check-box-group>.check-box-group-content{line-height:0}.paraui-check-box-group>.check-box-group-error-text{margin:8px 0 0 0;padding-left:12px;line-height:1}.paraui-check-box-group.check-box-group-error>.check-box-group-error-text{color:#eb6054}
|
|
18
|
+
|
|
19
|
+
.paraui-switch{position:relative;display:inline-block;min-width:32px;height:14px;line-height:14px;vertical-align:middle;background-color:rgba(171,176,185,0.4);border:0;border-radius:100px;cursor:pointer;transition:all .2s;user-select:none}.paraui-switch:focus{outline:0;box-shadow:none}.paraui-switch-checked:focus{box-shadow:none}.paraui-switch:focus:hover{box-shadow:none}.paraui-switch-checked{background-color:rgba(54,102,214,0.2)}.paraui-switch-loading,.paraui-switch-disabled{cursor:not-allowed;opacity:.4}.paraui-switch-loading *,.paraui-switch-disabled *{box-shadow:none;cursor:not-allowed}.paraui-switch-inner{display:block;margin:0 7px 0 25px;color:#fff;font-size:14px;transition:margin .2s}.paraui-switch-checked .paraui-switch-inner{margin:0 25px 0 7px}.paraui-switch-handle{position:absolute;top:-2px;left:-2px;width:18px;height:18px;transition:all .2s ease-in-out}.paraui-switch-handle::before{position:absolute;top:0;right:0;bottom:0;left:0;background-color:#8996AA;border-radius:9px;box-shadow:none;transition:all .2s ease-in-out;content:""}.paraui-switch-checked .paraui-switch-handle{left:calc(100% - 18px + 2px)}.paraui-switch-checked .paraui-switch-handle::before{background-color:#3666d6}.paraui-switch:not(.paraui-switch-disabled):active .paraui-switch-handle::before{right:-30%;left:0}.paraui-switch:not(.paraui-switch-disabled):active.paraui-switch-checked .paraui-switch-handle::before{right:0;left:-30%}.paraui-switch-loading-icon{position:relative;top:2px;color:#3666d6;vertical-align:top;animation:loadingCircle 1s infinite linear}.paraui-switch-checked .paraui-switch-loading-icon{color:#fff}.paraui-switch-small{min-width:28px;height:14px;line-height:14px}.paraui-switch-small .paraui-switch-inner{margin:0 5px 0 18px;font-size:14px}.paraui-switch-small .paraui-switch-handle{width:12px;height:12px}.paraui-switch-small .paraui-switch-loading-icon{top:1.5px;font-size:9px}.paraui-switch-small.paraui-switch-checked .paraui-switch-inner{margin:0 18px 0 5px}.paraui-switch-small.paraui-switch-checked .paraui-switch-handle{left:calc(100% - 12px - 2px)}@keyframes loadingCircle{100%{transform:rotate(360deg)}}
|
|
20
|
+
|
|
21
|
+
@keyframes loadingSpin{0%{transform:rotate(0)}100%{transform:rotate(360deg)}}.paraui-button{min-width:auto;padding:0 16px;line-height:normal;text-transform:none;border-radius:8px;font-family:Source Han Sans CN,Source Han Sans CN-Regular;font-size:14px;font-weight:400}.paraui-button-loading{pointer-events:none}.paraui-button-contained{color:#fff;background-color:#3666d6;box-shadow:none}.paraui-button-contained:hover{background-color:rgba(54,102,214,0.8);box-shadow:none}.paraui-button-contained[disabled]{color:rgba(46,55,67,0.4);background-color:rgba(171,176,185,0.121569);border:1px solid rgba(171,176,185,0.4);box-shadow:none}.paraui-button-contained[disabled]:hover{background-color:rgba(171,176,185,0.121569)}.paraui-button-contained .btn-icon{display:inline-flex;color:inherit}.paraui-button-contained .btn-icon svg{color:inherit;font-size:16px}.paraui-button-contained .btn-icon.start-icon{margin-right:-3px}.paraui-button-contained .btn-icon.end-icon{margin-left:-3px}.paraui-button-contained .btn-icon.loading-icon{margin-right:-3px;animation:loadingSpin 1s infinite linear}.paraui-button-contained.paraui-button-dangerous{background-color:#eb6054}.paraui-button-outlined{color:rgba(46,55,67,0.701961);background-color:#fff;border:1px solid rgba(171,176,185,0.4);box-shadow:none}.paraui-button-outlined:hover{color:#3666d6;border-color:rgba(54,102,214,0.2);background-color:#fff;box-shadow:none}.paraui-button-outlined[disabled]{color:rgba(46,55,67,0.4);background-color:rgba(171,176,185,0.121569);border:1px solid rgba(171,176,185,0.4);box-shadow:none}.paraui-button-outlined[disabled]:hover{background-color:rgba(171,176,185,0.121569)}.paraui-button-outlined .btn-icon{display:inline-flex;color:inherit}.paraui-button-outlined .btn-icon svg{color:inherit;font-size:16px}.paraui-button-outlined .btn-icon.start-icon{margin-right:-3px}.paraui-button-outlined .btn-icon.end-icon{margin-left:-3px}.paraui-button-outlined .btn-icon.loading-icon{margin-right:-3px;animation:loadingSpin 1s infinite linear}.paraui-button-outlined.paraui-button-dangerous{color:#eb6054;border-color:#eb6054}.paraui-button-outlined.paraui-button-dangerous:hover{border-color:rgba(235,96,84,0.8)}.paraui-button-text{color:rgba(46,55,67,0.701961);background-color:#fff;border:1px solid rgba(171,176,185,0.4);box-shadow:none;background-color:transparent;border:none}.paraui-button-text:hover{color:#3666d6;background-color:transparent;box-shadow:none}.paraui-button-text[disabled]{color:rgba(46,55,67,0.4);background-color:rgba(171,176,185,0.121569);border:1px solid rgba(171,176,185,0.4);box-shadow:none}.paraui-button-text[disabled]:hover{background-color:rgba(171,176,185,0.121569)}.paraui-button-text .btn-icon{display:inline-flex;color:inherit}.paraui-button-text .btn-icon svg{color:inherit;font-size:16px}.paraui-button-text .btn-icon.start-icon{margin-right:-3px}.paraui-button-text .btn-icon.end-icon{margin-left:-3px}.paraui-button-text .btn-icon.loading-icon{margin-right:-3px;animation:loadingSpin 1s infinite linear}.paraui-button-text.paraui-button-dangerous{color:#eb6054}.paraui-button-large{height:36px}.paraui-button-medium{height:32px}.paraui-button-small{height:28px}.paraui-button--disabled{display:inline-block}.paraui-icon-button{padding:0;border-radius:8px}.paraui-icon-button-loading{pointer-events:none}.paraui-icon-button-loading .loading-icon{display:inline-flex;animation:loadingSpin 1s infinite linear}.paraui-icon-button-contained{color:#fff;background-color:#3666d6;box-shadow:none}.paraui-icon-button-contained:hover{background-color:rgba(54,102,214,0.8);box-shadow:none}.paraui-icon-button-contained[disabled]{color:rgba(46,55,67,0.4);background-color:rgba(171,176,185,0.121569);border:1px solid rgba(171,176,185,0.4);box-shadow:none}.paraui-icon-button-contained[disabled]:hover{background-color:rgba(171,176,185,0.121569)}.paraui-icon-button-contained svg{color:inherit;font-size:16px}.paraui-icon-button-contained.paraui-icon-button-dangerous{background-color:#eb6054}.paraui-icon-button-outlined{color:rgba(46,55,67,0.701961);background-color:#fff;border:1px solid rgba(171,176,185,0.4);box-shadow:none}.paraui-icon-button-outlined:hover{color:#3666d6;border-color:rgba(54,102,214,0.2);box-shadow:none;background-color:#fff}.paraui-icon-button-outlined[disabled]{color:rgba(46,55,67,0.4);background-color:rgba(171,176,185,0.121569);border:1px solid rgba(171,176,185,0.4);box-shadow:none}.paraui-icon-button-outlined[disabled]:hover{background-color:rgba(171,176,185,0.121569)}.paraui-icon-button-outlined svg{color:inherit;font-size:16px}.paraui-icon-button-outlined.paraui-icon-button-dangerous{color:#eb6054;border-color:#eb6054}.paraui-icon-button-outlined.paraui-icon-button-dangerous:hover{border-color:rgba(235,96,84,0.8)}.paraui-icon-button-text{color:#3666d6}.paraui-icon-button-text:hover{background-color:transparent}.paraui-icon-button-text[disabled]{color:rgba(46,55,67,0.4)}.paraui-icon-button-text[disabled]:hover{background-color:transparent}.paraui-icon-button-text svg{color:inherit}.paraui-icon-button-text.paraui-icon-button-dangerous{color:#eb6054}.paraui-icon-button-text.paraui-icon-button-large{width:auto;height:auto}.paraui-icon-button-text.paraui-icon-button-large svg{font-size:28px}.paraui-icon-button-text.paraui-icon-button-medium{width:auto;height:auto}.paraui-icon-button-text.paraui-icon-button-medium svg{font-size:24px}.paraui-icon-button-text.paraui-icon-button-small{width:auto;height:auto}.paraui-icon-button-text.paraui-icon-button-small svg{font-size:20px}.paraui-icon-button-large{width:36px;height:36px}.paraui-icon-button-medium{width:32px;height:32px}.paraui-icon-button-small{width:28px;height:28px}.paraui-button-split{display:inline-block}.paraui-button-split .paraui-button{height:34px}.paraui-button-split .paraui-button:hover{border-color:rgba(54,102,214,0.8)}.paraui-button-split .paraui-button-split--active{color:#3666d6;border-color:rgba(54,102,214,0.8);box-shadow:none;background-color:#fff}.paraui-button-split-list{padding:8px 0;margin-top:8px;border-radius:8px;box-shadow:0px 2px 8px 0px rgba(171,176,185,0.4);background-color:#fff}.paraui-button-split-list ul .split-li{min-width:140px;padding:11px 12px;color:#2e3743;font-size:14px;line-height:1;cursor:pointer;transition:background-color .3s, color .3s}.paraui-button-split-list ul .split-li:hover{background-color:rgba(171,176,185,0.121569)}.paraui-button-split-list ul .split-li.split-li--active{color:#3666d6}.paraui-button-split-list ul .split-li.split-li--active:hover{background-color:rgba(171,176,185,0.121569)}.paraui-button-split-list ul .split-li-group:not(:first-child){position:relative;margin-top:16px}.paraui-button-split-list ul .split-li-group:not(:first-child):before{content:'';position:absolute;top:-8px;left:8px;right:8px;border-top:1px solid rgba(171,176,185,0.2)}
|
|
22
|
+
|
|
23
|
+
.paraui-file-box{padding:6px;font-family:Source Han Sans CN,Source Han Sans CN-Regular;font-size:14px;font-weight:400}.paraui-file-box .para-file-tips{min-height:20px;position:relative;padding:6px}.paraui-file-box .para-file-tips .file-tips-item{position:relative;height:20px;line-height:16px;padding-right:20px}.paraui-file-box .para-file-tips .file-tips-item>[data-name="LinkGroup"]{vertical-align:middle;margin-right:9px}.paraui-file-box .para-file-tips .file-tips-item .file-tips-context{display:inline-block;vertical-align:middle;width:calc(100% - 45px);color:rgba(46,55,67,0.701961)}.paraui-file-box .para-file-tips .file-tips-item>[data-name="Delete"]{display:none;vertical-align:middle;cursor:pointer;position:absolute;right:3px;top:2px}.paraui-file-box .para-file-tips .file-tips-item>[data-name="Delete"]:hover{opacity:0.8}.paraui-file-box .para-file-tips .file-tips-item:hover{backgroundColor:#f5f5f5}.paraui-file-box .para-file-tips .file-tips-item:hover>[data-name="Delete"]{display:inline-block}
|
|
24
|
+
|
|
25
|
+
.paraui-form-item{font-family:Source Han Sans CN,Source Han Sans CN-Regular;font-size:14px;font-weight:400}.paraui-form-item .para-form-label{height:20px;line-height:20px;font-size:14px;text-align:left;display:inline-block;margin-bottom:8px;vertical-align:top;width:100%}.paraui-form-item .para-form-label-vertical{margin-top:6px;text-align:right;padding-right:3px;position:relative}.paraui-form-item .para-form-label-vertical .para-form-labe-tips{position:absolute;left:0;top:1px}.paraui-form-item .para-form-label .para-form-labe-text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:inline-block;max-width:100%;vertical-align:middle}.paraui-form-item .para-form-label .para-form-labe-text-hastips{max-width:calc(100% - 25px)}.paraui-form-item .para-form-label .para-form-labe-tips{height:20px;cursor:pointer;display:inline-block;vertical-align:middle;line-height:27px;margin-left:5px}.paraui-form-item .para-form-edit>div{padding:0}.paraui-form-item .para-form-edit .paraui-check-box-group>label,.paraui-form-item .para-form-edit .paraui-radio-group>label{display:none}.paraui-form-item .para-form-edit .paraui-check-box-group>div,.paraui-form-item .para-form-edit .paraui-radio-group>div{margin-top:4px}.paraui-form-item .para-form-error{height:17px;line-height:17px;color:#eb6054}.paraui-form-item .para-form-content-vertical{display:inline-block;width:100%}
|
|
26
|
+
|
package/Form/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("@material-ui/core"),require("@para-ui/icons/Check"),require("@para-ui/icons/Close"),require("@para-ui/icons/Delete"),require("@para-ui/icons/Down"),require("@para-ui/icons/Forbid"),require("@para-ui/icons/LinkGroup"),require("@para-ui/icons/LoadingF"),require("@para-ui/icons/PreviewClose"),require("@para-ui/icons/PreviewOpen"),require("@para-ui/icons/Search"),require("@para-ui/icons/WarningCircle"),require("para-lib"),require("rc-switch"),require("react")):"function"==typeof define&&define.amd?define(["@material-ui/core","@para-ui/icons/Check","@para-ui/icons/Close","@para-ui/icons/Delete","@para-ui/icons/Down","@para-ui/icons/Forbid","@para-ui/icons/LinkGroup","@para-ui/icons/LoadingF","@para-ui/icons/PreviewClose","@para-ui/icons/PreviewOpen","@para-ui/icons/Search","@para-ui/icons/WarningCircle","para-lib","rc-switch","react"],t):"object"==typeof exports?exports.ParaUI=t(require("@material-ui/core"),require("@para-ui/icons/Check"),require("@para-ui/icons/Close"),require("@para-ui/icons/Delete"),require("@para-ui/icons/Down"),require("@para-ui/icons/Forbid"),require("@para-ui/icons/LinkGroup"),require("@para-ui/icons/LoadingF"),require("@para-ui/icons/PreviewClose"),require("@para-ui/icons/PreviewOpen"),require("@para-ui/icons/Search"),require("@para-ui/icons/WarningCircle"),require("para-lib"),require("rc-switch"),require("react")):e.ParaUI=t(e["@material-ui/core"],e["@para-ui/icons/Check"],e["@para-ui/icons/Close"],e["@para-ui/icons/Delete"],e["@para-ui/icons/Down"],e["@para-ui/icons/Forbid"],e["@para-ui/icons/LinkGroup"],e["@para-ui/icons/LoadingF"],e["@para-ui/icons/PreviewClose"],e["@para-ui/icons/PreviewOpen"],e["@para-ui/icons/Search"],e["@para-ui/icons/WarningCircle"],e["para-lib"],e["rc-switch"],e.react)}(self,(function(e,t,n,i,r,o,a,l,s,c,u,d,v,f,p){return function(){"use strict";var h
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("@material-ui/core"),require("@para-ui/icons/Check"),require("@para-ui/icons/Close"),require("@para-ui/icons/Delete"),require("@para-ui/icons/Down"),require("@para-ui/icons/Forbid"),require("@para-ui/icons/LinkGroup"),require("@para-ui/icons/LoadingF"),require("@para-ui/icons/PreviewClose"),require("@para-ui/icons/PreviewOpen"),require("@para-ui/icons/Search"),require("@para-ui/icons/WarningCircle"),require("para-lib"),require("rc-switch"),require("react")):"function"==typeof define&&define.amd?define(["@material-ui/core","@para-ui/icons/Check","@para-ui/icons/Close","@para-ui/icons/Delete","@para-ui/icons/Down","@para-ui/icons/Forbid","@para-ui/icons/LinkGroup","@para-ui/icons/LoadingF","@para-ui/icons/PreviewClose","@para-ui/icons/PreviewOpen","@para-ui/icons/Search","@para-ui/icons/WarningCircle","para-lib","rc-switch","react"],t):"object"==typeof exports?exports.ParaUI=t(require("@material-ui/core"),require("@para-ui/icons/Check"),require("@para-ui/icons/Close"),require("@para-ui/icons/Delete"),require("@para-ui/icons/Down"),require("@para-ui/icons/Forbid"),require("@para-ui/icons/LinkGroup"),require("@para-ui/icons/LoadingF"),require("@para-ui/icons/PreviewClose"),require("@para-ui/icons/PreviewOpen"),require("@para-ui/icons/Search"),require("@para-ui/icons/WarningCircle"),require("para-lib"),require("rc-switch"),require("react")):e.ParaUI=t(e["@material-ui/core"],e["@para-ui/icons/Check"],e["@para-ui/icons/Close"],e["@para-ui/icons/Delete"],e["@para-ui/icons/Down"],e["@para-ui/icons/Forbid"],e["@para-ui/icons/LinkGroup"],e["@para-ui/icons/LoadingF"],e["@para-ui/icons/PreviewClose"],e["@para-ui/icons/PreviewOpen"],e["@para-ui/icons/Search"],e["@para-ui/icons/WarningCircle"],e["para-lib"],e["rc-switch"],e.react)}(self,(function(e,t,n,i,r,o,a,l,s,c,u,d,v,f,p){return function(){"use strict";var h={4927:function(e,t,n){function i(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=i(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function r(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=i(e))&&(r&&(r+=" "),r+=t);return r}n.d(t,{Z:function(){return r}})},4126:function(e){
|
|
2
2
|
/*
|
|
3
3
|
object-assign
|
|
4
4
|
(c) Sindre Sorhus
|
|
@@ -13,4 +13,4 @@ var t=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,i=Object.pr
|
|
|
13
13
|
* This source code is licensed under the MIT license found in the
|
|
14
14
|
* LICENSE file in the root directory of this source tree.
|
|
15
15
|
*/
|
|
16
|
-
n(4126);var i=n(9297),r=60103;if(t.Fragment=60107,"function"==typeof Symbol&&Symbol.for){var o=Symbol.for;r=o("react.element"),t.Fragment=o("react.fragment")}var a=i.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l=Object.prototype.hasOwnProperty,s={key:!0,ref:!0,__self:!0,__source:!0};function c(e,t,n){var i,o={},c=null,u=null;for(i in void 0!==n&&(c=""+n),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(u=t.ref),t)l.call(t,i)&&!s.hasOwnProperty(i)&&(o[i]=t[i]);if(e&&e.defaultProps)for(i in t=e.defaultProps)void 0===o[i]&&(o[i]=t[i]);return{$$typeof:r,type:e,key:c,ref:u,props:o,_owner:a.current}}t.jsx=c,t.jsxs=c},7712:function(e,t,n){e.exports=n(9524)},3094:function(e,t,n){var i=n(7712),r=n(9297),o=n(6885),a=function(){return a=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},a.apply(this,arguments)};t.default=function(e){var t=e.children,n=e.placement,l=void 0===n?"bottom-start":n,s=e.tips,c=void 0===s?"":s,u=e.className,d=void 0===u?"":u,v=(0,r.useRef)(),f=(0,r.useState)(""),p=f[0],h=f[1];(0,r.useEffect)((function(){h(c)}),[c]);var m;return(0,i.jsx)("div",a({ref:v,className:(m="paraui-auto-tips",d&&(m+=" "+d),m),onMouseOver:function(e){v.current&&v.current.scrollWidth>v.current.offsetWidth?h(c||v.current.innerText):h("")}},{children:(0,i.jsx)(o.default,a({title:p,placement:l},{children:(0,i.jsx)("div",a({className:"auto-tips-content"},{children:t}),void 0)}),void 0)}),void 0)}},2990:function(e,t,n){n.d(t,{default:function(){return x}});var i=n(7712),r=n(9297),o=n(1731),a=n(4927),l=n(1102),s=n.n(l),c=n(2749),u=n.n(c),d=n(6885),v=n(6028),f=n.n(v),p=function(){return p=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},p.apply(this,arguments)};var h=function(){return h=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},h.apply(this,arguments)},m=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]])}return n},g=function(e){var t=e.variant,n=void 0===t?"contained":t,l=e.size,c=void 0===l?"large":l,v=e.className,f=e.disabled,p=void 0!==f&&f,g=e.children,x=e.startIcon,b=e.endIcon,y=e.loading,j=void 0!==y&&y,k=e.toolTipTitle,w=void 0===k?"":k,O=e.danger,N=void 0!==O&&O,C=m(e,["variant","size","className","disabled","children","startIcon","endIcon","loading","toolTipTitle","danger"]),S=(0,r.useState)(!1),E=S[0],P=S[1],L=function(e){if(!E)return"start"===e&&x?(0,i.jsx)("span",h({className:(0,a.Z)("btn-icon","start-icon")},{children:x}),void 0):"end"===e&&b?(0,i.jsx)("span",h({className:(0,a.Z)("btn-icon","end-icon")},{children:b}),void 0):null;if("object"==typeof j){var t=j.delay||0;setTimeout((function(){return P(!1)}),t)}return"start"===e?(0,i.jsx)("span",h({className:"btn-icon loading-icon"},{children:(0,i.jsx)(s(),{},void 0)}),void 0):null},q=(0,i.jsx)(o.Button,h({},C,{color:"default",variant:"contained",disabled:p,disableRipple:!0,disableElevation:!0,className:(0,a.Z)("paraui-button",v,"paraui-button-".concat(n),"paraui-button-".concat(c),E&&"paraui-button-loading",N&&!p&&"paraui-button-dangerous"),startIcon:L("start"),endIcon:L("end")},{children:g}),void 0);return(0,r.useEffect)((function(){P(!!j)}),[j]),p&&w?(0,i.jsx)(d.default,h({title:function(){if(p&&w){return(0,i.jsxs)("span",{children:[(0,i.jsx)(u(),{style:{marginRight:"4px",fontSize:"11px",color:"inherit"}},void 0),w]},void 0)}return w}()},{children:(0,i.jsx)("span",h({className:"paraui-button--disabled"},{children:q}),void 0)}),void 0):q};g.IconButton=function(e){var t=e.variant,n=void 0===t?"contained":t,l=e.size,c=void 0===l?"large":l,v=e.toolTipTitle,f=void 0===v?"":v,p=e.children,g=e.className,x=e.disabled,b=void 0!==x&&x,y=e.loading,j=void 0!==y&&y,k=e.TooltipProps,w=e.danger,O=void 0!==w&&w,N=m(e,["variant","size","toolTipTitle","children","className","disabled","loading","TooltipProps","danger"]),C=(0,r.useState)(!1),S=C[0],E=C[1],P=(0,i.jsx)(o.IconButton,h({},N,{disabled:b,disableRipple:!0,className:(0,a.Z)("paraui-icon-button",g,"paraui-icon-button-".concat(n),"paraui-icon-button-".concat(c),S&&"paraui-icon-button-loading",O&&!b&&"paraui-icon-button-dangerous")},{children:function(){if(!S)return p;if("object"==typeof j){var e=j.delay||0;setTimeout((function(){return E(!1)}),e)}return(0,i.jsx)("span",h({className:"loading-icon"},{children:(0,i.jsx)(s(),{},void 0)}),void 0)}()}),void 0);return(0,r.useEffect)((function(){E(!!j)}),[j]),f?(0,i.jsx)(d.default,h({},k,{title:function(){if(b&&f){return(0,i.jsxs)("span",{children:[(0,i.jsx)(u(),{style:{marginRight:"4px",fontSize:"11px",color:"inherit"}},void 0),f]},void 0)}return f}()},{children:b?(0,i.jsx)("span",h({className:"paraui-button--disabled"},{children:P}),void 0):P}),void 0):P},g.SplitButton=function(e){var t=e.buttonText,n=e.options,l=void 0===n?[]:n,s=e.className,c=e.disabled,u=void 0!==c&&c,d=e.onClick,v=e.optionRender,h=(0,r.useState)(!1),m=h[0],g=h[1],b=(0,r.useRef)(null),y=(0,r.useRef)(),j=(0,r.useState)(0),k=j[0],w=j[1],O=function(e,t,n){var i;w(t),g(!1),null===(i=y.current)||void 0===i||i.classList.remove("paraui-button-split--active"),null==d||d(e,n)},N=function(e){var t,n;(null===(t=b.current)||void 0===t?void 0:t.contains(e.target))||(g(!1),null===(n=y.current)||void 0===n||n.classList.remove("paraui-button-split--active"))},C=function(){return(0,i.jsx)("div",p({className:"paraui-button-split-list"},{children:(0,i.jsx)("ul",{children:l.map((function(e,t){return Array.isArray(e)?function(e,t){return(0,i.jsx)("li",p({className:"split-li-group"},{children:e.map((function(e,n){var r="".concat(t,"-").concat(n);return(0,i.jsx)("div",p({className:(0,a.Z)("split-li",r===k&&"split-li--active"),onClick:function(t){return O(e,r,t)}},{children:(null==v?void 0:v(e))||e.label}),r)}))}),t)}(e,t):(0,i.jsx)("li",p({className:(0,a.Z)("split-li",t===k&&"split-li--active"),onClick:function(n){return O(e,t,n)}},{children:(null==v?void 0:v(e))||e.label}),t)}))},void 0)}),void 0)};return(0,i.jsxs)("div",p({className:(0,a.Z)("paraui-button-split",s),ref:b,onMouseLeave:function(e){var t;e.stopPropagation(),null===(t=e.currentTarget.firstElementChild)||void 0===t||t.classList.remove("paraui-button-split--active"),g(!1)}},{children:[(0,i.jsx)(x,p({variant:"outlined",onMouseEnter:function(e){e.stopPropagation();var t=e.currentTarget;y.current=t,t.classList.add("paraui-button-split--active"),g(!0)},startIcon:(0,i.jsx)(f(),{},void 0),disabled:u},{children:null!=t?t:"更多操作"}),void 0),(0,i.jsx)(o.Popper,p({open:m,anchorEl:b.current,transition:!0,placement:"bottom-end"},{children:function(e){var t=e.TransitionProps;e.placement;return(0,i.jsx)(o.Grow,p({},t,{children:(0,i.jsx)(i.Fragment,{children:(0,i.jsx)(o.ClickAwayListener,p({onClickAway:N},{children:C()}),void 0)},void 0)}),void 0)}}),void 0)]}),void 0)};var x=g},6150:function(e,t,n){var i=n(7712),r=n(9297),o=function(){return o=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},o.apply(this,arguments)};t.default=function(e){var t=e.className,n=void 0===t?"":t,a=e.label,l=void 0===a?"":a,s=e.size,c=void 0===s?"large":s,u=e.disabled,d=void 0!==u&&u,v=e.indeterminate,f=void 0!==v&&v,p=e.onChange,h=(0,r.useState)(!1),m=h[0],g=h[1];(0,r.useEffect)((function(){void 0!==e.defaultChecked&&g(e.defaultChecked)}),[]),(0,r.useEffect)((function(){void 0!==e.checked&&g(e.checked)}),[e.checked]);var x;return(0,i.jsxs)("label",o({className:(x="paraui-check-box",n&&(x+=" "+n),c&&(x+=" check-box-"+c),d&&(x+=" check-box-disabled"),f?x+=" check-box-indeterminate":m&&(x+=" check-box-checked"),x),onClick:function(t){if(t.preventDefault(),!d){if(f)return void 0===e.checked&&g(!0),void(p&&p(t,!0));void 0===e.checked&&g(!m),t.target.checked=!m,t.target.value=!m,p&&p(t,!m)}}},{children:[(0,i.jsxs)("span",o({className:"paraui-checkbox-box"},{children:[(0,i.jsx)("input",o({type:"checkbox",value:m},e.inputProps),void 0),(0,i.jsx)("span",{className:"paraui-checkbox-box-inner"},void 0)]}),void 0),l&&(0,i.jsx)("span",o({className:"paraui-check-box-label"},{children:l}),void 0)]}),void 0)}},7661:function(e,t,n){var i=n(9297),r=n(7712),o=n(6150),a=n(3475),l=function(){return l=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},l.apply(this,arguments)};t.default=function(e){var t=e.label,n=void 0===t?"":t,s=e.size,c=void 0===s?"large":s,u=e.row,d=void 0===u||u,v=e.disabled,f=void 0!==v&&v,p=e.required,h=void 0!==p&&p,m=e.error,g=void 0!==m&&m,x=e.helperText,b=void 0===x?"":x,y=e.id,j=void 0===y?"name":y,k=e.list,w=e.className,O=void 0===w?"":w,N=e.onChange,C=(0,i.useState)([]),S=C[0],E=C[1];(0,i.useEffect)((function(){void 0!==e.defaultValue&&E(e.defaultValue)}),[]),(0,i.useEffect)((function(){void 0!==e.value&&E(e.value)}),[e.value]);var P,L=function(t){return function(n,i){var r=t[j],o=(0,a.DeepClone)(S);if(i)o.push(r);else{var l=o.indexOf(r);o.splice(l,1)}void 0===e.value&&E(o),N&&N(o)}};return(0,r.jsxs)("div",l({className:(P="paraui-check-box-group",O&&(P+=" "+O),c&&(P+=" check-box-group-"+c),g&&(P+=" check-box-group-error"),f&&(P+=" check-box-group-disabled"),d&&(P+=" check-box-group-row"),P)},{children:[(0,r.jsxs)("label",l({className:"check-box-group-label"},{children:[n,h&&(0,r.jsx)("span",l({className:"required-char"},{children:"*"}),void 0)]}),void 0),(0,r.jsx)("div",l({className:"check-box-group-content"},{children:k.map((function(e,t){return(0,i.createElement)(o.default,l({},e,{checked:-1!==S.indexOf(e[j]),size:c,disabled:Boolean(f||e.disabled),key:t,onChange:L(e)}))}))}),void 0),b&&(0,r.jsx)("p",l({className:"check-box-group-error-text"},{children:b}),void 0)]}),void 0)}},993:function(e,t,n){n.r(t);var i=n(7712),r=n(9297),o=n.n(r),a=n(7178),l=n(3053),s=function(){return s=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},s.apply(this,arguments)},c=function(e,t,n){if(n||2===arguments.length)for(var i,r=0,o=t.length;r<o;r++)!i&&r in t||(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))};t.default=function(e){var t=e.FormProps,n=e.configList,r=void 0===n?[]:n,u=e.type,d=e.getCheckForm,v=e.backData,f=void 0===v?{}:v,p=e.disabled,h=e.onChange,m=e.getForcedRefresh,g=e.form,x=e.disOnlySpace,b=o().useState(r),y=b[0],j=b[1],k=o().useRef({allItems:{},itemsCheckStatus:{},itemsCheckMessage:{},configList:r,allValues:f}),w=function(e,t){if(t)for(var n in t)k.current.allValues[n]=t[n];j(e||y&&c([],y,!0))},O=function(e,t,n){switch(t){case"status":k.current.itemsCheckStatus[e]=n;break;case"message":k.current.itemsCheckMessage[e]=n;break;case"item":k.current.allItems[e]=n;break;case"initValue":k.current.allValues[e]=n;break;default:k.current.allValues[e]=n,h&&h(e,n)}},N=function(){for(var e=0,t=0;t<k.current.configList.length;t++){var n=k.current.configList[t].name,i=k.current.allItems[n];if(!i.disabled&&!i.hide&&!0!==k.current.itemsCheckStatus[n])if(!1!==k.current.itemsCheckStatus[n]){var r=(0,l.Z)(i,k.current.allValues[n]);r&&(e++,"string"==typeof r&&(k.current.itemsCheckMessage[n]=r),i.setErrorMsg&&i.setErrorMsg(r))}else e++}return console.log("checkFrom",e),!e&&k.current.allValues};return o().useEffect((function(){d&&d(N),m&&m(w)}),[d,m]),o().useEffect((function(){for(var e in f)k.current.allValues[e]=f[e]}),[f]),o().useEffect((function(){j(r)}),[r]),o().useEffect((function(){k.current.configList=y}),[y]),o().useEffect((function(){g&&(g.current={get refreshForm(){return w},get check(){return N},get items(){return k.current.allItems},get values(){return k.current.allValues},get refData(){return k.current}})}),[g]),(0,i.jsx)("form",s({},t,{children:(0,i.jsx)("div",s({className:"para-form-content"},{children:y&&y.length>0&&y.map((function(e,t){return e.hide&&O(e.name,"item",e),!e.hide&&(0,i.jsx)(a.default,s({type:u,disabled:p,disOnlySpace:x,errorMessage:k.current.itemsCheckMessage[e.name]},e,{backData:k.current.allValues,setValue:O}),"para-form-item-".concat(t))}))}),void 0)}),void 0)}},7178:function(e,t,n){n.d(t,{default:function(){return D}});var i=n(7712),r=n(9297),o=n.n(r),a=n(6897),l=n.n(a),s=n(1731),c=n(3672),u=n(1383),d=function(){return d=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},d.apply(this,arguments)},v=function(e){var t=e.defaultValue,n=e.change,r=o().useState(t||""),a=r[0],l=r[1];return(0,i.jsx)(u.default,d({value:a,onChange:function(e){l(e),n&&n(e)}},e),void 0)},f=n(370),p=function(){return p=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},p.apply(this,arguments)},h=function(e){var t=e.defaultValue,n=void 0===t?"":t,r=e.change,a=e.value,l=o().useState(void 0!==a?a:n),s=l[0],c=l[1];return o().useEffect((function(){c(a)}),[a]),(0,i.jsx)(f.default,p({labelMode:"inside",onChange:function(e){c(e),r&&r(e)}},e,{value:s}),void 0)},m=n(7661),g=function(){return g=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},g.apply(this,arguments)},x=function(e){var t=e.defaultValue,n=e.change,r=o().useState(t||[]),a=r[0],l=r[1];return(0,i.jsx)(m.default,g({value:a,onChange:function(e){l(e),n&&n(e)}},e),void 0)},b=n(3053),y=n(5962),j=n(6243),k=n.n(j),w=n(9973),O=n.n(w),N=n(3094),C=n(2990),S=function(){return S=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},S.apply(this,arguments)},E=function(e){var t=e.fileType,n=void 0===t?"":t,r=e.defaultValue,a=e.onChange,l=e.disabled,s=e.buttonLabel,c=e.inputProps,u=e.buttonProps,d=o().useRef(null),v=function(e){var t=void 0!==e?e:d.current.files;h(t),a&&a(t),null===e&&(d.current.value=null)},f=o().useState(),p=f[0],h=f[1];return o().useEffect((function(){r&&h(r)}),[r]),(0,i.jsxs)("div",S({className:"para-file-box paraui-file-box"},{children:[!l&&(0,i.jsx)(C.default,S({variant:"outlined"},u,{onClick:function(){var e;console.log("inputFileClick",d.current),null===(e=d.current)||void 0===e||e.click()}},{children:s||"选择文件"}),void 0),(0,i.jsx)("input",S({},c,{ref:d,type:"file",onInput:function(){return v()},hidden:!0,accept:"string"==typeof n?n:n.join(",")}),void 0),p&&p[0]&&(0,i.jsx)("div",S({className:"para-file-tips ".concat(l?"para-file-tips-disabled":"")},{children:(0,i.jsxs)("div",S({className:"file-tips-item"},{children:[(0,i.jsx)(O(),{},void 0),(0,i.jsx)("span",S({className:"file-tips-context"},{children:(0,i.jsx)(N.default,{children:"string"==typeof p?p:p[0].name},void 0)}),void 0),!l&&(0,i.jsx)(k(),{onClick:function(){return v(null)}},void 0)]}),void 0)}),void 0)]}),void 0)},P=function(){return P=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},P.apply(this,arguments)},L=function(e){var t=e.ItemType,n=e.error,r=e.placeholder,a=e.label,l=e.inputProps,s=e.name,u=e.rules,d=e.setValue,f=e.setError,p=e.backData,m=e.disabled,g=e.change,j=r||"".concat(a),k=o().useState(!!n),w=k[0],O=k[1],N=function(t){if(d&&d(s,"value",t),g&&g(t),u){var n=(0,b.Z)(e,t)||"";C(n)}},C=o().useCallback((function(e){f&&f(e),O(!!e),d&&d(s,"message",e)}),[s,f,d]);o().useEffect((function(){var t=P(P({},e),{setErrorMsg:C});d&&d(s,"item",t)}),[s,e,C,d]);return function(){if(t&&"string"!=typeof t){var n=P(P({},e),{setErrorMsg:C});return t(n)}switch(t){case"file":return(0,i.jsx)(E,P({},e,{defaultValue:p[s],disabled:m,onChange:function(e){N(e)}}),void 0);case"switch":return void 0===p[s]&&d&&d(s,"initValue",!!p[s]),(0,i.jsx)(y.default,P({compact:!0,defaultChecked:!!p[s],onChange:function(e){N(e)}},P(P({},l),{disabled:m})),void 0);case"checkGroup":return(0,i.jsx)(x,P({error:w,defaultValue:p[s],change:function(e){N(e)},list:e.list},P(P({},l),{disabled:m})),void 0);case"select":return(0,i.jsx)(h,P({placeholder:j,defaultValue:p[s],error:w,change:function(e){N(e)},list:e.list},P({disabled:m},l)),void 0);case"radioGroup":return(0,i.jsx)(v,P({error:w,defaultValue:p[s],change:function(e){N(e)},list:e.list},P({disabled:m},l)),void 0);case"textarea":return(0,i.jsx)(c.default,P({error:w,placeholder:j,value:p[s],disabled:m,multiline:!0,rows:3,name:s,onChange:function(e){N(e.target.value)}},l),void 0);default:return(0,i.jsx)(c.default,P({value:p[s],error:w,placeholder:j,onChange:function(e){N(e.target.value)},name:s,disabled:m},l),void 0)}}()},q=function(e){var t=e.getSetError,n=e.errorMessage,r=o().useState(n||""),a=r[0],l=r[1];return o().useEffect((function(){l(n||"")}),[n]),o().useEffect((function(){t&&t(l)}),[t]),(0,i.jsxs)(N.default,{children:[a," "]},void 0)},T=n(4927),M=function(){return M=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},M.apply(this,arguments)},D=function(e){var t=e.type,n=void 0===t?"horizontal":t,r=e.labelWidth,a=void 0===r?60:r,c=e.tips,u=e.label,d=e.InputType,v=e.setValue,f=e.errorMessage,p=e.hideLabel,h=e.backData,m=void 0===h?{}:h,g=o().useRef(),x=o().useCallback((function(){return u?"string"==typeof u?u:u(e):""}),[u]);return(0,i.jsxs)("div",M({className:"para-form-item paraui-form-item"},{children:[!p&&(0,i.jsxs)("div",M({className:(0,T.Z)("para-form-label","vertical"===n&&"para-form-label-vertical"),style:{width:"vertical"===n?"".concat(a,"px"):""}},{children:[(0,i.jsx)("span",M({className:(0,T.Z)("para-form-labe-text",c&&"para-form-labe-text-hastips")},{children:x()}),void 0),c&&(0,i.jsx)(s.Tooltip,M({title:c,placement:"top"},{children:(0,i.jsx)("span",M({className:"para-form-labe-tips"},{children:(0,i.jsx)(l(),{},void 0)}),void 0)}),void 0)]}),void 0),(0,i.jsxs)((function(e){return"vertical"===n?(0,i.jsx)("div",M({className:"para-form-content-vertical",style:{width:"calc(100% - ".concat(a,"px)")}},{children:e.children}),void 0):e.children}),{children:[(0,i.jsx)("div",M({className:"para-form-edit"},{children:e.children?e.children:(0,i.jsx)(L,M({setError:function(e){g.current&&g.current(e)},error:!!f,ItemType:d,backData:m},e,{setValue:v}),void 0)}),void 0),(0,i.jsx)("div",M({className:"para-form-error"},{children:(0,i.jsx)(q,{getSetError:function(e){return g.current=e},errorMessage:f},void 0)}),void 0)]},void 0)]}),void 0)}},3053:function(e,t){var n={required:function(e,t){var n,i,r,o,a=typeof t,l=(null===(i=null===(n=e.rules)||void 0===n?void 0:n.message)||void 0===i?void 0:i.required)||"".concat(e.label,"不能为空"),s=!1;switch(a){case"string":if(void 0!==e.disOnlySpace?e.disOnlySpace:null===(o=null===(r=e.rules)||void 0===r?void 0:r.validate)||void 0===o?void 0:o.disOnlySpace){s=!!t&&!/^[\s]+$/.test(t)}else s=!!t;break;case"number":s=t+1>t;break;case"object":var c=JSON.stringify(t);s="null"!==c&&"[]"!==c&&"{}"!==c;break;case"boolean":s=void 0!==t;break;default:s=!!t}return s||l},maxlength:function(e,t){var n,i,r,o,a,l,s=typeof t,c=(null===(i=null===(n=e.rules)||void 0===n?void 0:n.message)||void 0===i?void 0:i.maxlength)||"最大长度不能超过".concat(null===(o=null===(r=e.rules)||void 0===r?void 0:r.validate)||void 0===o?void 0:o.maxlength);return("string"===s||"number"===s&&t+1>t?!("".concat(t).length>((null===(l=null===(a=e.rules)||void 0===a?void 0:a.validate)||void 0===l?void 0:l.maxlength)||NaN)):!t)||c},minLength:function(e,t){var n,i,r,o,a,l,s=typeof t,c=(null===(i=null===(n=e.rules)||void 0===n?void 0:n.message)||void 0===i?void 0:i.minLength)||"最小长度为".concat(null===(o=null===(r=e.rules)||void 0===r?void 0:r.validate)||void 0===o?void 0:o.minLength);return("string"===s||"number"===s&&t+1>t?"".concat(t).length>=((null===(l=null===(a=e.rules)||void 0===a?void 0:a.validate)||void 0===l?void 0:l.minLength)||-1):!t)||c},pattern:function(e,t){var n,i,r,o,a=null===(i=null===(n=e.rules)||void 0===n?void 0:n.validate)||void 0===i?void 0:i.pattern,l=(null===(o=null===(r=e.rules)||void 0===r?void 0:r.message)||void 0===o?void 0:o.pattern)||"参数不符合校验规则: ".concat(a),s=!t;return a&&t&&"function"!=typeof a&&(s=a.test(t)),s||l},min:function(e,t){var n,i,r,o,a,l,s=typeof t,c=(null===(i=null===(n=e.rules)||void 0===n?void 0:n.message)||void 0===i?void 0:i.min)||"最小值为".concat(null===(o=null===(r=e.rules)||void 0===r?void 0:r.validate)||void 0===o?void 0:o.min),u=!t;return"string"!==s&&"number"!==s||(u=t>((null===(l=null===(a=e.rules)||void 0===a?void 0:a.validate)||void 0===l?void 0:l.min)||-1/0)),u||c},max:function(e,t){var n,i,r,o,a,l,s=typeof t,c=(null===(i=null===(n=e.rules)||void 0===n?void 0:n.message)||void 0===i?void 0:i.max)||"最大值为".concat(null===(o=null===(r=e.rules)||void 0===r?void 0:r.validate)||void 0===o?void 0:o.max),u=!t;return"string"!==s&&"number"!==s||(u=t<((null===(l=null===(a=e.rules)||void 0===a?void 0:a.validate)||void 0===l?void 0:l.max)||1/0)),u||c}};t.Z=function(e,t){var i,r,o=null===(i=e.rules)||void 0===i?void 0:i.validate;if(o){var a=null===(r=e.rules)||void 0===r?void 0:r.message;for(var l in console.log("validateObj"),o){var s=o[l],c="";if("function"==typeof s?!1===(c=s(e,t))&&a&&(c=a[l]):n[l]?c=n[l](e,t):(console.log("项目: ".concat(e.label,", 自定义校验规则: ").concat(l,", 方法未定义")),c=!0),!0!==c)return c||""}}return!1}},9011:function(e,t,n){var i=n(7712),r=n(9297),o=n(1102),a=n.n(o),l=function(){return l=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},l.apply(this,arguments)};t.default=function(e){var t=e.className,n=e.style,o=e.opacity,s=void 0===o?.7:o,c=(0,r.useRef)(null);(0,r.useEffect)((function(){c&&c.current&&c.current.parentNode&&((getComputedStyle(c.current.parentNode)||{}).position||(c.current.parentNode.style.position="relative"))}),[]);var u;return(0,i.jsxs)("div",l({className:(u="paraui-loading",t&&(u+=" "+t),u),style:n,ref:c},{children:[(0,i.jsx)("div",l({className:"paraui-loading-box"},{children:(0,i.jsx)(a(),{},void 0)}),void 0),(0,i.jsx)("div",{className:"paraui-loading-mask",style:{opacity:s}},void 0)]}),void 0)}},4296:function(e,t,n){var i=n(7712),r=n(9297),o=function(){return o=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},o.apply(this,arguments)};t.default=function(e){var t=e.className,n=void 0===t?"":t,a=e.label,l=void 0===a?"":a,s=e.size,c=void 0===s?"large":s,u=e.disabled,d=void 0!==u&&u,v=e.onChange,f=(0,r.useState)(!1),p=f[0],h=f[1];(0,r.useEffect)((function(){void 0!==e.defaultChecked&&h(e.defaultChecked)}),[]),(0,r.useEffect)((function(){void 0!==e.checked&&h(e.checked)}),[e.checked]);var m;return(0,i.jsxs)("label",o({className:(m="paraui-radio",n&&(m+=" "+n),c&&(m+=" radio-"+c),d&&(m+=" radio-disabled"),p&&(m+=" radio-checked"),m),onClick:function(t){t.preventDefault(),d||(void 0===e.checked&&h(!p),t.target.checked=!p,v&&v(t,!p))}},{children:[(0,i.jsxs)("span",o({className:"paraui-radio-box"},{children:[(0,i.jsx)("input",o({type:"radio",value:p},e.inputProps),void 0),(0,i.jsx)("span",{className:"paraui-radio-box-inner"},void 0)]}),void 0),l&&(0,i.jsx)("span",o({className:"paraui-radio-label"},{children:l}),void 0)]}),void 0)}},1383:function(e,t,n){var i=n(9297),r=n(7712),o=n(4296),a=function(){return a=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},a.apply(this,arguments)};t.default=function(e){var t=e.className,n=void 0===t?"":t,l=e.label,s=void 0===l?"":l,c=e.size,u=void 0===c?"large":c,d=e.row,v=void 0===d||d,f=e.disabled,p=void 0!==f&&f,h=e.required,m=void 0!==h&&h,g=e.error,x=void 0!==g&&g,b=e.helperText,y=void 0===b?"":b,j=e.id,k=void 0===j?"name":j,w=e.value,O=e.list,N=e.onChange,C=(0,i.useState)(),S=C[0],E=C[1];(0,i.useEffect)((function(){void 0!==e.defaultValue&&E(e.defaultValue)}),[]),(0,i.useEffect)((function(){void 0!==w&&E(w)}),[w]);var P,L=function(t){return function(){var n=t[k];w!==n&&(void 0===e.value&&E(n),N&&N(n,t))}};return(0,r.jsxs)("div",a({className:(P="paraui-radio-group",n&&(P+=" "+n),u&&(P+=" radio-group-"+u),x&&(P+=" radio-group-error"),p&&(P+=" radio-group-disabled"),v&&(P+=" radio-group-row"),P)},{children:[(0,r.jsxs)("label",a({className:"radio-group-label"},{children:[s,m&&(0,r.jsx)("span",a({className:"required-char"},{children:"*"}),void 0)]}),void 0),(0,r.jsx)("div",a({className:"radio-group-content"},{children:O.map((function(e,t){return(0,i.createElement)(o.default,a({},e,{checked:S===e[k],size:u,disabled:Boolean(p||e.disabled),key:t,onChange:L(e)}))}))}),void 0),y&&(0,r.jsx)("p",a({className:"radio-group-error-text"},{children:y}),void 0)]}),void 0)}},370:function(e,t,n){var i=n(7712),r=n(9297),o=n(1731),a=n(6028),l=n.n(a),s=n(4115),c=n.n(s),u=n(6110),d=n.n(u),v=n(19),f=n.n(v),p=n(3094),h=n(3475),m=function(){return m=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},m.apply(this,arguments)},g=function(e,t,n){if(n||2===arguments.length)for(var i,r=0,o=t.length;r<o;r++)!i&&r in t||(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))};t.default=function(e){var t=e.className,n=e.size,a=void 0===n?"large":n,s=e.labelMode,u=void 0===s?"outside":s,v=e.placeholder,x=void 0===v?"":v,b=e.searchPlaceholder,y=void 0===b?"请输入搜索名":b,j=e.label,k=void 0===j?"":j,w=e.disabled,O=void 0!==w&&w,N=e.multiple,C=void 0!==N&&N,S=e.required,E=void 0!==S&&S,P=e.labelSign,L=e.error,q=void 0!==L&&L,T=e.helperText,M=void 0===T?"":T,D=e.list,F=e.showName,I=void 0===F?"label":F,V=e.showValue,z=void 0===V?"value":V,R=e.childrenName,_=void 0===R?"children":R,A=e.value,B=e.onChange,U=e.overLine,Z=void 0!==U&&U,K=e.search,W=void 0!==K&&K,H=e.searchModel,G=void 0===H?"inside":H,J=e.selectPopoverClassName,$=e.morePopoverClassName,Y=e.onEnter,Q=(0,r.useRef)(null),X=(0,r.useState)("select-"+(0,h.UUID)())[0],ee=(0,r.useState)("select-popover-"+(0,h.UUID)())[0],te=(0,r.useState)(!1),ne=te[0],ie=te[1],re=(0,r.useState)(!1),oe=re[0],ae=re[1],le=(0,r.useState)([]),se=le[0],ce=le[1],ue=(0,r.useState)([]),de=ue[0],ve=ue[1],fe=(0,r.useState)({}),pe=fe[0],he=fe[1],me=(0,r.useState)(null),ge=me[0],xe=me[1],be=(0,r.useState)({})[0],ye=(0,r.useState)(!1),je=ye[0],ke=ye[1],we=(0,r.useState)(""),Oe=we[0],Ne=we[1],Ce=(0,r.useState)(!1),Se=Ce[0],Ee=Ce[1],Pe=(0,r.useRef)(null);(0,r.useEffect)((function(){void 0!==e.defaultValue&&(e.multiple?ce((0,h.DeepClone)(e.defaultValue||[])):ce(""===e.defaultValue?[]:[e.defaultValue]))}),[]),(0,r.useEffect)((function(){void 0!==A&&ce(C?(0,h.DeepClone)(A||[]):""===A?[]:[A])}),[A,C]),(0,r.useEffect)((function(){if(W&&"outside"===G)return Ee(!!C);Ee(Z)}),[Z,W,G,C]),(0,r.useEffect)((function(){for(var e={},t=0,n=D.length;t<n;t++){var i=D[t];if(i[_]&&i[_].length>0)for(var r=i[_],o=0,a=r.length;o<a;o++){var l=r[o];e[l[z]]=l}else e[i[z]]=i}he(e)}),[D]),(0,r.useEffect)((function(){C&&(Se||xe(se.length))}),[Se,C,se]),(0,r.useEffect)((function(){return Se?xe(se.length):(setTimeout((function(){Fe(se.length)})),window.addEventListener("resize",Ie)),function(){window.removeEventListener("resize",Ie)}}),[se,Se]),(0,r.useEffect)((function(){se&&se.length>0?ae(!0):(ae(!1),W&&"outside"===G&&ae(""!==Oe))}),[W,Oe,G,se]),(0,r.useEffect)((function(){clearTimeout(be.searchTimer),W&&""!==Oe.trim()?be.searchTimer=setTimeout((function(){for(var e=[],t=(0,h.DeepClone)(D),n=0,i=t.length;n<i;n++){var r=t[n];if(r[_]&&r[_].length>0){for(var o=r[_],a=[],l=0,s=o.length;l<s;l++){var c=o[l];De(c)&&a.push(c)}a.length>0&&(r[_]=a,e.push(r))}else{De(r)&&e.push(r)}}ve(e)}),100):ve((0,h.DeepClone)(D))}),[W,Oe,D]),(0,r.useEffect)((function(){return ne?setTimeout((function(){qe(),window.addEventListener("click",Me),window.addEventListener("keydown",He)})):(Ne(""),window.removeEventListener("click",Me),window.removeEventListener("keydown",He)),function(){window.removeEventListener("click",Me),window.removeEventListener("keydown",He)}}),[ne]),(0,r.useEffect)((function(){Oe&&ie(!0)}),[Oe]),(0,r.useEffect)((function(){C&&"outside"===G&&!0!==O&&Ze(Oe)}),[Oe,C,O,G]);var Le,qe=function(){var e=Pe&&Pe.current;e&&e.focus()},Te=function(e,t){for(var n=e.matches||e.webkitMatchesSelector||e.mozMatchesSelector||e.msMatchesSelector;e&&!n.call(e,t);)e=e.parentElement;return e},Me=function(e){Te(e.target,"."+ee)||ie(!1)},De=function(e){var t=!0,n=e[I];return n&&"string"==typeof n&&-1===n.indexOf(Oe)&&(t=!1),t},Fe=function(e){if(null!==e&&0!==e){void 0===e&&(e=se.length);var t=document.querySelector("."+X+" > .select-content > .check-select-content");if(t)if(t.scrollHeight>t.clientHeight){var n=Number(e)-1;xe(n),Fe(n)}else se.length<=e&&_e()}},Ie=function(){clearTimeout(be.timer),be.timer=setTimeout((function(){xe(se.length),Fe()}),100)},Ve=function(){!0!==O&&ie(!0)},ze=function(){ie(!1)},Re=function(e){ke(!0),ie(!1),e.stopPropagation()},_e=function(){ke(!1)},Ae=function(t,n){return function(i){var r=t[z];if("object"!=typeof O||-1===O.indexOf(r))if(C){var o=se.indexOf(r);-1!==o?se.splice(o,1):se.push(r),void 0===e.value&&ce(g([],se,!0)),B&&B(g([],se,!0),i),n&&Y&&Y(g([],se,!0)),qe()}else void 0===e.value&&ce([r]),B&&B(r,i),n&&Y&&Y(r),ze(),Ne("")}},Be=function(e,t){return function(n){var i;e||((i={})[z]=t,e=i),Ae(e)(n),n.stopPropagation()}},Ue=function(e){Ne(e.target.value)},Ze=function(e){var t=Pe&&Pe.current;if(!t)return null;var n=window.getComputedStyle(t),i=n.fontFamily,r=function(e,t,n){var i=document.createElement("span");i.id="referenceSpan";var r={};r.width=i.offsetWidth,r.height=i.offsetHeight,i.style.visibility="hidden",i.style.fontSize=e,i.style.fontFamily=t,i.style.display="inline-block";var o=document.getElementById("referenceSpan");return o&&document.body.removeChild(o),document.body.appendChild(i),void 0!==i.textContent?i.textContent=n:i.innerText=n,r.width=parseFloat(window.getComputedStyle(i).width)-r.width,r.height=parseFloat(window.getComputedStyle(i).height)-r.height,document.body.removeChild(i),r}(n.fontSize,i,e),o=r.width;o<10&&(o=10),t.style.width=o+"px"},Ke=function(e){var t=e.selectDom,n=e.keyCode,i=e.currentKeydownDom,r=null,o="nextSibling",a=".select-popover-list > div",l=".select-popover-list-item";if(38===n&&(o="previousSibling",a=".select-popover-list > div:last-child",l=".select-popover-list-item:last-child"),i)if(r=i[o])-1!==r.className.indexOf("select-popover-list-group-label")&&((r=(r=i.parentNode)[o])||(r=t.querySelector(a)));else{var s=i.parentNode;s&&s.className&&-1!==s.className.indexOf("select-popover-list-group")&&(r=(r=i.parentNode)[o])||(r=t.querySelector(a))}else r=t.querySelector(a);if(r)if(-1!==r.className.indexOf("select-popover-list-group")){var c=r.querySelector(l);c&&(c.classList.add("select-popover-list-item-keydown"),We(c,t))}else r.classList.add("select-popover-list-item-keydown"),We(r,t)},We=function(e,t){clearTimeout(be.scrollTimer);var n=t.clientHeight,i=e.offsetTop+e.clientHeight-n;be.scroll=!0,t.scrollTop=i>0?i:0,be.scrollTimer=setTimeout((function(){be.scroll=!1}),100)},He=function(e){var t=document.querySelector("."+ee+" .select-popover-list");if(t){var n=t.querySelector(".select-popover-list-item-select"),i=t.querySelector(".select-popover-list-item-hover"),r=t.querySelector(".select-popover-list-item-keydown"),o=n;if(i&&(o=i),13===e.keyCode){var a=r||i;if(a){var l=a.dataset.val;Ae(pe[l],!0)({target:r})}else Y&&Y(A)}r&&(o=r,r.classList.remove("select-popover-list-item-keydown")),40===e.keyCode&&Ke({selectDom:t,keyCode:e.keyCode,currentKeydownDom:o}),38===e.keyCode&&Ke({selectDom:t,keyCode:e.keyCode,currentKeydownDom:o})}},Ge=function(e){if(!be.scroll){var t=Te(e.target,".select-popover-list-item");if(t){t.classList.add("select-popover-list-item-hover");var n=document.querySelector("."+ee).querySelector(".select-popover-list-item-keydown");n&&n.classList.remove("select-popover-list-item-keydown")}}},Je=function(e){var t=Te(e.target,".select-popover-list-item");t&&t.classList.remove("select-popover-list-item-hover")},$e=(0,r.useMemo)((function(){var e=Boolean(k||E||P);return(0,i.jsx)(i.Fragment,{children:"outside"===u&&e&&(0,i.jsxs)("label",m({className:"select-label"},{children:[k,E&&(0,i.jsx)("span",m({className:"select-required"},{children:"*"}),void 0),P&&(0,i.jsx)("span",{children:P},void 0)]}),void 0)},void 0)}),[u,k,P,E]),Ye=(0,r.useMemo)((function(){return(0,i.jsx)(i.Fragment,{children:!oe&&(0,i.jsx)("span",m({className:"select-label-placeholder"},{children:"outside"===u?x:(0,i.jsxs)(i.Fragment,{children:[k||x,E&&(0,i.jsx)("span",m({className:"select-required"},{children:"*"}),void 0),P&&(0,i.jsx)("span",{children:P},void 0)]},void 0)}),void 0)},void 0)}),[oe,u,x,k,P,E]),Qe=(0,r.useMemo)((function(){return(0,i.jsx)(i.Fragment,{children:!C&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("div",m({className:"radio-select-content"},{children:function(){if(""!==Oe&&"outside"===G)return null;var e=pe[se[0]]&&pe[se[0]][I]||se[0];return Se?e:(0,i.jsx)(p.default,{children:e},void 0)}()}),void 0),W&&"outside"===G&&!0!==O&&(0,i.jsx)("input",{className:"radio-search-outside",value:Oe,onChange:Ue,ref:Pe},void 0)]},void 0)},void 0)}),[C,oe,Se,pe,se,I,W,G,Oe,O]),Xe=(0,r.useMemo)((function(){var e=function(e){return pe[se[e]]&&pe[se[e]][I]||se[e]};return(0,i.jsx)(i.Fragment,{children:C&&(0,i.jsxs)("div",m({className:"check-select-content"},{children:[se&&se.map((function(t,n){if(null!==ge&&ge<=n)return null;var r=!0;return(!0===O||"object"==typeof O&&-1!==O.indexOf(se[n]))&&(r=!1),(0,i.jsxs)("div",m({className:r?"check-select-content-item":"check-select-content-item check-select-content-item-noclose"},{children:[(0,i.jsx)("span",{children:e(n)},void 0),r&&(0,i.jsx)(f(),{onClick:Be(pe[se[n]],se[n])},void 0)]}),n)})),function(){if(null!==ge&&se.length>ge)return(0,i.jsx)("div",m({className:"check-select-content-item check-select-content-item-more",onClick:Re},{children:(0,i.jsxs)("span",{children:["+",se.length-ge]},void 0)}),void 0)}(),W&&"outside"===G&&!0!==O&&(0,i.jsx)("input",{className:"check-search-outside",value:Oe,onChange:Ue,ref:Pe},void 0)]}),void 0)},void 0)}),[C,oe,se,ge,pe,O,B,Oe,W,G]),et=(0,r.useMemo)((function(){return(0,i.jsxs)("div",m({className:"select-content",onClick:Ve,ref:Q},{children:[Ye,(0,i.jsx)("span",m({className:"select-svg"},{children:(0,i.jsx)(l(),{},void 0)}),void 0),Qe,Xe]}),void 0)}),[Q,oe,u,x,k,P,E,Se,pe,se,I,C,ge,O,B,Oe,G]),tt=(0,r.useMemo)((function(){return(0,i.jsx)("div",m({className:"select-popover-list"},{children:de&&de.length>0?(0,i.jsx)(i.Fragment,{children:de.map((function(e,t){if(e[_]&&e[_].length>0){var n=e[_];return(0,i.jsxs)("div",m({className:"select-popover-list-group"},{children:[(0,i.jsx)("span",m({className:"select-popover-list-group-label"},{children:e[I]||e[z]}),void 0),n.map((function(e,t){var n=e[z],r="select-popover-list-item";return-1!==se.indexOf(n)&&(r+=" select-popover-list-item-select"),"object"==typeof O&&-1!==O.indexOf(n)&&(r+=" select-popover-list-item-disabled"),(0,i.jsxs)("div",m({onClick:Ae(e),className:r,onMouseEnter:Ge,onMouseLeave:Je,"data-val":n},{children:[(0,i.jsx)("span",m({className:"select-popover-list-item-label"},{children:(0,i.jsx)(p.default,{children:e[I]||e[z]},void 0)}),void 0),C&&(0,i.jsx)("span",m({className:"select-popover-list-item-svg"},{children:(0,i.jsx)(d(),{},void 0)}),void 0)]}),t)}))]}),t)}var r=e[z],o="select-popover-list-item";return-1!==se.indexOf(r)&&(o+=" select-popover-list-item-select"),"object"==typeof O&&-1!==O.indexOf(r)&&(o+=" select-popover-list-item-disabled"),(0,i.jsxs)("div",m({onClick:Ae(e),className:o,onMouseEnter:Ge,onMouseLeave:Je,"data-val":r},{children:[(0,i.jsx)("span",m({className:"select-popover-list-item-label"},{children:(0,i.jsx)(p.default,{children:e[I]||e[z]},void 0)}),void 0),C&&(0,i.jsx)("span",m({className:"select-popover-list-item-svg"},{children:(0,i.jsx)(d(),{},void 0)}),void 0)]}),t)}))},void 0):(0,i.jsx)("div",m({className:"select-nodata"},{children:"暂无选项"}),void 0)}),void 0)}),[de,I,z,se,B,C]),nt=(0,r.useMemo)((function(){return(0,i.jsxs)("div",m({style:{width:(Q&&Q.current?Q.current.offsetWidth:0)+"px"},className:"select-popover-content "+ee},{children:[W&&"inside"===G&&(0,i.jsxs)("div",m({className:"select-popover-search"},{children:[(0,i.jsx)("input",{placeholder:y,value:Oe,onChange:Ue,ref:Pe},void 0),(0,i.jsx)(c(),{},void 0)]}),void 0),tt]}),void 0)}),[ne,Q,de,_,z,I,se,Oe,W,ee,G,C,y]),it=(0,r.useMemo)((function(){var e,t=function(e){return pe[se[e]]&&pe[se[e]][I]||se[e]};return(0,i.jsx)(o.Popover,m({open:je,anchorEl:Q&&Q.current,onClose:_e,anchorOrigin:{vertical:"top",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"left"},className:(e="paraui-select-more-popover",a&&(e+=" paraui-select-more-popover-"+a),$&&(e+=" "+$),e)},{children:(0,i.jsxs)("div",m({className:"select-more"},{children:[(0,i.jsxs)("div",m({className:"select-more-title"},{children:[(0,i.jsx)("span",{children:"已选中"},void 0),(0,i.jsxs)("span",{children:["(",se.length-Number(ge),")"]},void 0)]}),void 0),(0,i.jsx)("div",m({className:"select-more-content"},{children:se&&se.map((function(e,n){if(null!==ge&&ge>n)return null;var r=!0;return(!0===O||"object"==typeof O&&-1!==O.indexOf(se[n]))&&(r=!1),(0,i.jsxs)("div",m({className:"select-more-content-item"},{children:[(0,i.jsx)("span",{children:(0,i.jsx)(p.default,{children:t(n)},void 0)},void 0),r&&(0,i.jsx)(f(),{onClick:Be(pe[se[n]],se[n])},void 0)]}),n)}))}),void 0)]}),void 0)}),void 0)}),[je,se,ge,pe,O,I,$,a]);return(0,i.jsxs)("div",m({className:(Le="paraui-select select",C&&!Se&&(Le+=" "+X),t&&(Le+=" "+t),a&&(Le+=" select-"+a),q&&(Le+=" select-error"),!0===O&&(Le+=" select-disabled"),ne&&(Le+=" select-open"),C&&(Le+=" select-multiple"),Se&&(Le+=" select-over-line"),Le)},{children:[$e,(0,i.jsx)(o.Tooltip,m({open:ne,title:nt,onClose:ze,interactive:!0,disableFocusListener:!0,disableHoverListener:!0,disableTouchListener:!0,arrow:!0,classes:{popper:function(){var e="paraui-select-popover";return a&&(e+=" paraui-select-popover-"+a),e+=C?" paraui-select-popover-multiple":" paraui-select-popover-radio",J&&(e+=" "+J),e}()},placement:"bottom-start"},{children:et}),void 0),M&&(0,i.jsx)("p",m({className:"select-error-text"},{children:M}),void 0),it]}),void 0)}},5962:function(e,t,n){var i=n(7712),r=n(4555),o=n.n(r),a=n(4927),l=n(1102),s=n.n(l),c=function(){return c=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},c.apply(this,arguments)},u=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]])}return n};t.default=function(e){e.compact,e.size;var t=e.loading,n=e.disabled,r=e.className,l=u(e,["compact","size","loading","disabled","className"]),d=(0,a.Z)("paraui-switch",{"paraui-switch-loading":t},r),v=(0,i.jsx)("div",c({className:"paraui-switch-handle"},{children:t&&(0,i.jsx)(s(),{className:"paraui-switch-loading-icon"},void 0)}),void 0);return(0,i.jsx)(o(),c({},l,{prefixCls:"paraui-switch",className:d,disabled:n||t,loadingIcon:v}),void 0)}},3672:function(e,t,n){var i=n(7712),r=n(9297),o=n(1731),a=n(3094),l=n(9011),s=n(8528),c=n.n(s),u=n(6570),d=n.n(u),v=n(3475),f=function(){return f=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},f.apply(this,arguments)},p=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]])}return n};t.default=function(e){var t=e.className,n=e.size,s=void 0===n?"large":n,u=e.labelMode,h=void 0===u?"outside":u,m=e.placeholder,g=void 0===m?"":m,x=e.label,b=void 0===x?"":x,y=e.disabled,j=void 0!==y&&y,k=e.multiline,w=void 0!==k&&k,O=e.required,N=void 0!==O&&O,C=e.labelSign,S=e.rows,E=void 0===S?2:S,P=e.error,L=void 0!==P&&P,q=e.helperText,T=void 0===q?"":q,M=e.addonBefore,D=void 0===M?"":M,F=e.addonAfter,I=void 0===F?"":F,V=(e.defaultValue,e.value),z=e.autoFocus,R=void 0!==z&&z,_=e.type,A=void 0===_?"text":_,B=e.onClickIcon,U=e.rightIcon,Z=e.showRightIcon,K=void 0===Z||Z,W=e.limitLength,H=e.fetchSuggestions,G=e.selectPopoverClass,J=e.renderSelectItem,$=e.showSelectName,Y=void 0===$?"value":$,Q=e.onBlur,X=e.onFocus,ee=e.onChange,te=e.onKeydown,ne=e.onKeyUp,ie=e.onEnter,re=e.onClickAddonBefore,oe=e.onClickAddonAfter,ae=e.onSelect,le=p(e,["className","size","labelMode","placeholder","label","disabled","multiline","required","labelSign","rows","error","helperText","addonBefore","addonAfter","defaultValue","value","autoFocus","type","onClickIcon","rightIcon","showRightIcon","limitLength","fetchSuggestions","selectPopoverClass","renderSelectItem","showSelectName","onBlur","onFocus","onChange","onKeydown","onKeyUp","onEnter","onClickAddonBefore","onClickAddonAfter","onSelect"]),se=(0,r.useState)("text-field-select-content-"+(0,v.UUID)())[0],ce=(0,r.useState)(!0),ue=ce[0],de=ce[1],ve=(0,r.useState)(""),fe=ve[0],pe=ve[1],he=(0,r.useState)(!1),me=he[0],ge=he[1],xe=(0,r.useState)("text"),be=xe[0],ye=xe[1],je=(0,r.useState)(!1),ke=je[0],we=je[1],Oe=(0,r.useState)(!1),Ne=Oe[0],Ce=Oe[1],Se=(0,r.useState)([]),Ee=Se[0],Pe=Se[1],Le=((0,r.useState)({isCompositions:!0})[0],(0,r.useRef)(null)),qe=(0,r.useRef)(null);(0,r.useEffect)((function(){void 0!==e.defaultValue&&(pe(e.defaultValue),De(e.defaultValue))}),[]),(0,r.useEffect)((function(){A!==be&&ye(A)}),[A]),(0,r.useEffect)((function(){void 0!==V&&(pe(V),De(V))}),[V]),(0,r.useEffect)((function(){de(""===fe||void 0===fe)}),[fe]),(0,r.useEffect)((function(){H&&we(me)}),[me,H]),(0,r.useEffect)((function(){return ke?window.addEventListener("keydown",ze):window.removeEventListener("keydown",ze),function(){window.removeEventListener("keydown",ze)}}),[ke]),(0,r.useEffect)((function(){if(!me&&fe){var t=Me(fe);if(t!==fe){var n={};n.target=Le.current,n.target.value=t,e.onChange&&e.onChange(n)}}}),[fe,me]);var Te,Me=function(t){var n=t;return e.limitLength&&t.toString().length>e.limitLength&&(n=n.toString().substr(0,e.limitLength)),n},De=function(e){Le&&Le.current&&(Le.current.value=e,Le.current.setAttribute("value",e))},Fe=function(){j||(de(!1),(Le&&Le.current).focus())},Ie=function(e){var t=e.selectDom,n=e.keyCode,i=e.currentDom,r="nextSibling",o=".text-field-select-content-item";38===n&&(r="previousSibling",o=".text-field-select-content-item:last-child"),i?(i=i[r])||(i=t.querySelector(o)):i=t.querySelector(".text-field-select-content-item"),i&&(i.classList.add("text-field-select-content-item-keydown"),Ve(i,t))},Ve=function(e,t){var n=t.clientHeight,i=e.offsetTop+e.clientHeight-n;t.scrollTop=i>0?i:0},ze=function(e){var t=document.querySelector("."+se),n=null,i=t.querySelector(".text-field-select-content-item-keydown");if(13===e.keyCode&&i){var r=i.dataset.val;He(JSON.parse(r))(e),(Le&&Le.current).blur()}i&&(n=i,i.classList.remove("text-field-select-content-item-keydown")),40===e.keyCode&&Ie({selectDom:t,keyCode:e.keyCode,currentDom:n}),38===e.keyCode&&Ie({selectDom:t,keyCode:e.keyCode,currentDom:n})},Re=function(e){ge(!1),""===e.target.value&&de(!0),Q&&Q(e)},_e=function(e){Ce(!0),H&&H(e,(function(e){Pe(e||[]),Ce(!1)}))},Ae=function(e){ge(!0),X&&X(e),_e(e.target.value)},Be=function(t){var n=t.target.value;n&&de(!1),void 0===e.value&&(pe(n),De(n)),ee&&ee(t),_e(t.target.value)},Ue=function(e){13===e.keyCode&&ie&&ie(e),te&&te(e)},Ze=function(e){ne&&ne(e)},Ke=function(e){"password"===A&&("text"===be&&ye("password"),"password"===be&&ye("text")),B&&B(e)},We=function(){we(!1)},He=function(e){return function(t){ae&&ae(e)}},Ge=(0,r.useMemo)((function(){return(0,i.jsx)(i.Fragment,{children:void 0!==W&&(0,i.jsx)("span",f({className:"length-limit"},{children:(fe?fe.toString().length:0)+"/"+W}),void 0)},void 0)}),[W,fe]),Je=(0,r.useMemo)((function(){var e=U||("password"===A?"password"===be?(0,i.jsx)(d(),{},void 0):(0,i.jsx)(c(),{},void 0):null);return(0,i.jsx)(i.Fragment,{children:K&&e&&(0,i.jsx)("span",f({className:"right-icon",onClick:Ke},{children:e}),void 0)},void 0)}),[K,U,A,be]),$e=(0,r.useMemo)((function(){return(0,i.jsxs)("div",f({className:"text-field-content-within",ref:qe},{children:[(0,i.jsxs)("div",f({className:"text-field-content-within-input"},{children:[w?(0,i.jsx)("textarea",f({ref:Le,rows:E,onBlur:Re,onFocus:Ae,onChange:Be,onKeyDown:Ue,onKeyUp:Ze,disabled:j},le),void 0):(0,i.jsx)("input",f({ref:Le,type:be,onBlur:Re,onFocus:Ae,onChange:Be,onKeyDown:Ue,onKeyUp:Ze,disabled:j},le),void 0),ue&&!me&&(0,i.jsx)("span",f({className:"text-field-label-placeholder",onClick:Fe},{children:"outside"===h?g:(0,i.jsxs)(i.Fragment,{children:[b||g,N&&(0,i.jsx)("span",f({className:"text-field-required"},{children:"*"}),void 0),C&&(0,i.jsx)("span",{children:C},void 0)]},void 0)}),void 0)]}),void 0),Ge,Je]}),void 0)}),[ue,me,R,be,fe,Ge,Je,h,g,b,j,w,E,le,ee,H]),Ye=(0,r.useMemo)((function(){var e;return(0,i.jsxs)("div",f({className:(e="text-field-select-content",Ne&&(e+=" text-field-select-content-loading"),se&&(e+=" "+se),e),style:{width:(qe&&qe.current?qe.current.offsetWidth:0)+"px"}},{children:[Ee&&Ee.map((function(e,t){return(0,i.jsx)("div",f({className:"text-field-select-content-item",onMouseDown:He(e),"data-val":JSON.stringify(e)},{children:J?J(e):(0,i.jsx)(a.default,{children:e[Y]},void 0)}),t)})),Ne&&(0,i.jsx)(l.default,{},void 0)]}),void 0)}),[qe,ke,Ee,J,Y,ae,Ne,se]),Qe=(0,r.useMemo)((function(){return(0,i.jsx)(o.Tooltip,f({open:ke,title:Ye,onClose:We,interactive:!0,disableFocusListener:!0,disableHoverListener:!0,disableTouchListener:!0,arrow:!0,classes:{popper:(e="paraui-text-field-select",s&&(e+=" paraui-text-field-select-"+s),G&&(e+=" "+G),e)}},{children:$e}),void 0);var e}),[ue,me,R,be,fe,Ge,Je,h,g,b,j,w,E,le,ee,H,ae,qe,ke,G,s]),Xe=(0,r.useMemo)((function(){var e=Boolean(N||C||b);return(0,i.jsx)(i.Fragment,{children:"outside"===h&&e&&(0,i.jsxs)("label",f({className:"text-field-label"},{children:[b,N&&(0,i.jsx)("span",f({className:"text-field-required"},{children:"*"}),void 0),C&&(0,i.jsx)("span",{children:C},void 0)]}),void 0)},void 0)}),[h,b,C,N]);return(0,i.jsxs)("div",f({className:(Te="paraui-text-field",Te+=" text-field",s&&!w&&(Te+=" text-field-"+s),t&&(Te+=" "+t),L&&(Te+=" text-field-error"),me&&(Te+=" text-field-focus"),j&&(Te+=" text-field-disabled"),w&&(Te+=" text-field-multiline"),e.limitLength&&fe&&fe.toString().length>e.limitLength&&(Te+=" text-field-limit"),Te)},{children:[Xe,(0,i.jsxs)("div",f({className:"text-field-content"},{children:[D&&(0,i.jsx)("div",f({className:"text-field-content-before",onClick:function(e){re&&re(e)}},{children:D}),void 0),H?Qe:$e,I&&(0,i.jsx)("div",f({className:"text-field-content-after",onClick:function(e){oe&&oe(e)}},{children:I}),void 0)]}),void 0),T&&(0,i.jsx)("p",f({className:"text-field-error-text"},{children:T}),void 0)]}),void 0)}},6885:function(e,t,n){var i=n(7712),r=n(1731),o=n(4927),a=function(){return a=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},a.apply(this,arguments)};t.default=function(e){var t,n=e.placement,l=void 0===n?"bottom":n,s=a(a({},e.classes),{popper:(0,o.Z)("paraui-tooltip",null===(t=e.classes)||void 0===t?void 0:t.popper,{"paraui-tooltip-left-right":(null==l?void 0:l.includes("left"))||(null==l?void 0:l.includes("right")),"paraui-tooltip-top-bottom":(null==l?void 0:l.includes("top"))||(null==l?void 0:l.includes("bottom"))})});return(0,i.jsx)(r.Tooltip,a({},e,{classes:s}),void 0)}},1731:function(t){t.exports=e},6110:function(e){e.exports=t},19:function(e){e.exports=n},6243:function(e){e.exports=i},6028:function(e){e.exports=r},2749:function(e){e.exports=o},9973:function(e){e.exports=a},1102:function(e){e.exports=l},6570:function(e){e.exports=s},8528:function(e){e.exports=c},4115:function(e){e.exports=u},6897:function(e){e.exports=d},3475:function(e){e.exports=v},4555:function(e){e.exports=f},9297:function(e){e.exports=p}},g={};function x(e){var t=g[e];if(void 0!==t)return t.exports;var n=g[e]={exports:{}};return m[e](n,n.exports,x),n.exports}x.m=m,h=[],x.O=function(e,t,n,i){if(!t){var r=1/0;for(l=0;l<h.length;l++){t=h[l][0],n=h[l][1],i=h[l][2];for(var o=!0,a=0;a<t.length;a++)(!1&i||r>=i)&&Object.keys(x.O).every((function(e){return x.O[e](t[a])}))?t.splice(a--,1):(o=!1,i<r&&(r=i));o&&(h.splice(l--,1),e=n())}return e}i=i||0;for(var l=h.length;l>0&&h[l-1][2]>i;l--)h[l]=h[l-1];h[l]=[t,n,i]},x.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return x.d(t,{a:t}),t},x.d=function(e,t){for(var n in t)x.o(t,n)&&!x.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},x.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},x.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},function(){var e={6419:0,1465:0,6615:0,7056:0,307:0,3386:0,5717:0,6573:0,3799:0,8306:0,6195:0,2996:0,2823:0,9296:0};x.O.j=function(t){return 0===e[t]};var t=function(t,n){var i,r,o=n[0],a=n[1],l=n[2],s=0;for(i in a)x.o(a,i)&&(x.m[i]=a[i]);if(l)var c=l(x);for(t&&t(n);s<o.length;s++)r=o[s],x.o(e,r)&&e[r]&&e[r][0](),e[o[s]]=0;return x.O(c)},n=self.webpackChunkParaUI=self.webpackChunkParaUI||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))}();var b=x.O(void 0,[9296],(function(){return x(993)}));return b=x.O(b)}()}));
|
|
16
|
+
n(4126);var i=n(9297),r=60103;if(t.Fragment=60107,"function"==typeof Symbol&&Symbol.for){var o=Symbol.for;r=o("react.element"),t.Fragment=o("react.fragment")}var a=i.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l=Object.prototype.hasOwnProperty,s={key:!0,ref:!0,__self:!0,__source:!0};function c(e,t,n){var i,o={},c=null,u=null;for(i in void 0!==n&&(c=""+n),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(u=t.ref),t)l.call(t,i)&&!s.hasOwnProperty(i)&&(o[i]=t[i]);if(e&&e.defaultProps)for(i in t=e.defaultProps)void 0===o[i]&&(o[i]=t[i]);return{$$typeof:r,type:e,key:c,ref:u,props:o,_owner:a.current}}t.jsx=c,t.jsxs=c},7712:function(e,t,n){e.exports=n(9524)},3094:function(e,t,n){var i=n(7712),r=n(9297),o=n(6885),a=function(){return a=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},a.apply(this,arguments)};t.default=function(e){var t=e.children,n=e.placement,l=void 0===n?"bottom-start":n,s=e.tips,c=void 0===s?"":s,u=e.className,d=void 0===u?"":u,v=(0,r.useRef)(),f=(0,r.useState)(""),p=f[0],h=f[1];(0,r.useEffect)((function(){h(c)}),[c]);var m;return(0,i.jsx)("div",a({ref:v,className:(m="paraui-auto-tips",d&&(m+=" "+d),m),onMouseOver:function(e){v.current&&v.current.scrollWidth>v.current.offsetWidth?h(c||v.current.innerText):h("")}},{children:(0,i.jsx)(o.default,a({title:p,placement:l},{children:(0,i.jsx)("div",a({className:"auto-tips-content"},{children:t}),void 0)}),void 0)}),void 0)}},2990:function(e,t,n){n.d(t,{default:function(){return x}});var i=n(7712),r=n(9297),o=n(1731),a=n(4927),l=n(1102),s=n.n(l),c=n(2749),u=n.n(c),d=n(6885),v=n(6028),f=n.n(v),p=function(){return p=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},p.apply(this,arguments)};var h=function(){return h=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},h.apply(this,arguments)},m=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]])}return n},g=function(e){var t=e.variant,n=void 0===t?"contained":t,l=e.size,c=void 0===l?"large":l,v=e.className,f=e.disabled,p=void 0!==f&&f,g=e.children,x=e.startIcon,b=e.endIcon,y=e.loading,j=void 0!==y&&y,k=e.toolTipTitle,w=void 0===k?"":k,O=e.danger,N=void 0!==O&&O,C=m(e,["variant","size","className","disabled","children","startIcon","endIcon","loading","toolTipTitle","danger"]),S=(0,r.useState)(!1),E=S[0],P=S[1],L=function(e){if(!E)return"start"===e&&x?(0,i.jsx)("span",h({className:(0,a.Z)("btn-icon","start-icon")},{children:x}),void 0):"end"===e&&b?(0,i.jsx)("span",h({className:(0,a.Z)("btn-icon","end-icon")},{children:b}),void 0):null;if("object"==typeof j){var t=j.delay||0;setTimeout((function(){return P(!1)}),t)}return"start"===e?(0,i.jsx)("span",h({className:"btn-icon loading-icon"},{children:(0,i.jsx)(s(),{},void 0)}),void 0):null},q=(0,i.jsx)(o.Button,h({},C,{color:"default",variant:"contained",disabled:p,disableRipple:!0,disableElevation:!0,className:(0,a.Z)("paraui-button",v,"paraui-button-".concat(n),"paraui-button-".concat(c),E&&"paraui-button-loading",N&&!p&&"paraui-button-dangerous"),startIcon:L("start"),endIcon:L("end")},{children:g}),void 0);return(0,r.useEffect)((function(){P(!!j)}),[j]),p&&w?(0,i.jsx)(d.default,h({title:function(){if(p&&w){return(0,i.jsxs)("span",{children:[(0,i.jsx)(u(),{style:{marginRight:"4px",fontSize:"11px",color:"inherit"}},void 0),w]},void 0)}return w}()},{children:(0,i.jsx)("span",h({className:"paraui-button--disabled"},{children:q}),void 0)}),void 0):q};g.IconButton=function(e){var t=e.variant,n=void 0===t?"contained":t,l=e.size,c=void 0===l?"large":l,v=e.toolTipTitle,f=void 0===v?"":v,p=e.children,g=e.className,x=e.disabled,b=void 0!==x&&x,y=e.loading,j=void 0!==y&&y,k=e.TooltipProps,w=e.danger,O=void 0!==w&&w,N=m(e,["variant","size","toolTipTitle","children","className","disabled","loading","TooltipProps","danger"]),C=(0,r.useState)(!1),S=C[0],E=C[1],P=(0,i.jsx)(o.IconButton,h({},N,{disabled:b,disableRipple:!0,className:(0,a.Z)("paraui-icon-button",g,"paraui-icon-button-".concat(n),"paraui-icon-button-".concat(c),S&&"paraui-icon-button-loading",O&&!b&&"paraui-icon-button-dangerous")},{children:function(){if(!S)return p;if("object"==typeof j){var e=j.delay||0;setTimeout((function(){return E(!1)}),e)}return(0,i.jsx)("span",h({className:"loading-icon"},{children:(0,i.jsx)(s(),{},void 0)}),void 0)}()}),void 0);return(0,r.useEffect)((function(){E(!!j)}),[j]),f?(0,i.jsx)(d.default,h({},k,{title:function(){if(b&&f){return(0,i.jsxs)("span",{children:[(0,i.jsx)(u(),{style:{marginRight:"4px",fontSize:"11px",color:"inherit"}},void 0),f]},void 0)}return f}()},{children:b?(0,i.jsx)("span",h({className:"paraui-button--disabled"},{children:P}),void 0):P}),void 0):P},g.SplitButton=function(e){var t=e.buttonText,n=e.options,l=void 0===n?[]:n,s=e.className,c=e.disabled,u=void 0!==c&&c,d=e.onClick,v=e.optionRender,h=(0,r.useState)(!1),m=h[0],g=h[1],b=(0,r.useRef)(null),y=(0,r.useRef)(),j=(0,r.useState)(0),k=j[0],w=j[1],O=function(e,t,n){var i;w(t),g(!1),null===(i=y.current)||void 0===i||i.classList.remove("paraui-button-split--active"),null==d||d(e,n)},N=function(e){var t,n;(null===(t=b.current)||void 0===t?void 0:t.contains(e.target))||(g(!1),null===(n=y.current)||void 0===n||n.classList.remove("paraui-button-split--active"))},C=function(){return(0,i.jsx)("div",p({className:"paraui-button-split-list"},{children:(0,i.jsx)("ul",{children:l.map((function(e,t){return Array.isArray(e)?function(e,t){return(0,i.jsx)("li",p({className:"split-li-group"},{children:e.map((function(e,n){var r="".concat(t,"-").concat(n);return(0,i.jsx)("div",p({className:(0,a.Z)("split-li",r===k&&"split-li--active"),onClick:function(t){return O(e,r,t)}},{children:(null==v?void 0:v(e))||e.label}),r)}))}),t)}(e,t):(0,i.jsx)("li",p({className:(0,a.Z)("split-li",t===k&&"split-li--active"),onClick:function(n){return O(e,t,n)}},{children:(null==v?void 0:v(e))||e.label}),t)}))},void 0)}),void 0)};return(0,i.jsxs)("div",p({className:(0,a.Z)("paraui-button-split",s),ref:b,onMouseLeave:function(e){var t;e.stopPropagation(),null===(t=e.currentTarget.firstElementChild)||void 0===t||t.classList.remove("paraui-button-split--active"),g(!1)}},{children:[(0,i.jsx)(x,p({variant:"outlined",onMouseEnter:function(e){e.stopPropagation();var t=e.currentTarget;y.current=t,t.classList.add("paraui-button-split--active"),g(!0)},startIcon:(0,i.jsx)(f(),{},void 0),disabled:u},{children:null!=t?t:"更多操作"}),void 0),(0,i.jsx)(o.Popper,p({open:m,anchorEl:b.current,transition:!0,placement:"bottom-end"},{children:function(e){var t=e.TransitionProps;e.placement;return(0,i.jsx)(o.Grow,p({},t,{children:(0,i.jsx)(i.Fragment,{children:(0,i.jsx)(o.ClickAwayListener,p({onClickAway:N},{children:C()}),void 0)},void 0)}),void 0)}}),void 0)]}),void 0)};var x=g},6150:function(e,t,n){var i=n(7712),r=n(9297),o=function(){return o=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},o.apply(this,arguments)};t.default=function(e){var t=e.className,n=void 0===t?"":t,a=e.label,l=void 0===a?"":a,s=e.size,c=void 0===s?"large":s,u=e.disabled,d=void 0!==u&&u,v=e.indeterminate,f=void 0!==v&&v,p=e.onChange,h=(0,r.useState)(!1),m=h[0],g=h[1];(0,r.useEffect)((function(){void 0!==e.defaultChecked&&g(e.defaultChecked)}),[]),(0,r.useEffect)((function(){void 0!==e.checked&&g(e.checked)}),[e.checked]);var x;return(0,i.jsxs)("label",o({className:(x="paraui-check-box",n&&(x+=" "+n),c&&(x+=" check-box-"+c),d&&(x+=" check-box-disabled"),f?x+=" check-box-indeterminate":m&&(x+=" check-box-checked"),x),onClick:function(t){if(t.preventDefault(),!d){if(f)return void 0===e.checked&&g(!0),void(p&&p(t,!0));void 0===e.checked&&g(!m),t.target.checked=!m,t.target.value=!m,p&&p(t,!m)}}},{children:[(0,i.jsxs)("span",o({className:"paraui-checkbox-box"},{children:[(0,i.jsx)("input",o({type:"checkbox",value:m},e.inputProps),void 0),(0,i.jsx)("span",{className:"paraui-checkbox-box-inner"},void 0)]}),void 0),l&&(0,i.jsx)("span",o({className:"paraui-check-box-label"},{children:l}),void 0)]}),void 0)}},7661:function(e,t,n){var i=n(9297),r=n(7712),o=n(6150),a=n(3475),l=function(){return l=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},l.apply(this,arguments)};t.default=function(e){var t=e.label,n=void 0===t?"":t,s=e.size,c=void 0===s?"large":s,u=e.row,d=void 0===u||u,v=e.disabled,f=void 0!==v&&v,p=e.required,h=void 0!==p&&p,m=e.error,g=void 0!==m&&m,x=e.helperText,b=void 0===x?"":x,y=e.id,j=void 0===y?"name":y,k=e.list,w=e.className,O=void 0===w?"":w,N=e.onChange,C=(0,i.useState)([]),S=C[0],E=C[1];(0,i.useEffect)((function(){void 0!==e.defaultValue&&E(e.defaultValue)}),[]),(0,i.useEffect)((function(){void 0!==e.value&&E(e.value)}),[e.value]);var P,L=function(t){return function(n,i){var r=t[j],o=(0,a.DeepClone)(S);if(i)o.push(r);else{var l=o.indexOf(r);o.splice(l,1)}void 0===e.value&&E(o),N&&N(o)}};return(0,r.jsxs)("div",l({className:(P="paraui-check-box-group",O&&(P+=" "+O),c&&(P+=" check-box-group-"+c),g&&(P+=" check-box-group-error"),f&&(P+=" check-box-group-disabled"),d&&(P+=" check-box-group-row"),P)},{children:[(0,r.jsxs)("label",l({className:"check-box-group-label"},{children:[n,h&&(0,r.jsx)("span",l({className:"required-char"},{children:"*"}),void 0)]}),void 0),(0,r.jsx)("div",l({className:"check-box-group-content"},{children:k.map((function(e,t){return(0,i.createElement)(o.default,l({},e,{checked:-1!==S.indexOf(e[j]),size:c,disabled:Boolean(f||e.disabled),key:t,onChange:L(e)}))}))}),void 0),b&&(0,r.jsx)("p",l({className:"check-box-group-error-text"},{children:b}),void 0)]}),void 0)}},7178:function(e,t,n){n.d(t,{default:function(){return D}});var i=n(7712),r=n(9297),o=n.n(r),a=n(6897),l=n.n(a),s=n(1731),c=n(3672),u=n(1383),d=function(){return d=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},d.apply(this,arguments)},v=function(e){var t=e.defaultValue,n=e.change,r=o().useState(t||""),a=r[0],l=r[1];return(0,i.jsx)(u.default,d({value:a,onChange:function(e){l(e),n&&n(e)}},e),void 0)},f=n(370),p=function(){return p=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},p.apply(this,arguments)},h=function(e){var t=e.defaultValue,n=void 0===t?"":t,r=e.change,a=e.value,l=o().useState(void 0!==a?a:n),s=l[0],c=l[1];return o().useEffect((function(){c(a)}),[a]),(0,i.jsx)(f.default,p({labelMode:"inside",onChange:function(e){c(e),r&&r(e)}},e,{value:s}),void 0)},m=n(7661),g=function(){return g=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},g.apply(this,arguments)},x=function(e){var t=e.defaultValue,n=e.change,r=o().useState(t||[]),a=r[0],l=r[1];return(0,i.jsx)(m.default,g({value:a,onChange:function(e){l(e),n&&n(e)}},e),void 0)},b=n(3053),y=n(5962),j=n(6243),k=n.n(j),w=n(9973),O=n.n(w),N=n(3094),C=n(2990),S=function(){return S=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},S.apply(this,arguments)},E=function(e){var t=e.fileType,n=void 0===t?"":t,r=e.defaultValue,a=e.onChange,l=e.disabled,s=e.buttonLabel,c=e.inputProps,u=e.buttonProps,d=o().useRef(null),v=function(e){var t=void 0!==e?e:d.current.files;h(t),a&&a(t),null===e&&(d.current.value=null)},f=o().useState(),p=f[0],h=f[1];return o().useEffect((function(){r&&h(r)}),[r]),(0,i.jsxs)("div",S({className:"para-file-box paraui-file-box"},{children:[!l&&(0,i.jsx)(C.default,S({variant:"outlined"},u,{onClick:function(){var e;console.log("inputFileClick",d.current),null===(e=d.current)||void 0===e||e.click()}},{children:s||"选择文件"}),void 0),(0,i.jsx)("input",S({},c,{ref:d,type:"file",onInput:function(){return v()},hidden:!0,accept:"string"==typeof n?n:n.join(",")}),void 0),p&&p[0]&&(0,i.jsx)("div",S({className:"para-file-tips ".concat(l?"para-file-tips-disabled":"")},{children:(0,i.jsxs)("div",S({className:"file-tips-item"},{children:[(0,i.jsx)(O(),{},void 0),(0,i.jsx)("span",S({className:"file-tips-context"},{children:(0,i.jsx)(N.default,{children:"string"==typeof p?p:p[0].name},void 0)}),void 0),!l&&(0,i.jsx)(k(),{onClick:function(){return v(null)}},void 0)]}),void 0)}),void 0)]}),void 0)},P=function(){return P=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},P.apply(this,arguments)},L=function(e){var t=e.ItemType,n=e.error,r=e.placeholder,a=e.label,l=e.inputProps,s=e.name,u=e.rules,d=e.setValue,f=e.setError,p=e.backData,m=e.disabled,g=e.change,j=r||"".concat(a),k=o().useState(!!n),w=k[0],O=k[1],N=function(t){if(d&&d(s,"value",t),g&&g(t),u){var n=(0,b.Z)(e,t)||"";C(n)}},C=o().useCallback((function(e){f&&f(e),O(!!e),d&&d(s,"message",e)}),[s,f,d]);o().useEffect((function(){var t=P(P({},e),{setErrorMsg:C});d&&d(s,"item",t)}),[s,e,C,d]);return function(){if(t&&"string"!=typeof t){var n=P(P({},e),{setErrorMsg:C});return t(n)}switch(t){case"file":return(0,i.jsx)(E,P({},e,{defaultValue:p[s],disabled:m,onChange:function(e){N(e)}}),void 0);case"switch":return void 0===p[s]&&d&&d(s,"initValue",!!p[s]),(0,i.jsx)(y.default,P({compact:!0,defaultChecked:!!p[s],onChange:function(e){N(e)}},P(P({},l),{disabled:m})),void 0);case"checkGroup":return(0,i.jsx)(x,P({error:w,defaultValue:p[s],change:function(e){N(e)},list:e.list},P(P({},l),{disabled:m})),void 0);case"select":return(0,i.jsx)(h,P({placeholder:j,defaultValue:p[s],error:w,change:function(e){N(e)},list:e.list},P({disabled:m},l)),void 0);case"radioGroup":return(0,i.jsx)(v,P({error:w,defaultValue:p[s],change:function(e){N(e)},list:e.list},P({disabled:m},l)),void 0);case"textarea":return(0,i.jsx)(c.default,P({error:w,placeholder:j,value:p[s],disabled:m,multiline:!0,rows:3,name:s,onChange:function(e){N(e.target.value)}},l),void 0);default:return(0,i.jsx)(c.default,P({value:p[s],error:w,placeholder:j,onChange:function(e){N(e.target.value)},name:s,disabled:m},l),void 0)}}()},q=function(e){var t=e.getSetError,n=e.errorMessage,r=o().useState(n||""),a=r[0],l=r[1];return o().useEffect((function(){l(n||"")}),[n]),o().useEffect((function(){t&&t(l)}),[t]),(0,i.jsxs)(N.default,{children:[a," "]},void 0)},T=n(4927),M=function(){return M=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},M.apply(this,arguments)},D=function(e){var t=e.type,n=void 0===t?"horizontal":t,r=e.labelWidth,a=void 0===r?60:r,c=e.tips,u=e.label,d=e.InputType,v=e.setValue,f=e.errorMessage,p=e.hideLabel,h=e.backData,m=void 0===h?{}:h,g=o().useRef(),x=o().useCallback((function(){return u?"string"==typeof u?u:u(e):""}),[u]);return(0,i.jsxs)("div",M({className:"para-form-item paraui-form-item"},{children:[!p&&(0,i.jsxs)("div",M({className:(0,T.Z)("para-form-label","vertical"===n&&"para-form-label-vertical"),style:{width:"vertical"===n?"".concat(a,"px"):""}},{children:[(0,i.jsx)("span",M({className:(0,T.Z)("para-form-labe-text",c&&"para-form-labe-text-hastips")},{children:x()}),void 0),c&&(0,i.jsx)(s.Tooltip,M({title:c,placement:"top"},{children:(0,i.jsx)("span",M({className:"para-form-labe-tips"},{children:(0,i.jsx)(l(),{},void 0)}),void 0)}),void 0)]}),void 0),(0,i.jsxs)((function(e){return"vertical"===n?(0,i.jsx)("div",M({className:"para-form-content-vertical",style:{width:"calc(100% - ".concat(a,"px)")}},{children:e.children}),void 0):e.children}),{children:[(0,i.jsx)("div",M({className:"para-form-edit"},{children:e.children?e.children:(0,i.jsx)(L,M({setError:function(e){g.current&&g.current(e)},error:!!f,ItemType:d,backData:m},e,{setValue:v}),void 0)}),void 0),(0,i.jsx)("div",M({className:"para-form-error"},{children:(0,i.jsx)(q,{getSetError:function(e){return g.current=e},errorMessage:f},void 0)}),void 0)]},void 0)]}),void 0)}},3053:function(e,t){var n={required:function(e,t){var n,i,r,o,a=typeof t,l=(null===(i=null===(n=e.rules)||void 0===n?void 0:n.message)||void 0===i?void 0:i.required)||"".concat(e.label,"不能为空"),s=!1;switch(a){case"string":if(void 0!==e.disOnlySpace?e.disOnlySpace:null===(o=null===(r=e.rules)||void 0===r?void 0:r.validate)||void 0===o?void 0:o.disOnlySpace){s=!!t&&!/^[\s]+$/.test(t)}else s=!!t;break;case"number":s=t+1>t;break;case"object":var c=JSON.stringify(t);s="null"!==c&&"[]"!==c&&"{}"!==c;break;case"boolean":s=void 0!==t;break;default:s=!!t}return s||l},maxlength:function(e,t){var n,i,r,o,a,l,s=typeof t,c=(null===(i=null===(n=e.rules)||void 0===n?void 0:n.message)||void 0===i?void 0:i.maxlength)||"最大长度不能超过".concat(null===(o=null===(r=e.rules)||void 0===r?void 0:r.validate)||void 0===o?void 0:o.maxlength);return("string"===s||"number"===s&&t+1>t?!("".concat(t).length>((null===(l=null===(a=e.rules)||void 0===a?void 0:a.validate)||void 0===l?void 0:l.maxlength)||NaN)):!t)||c},minLength:function(e,t){var n,i,r,o,a,l,s=typeof t,c=(null===(i=null===(n=e.rules)||void 0===n?void 0:n.message)||void 0===i?void 0:i.minLength)||"最小长度为".concat(null===(o=null===(r=e.rules)||void 0===r?void 0:r.validate)||void 0===o?void 0:o.minLength);return("string"===s||"number"===s&&t+1>t?"".concat(t).length>=((null===(l=null===(a=e.rules)||void 0===a?void 0:a.validate)||void 0===l?void 0:l.minLength)||-1):!t)||c},pattern:function(e,t){var n,i,r,o,a=null===(i=null===(n=e.rules)||void 0===n?void 0:n.validate)||void 0===i?void 0:i.pattern,l=(null===(o=null===(r=e.rules)||void 0===r?void 0:r.message)||void 0===o?void 0:o.pattern)||"参数不符合校验规则: ".concat(a),s=!t;return a&&t&&"function"!=typeof a&&(s=a.test(t)),s||l},min:function(e,t){var n,i,r,o,a,l,s=typeof t,c=(null===(i=null===(n=e.rules)||void 0===n?void 0:n.message)||void 0===i?void 0:i.min)||"最小值为".concat(null===(o=null===(r=e.rules)||void 0===r?void 0:r.validate)||void 0===o?void 0:o.min),u=!t;return"string"!==s&&"number"!==s||(u=t>((null===(l=null===(a=e.rules)||void 0===a?void 0:a.validate)||void 0===l?void 0:l.min)||-1/0)),u||c},max:function(e,t){var n,i,r,o,a,l,s=typeof t,c=(null===(i=null===(n=e.rules)||void 0===n?void 0:n.message)||void 0===i?void 0:i.max)||"最大值为".concat(null===(o=null===(r=e.rules)||void 0===r?void 0:r.validate)||void 0===o?void 0:o.max),u=!t;return"string"!==s&&"number"!==s||(u=t<((null===(l=null===(a=e.rules)||void 0===a?void 0:a.validate)||void 0===l?void 0:l.max)||1/0)),u||c}};t.Z=function(e,t){var i,r,o=null===(i=e.rules)||void 0===i?void 0:i.validate;if(o){var a=null===(r=e.rules)||void 0===r?void 0:r.message;for(var l in console.log("validateObj"),o){var s=o[l],c="";if("function"==typeof s?!1===(c=s(e,t))&&a&&(c=a[l]):n[l]?c=n[l](e,t):(console.log("项目: ".concat(e.label,", 自定义校验规则: ").concat(l,", 方法未定义")),c=!0),!0!==c)return c||""}}return!1}},9011:function(e,t,n){var i=n(7712),r=n(9297),o=n(1102),a=n.n(o),l=function(){return l=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},l.apply(this,arguments)};t.default=function(e){var t=e.className,n=e.style,o=e.opacity,s=void 0===o?.7:o,c=(0,r.useRef)(null);(0,r.useEffect)((function(){c&&c.current&&c.current.parentNode&&((getComputedStyle(c.current.parentNode)||{}).position||(c.current.parentNode.style.position="relative"))}),[]);var u;return(0,i.jsxs)("div",l({className:(u="paraui-loading",t&&(u+=" "+t),u),style:n,ref:c},{children:[(0,i.jsx)("div",l({className:"paraui-loading-box"},{children:(0,i.jsx)(a(),{},void 0)}),void 0),(0,i.jsx)("div",{className:"paraui-loading-mask",style:{opacity:s}},void 0)]}),void 0)}},4296:function(e,t,n){var i=n(7712),r=n(9297),o=function(){return o=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},o.apply(this,arguments)};t.default=function(e){var t=e.className,n=void 0===t?"":t,a=e.label,l=void 0===a?"":a,s=e.size,c=void 0===s?"large":s,u=e.disabled,d=void 0!==u&&u,v=e.onChange,f=(0,r.useState)(!1),p=f[0],h=f[1];(0,r.useEffect)((function(){void 0!==e.defaultChecked&&h(e.defaultChecked)}),[]),(0,r.useEffect)((function(){void 0!==e.checked&&h(e.checked)}),[e.checked]);var m;return(0,i.jsxs)("label",o({className:(m="paraui-radio",n&&(m+=" "+n),c&&(m+=" radio-"+c),d&&(m+=" radio-disabled"),p&&(m+=" radio-checked"),m),onClick:function(t){t.preventDefault(),d||(void 0===e.checked&&h(!p),t.target.checked=!p,v&&v(t,!p))}},{children:[(0,i.jsxs)("span",o({className:"paraui-radio-box"},{children:[(0,i.jsx)("input",o({type:"radio",value:p},e.inputProps),void 0),(0,i.jsx)("span",{className:"paraui-radio-box-inner"},void 0)]}),void 0),l&&(0,i.jsx)("span",o({className:"paraui-radio-label"},{children:l}),void 0)]}),void 0)}},1383:function(e,t,n){var i=n(9297),r=n(7712),o=n(4296),a=function(){return a=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},a.apply(this,arguments)};t.default=function(e){var t=e.className,n=void 0===t?"":t,l=e.label,s=void 0===l?"":l,c=e.size,u=void 0===c?"large":c,d=e.row,v=void 0===d||d,f=e.disabled,p=void 0!==f&&f,h=e.required,m=void 0!==h&&h,g=e.error,x=void 0!==g&&g,b=e.helperText,y=void 0===b?"":b,j=e.id,k=void 0===j?"name":j,w=e.value,O=e.list,N=e.onChange,C=(0,i.useState)(),S=C[0],E=C[1];(0,i.useEffect)((function(){void 0!==e.defaultValue&&E(e.defaultValue)}),[]),(0,i.useEffect)((function(){void 0!==w&&E(w)}),[w]);var P,L=function(t){return function(){var n=t[k];w!==n&&(void 0===e.value&&E(n),N&&N(n,t))}};return(0,r.jsxs)("div",a({className:(P="paraui-radio-group",n&&(P+=" "+n),u&&(P+=" radio-group-"+u),x&&(P+=" radio-group-error"),p&&(P+=" radio-group-disabled"),v&&(P+=" radio-group-row"),P)},{children:[(0,r.jsxs)("label",a({className:"radio-group-label"},{children:[s,m&&(0,r.jsx)("span",a({className:"required-char"},{children:"*"}),void 0)]}),void 0),(0,r.jsx)("div",a({className:"radio-group-content"},{children:O.map((function(e,t){return(0,i.createElement)(o.default,a({},e,{checked:S===e[k],size:u,disabled:Boolean(p||e.disabled),key:t,onChange:L(e)}))}))}),void 0),y&&(0,r.jsx)("p",a({className:"radio-group-error-text"},{children:y}),void 0)]}),void 0)}},370:function(e,t,n){var i=n(7712),r=n(9297),o=n(1731),a=n(6028),l=n.n(a),s=n(4115),c=n.n(s),u=n(6110),d=n.n(u),v=n(19),f=n.n(v),p=n(3094),h=n(3475),m=function(){return m=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},m.apply(this,arguments)},g=function(e,t,n){if(n||2===arguments.length)for(var i,r=0,o=t.length;r<o;r++)!i&&r in t||(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))};t.default=function(e){var t=e.className,n=e.size,a=void 0===n?"large":n,s=e.labelMode,u=void 0===s?"outside":s,v=e.placeholder,x=void 0===v?"":v,b=e.searchPlaceholder,y=void 0===b?"请输入搜索名":b,j=e.label,k=void 0===j?"":j,w=e.disabled,O=void 0!==w&&w,N=e.multiple,C=void 0!==N&&N,S=e.required,E=void 0!==S&&S,P=e.labelSign,L=e.error,q=void 0!==L&&L,T=e.helperText,M=void 0===T?"":T,D=e.list,F=e.showName,I=void 0===F?"label":F,V=e.showValue,z=void 0===V?"value":V,R=e.childrenName,_=void 0===R?"children":R,A=e.value,B=e.onChange,Z=e.overLine,U=void 0!==Z&&Z,K=e.search,W=void 0!==K&&K,H=e.searchModel,G=void 0===H?"inside":H,J=e.selectPopoverClassName,$=e.morePopoverClassName,Y=e.onEnter,Q=(0,r.useRef)(null),X=(0,r.useState)("select-"+(0,h.UUID)())[0],ee=(0,r.useState)("select-popover-"+(0,h.UUID)())[0],te=(0,r.useState)(!1),ne=te[0],ie=te[1],re=(0,r.useState)(!1),oe=re[0],ae=re[1],le=(0,r.useState)([]),se=le[0],ce=le[1],ue=(0,r.useState)([]),de=ue[0],ve=ue[1],fe=(0,r.useState)({}),pe=fe[0],he=fe[1],me=(0,r.useState)(null),ge=me[0],xe=me[1],be=(0,r.useState)({})[0],ye=(0,r.useState)(!1),je=ye[0],ke=ye[1],we=(0,r.useState)(""),Oe=we[0],Ne=we[1],Ce=(0,r.useState)(!1),Se=Ce[0],Ee=Ce[1],Pe=(0,r.useRef)(null);(0,r.useEffect)((function(){void 0!==e.defaultValue&&(e.multiple?ce((0,h.DeepClone)(e.defaultValue||[])):ce(""===e.defaultValue?[]:[e.defaultValue]))}),[]),(0,r.useEffect)((function(){void 0!==A&&ce(C?(0,h.DeepClone)(A||[]):""===A?[]:[A])}),[A,C]),(0,r.useEffect)((function(){if(W&&"outside"===G)return Ee(!!C);Ee(U)}),[U,W,G,C]),(0,r.useEffect)((function(){for(var e={},t=0,n=D.length;t<n;t++){var i=D[t];if(i[_]&&i[_].length>0)for(var r=i[_],o=0,a=r.length;o<a;o++){var l=r[o];e[l[z]]=l}else e[i[z]]=i}he(e)}),[D]),(0,r.useEffect)((function(){C&&(Se||xe(se.length))}),[Se,C,se]),(0,r.useEffect)((function(){return Se?xe(se.length):(setTimeout((function(){Fe(se.length)})),window.addEventListener("resize",Ie)),function(){window.removeEventListener("resize",Ie)}}),[se,Se]),(0,r.useEffect)((function(){se&&se.length>0?ae(!0):(ae(!1),W&&"outside"===G&&ae(""!==Oe))}),[W,Oe,G,se]),(0,r.useEffect)((function(){clearTimeout(be.searchTimer),W&&""!==Oe.trim()?be.searchTimer=setTimeout((function(){for(var e=[],t=(0,h.DeepClone)(D),n=0,i=t.length;n<i;n++){var r=t[n];if(r[_]&&r[_].length>0){for(var o=r[_],a=[],l=0,s=o.length;l<s;l++){var c=o[l];De(c)&&a.push(c)}a.length>0&&(r[_]=a,e.push(r))}else{De(r)&&e.push(r)}}ve(e)}),100):ve((0,h.DeepClone)(D))}),[W,Oe,D]),(0,r.useEffect)((function(){return ne?setTimeout((function(){qe(),window.addEventListener("click",Me),window.addEventListener("keydown",He)})):(Ne(""),window.removeEventListener("click",Me),window.removeEventListener("keydown",He)),function(){window.removeEventListener("click",Me),window.removeEventListener("keydown",He)}}),[ne]),(0,r.useEffect)((function(){Oe&&ie(!0)}),[Oe]),(0,r.useEffect)((function(){C&&"outside"===G&&!0!==O&&Ue(Oe)}),[Oe,C,O,G]);var Le,qe=function(){var e=Pe&&Pe.current;e&&e.focus()},Te=function(e,t){for(var n=e.matches||e.webkitMatchesSelector||e.mozMatchesSelector||e.msMatchesSelector;e&&!n.call(e,t);)e=e.parentElement;return e},Me=function(e){Te(e.target,"."+ee)||ie(!1)},De=function(e){var t=!0,n=e[I];return n&&"string"==typeof n&&-1===n.indexOf(Oe)&&(t=!1),t},Fe=function(e){if(null!==e&&0!==e){void 0===e&&(e=se.length);var t=document.querySelector("."+X+" > .select-content > .check-select-content");if(t)if(t.scrollHeight>t.clientHeight){var n=Number(e)-1;xe(n),Fe(n)}else se.length<=e&&_e()}},Ie=function(){clearTimeout(be.timer),be.timer=setTimeout((function(){xe(se.length),Fe()}),100)},Ve=function(){!0!==O&&ie(!0)},ze=function(){ie(!1)},Re=function(e){ke(!0),ie(!1),e.stopPropagation()},_e=function(){ke(!1)},Ae=function(t,n){return function(i){var r=t[z];if("object"!=typeof O||-1===O.indexOf(r))if(C){var o=se.indexOf(r);-1!==o?se.splice(o,1):se.push(r),void 0===e.value&&ce(g([],se,!0)),B&&B(g([],se,!0),i),n&&Y&&Y(g([],se,!0)),qe()}else void 0===e.value&&ce([r]),B&&B(r,i),n&&Y&&Y(r),ze(),Ne("")}},Be=function(e,t){return function(n){var i;e||((i={})[z]=t,e=i),Ae(e)(n),n.stopPropagation()}},Ze=function(e){Ne(e.target.value)},Ue=function(e){var t=Pe&&Pe.current;if(!t)return null;var n=window.getComputedStyle(t),i=n.fontFamily,r=function(e,t,n){var i=document.createElement("span");i.id="referenceSpan";var r={};r.width=i.offsetWidth,r.height=i.offsetHeight,i.style.visibility="hidden",i.style.fontSize=e,i.style.fontFamily=t,i.style.display="inline-block";var o=document.getElementById("referenceSpan");return o&&document.body.removeChild(o),document.body.appendChild(i),void 0!==i.textContent?i.textContent=n:i.innerText=n,r.width=parseFloat(window.getComputedStyle(i).width)-r.width,r.height=parseFloat(window.getComputedStyle(i).height)-r.height,document.body.removeChild(i),r}(n.fontSize,i,e),o=r.width;o<10&&(o=10),t.style.width=o+"px"},Ke=function(e){var t=e.selectDom,n=e.keyCode,i=e.currentKeydownDom,r=null,o="nextSibling",a=".select-popover-list > div",l=".select-popover-list-item";if(38===n&&(o="previousSibling",a=".select-popover-list > div:last-child",l=".select-popover-list-item:last-child"),i)if(r=i[o])-1!==r.className.indexOf("select-popover-list-group-label")&&((r=(r=i.parentNode)[o])||(r=t.querySelector(a)));else{var s=i.parentNode;s&&s.className&&-1!==s.className.indexOf("select-popover-list-group")&&(r=(r=i.parentNode)[o])||(r=t.querySelector(a))}else r=t.querySelector(a);if(r)if(-1!==r.className.indexOf("select-popover-list-group")){var c=r.querySelector(l);c&&(c.classList.add("select-popover-list-item-keydown"),We(c,t))}else r.classList.add("select-popover-list-item-keydown"),We(r,t)},We=function(e,t){clearTimeout(be.scrollTimer);var n=t.clientHeight,i=e.offsetTop+e.clientHeight-n;be.scroll=!0,t.scrollTop=i>0?i:0,be.scrollTimer=setTimeout((function(){be.scroll=!1}),100)},He=function(e){var t=document.querySelector("."+ee+" .select-popover-list");if(t){var n=t.querySelector(".select-popover-list-item-select"),i=t.querySelector(".select-popover-list-item-hover"),r=t.querySelector(".select-popover-list-item-keydown"),o=n;if(i&&(o=i),13===e.keyCode){var a=r||i;if(a){var l=a.dataset.val;Ae(pe[l],!0)({target:r})}else Y&&Y(A)}r&&(o=r,r.classList.remove("select-popover-list-item-keydown")),40===e.keyCode&&Ke({selectDom:t,keyCode:e.keyCode,currentKeydownDom:o}),38===e.keyCode&&Ke({selectDom:t,keyCode:e.keyCode,currentKeydownDom:o})}},Ge=function(e){if(!be.scroll){var t=Te(e.target,".select-popover-list-item");if(t){t.classList.add("select-popover-list-item-hover");var n=document.querySelector("."+ee).querySelector(".select-popover-list-item-keydown");n&&n.classList.remove("select-popover-list-item-keydown")}}},Je=function(e){var t=Te(e.target,".select-popover-list-item");t&&t.classList.remove("select-popover-list-item-hover")},$e=(0,r.useMemo)((function(){var e=Boolean(k||E||P);return(0,i.jsx)(i.Fragment,{children:"outside"===u&&e&&(0,i.jsxs)("label",m({className:"select-label"},{children:[k,E&&(0,i.jsx)("span",m({className:"select-required"},{children:"*"}),void 0),P&&(0,i.jsx)("span",{children:P},void 0)]}),void 0)},void 0)}),[u,k,P,E]),Ye=(0,r.useMemo)((function(){return(0,i.jsx)(i.Fragment,{children:!oe&&(0,i.jsx)("span",m({className:"select-label-placeholder"},{children:"outside"===u?x:(0,i.jsxs)(i.Fragment,{children:[k||x,E&&(0,i.jsx)("span",m({className:"select-required"},{children:"*"}),void 0),P&&(0,i.jsx)("span",{children:P},void 0)]},void 0)}),void 0)},void 0)}),[oe,u,x,k,P,E]),Qe=(0,r.useMemo)((function(){return(0,i.jsx)(i.Fragment,{children:!C&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("div",m({className:"radio-select-content"},{children:function(){if(""!==Oe&&"outside"===G)return null;var e=pe[se[0]]&&pe[se[0]][I]||se[0];return Se?e:(0,i.jsx)(p.default,{children:e},void 0)}()}),void 0),W&&"outside"===G&&!0!==O&&(0,i.jsx)("input",{className:"radio-search-outside",value:Oe,onChange:Ze,ref:Pe},void 0)]},void 0)},void 0)}),[C,oe,Se,pe,se,I,W,G,Oe,O]),Xe=(0,r.useMemo)((function(){var e=function(e){return pe[se[e]]&&pe[se[e]][I]||se[e]};return(0,i.jsx)(i.Fragment,{children:C&&(0,i.jsxs)("div",m({className:"check-select-content"},{children:[se&&se.map((function(t,n){if(null!==ge&&ge<=n)return null;var r=!0;return(!0===O||"object"==typeof O&&-1!==O.indexOf(se[n]))&&(r=!1),(0,i.jsxs)("div",m({className:r?"check-select-content-item":"check-select-content-item check-select-content-item-noclose"},{children:[(0,i.jsx)("span",{children:e(n)},void 0),r&&(0,i.jsx)(f(),{onClick:Be(pe[se[n]],se[n])},void 0)]}),n)})),function(){if(null!==ge&&se.length>ge)return(0,i.jsx)("div",m({className:"check-select-content-item check-select-content-item-more",onClick:Re},{children:(0,i.jsxs)("span",{children:["+",se.length-ge]},void 0)}),void 0)}(),W&&"outside"===G&&!0!==O&&(0,i.jsx)("input",{className:"check-search-outside",value:Oe,onChange:Ze,ref:Pe},void 0)]}),void 0)},void 0)}),[C,oe,se,ge,pe,O,B,Oe,W,G]),et=(0,r.useMemo)((function(){return(0,i.jsxs)("div",m({className:"select-content",onClick:Ve,ref:Q},{children:[Ye,(0,i.jsx)("span",m({className:"select-svg"},{children:(0,i.jsx)(l(),{},void 0)}),void 0),Qe,Xe]}),void 0)}),[Q,oe,u,x,k,P,E,Se,pe,se,I,C,ge,O,B,Oe,G]),tt=(0,r.useMemo)((function(){return(0,i.jsx)("div",m({className:"select-popover-list"},{children:de&&de.length>0?(0,i.jsx)(i.Fragment,{children:de.map((function(e,t){if(e[_]&&e[_].length>0){var n=e[_];return(0,i.jsxs)("div",m({className:"select-popover-list-group"},{children:[(0,i.jsx)("span",m({className:"select-popover-list-group-label"},{children:e[I]||e[z]}),void 0),n.map((function(e,t){var n=e[z],r="select-popover-list-item";return-1!==se.indexOf(n)&&(r+=" select-popover-list-item-select"),"object"==typeof O&&-1!==O.indexOf(n)&&(r+=" select-popover-list-item-disabled"),(0,i.jsxs)("div",m({onClick:Ae(e),className:r,onMouseEnter:Ge,onMouseLeave:Je,"data-val":n},{children:[(0,i.jsx)("span",m({className:"select-popover-list-item-label"},{children:(0,i.jsx)(p.default,{children:e[I]||e[z]},void 0)}),void 0),C&&(0,i.jsx)("span",m({className:"select-popover-list-item-svg"},{children:(0,i.jsx)(d(),{},void 0)}),void 0)]}),t)}))]}),t)}var r=e[z],o="select-popover-list-item";return-1!==se.indexOf(r)&&(o+=" select-popover-list-item-select"),"object"==typeof O&&-1!==O.indexOf(r)&&(o+=" select-popover-list-item-disabled"),(0,i.jsxs)("div",m({onClick:Ae(e),className:o,onMouseEnter:Ge,onMouseLeave:Je,"data-val":r},{children:[(0,i.jsx)("span",m({className:"select-popover-list-item-label"},{children:(0,i.jsx)(p.default,{children:e[I]||e[z]},void 0)}),void 0),C&&(0,i.jsx)("span",m({className:"select-popover-list-item-svg"},{children:(0,i.jsx)(d(),{},void 0)}),void 0)]}),t)}))},void 0):(0,i.jsx)("div",m({className:"select-nodata"},{children:"暂无选项"}),void 0)}),void 0)}),[de,I,z,se,B,C]),nt=(0,r.useMemo)((function(){return(0,i.jsxs)("div",m({style:{width:(Q&&Q.current?Q.current.offsetWidth:0)+"px"},className:"select-popover-content "+ee},{children:[W&&"inside"===G&&(0,i.jsxs)("div",m({className:"select-popover-search"},{children:[(0,i.jsx)("input",{placeholder:y,value:Oe,onChange:Ze,ref:Pe},void 0),(0,i.jsx)(c(),{},void 0)]}),void 0),tt]}),void 0)}),[ne,Q,de,_,z,I,se,Oe,W,ee,G,C,y]),it=(0,r.useMemo)((function(){var e,t=function(e){return pe[se[e]]&&pe[se[e]][I]||se[e]};return(0,i.jsx)(o.Popover,m({open:je,anchorEl:Q&&Q.current,onClose:_e,anchorOrigin:{vertical:"top",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"left"},className:(e="paraui-select-more-popover",a&&(e+=" paraui-select-more-popover-"+a),$&&(e+=" "+$),e)},{children:(0,i.jsxs)("div",m({className:"select-more"},{children:[(0,i.jsxs)("div",m({className:"select-more-title"},{children:[(0,i.jsx)("span",{children:"已选中"},void 0),(0,i.jsxs)("span",{children:["(",se.length-Number(ge),")"]},void 0)]}),void 0),(0,i.jsx)("div",m({className:"select-more-content"},{children:se&&se.map((function(e,n){if(null!==ge&&ge>n)return null;var r=!0;return(!0===O||"object"==typeof O&&-1!==O.indexOf(se[n]))&&(r=!1),(0,i.jsxs)("div",m({className:"select-more-content-item"},{children:[(0,i.jsx)("span",{children:(0,i.jsx)(p.default,{children:t(n)},void 0)},void 0),r&&(0,i.jsx)(f(),{onClick:Be(pe[se[n]],se[n])},void 0)]}),n)}))}),void 0)]}),void 0)}),void 0)}),[je,se,ge,pe,O,I,$,a]);return(0,i.jsxs)("div",m({className:(Le="paraui-select select",C&&!Se&&(Le+=" "+X),t&&(Le+=" "+t),a&&(Le+=" select-"+a),q&&(Le+=" select-error"),!0===O&&(Le+=" select-disabled"),ne&&(Le+=" select-open"),C&&(Le+=" select-multiple"),Se&&(Le+=" select-over-line"),Le)},{children:[$e,(0,i.jsx)(o.Tooltip,m({open:ne,title:nt,onClose:ze,interactive:!0,disableFocusListener:!0,disableHoverListener:!0,disableTouchListener:!0,arrow:!0,classes:{popper:function(){var e="paraui-select-popover";return a&&(e+=" paraui-select-popover-"+a),e+=C?" paraui-select-popover-multiple":" paraui-select-popover-radio",J&&(e+=" "+J),e}()},placement:"bottom-start"},{children:et}),void 0),M&&(0,i.jsx)("p",m({className:"select-error-text"},{children:M}),void 0),it]}),void 0)}},5962:function(e,t,n){var i=n(7712),r=n(4555),o=n.n(r),a=n(4927),l=n(1102),s=n.n(l),c=function(){return c=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},c.apply(this,arguments)},u=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]])}return n};t.default=function(e){e.compact,e.size;var t=e.loading,n=e.disabled,r=e.className,l=u(e,["compact","size","loading","disabled","className"]),d=(0,a.Z)("paraui-switch",{"paraui-switch-loading":t},r),v=(0,i.jsx)("div",c({className:"paraui-switch-handle"},{children:t&&(0,i.jsx)(s(),{className:"paraui-switch-loading-icon"},void 0)}),void 0);return(0,i.jsx)(o(),c({},l,{prefixCls:"paraui-switch",className:d,disabled:n||t,loadingIcon:v}),void 0)}},3672:function(e,t,n){var i=n(7712),r=n(9297),o=n(1731),a=n(3094),l=n(9011),s=n(8528),c=n.n(s),u=n(6570),d=n.n(u),v=n(3475),f=function(){return f=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},f.apply(this,arguments)},p=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]])}return n};t.default=function(e){var t=e.className,n=e.size,s=void 0===n?"large":n,u=e.labelMode,h=void 0===u?"outside":u,m=e.placeholder,g=void 0===m?"":m,x=e.label,b=void 0===x?"":x,y=e.disabled,j=void 0!==y&&y,k=e.multiline,w=void 0!==k&&k,O=e.required,N=void 0!==O&&O,C=e.labelSign,S=e.rows,E=void 0===S?2:S,P=e.error,L=void 0!==P&&P,q=e.helperText,T=void 0===q?"":q,M=e.addonBefore,D=void 0===M?"":M,F=e.addonAfter,I=void 0===F?"":F,V=(e.defaultValue,e.value),z=e.autoFocus,R=void 0!==z&&z,_=e.type,A=void 0===_?"text":_,B=e.onClickIcon,Z=e.rightIcon,U=e.showRightIcon,K=void 0===U||U,W=e.limitLength,H=e.fetchSuggestions,G=e.selectPopoverClass,J=e.renderSelectItem,$=e.showSelectName,Y=void 0===$?"value":$,Q=e.onBlur,X=e.onFocus,ee=e.onChange,te=e.onKeydown,ne=e.onKeyUp,ie=e.onEnter,re=e.onClickAddonBefore,oe=e.onClickAddonAfter,ae=e.onSelect,le=p(e,["className","size","labelMode","placeholder","label","disabled","multiline","required","labelSign","rows","error","helperText","addonBefore","addonAfter","defaultValue","value","autoFocus","type","onClickIcon","rightIcon","showRightIcon","limitLength","fetchSuggestions","selectPopoverClass","renderSelectItem","showSelectName","onBlur","onFocus","onChange","onKeydown","onKeyUp","onEnter","onClickAddonBefore","onClickAddonAfter","onSelect"]),se=(0,r.useState)("text-field-select-content-"+(0,v.UUID)())[0],ce=(0,r.useState)(!0),ue=ce[0],de=ce[1],ve=(0,r.useState)(""),fe=ve[0],pe=ve[1],he=(0,r.useState)(!1),me=he[0],ge=he[1],xe=(0,r.useState)("text"),be=xe[0],ye=xe[1],je=(0,r.useState)(!1),ke=je[0],we=je[1],Oe=(0,r.useState)(!1),Ne=Oe[0],Ce=Oe[1],Se=(0,r.useState)([]),Ee=Se[0],Pe=Se[1],Le=((0,r.useState)({isCompositions:!0})[0],(0,r.useRef)(null)),qe=(0,r.useRef)(null);(0,r.useEffect)((function(){void 0!==e.defaultValue&&(pe(e.defaultValue),De(e.defaultValue))}),[]),(0,r.useEffect)((function(){A!==be&&ye(A)}),[A]),(0,r.useEffect)((function(){void 0!==V&&(pe(V),De(V))}),[V]),(0,r.useEffect)((function(){de(""===fe||void 0===fe)}),[fe]),(0,r.useEffect)((function(){H&&we(me)}),[me,H]),(0,r.useEffect)((function(){return ke?window.addEventListener("keydown",ze):window.removeEventListener("keydown",ze),function(){window.removeEventListener("keydown",ze)}}),[ke]),(0,r.useEffect)((function(){if(!me&&fe){var t=Me(fe);if(t!==fe){var n={};n.target=Le.current,n.target.value=t,e.onChange&&e.onChange(n)}}}),[fe,me]);var Te,Me=function(t){var n=t;return e.limitLength&&t.toString().length>e.limitLength&&(n=n.toString().substr(0,e.limitLength)),n},De=function(e){Le&&Le.current&&(Le.current.value=e,Le.current.setAttribute("value",e))},Fe=function(){j||(de(!1),(Le&&Le.current).focus())},Ie=function(e){var t=e.selectDom,n=e.keyCode,i=e.currentDom,r="nextSibling",o=".text-field-select-content-item";38===n&&(r="previousSibling",o=".text-field-select-content-item:last-child"),i?(i=i[r])||(i=t.querySelector(o)):i=t.querySelector(".text-field-select-content-item"),i&&(i.classList.add("text-field-select-content-item-keydown"),Ve(i,t))},Ve=function(e,t){var n=t.clientHeight,i=e.offsetTop+e.clientHeight-n;t.scrollTop=i>0?i:0},ze=function(e){var t=document.querySelector("."+se),n=null,i=t.querySelector(".text-field-select-content-item-keydown");if(13===e.keyCode&&i){var r=i.dataset.val;He(JSON.parse(r))(e),(Le&&Le.current).blur()}i&&(n=i,i.classList.remove("text-field-select-content-item-keydown")),40===e.keyCode&&Ie({selectDom:t,keyCode:e.keyCode,currentDom:n}),38===e.keyCode&&Ie({selectDom:t,keyCode:e.keyCode,currentDom:n})},Re=function(e){ge(!1),""===e.target.value&&de(!0),Q&&Q(e)},_e=function(e){Ce(!0),H&&H(e,(function(e){Pe(e||[]),Ce(!1)}))},Ae=function(e){ge(!0),X&&X(e),_e(e.target.value)},Be=function(t){var n=t.target.value;n&&de(!1),void 0===e.value&&(pe(n),De(n)),ee&&ee(t),_e(t.target.value)},Ze=function(e){13===e.keyCode&&ie&&ie(e),te&&te(e)},Ue=function(e){ne&&ne(e)},Ke=function(e){"password"===A&&("text"===be&&ye("password"),"password"===be&&ye("text")),B&&B(e)},We=function(){we(!1)},He=function(e){return function(t){ae&&ae(e)}},Ge=(0,r.useMemo)((function(){return(0,i.jsx)(i.Fragment,{children:void 0!==W&&(0,i.jsx)("span",f({className:"length-limit"},{children:(fe?fe.toString().length:0)+"/"+W}),void 0)},void 0)}),[W,fe]),Je=(0,r.useMemo)((function(){var e=Z||("password"===A?"password"===be?(0,i.jsx)(d(),{},void 0):(0,i.jsx)(c(),{},void 0):null);return(0,i.jsx)(i.Fragment,{children:K&&e&&(0,i.jsx)("span",f({className:"right-icon",onClick:Ke},{children:e}),void 0)},void 0)}),[K,Z,A,be]),$e=(0,r.useMemo)((function(){return(0,i.jsxs)("div",f({className:"text-field-content-within",ref:qe},{children:[(0,i.jsxs)("div",f({className:"text-field-content-within-input"},{children:[w?(0,i.jsx)("textarea",f({ref:Le,rows:E,onBlur:Re,onFocus:Ae,onChange:Be,onKeyDown:Ze,onKeyUp:Ue,disabled:j},le),void 0):(0,i.jsx)("input",f({ref:Le,type:be,onBlur:Re,onFocus:Ae,onChange:Be,onKeyDown:Ze,onKeyUp:Ue,disabled:j},le),void 0),ue&&!me&&(0,i.jsx)("span",f({className:"text-field-label-placeholder",onClick:Fe},{children:"outside"===h?g:(0,i.jsxs)(i.Fragment,{children:[b||g,N&&(0,i.jsx)("span",f({className:"text-field-required"},{children:"*"}),void 0),C&&(0,i.jsx)("span",{children:C},void 0)]},void 0)}),void 0)]}),void 0),Ge,Je]}),void 0)}),[ue,me,R,be,fe,Ge,Je,h,g,b,j,w,E,le,ee,H]),Ye=(0,r.useMemo)((function(){var e;return(0,i.jsxs)("div",f({className:(e="text-field-select-content",Ne&&(e+=" text-field-select-content-loading"),se&&(e+=" "+se),e),style:{width:(qe&&qe.current?qe.current.offsetWidth:0)+"px"}},{children:[Ee&&Ee.map((function(e,t){return(0,i.jsx)("div",f({className:"text-field-select-content-item",onMouseDown:He(e),"data-val":JSON.stringify(e)},{children:J?J(e):(0,i.jsx)(a.default,{children:e[Y]},void 0)}),t)})),Ne&&(0,i.jsx)(l.default,{},void 0)]}),void 0)}),[qe,ke,Ee,J,Y,ae,Ne,se]),Qe=(0,r.useMemo)((function(){return(0,i.jsx)(o.Tooltip,f({open:ke,title:Ye,onClose:We,interactive:!0,disableFocusListener:!0,disableHoverListener:!0,disableTouchListener:!0,arrow:!0,classes:{popper:(e="paraui-text-field-select",s&&(e+=" paraui-text-field-select-"+s),G&&(e+=" "+G),e)}},{children:$e}),void 0);var e}),[ue,me,R,be,fe,Ge,Je,h,g,b,j,w,E,le,ee,H,ae,qe,ke,G,s]),Xe=(0,r.useMemo)((function(){var e=Boolean(N||C||b);return(0,i.jsx)(i.Fragment,{children:"outside"===h&&e&&(0,i.jsxs)("label",f({className:"text-field-label"},{children:[b,N&&(0,i.jsx)("span",f({className:"text-field-required"},{children:"*"}),void 0),C&&(0,i.jsx)("span",{children:C},void 0)]}),void 0)},void 0)}),[h,b,C,N]);return(0,i.jsxs)("div",f({className:(Te="paraui-text-field",Te+=" text-field",s&&!w&&(Te+=" text-field-"+s),t&&(Te+=" "+t),L&&(Te+=" text-field-error"),me&&(Te+=" text-field-focus"),j&&(Te+=" text-field-disabled"),w&&(Te+=" text-field-multiline"),e.limitLength&&fe&&fe.toString().length>e.limitLength&&(Te+=" text-field-limit"),Te)},{children:[Xe,(0,i.jsxs)("div",f({className:"text-field-content"},{children:[D&&(0,i.jsx)("div",f({className:"text-field-content-before",onClick:function(e){re&&re(e)}},{children:D}),void 0),H?Qe:$e,I&&(0,i.jsx)("div",f({className:"text-field-content-after",onClick:function(e){oe&&oe(e)}},{children:I}),void 0)]}),void 0),T&&(0,i.jsx)("p",f({className:"text-field-error-text"},{children:T}),void 0)]}),void 0)}},6885:function(e,t,n){var i=n(7712),r=n(1731),o=n(4927),a=function(){return a=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},a.apply(this,arguments)};t.default=function(e){var t,n=e.placement,l=void 0===n?"bottom":n,s=a(a({},e.classes),{popper:(0,o.Z)("paraui-tooltip",null===(t=e.classes)||void 0===t?void 0:t.popper,{"paraui-tooltip-left-right":(null==l?void 0:l.includes("left"))||(null==l?void 0:l.includes("right")),"paraui-tooltip-top-bottom":(null==l?void 0:l.includes("top"))||(null==l?void 0:l.includes("bottom"))})});return(0,i.jsx)(r.Tooltip,a({},e,{classes:s}),void 0)}},1731:function(t){t.exports=e},6110:function(e){e.exports=t},19:function(e){e.exports=n},6243:function(e){e.exports=i},6028:function(e){e.exports=r},2749:function(e){e.exports=o},9973:function(e){e.exports=a},1102:function(e){e.exports=l},6570:function(e){e.exports=s},8528:function(e){e.exports=c},4115:function(e){e.exports=u},6897:function(e){e.exports=d},3475:function(e){e.exports=v},4555:function(e){e.exports=f},9297:function(e){e.exports=p}},m={};function g(e){var t=m[e];if(void 0!==t)return t.exports;var n=m[e]={exports:{}};return h[e](n,n.exports,g),n.exports}g.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return g.d(t,{a:t}),t},g.d=function(e,t){for(var n in t)g.o(t,n)&&!g.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},g.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},g.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var x={};return function(){g.r(x);var e=g(7712),t=g(9297),n=g.n(t),i=g(7178),r=g(3053),o=function(){return o=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},o.apply(this,arguments)},a=function(e,t,n){if(n||2===arguments.length)for(var i,r=0,o=t.length;r<o;r++)!i&&r in t||(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))};x.default=function(t){var l=t.FormProps,s=t.configList,c=void 0===s?[]:s,u=t.type,d=t.getCheckForm,v=t.backData,f=void 0===v?{}:v,p=t.disabled,h=t.onChange,m=t.getForcedRefresh,g=t.form,x=t.disOnlySpace,b=n().useState(c),y=b[0],j=b[1],k=n().useRef({allItems:{},itemsCheckStatus:{},itemsCheckMessage:{},configList:c,allValues:f}),w=function(e,t){if(t)for(var n in t)k.current.allValues[n]=t[n];j(e||y&&a([],y,!0))},O=function(e,t,n){switch(t){case"status":k.current.itemsCheckStatus[e]=n;break;case"message":k.current.itemsCheckMessage[e]=n;break;case"item":k.current.allItems[e]=n;break;case"initValue":k.current.allValues[e]=n;break;default:k.current.allValues[e]=n,h&&h(e,n)}},N=function(){for(var e=0,t=0;t<k.current.configList.length;t++){var n=k.current.configList[t].name,i=k.current.allItems[n];if(!i.disabled&&!i.hide&&!0!==k.current.itemsCheckStatus[n])if(!1!==k.current.itemsCheckStatus[n]){var o=(0,r.Z)(i,k.current.allValues[n]);o&&(e++,"string"==typeof o&&(k.current.itemsCheckMessage[n]=o),i.setErrorMsg&&i.setErrorMsg(o))}else e++}return console.log("checkFrom",e),!e&&k.current.allValues};return n().useEffect((function(){d&&d(N),m&&m(w)}),[d,m]),n().useEffect((function(){for(var e in f)k.current.allValues[e]=f[e]}),[f]),n().useEffect((function(){j(c)}),[c]),n().useEffect((function(){k.current.configList=y}),[y]),n().useEffect((function(){g&&(g.current={get refreshForm(){return w},get check(){return N},get items(){return k.current.allItems},get values(){return k.current.allValues},get refData(){return k.current}})}),[g]),(0,e.jsx)("form",o({},l,{children:(0,e.jsx)("div",o({className:"para-form-content"},{children:y&&y.length>0&&y.map((function(t,n){return t.hide&&O(t.name,"item",t),!t.hide&&(0,e.jsx)(i.default,o({type:u,disabled:p,disOnlySpace:x,errorMessage:k.current.itemsCheckMessage[t.name]},t,{backData:k.current.allValues,setValue:O}),"para-form-item-".concat(n))}))}),void 0)}),void 0)}}(),x}()}));
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
.paraui-tooltip>div{font-size:14px;color:#fff;background-color:rgba(46,55,67,0.701961)}.paraui-tooltip-left-right>div{margin:0 8px}.paraui-tooltip-top-bottom>div{margin:8px 0}
|
|
2
|
+
|
|
3
|
+
.paraui-auto-tips{max-width:100%;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.paraui-auto-tips>.auto-tips-content{display:inline;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
|
|
4
|
+
|
|
5
|
+
@keyframes rotateLoading{0%{transformOrigin:50% 50%}100%{transform:rotate(360deg)}}.paraui-loading{position:absolute;left:0;top:0;width:100%;height:100%}.paraui-loading .paraui-loading-mask{position:absolute;width:100%;height:100%;background-color:white;z-index:1}.paraui-loading .paraui-loading-box{position:absolute;width:100%;height:100%;display:flex;justify-content:center;align-items:center;z-index:2}.paraui-loading .paraui-loading-box>svg{transition:all .3s ease-in-out;animation:rotateLoading 1s infinite linear;font-size:20px}
|
|
6
|
+
|
|
7
|
+
.paraui-text-field{font-family:Source Han Sans CN,Source Han Sans CN-Regular;font-size:14px;font-weight:400;display:inline-block;width:100%;padding-bottom:20px}.paraui-text-field>.text-field-label{color:rgba(46,55,67,0.701961);margin-bottom:8px;display:inline-block}.paraui-text-field>.text-field-label>.text-field-required{margin-left:2px;color:#eb6054}.paraui-text-field>.text-field-content{border:1px solid;border-radius:8px;border-color:rgba(171,176,185,0.4);display:flex;width:100%;position:relative}.paraui-text-field>.text-field-content:hover{border-color:#3666d6}.paraui-text-field>.text-field-content>.text-field-content-before{color:#2e3743;padding:0 12px;border-right:1px solid rgba(171,176,185,0.4);background-color:rgba(171,176,185,0.121569);border-bottom-left-radius:8px;border-top-left-radius:8px;white-space:nowrap;display:flex;align-items:center}.paraui-text-field>.text-field-content>.text-field-content-before svg{font-size:20px}.paraui-text-field>.text-field-content>.text-field-content-within{position:relative;width:100%;display:flex}.paraui-text-field>.text-field-content>.text-field-content-within>.right-icon{display:flex;height:100%;align-items:center;margin-right:12px;cursor:pointer;color:rgba(46,55,67,0.701961);position:relative;z-index:1}.paraui-text-field>.text-field-content>.text-field-content-within>.right-icon svg{color:rgba(46,55,67,0.701961);font-size:20px}.paraui-text-field>.text-field-content>.text-field-content-within>.length-limit{display:flex;height:100%;align-items:center;margin-right:12px;color:rgba(46,55,67,0.701961)}.paraui-text-field>.text-field-content>.text-field-content-within>.text-field-content-within-input{width:100%;line-height:0}.paraui-text-field>.text-field-content>.text-field-content-within>.text-field-content-within-input input::-webkit-outer-spin-button,.paraui-text-field>.text-field-content>.text-field-content-within>.text-field-content-within-input input::-webkit-inner-spin-button{-webkit-appearance:none}.paraui-text-field>.text-field-content>.text-field-content-within>.text-field-content-within-input input[type="number"]{-moz-appearance:textfield}.paraui-text-field>.text-field-content>.text-field-content-within>.text-field-content-within-input>input{width:100%;height:100%}.paraui-text-field>.text-field-content>.text-field-content-within>.text-field-content-within-input>textarea{width:100% !important;padding:12px}.paraui-text-field>.text-field-content>.text-field-content-within>.text-field-content-within-input>input,.paraui-text-field>.text-field-content>.text-field-content-within>.text-field-content-within-input>textarea{font-size:14px;color:#2e3743;border:0;border-radius:8px}.paraui-text-field>.text-field-content>.text-field-content-within>.text-field-content-within-input>input::-ms-clear,.paraui-text-field>.text-field-content>.text-field-content-within>.text-field-content-within-input>textarea::-ms-clear{display:none}.paraui-text-field>.text-field-content>.text-field-content-within>.text-field-content-within-input>input::-ms-reveal,.paraui-text-field>.text-field-content>.text-field-content-within>.text-field-content-within-input>textarea::-ms-reveal{display:none}.paraui-text-field>.text-field-content>.text-field-content-within>.text-field-content-within-input>input:disabled,.paraui-text-field>.text-field-content>.text-field-content-within>.text-field-content-within-input>textarea:disabled{background-color:transparent}.paraui-text-field>.text-field-content>.text-field-content-within>.text-field-content-within-input>.text-field-label-placeholder{width:100%;position:absolute;left:0;top:0;height:100%;padding:0 12px;color:rgba(46,55,67,0.4);cursor:text;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.paraui-text-field>.text-field-content>.text-field-content-within>.text-field-content-within-input>.text-field-label-placeholder>.text-field-required{margin-left:2px;color:#eb6054}.paraui-text-field>.text-field-content>.text-field-content-after{color:#2e3743;padding:0 12px;border-left:1px solid rgba(171,176,185,0.4);background-color:rgba(171,176,185,0.121569);border-bottom-right-radius:8px;border-top-right-radius:8px;white-space:nowrap;display:flex;align-items:center}.paraui-text-field>.text-field-content>.text-field-content-after svg{font-size:20px}.paraui-text-field>.text-field-error-text{margin:8px 0 0 0;padding-left:12px;line-height:1}.paraui-text-field.text-field-multiline>.text-field-content .text-field-content-within>.length-limit{height:14px;position:absolute;right:0;bottom:8px}.paraui-text-field.text-field-multiline>.text-field-content .text-field-content-within>.text-field-content-within-input>.text-field-label-placeholder{padding-top:12px;line-height:1;height:calc(100% - 14px)}.paraui-text-field.text-field-disabled>.text-field-content{background-color:rgba(171,176,185,0.121569)}.paraui-text-field.text-field-disabled>.text-field-content:hover{border-color:rgba(171,176,185,0.4)}.paraui-text-field.text-field-disabled>.text-field-content>.text-field-content-before{background-color:transparent}.paraui-text-field.text-field-disabled>.text-field-content>.text-field-content-within>.text-field-content-within-input>.text-field-label-placeholder{cursor:not-allowed}.paraui-text-field.text-field-disabled>.text-field-content>.text-field-content-within>.text-field-content-within-input>input,.paraui-text-field.text-field-disabled>.text-field-content>.text-field-content-within>.text-field-content-within-input>textarea{cursor:not-allowed}.paraui-text-field.text-field-disabled>.text-field-content>.text-field-content-after{background-color:transparent}.paraui-text-field.text-field-error>.text-field-error-text{color:#eb6054}.paraui-text-field.text-field-error>.text-field-content{border-color:#eb6054}.paraui-text-field.text-field-error>.text-field-content:hover{border-color:#eb6054}.paraui-text-field.text-field-limit>.text-field-content{border-color:#eb6054 !important}.paraui-text-field.text-field-limit>.text-field-content:hover{border-color:#eb6054 !important}.paraui-text-field.text-field-focus>.text-field-content{border-color:#3666d6}.paraui-text-field.text-field-small>.text-field-content{height:28px}.paraui-text-field.text-field-small>.text-field-content>.text-field-content-before{line-height:26px}.paraui-text-field.text-field-small>.text-field-content>.text-field-content-within>.text-field-content-within-input{height:26px}.paraui-text-field.text-field-small>.text-field-content>.text-field-content-within>.text-field-content-within-input>input{padding:6px 12px}.paraui-text-field.text-field-small>.text-field-content>.text-field-content-within>.text-field-content-within-input>.text-field-label-placeholder{line-height:26px}.paraui-text-field.text-field-small>.text-field-content .text-field-content-after{line-height:26px}.paraui-text-field.text-field-medium>.text-field-content{height:32px}.paraui-text-field.text-field-medium>.text-field-content>.text-field-content-before{line-height:30px}.paraui-text-field.text-field-medium>.text-field-content>.text-field-content-within>.text-field-content-within-input{height:30px}.paraui-text-field.text-field-medium>.text-field-content>.text-field-content-within>.text-field-content-within-input>input{padding:8px 12px}.paraui-text-field.text-field-medium>.text-field-content>.text-field-content-within>.text-field-content-within-input>.text-field-label-placeholder{line-height:30px}.paraui-text-field.text-field-medium>.text-field-content .text-field-content-after{line-height:30px}.paraui-text-field.text-field-large>.text-field-content{height:36px}.paraui-text-field.text-field-large>.text-field-content>.text-field-content-before{line-height:34px}.paraui-text-field.text-field-large>.text-field-content>.text-field-content-within>.text-field-content-within-input{height:34px}.paraui-text-field.text-field-large>.text-field-content>.text-field-content-within>.text-field-content-within-input>input{padding:10px 12px}.paraui-text-field.text-field-large>.text-field-content>.text-field-content-within>.text-field-content-within-input>.text-field-label-placeholder{line-height:34px}.paraui-text-field.text-field-large>.text-field-content .text-field-content-after{line-height:34px}.paraui-text-field-select>div{max-width:none;padding:0;background-color:white;box-shadow:0px 2px 8px 0px rgba(171,176,185,0.4);border-radius:8px;font-family:Source Han Sans CN,Source Han Sans CN-Regular;font-size:14px;font-weight:400}.paraui-text-field-select>div>span{color:white}.paraui-text-field-select>div .text-field-select-content{max-height:300px;overflow:auto}.paraui-text-field-select>div .text-field-select-content>.text-field-select-content-item{display:flex;cursor:pointer;color:#2e3743;padding:0 12px}.paraui-text-field-select>div .text-field-select-content>.text-field-select-content-item:hover{background-color:rgba(171,176,185,0.121569);color:#3666d6}.paraui-text-field-select>div .text-field-select-content>.text-field-select-content-item.text-field-select-content-item-keydown{background-color:rgba(171,176,185,0.121569);color:#3666d6}.paraui-text-field-select>div .text-field-select-content.text-field-select-content-loading{height:100px;position:relative;overflow:hidden}.paraui-text-field-select.paraui-text-field-select-small>div .text-field-select-content>.text-field-select-content-item{line-height:28px}.paraui-text-field-select.paraui-text-field-select-medium>div .text-field-select-content>.text-field-select-content-item{line-height:32px}.paraui-text-field-select.paraui-text-field-select-large>div .text-field-select-content>.text-field-select-content-item{line-height:36px}
|
|
8
|
+
|
|
9
|
+
.paraui-radio{font-family:Source Han Sans CN,Source Han Sans CN-Regular;font-size:14px;font-weight:400;cursor:pointer;display:inline-flex;align-items:center;line-height:14px}.paraui-radio:hover>.paraui-radio-label{color:#3666d6}.paraui-radio:hover>.paraui-radio-box>.paraui-radio-box-inner{border-color:#3666d6}.paraui-radio>.paraui-radio-box{position:relative}.paraui-radio>.paraui-radio-box>input{position:absolute;top:0;right:0;bottom:0;left:0;z-index:1;width:100%;height:100%;opacity:0;cursor:pointer}.paraui-radio>.paraui-radio-box>.paraui-radio-box-inner{position:relative;top:0;left:0;display:block;background-color:white;border:1px solid rgba(171,176,185,0.4);border-radius:50%;background-color:white}.paraui-radio>.paraui-radio-box>.paraui-radio-box-inner:after{position:absolute;display:table;content:" ";transform:scale(1) translate(-50%, -50%);width:6px;height:6px;border-radius:50%;left:50%;top:50%}.paraui-radio>.paraui-radio-label{color:#2e3743;padding:0 8px}.paraui-radio.radio-checked>.paraui-radio-box>.paraui-radio-box-inner{border-color:#3666d6}.paraui-radio.radio-checked>.paraui-radio-box>.paraui-radio-box-inner:after{background-color:#3666d6}.paraui-radio.radio-checked>.paraui-radio-label{color:#3666d6}.paraui-radio.radio-disabled{cursor:not-allowed}.paraui-radio.radio-disabled>.paraui-radio-label{color:rgba(46,55,67,0.4)}.paraui-radio.radio-disabled>.paraui-radio-box>input{cursor:not-allowed}.paraui-radio.radio-disabled>.paraui-radio-box>.paraui-radio-box-inner{background-color:rgba(171,176,185,0.121569);border-color:rgba(171,176,185,0.4)}.paraui-radio.radio-disabled.radio-checked>.paraui-radio-box>.paraui-radio-box-inner:after{background-color:rgba(46,55,67,0.4)}.paraui-radio.radio-small>.paraui-radio-box>.paraui-radio-box-inner{width:14px;height:14px}.paraui-radio.radio-medium>.paraui-radio-box>.paraui-radio-box-inner{width:16px;height:16px}.paraui-radio.radio-large>.paraui-radio-box>.paraui-radio-box-inner{width:16px;height:16px}
|
|
10
|
+
|
|
11
|
+
.paraui-radio-group{font-family:Source Han Sans CN,Source Han Sans CN-Regular;font-size:14px;font-weight:400;width:100%;padding-bottom:20px}.paraui-radio-group>.radio-group-label{color:rgba(46,55,67,0.701961);margin-bottom:8px;display:inline-block}.paraui-radio-group>.radio-group-label>.required-char{margin-left:2px;color:#eb6054}.paraui-radio-group>.radio-group-content{line-height:0}.paraui-radio-group>.radio-group-error-text{margin:8px 0 0 0;padding-left:12px;line-height:1}.paraui-radio-group.radio-group-error>.check-box-group-error-text{color:#eb6054}
|
|
12
|
+
|
|
13
|
+
.paraui-select{font-family:Source Han Sans CN,Source Han Sans CN-Regular;font-size:14px;font-weight:400;padding-bottom:20px;display:inline-block;vertical-align:top;width:100%}.paraui-select>.select-label{display:inline-block;margin-bottom:8px;color:rgba(46,55,67,0.701961)}.paraui-select>.select-label>.select-required{margin-left:2px;color:#eb6054}.paraui-select>.select-content{line-height:0;border:1px solid;border-radius:8px;border-color:rgba(171,176,185,0.4);padding-right:40px;position:relative;cursor:pointer}.paraui-select>.select-content:hover{border-color:#3666d6}.paraui-select>.select-content:hover>.select-svg>svg{color:#3666d6}.paraui-select>.select-content>.select-label-placeholder{width:100%;height:100%;padding:0 12px;color:rgba(46,55,67,0.4);display:inline-block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;position:absolute;left:0;top:0;z-index:1}.paraui-select>.select-content>.select-label-placeholder>.select-required{margin-left:2px;color:#eb6054}.paraui-select>.select-content>.select-svg{position:absolute;right:12px;top:0;z-index:2}.paraui-select>.select-content>.select-svg>svg{font-size:20px;transition:all .3s;color:rgba(46,55,67,0.701961)}.paraui-select>.select-content>.radio-select-content{padding-left:12px;font-size:14px;line-height:16px}.paraui-select>.select-content>.radio-search-outside{position:absolute;top:0;left:0;width:100%;height:100%;padding:0 30px 0 10px;font-size:14px;cursor:pointer;color:#2e3743;border:0;border-radius:8px;background:transparent}.paraui-select>.select-content>.check-select-content{padding-left:12px;height:100%;overflow:hidden}.paraui-select>.select-content>.check-select-content>.check-select-content-item{display:inline-block;background-color:rgba(171,176,185,0.2);border-radius:4px;padding:0 12px 0 12px;color:#2e3743;margin-right:8px;vertical-align:top;max-width:100%;white-space:nowrap}.paraui-select>.select-content>.check-select-content>.check-select-content-item.check-select-content-item-more{cursor:pointer;color:#2e3743}.paraui-select>.select-content>.check-select-content>.check-select-content-item.check-select-content-item-more>span{max-width:none}.paraui-select>.select-content>.check-select-content>.check-select-content-item>span{display:inline-block;height:100%;vertical-align:top;max-width:calc(100% - 20px);overflow:hidden;text-overflow:ellipsis}.paraui-select>.select-content>.check-select-content>.check-select-content-item>svg{cursor:pointer;margin-left:8px;color:#2e3743;font-size:16px;position:relative}.paraui-select>.select-content>.check-select-content>.check-select-content-item>svg:hover{color:#3666d6}.paraui-select>.select-content>.check-select-content>.check-select-content-item.check-select-content-item-noclose>span{max-width:none}.paraui-select>.select-content>.check-select-content>.check-search-outside{width:10px;max-width:100% !important;display:none;border:0;color:#2e3743;font-size:14px;cursor:pointer}.paraui-select>.select-error-text{margin:8px 0 0 0;padding-left:12px;line-height:1}.paraui-select.select-disabled>.select-content{background-color:rgba(171,176,185,0.121569);cursor:not-allowed}.paraui-select.select-disabled>.select-content:hover{border-color:rgba(171,176,185,0.4)}.paraui-select.select-disabled>.select-content:hover>.select-svg>svg{color:rgba(46,55,67,0.701961)}.paraui-select.select-disabled>.select-content>.check-select-content>.check-select-content-item>span{max-width:100%}.paraui-select.select-error>.select-content{border-color:#eb6054 !important}.paraui-select.select-error>.select-error-text{color:#eb6054}.paraui-select.select-open>.select-content{border-color:#3666d6}.paraui-select.select-open>.select-content>.select-svg>svg{transform:rotate(180deg);color:#3666d6}.paraui-select.select-open>.select-content>.check-select-content>.check-search-outside{display:inline-block}.paraui-select.select-small>.select-content{height:28px}.paraui-select.select-small>.select-content>.select-label-placeholder{line-height:26px}.paraui-select.select-small>.select-content>.select-svg{top:3px}.paraui-select.select-small>.select-content>.radio-select-content{padding-bottom:5px;padding-top:5px}.paraui-select.select-small>.select-content>.check-select-content{padding-bottom:3px}.paraui-select.select-small>.select-content>.check-select-content>.check-select-content-item{margin-top:3px;height:20px;line-height:20px}.paraui-select.select-small>.select-content>.check-select-content>.check-select-content-item>svg{top:2px}.paraui-select.select-small>.select-content>.check-select-content>.check-search-outside{margin-top:3px;height:20px}.paraui-select.select-medium>.select-content{height:32px}.paraui-select.select-medium>.select-content>.select-label-placeholder{line-height:30px}.paraui-select.select-medium>.select-content>.select-svg{top:6px}.paraui-select.select-medium>.select-content>.radio-select-content{padding-bottom:7px;padding-top:7px}.paraui-select.select-medium>.select-content>.check-select-content{padding-bottom:4px}.paraui-select.select-medium>.select-content>.check-select-content>.check-select-content-item{margin-top:4px;height:22px;line-height:22px}.paraui-select.select-medium>.select-content>.check-select-content>.check-select-content-item>svg{top:3px}.paraui-select.select-medium>.select-content>.check-select-content>.check-search-outside{margin-top:4px;height:22px}.paraui-select.select-large>.select-content{height:36px}.paraui-select.select-large>.select-content>.select-label-placeholder{line-height:34px}.paraui-select.select-large>.select-content>.select-svg{top:8px}.paraui-select.select-large>.select-content>.radio-select-content{padding-bottom:9px;padding-top:9px}.paraui-select.select-large>.select-content>.check-select-content{padding-bottom:5px}.paraui-select.select-large>.select-content>.check-select-content>.check-select-content-item{margin-top:5px;height:24px;line-height:24px}.paraui-select.select-large>.select-content>.check-select-content>.check-select-content-item>svg{top:3px}.paraui-select.select-large>.select-content>.check-select-content>.check-search-outside{margin-top:5px;height:24px}.paraui-select.select-over-line.select-small>.select-content{height:inherit;min-height:28px}.paraui-select.select-over-line.select-medium>.select-content{height:inherit;min-height:32px}.paraui-select.select-over-line.select-large>.select-content{height:inherit;min-height:36px}.paraui-select-popover>div{max-width:none;padding:0;background-color:white;box-shadow:0px 2px 8px 0px rgba(171,176,185,0.4);border-radius:8px}.paraui-select-popover>div>span{color:white}.paraui-select-popover>div .select-popover-content>.select-popover-search{display:flex;align-items:center;padding:0 12px;border-bottom:1px solid;border-color:rgba(171,176,185,0.2)}.paraui-select-popover>div .select-popover-content>.select-popover-search>input{border:0;outline:none;font-size:14px;color:#2e3743;width:100%}.paraui-select-popover>div .select-popover-content>.select-popover-search>input::placeholder{font-size:14px;opacity:1;color:rgba(46,55,67,0.4)}.paraui-select-popover>div .select-popover-content>.select-popover-search>svg{color:rgba(46,55,67,0.4);font-size:20px;cursor:pointer}.paraui-select-popover>div .select-popover-content>.select-popover-list{max-height:200px;overflow:auto}.paraui-select-popover>div .select-popover-content>.select-popover-list .select-popover-list-item{display:flex;cursor:pointer;padding:0 12px;align-items:center}.paraui-select-popover>div .select-popover-content>.select-popover-list .select-popover-list-item>.select-popover-list-item-label{width:calc(100% - 25px);color:#2e3743;font-size:14px}.paraui-select-popover>div .select-popover-content>.select-popover-list .select-popover-list-item>.select-popover-list-item-svg{line-height:0;display:none}.paraui-select-popover>div .select-popover-content>.select-popover-list .select-popover-list-item>.select-popover-list-item-svg>svg{font-size:20px;color:#3666d6}.paraui-select-popover>div .select-popover-content>.select-popover-list .select-popover-list-item.select-popover-list-item-select>.select-popover-list-item-label{color:#3666d6}.paraui-select-popover>div .select-popover-content>.select-popover-list .select-popover-list-item.select-popover-list-item-select>.select-popover-list-item-svg{display:inline-block}.paraui-select-popover>div .select-popover-content>.select-popover-list .select-popover-list-item.select-popover-list-item-hover{background-color:rgba(171,176,185,0.121569)}.paraui-select-popover>div .select-popover-content>.select-popover-list .select-popover-list-item.select-popover-list-item-hover>.select-popover-list-item-label{color:#3666d6}.paraui-select-popover>div .select-popover-content>.select-popover-list .select-popover-list-item.select-popover-list-item-keydown{background-color:rgba(171,176,185,0.121569)}.paraui-select-popover>div .select-popover-content>.select-popover-list .select-popover-list-item.select-popover-list-item-keydown>.select-popover-list-item-label{color:#3666d6}.paraui-select-popover>div .select-popover-content>.select-popover-list .select-popover-list-item.select-popover-list-item-disabled{background-color:rgba(171,176,185,0.121569) !important;cursor:not-allowed}.paraui-select-popover>div .select-popover-content>.select-popover-list .select-popover-list-item.select-popover-list-item-disabled>.select-popover-list-item-label{color:#2e3743 !important}.paraui-select-popover>div .select-popover-content>.select-popover-list>.select-popover-list-group .select-popover-list-group-label{display:inline-block;width:100%;padding:0 12px;color:rgba(46,55,67,0.4);font-size:14px}.paraui-select-popover>div .select-popover-content>.select-popover-list>.select-popover-list-group .select-popover-list-item{padding-left:20px}.paraui-select-popover>div .select-popover-content>.select-popover-list>.select-nodata{text-align:center;font-size:14px;color:#2e3743;padding:10px}.paraui-select-popover.paraui-select-popover-radio>div .select-popover-content>.select-popover-list .select-popover-list-item>.select-popover-list-item-label{width:100%}.paraui-select-popover.paraui-select-popover-small>div .select-popover-content>.select-popover-search{height:28px}.paraui-select-popover.paraui-select-popover-small>div .select-popover-content>.select-popover-list .select-popover-list-item{line-height:28px}.paraui-select-popover.paraui-select-popover-small>div .select-popover-content>.select-popover-list>.select-popover-list-group .select-popover-list-group-label{line-height:28px}.paraui-select-popover.paraui-select-popover-medium>div .select-popover-content>.select-popover-search{height:32px}.paraui-select-popover.paraui-select-popover-medium>div .select-popover-content>.select-popover-list .select-popover-list-item{line-height:32px}.paraui-select-popover.paraui-select-popover-medium>div .select-popover-content>.select-popover-list>.select-popover-list-group .select-popover-list-group-label{line-height:32px}.paraui-select-popover.paraui-select-popover-large>div .select-popover-content>.select-popover-search{height:36px}.paraui-select-popover.paraui-select-popover-large>div .select-popover-content>.select-popover-list .select-popover-list-item{line-height:36px}.paraui-select-popover.paraui-select-popover-large>div .select-popover-content>.select-popover-list>.select-popover-list-group .select-popover-list-group-label{line-height:36px}.paraui-select-more-popover>div:nth-of-type(3),.paraui-select-more-popover>div:nth-of-type(2){margin-left:20px}.paraui-select-more-popover .select-more{width:300px}.paraui-select-more-popover .select-more>.select-more-title{font-size:14px;padding:0 12px;color:rgba(46,55,67,0.701961)}.paraui-select-more-popover .select-more>.select-more-content{max-height:300px;overflow:auto}.paraui-select-more-popover .select-more>.select-more-content>.select-more-content-item{padding:0 12px;display:flex;justify-content:space-around;align-items:center}.paraui-select-more-popover .select-more>.select-more-content>.select-more-content-item>span{width:calc(100% - 25px);display:inline-block;font-size:14px}.paraui-select-more-popover .select-more>.select-more-content>.select-more-content-item>svg{font-size:20px;position:relative;cursor:pointer;color:#2e3743}.paraui-select-more-popover .select-more>.select-more-content>.select-more-content-item>svg:hover{color:#3666d6}.paraui-select-more-popover.paraui-select-more-popover-small .select-more>.select-more-title{line-height:28px}.paraui-select-more-popover.paraui-select-more-popover-small .select-more>.select-more-content>.select-more-content-item{line-height:28px}.paraui-select-more-popover.paraui-select-more-popover-medium .select-more>.select-more-title{line-height:32px}.paraui-select-more-popover.paraui-select-more-popover-medium .select-more>.select-more-content>.select-more-content-item{line-height:32px}.paraui-select-more-popover.paraui-select-more-popover-large .select-more>.select-more-title{line-height:36px}.paraui-select-more-popover.paraui-select-more-popover-large .select-more>.select-more-content>.select-more-content-item{line-height:36px}
|
|
14
|
+
|
|
15
|
+
.paraui-check-box{font-family:Source Han Sans CN,Source Han Sans CN-Regular;font-size:14px;font-weight:400;cursor:pointer;display:inline-flex;align-items:center;line-height:14px}.paraui-check-box:hover>.paraui-check-box-label{color:#3666d6}.paraui-check-box:hover>.paraui-checkbox-box>.paraui-checkbox-box-inner{border-color:#3666d6}.paraui-check-box>.paraui-checkbox-box{position:relative}.paraui-check-box>.paraui-checkbox-box>input{position:absolute;top:0;right:0;bottom:0;left:0;z-index:1;width:100%;height:100%;opacity:0;cursor:pointer}.paraui-check-box>.paraui-checkbox-box>.paraui-checkbox-box-inner{position:relative;top:0;left:0;display:block;border-radius:2px;background-color:white;border:1px solid rgba(171,176,185,0.4)}.paraui-check-box>.paraui-checkbox-box>.paraui-checkbox-box-inner:after{position:absolute;display:table;content:" "}.paraui-check-box>.paraui-check-box-label{color:#2e3743;padding:0 8px}.paraui-check-box.check-box-checked>.paraui-checkbox-box>.paraui-checkbox-box-inner{background-color:#3666d6}.paraui-check-box.check-box-checked>.paraui-checkbox-box>.paraui-checkbox-box-inner:after{border:1px solid white;border-top:0;border-left:0;transform:rotate(45deg) scale(1) translate(-50%, -50%)}.paraui-check-box.check-box-checked>.paraui-check-box-label{color:#3666d6}.paraui-check-box.check-box-indeterminate>.paraui-checkbox-box>.paraui-checkbox-box-inner{background-color:#3666d6}.paraui-check-box.check-box-indeterminate>.paraui-checkbox-box>.paraui-checkbox-box-inner:after{background-color:white;top:50%;left:50%;transform:translate(-50%, -50%) scale(1)}.paraui-check-box.check-box-indeterminate>.paraui-check-box-label{color:#3666d6}.paraui-check-box.check-box-disabled{cursor:not-allowed}.paraui-check-box.check-box-disabled>.paraui-check-box-label{color:rgba(46,55,67,0.4)}.paraui-check-box.check-box-disabled>.paraui-checkbox-box>input{cursor:not-allowed}.paraui-check-box.check-box-disabled>.paraui-checkbox-box>.paraui-checkbox-box-inner{background-color:rgba(171,176,185,0.121569);border-color:rgba(171,176,185,0.4)}.paraui-check-box.check-box-disabled.check-box-checked>.paraui-checkbox-box>.paraui-checkbox-box-inner:after{border-color:rgba(46,55,67,0.4)}.paraui-check-box.check-box-disabled.check-box-indeterminate>.paraui-checkbox-box>.paraui-checkbox-box-inner:after{background-color:rgba(46,55,67,0.4)}.paraui-check-box.check-box-small>.paraui-checkbox-box>.paraui-checkbox-box-inner{width:14px;height:14px}.paraui-check-box.check-box-small.check-box-checked>.paraui-checkbox-box>.paraui-checkbox-box-inner:after{top:45%;left:21%;width:4px;height:7px}.paraui-check-box.check-box-small.check-box-indeterminate>.paraui-checkbox-box>.paraui-checkbox-box-inner:after{width:8px;height:1px}.paraui-check-box.check-box-medium>.paraui-checkbox-box>.paraui-checkbox-box-inner{width:16px;height:16px}.paraui-check-box.check-box-medium.check-box-checked>.paraui-checkbox-box>.paraui-checkbox-box-inner:after{top:45%;left:21%;width:5px;height:8px}.paraui-check-box.check-box-medium.check-box-indeterminate>.paraui-checkbox-box>.paraui-checkbox-box-inner:after{width:8px;height:1px}.paraui-check-box.check-box-large>.paraui-checkbox-box>.paraui-checkbox-box-inner{width:16px;height:16px}.paraui-check-box.check-box-large.check-box-checked>.paraui-checkbox-box>.paraui-checkbox-box-inner:after{top:45%;left:21%;width:5px;height:8px}.paraui-check-box.check-box-large.check-box-indeterminate>.paraui-checkbox-box>.paraui-checkbox-box-inner:after{width:8px;height:1px}
|
|
16
|
+
|
|
17
|
+
.paraui-check-box-group{font-family:Source Han Sans CN,Source Han Sans CN-Regular;font-size:14px;font-weight:400;width:100%;padding-bottom:20px}.paraui-check-box-group>.check-box-group-label{color:rgba(46,55,67,0.701961);margin-bottom:8px;display:inline-block}.paraui-check-box-group>.check-box-group-label>.required-char{margin-left:2px;color:#eb6054}.paraui-check-box-group>.check-box-group-content{line-height:0}.paraui-check-box-group>.check-box-group-error-text{margin:8px 0 0 0;padding-left:12px;line-height:1}.paraui-check-box-group.check-box-group-error>.check-box-group-error-text{color:#eb6054}
|
|
18
|
+
|
|
19
|
+
.paraui-switch{position:relative;display:inline-block;min-width:32px;height:14px;line-height:14px;vertical-align:middle;background-color:rgba(171,176,185,0.4);border:0;border-radius:100px;cursor:pointer;transition:all .2s;user-select:none}.paraui-switch:focus{outline:0;box-shadow:none}.paraui-switch-checked:focus{box-shadow:none}.paraui-switch:focus:hover{box-shadow:none}.paraui-switch-checked{background-color:rgba(54,102,214,0.2)}.paraui-switch-loading,.paraui-switch-disabled{cursor:not-allowed;opacity:.4}.paraui-switch-loading *,.paraui-switch-disabled *{box-shadow:none;cursor:not-allowed}.paraui-switch-inner{display:block;margin:0 7px 0 25px;color:#fff;font-size:14px;transition:margin .2s}.paraui-switch-checked .paraui-switch-inner{margin:0 25px 0 7px}.paraui-switch-handle{position:absolute;top:-2px;left:-2px;width:18px;height:18px;transition:all .2s ease-in-out}.paraui-switch-handle::before{position:absolute;top:0;right:0;bottom:0;left:0;background-color:#8996AA;border-radius:9px;box-shadow:none;transition:all .2s ease-in-out;content:""}.paraui-switch-checked .paraui-switch-handle{left:calc(100% - 18px + 2px)}.paraui-switch-checked .paraui-switch-handle::before{background-color:#3666d6}.paraui-switch:not(.paraui-switch-disabled):active .paraui-switch-handle::before{right:-30%;left:0}.paraui-switch:not(.paraui-switch-disabled):active.paraui-switch-checked .paraui-switch-handle::before{right:0;left:-30%}.paraui-switch-loading-icon{position:relative;top:2px;color:#3666d6;vertical-align:top;animation:loadingCircle 1s infinite linear}.paraui-switch-checked .paraui-switch-loading-icon{color:#fff}.paraui-switch-small{min-width:28px;height:14px;line-height:14px}.paraui-switch-small .paraui-switch-inner{margin:0 5px 0 18px;font-size:14px}.paraui-switch-small .paraui-switch-handle{width:12px;height:12px}.paraui-switch-small .paraui-switch-loading-icon{top:1.5px;font-size:9px}.paraui-switch-small.paraui-switch-checked .paraui-switch-inner{margin:0 18px 0 5px}.paraui-switch-small.paraui-switch-checked .paraui-switch-handle{left:calc(100% - 12px - 2px)}@keyframes loadingCircle{100%{transform:rotate(360deg)}}
|
|
20
|
+
|
|
21
|
+
@keyframes loadingSpin{0%{transform:rotate(0)}100%{transform:rotate(360deg)}}.paraui-button{min-width:auto;padding:0 16px;line-height:normal;text-transform:none;border-radius:8px;font-family:Source Han Sans CN,Source Han Sans CN-Regular;font-size:14px;font-weight:400}.paraui-button-loading{pointer-events:none}.paraui-button-contained{color:#fff;background-color:#3666d6;box-shadow:none}.paraui-button-contained:hover{background-color:rgba(54,102,214,0.8);box-shadow:none}.paraui-button-contained[disabled]{color:rgba(46,55,67,0.4);background-color:rgba(171,176,185,0.121569);border:1px solid rgba(171,176,185,0.4);box-shadow:none}.paraui-button-contained[disabled]:hover{background-color:rgba(171,176,185,0.121569)}.paraui-button-contained .btn-icon{display:inline-flex;color:inherit}.paraui-button-contained .btn-icon svg{color:inherit;font-size:16px}.paraui-button-contained .btn-icon.start-icon{margin-right:-3px}.paraui-button-contained .btn-icon.end-icon{margin-left:-3px}.paraui-button-contained .btn-icon.loading-icon{margin-right:-3px;animation:loadingSpin 1s infinite linear}.paraui-button-contained.paraui-button-dangerous{background-color:#eb6054}.paraui-button-outlined{color:rgba(46,55,67,0.701961);background-color:#fff;border:1px solid rgba(171,176,185,0.4);box-shadow:none}.paraui-button-outlined:hover{color:#3666d6;border-color:rgba(54,102,214,0.2);background-color:#fff;box-shadow:none}.paraui-button-outlined[disabled]{color:rgba(46,55,67,0.4);background-color:rgba(171,176,185,0.121569);border:1px solid rgba(171,176,185,0.4);box-shadow:none}.paraui-button-outlined[disabled]:hover{background-color:rgba(171,176,185,0.121569)}.paraui-button-outlined .btn-icon{display:inline-flex;color:inherit}.paraui-button-outlined .btn-icon svg{color:inherit;font-size:16px}.paraui-button-outlined .btn-icon.start-icon{margin-right:-3px}.paraui-button-outlined .btn-icon.end-icon{margin-left:-3px}.paraui-button-outlined .btn-icon.loading-icon{margin-right:-3px;animation:loadingSpin 1s infinite linear}.paraui-button-outlined.paraui-button-dangerous{color:#eb6054;border-color:#eb6054}.paraui-button-outlined.paraui-button-dangerous:hover{border-color:rgba(235,96,84,0.8)}.paraui-button-text{color:rgba(46,55,67,0.701961);background-color:#fff;border:1px solid rgba(171,176,185,0.4);box-shadow:none;background-color:transparent;border:none}.paraui-button-text:hover{color:#3666d6;background-color:transparent;box-shadow:none}.paraui-button-text[disabled]{color:rgba(46,55,67,0.4);background-color:rgba(171,176,185,0.121569);border:1px solid rgba(171,176,185,0.4);box-shadow:none}.paraui-button-text[disabled]:hover{background-color:rgba(171,176,185,0.121569)}.paraui-button-text .btn-icon{display:inline-flex;color:inherit}.paraui-button-text .btn-icon svg{color:inherit;font-size:16px}.paraui-button-text .btn-icon.start-icon{margin-right:-3px}.paraui-button-text .btn-icon.end-icon{margin-left:-3px}.paraui-button-text .btn-icon.loading-icon{margin-right:-3px;animation:loadingSpin 1s infinite linear}.paraui-button-text.paraui-button-dangerous{color:#eb6054}.paraui-button-large{height:36px}.paraui-button-medium{height:32px}.paraui-button-small{height:28px}.paraui-button--disabled{display:inline-block}.paraui-icon-button{padding:0;border-radius:8px}.paraui-icon-button-loading{pointer-events:none}.paraui-icon-button-loading .loading-icon{display:inline-flex;animation:loadingSpin 1s infinite linear}.paraui-icon-button-contained{color:#fff;background-color:#3666d6;box-shadow:none}.paraui-icon-button-contained:hover{background-color:rgba(54,102,214,0.8);box-shadow:none}.paraui-icon-button-contained[disabled]{color:rgba(46,55,67,0.4);background-color:rgba(171,176,185,0.121569);border:1px solid rgba(171,176,185,0.4);box-shadow:none}.paraui-icon-button-contained[disabled]:hover{background-color:rgba(171,176,185,0.121569)}.paraui-icon-button-contained svg{color:inherit;font-size:16px}.paraui-icon-button-contained.paraui-icon-button-dangerous{background-color:#eb6054}.paraui-icon-button-outlined{color:rgba(46,55,67,0.701961);background-color:#fff;border:1px solid rgba(171,176,185,0.4);box-shadow:none}.paraui-icon-button-outlined:hover{color:#3666d6;border-color:rgba(54,102,214,0.2);box-shadow:none;background-color:#fff}.paraui-icon-button-outlined[disabled]{color:rgba(46,55,67,0.4);background-color:rgba(171,176,185,0.121569);border:1px solid rgba(171,176,185,0.4);box-shadow:none}.paraui-icon-button-outlined[disabled]:hover{background-color:rgba(171,176,185,0.121569)}.paraui-icon-button-outlined svg{color:inherit;font-size:16px}.paraui-icon-button-outlined.paraui-icon-button-dangerous{color:#eb6054;border-color:#eb6054}.paraui-icon-button-outlined.paraui-icon-button-dangerous:hover{border-color:rgba(235,96,84,0.8)}.paraui-icon-button-text{color:#3666d6}.paraui-icon-button-text:hover{background-color:transparent}.paraui-icon-button-text[disabled]{color:rgba(46,55,67,0.4)}.paraui-icon-button-text[disabled]:hover{background-color:transparent}.paraui-icon-button-text svg{color:inherit}.paraui-icon-button-text.paraui-icon-button-dangerous{color:#eb6054}.paraui-icon-button-text.paraui-icon-button-large{width:auto;height:auto}.paraui-icon-button-text.paraui-icon-button-large svg{font-size:28px}.paraui-icon-button-text.paraui-icon-button-medium{width:auto;height:auto}.paraui-icon-button-text.paraui-icon-button-medium svg{font-size:24px}.paraui-icon-button-text.paraui-icon-button-small{width:auto;height:auto}.paraui-icon-button-text.paraui-icon-button-small svg{font-size:20px}.paraui-icon-button-large{width:36px;height:36px}.paraui-icon-button-medium{width:32px;height:32px}.paraui-icon-button-small{width:28px;height:28px}.paraui-button-split{display:inline-block}.paraui-button-split .paraui-button{height:34px}.paraui-button-split .paraui-button:hover{border-color:rgba(54,102,214,0.8)}.paraui-button-split .paraui-button-split--active{color:#3666d6;border-color:rgba(54,102,214,0.8);box-shadow:none;background-color:#fff}.paraui-button-split-list{padding:8px 0;margin-top:8px;border-radius:8px;box-shadow:0px 2px 8px 0px rgba(171,176,185,0.4);background-color:#fff}.paraui-button-split-list ul .split-li{min-width:140px;padding:11px 12px;color:#2e3743;font-size:14px;line-height:1;cursor:pointer;transition:background-color .3s, color .3s}.paraui-button-split-list ul .split-li:hover{background-color:rgba(171,176,185,0.121569)}.paraui-button-split-list ul .split-li.split-li--active{color:#3666d6}.paraui-button-split-list ul .split-li.split-li--active:hover{background-color:rgba(171,176,185,0.121569)}.paraui-button-split-list ul .split-li-group:not(:first-child){position:relative;margin-top:16px}.paraui-button-split-list ul .split-li-group:not(:first-child):before{content:'';position:absolute;top:-8px;left:8px;right:8px;border-top:1px solid rgba(171,176,185,0.2)}
|
|
22
|
+
|
|
23
|
+
.paraui-file-box{padding:6px;font-family:Source Han Sans CN,Source Han Sans CN-Regular;font-size:14px;font-weight:400}.paraui-file-box .para-file-tips{min-height:20px;position:relative;padding:6px}.paraui-file-box .para-file-tips .file-tips-item{position:relative;height:20px;line-height:16px;padding-right:20px}.paraui-file-box .para-file-tips .file-tips-item>[data-name="LinkGroup"]{vertical-align:middle;margin-right:9px}.paraui-file-box .para-file-tips .file-tips-item .file-tips-context{display:inline-block;vertical-align:middle;width:calc(100% - 45px);color:rgba(46,55,67,0.701961)}.paraui-file-box .para-file-tips .file-tips-item>[data-name="Delete"]{display:none;vertical-align:middle;cursor:pointer;position:absolute;right:3px;top:2px}.paraui-file-box .para-file-tips .file-tips-item>[data-name="Delete"]:hover{opacity:0.8}.paraui-file-box .para-file-tips .file-tips-item:hover{backgroundColor:#f5f5f5}.paraui-file-box .para-file-tips .file-tips-item:hover>[data-name="Delete"]{display:inline-block}
|
|
24
|
+
|
|
25
|
+
.paraui-form-item{font-family:Source Han Sans CN,Source Han Sans CN-Regular;font-size:14px;font-weight:400}.paraui-form-item .para-form-label{height:20px;line-height:20px;font-size:14px;text-align:left;display:inline-block;margin-bottom:8px;vertical-align:top;width:100%}.paraui-form-item .para-form-label-vertical{margin-top:6px;text-align:right;padding-right:3px;position:relative}.paraui-form-item .para-form-label-vertical .para-form-labe-tips{position:absolute;left:0;top:1px}.paraui-form-item .para-form-label .para-form-labe-text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:inline-block;max-width:100%;vertical-align:middle}.paraui-form-item .para-form-label .para-form-labe-text-hastips{max-width:calc(100% - 25px)}.paraui-form-item .para-form-label .para-form-labe-tips{height:20px;cursor:pointer;display:inline-block;vertical-align:middle;line-height:27px;margin-left:5px}.paraui-form-item .para-form-edit>div{padding:0}.paraui-form-item .para-form-edit .paraui-check-box-group>label,.paraui-form-item .para-form-edit .paraui-radio-group>label{display:none}.paraui-form-item .para-form-edit .paraui-check-box-group>div,.paraui-form-item .para-form-edit .paraui-radio-group>div{margin-top:4px}.paraui-form-item .para-form-error{height:17px;line-height:17px;color:#eb6054}.paraui-form-item .para-form-content-vertical{display:inline-block;width:100%}
|
|
26
|
+
|