|
|
|
@ -2,6 +2,7 @@ import React, { useState, useEffect, useContext, useRef, memo } from 'react';
|
|
|
|
|
import { Progress, Input, Tooltip, Form } from 'antd'
|
|
|
|
|
import { getUrl2, isDev, CBreadcrumb, ActionBtn, ThemeContext, ModalWrapper } from 'educoder'
|
|
|
|
|
import axios from 'axios'
|
|
|
|
|
const MAX_LENGTH = 30
|
|
|
|
|
|
|
|
|
|
function EditVideoModal (props) {
|
|
|
|
|
const modalEl = useRef(null);
|
|
|
|
@ -71,11 +72,11 @@ function EditVideoModal (props) {
|
|
|
|
|
rules: [{
|
|
|
|
|
required: true, message: '请输入标题',
|
|
|
|
|
}, {
|
|
|
|
|
max: 30, message: '最大限制为30个字符',
|
|
|
|
|
max: MAX_LENGTH, message: '最大限制为30个字符',
|
|
|
|
|
}],
|
|
|
|
|
})(
|
|
|
|
|
<Input placeholder="" className="titleInput" maxLength="30"
|
|
|
|
|
addonAfter={String(_title ? _title.length : 0)} />
|
|
|
|
|
<Input placeholder="" className="titleInput" maxLength={MAX_LENGTH}
|
|
|
|
|
addonAfter={String(_title ? `${String(_title.length)}/${MAX_LENGTH}` : 0)} />
|
|
|
|
|
)}
|
|
|
|
|
</Form.Item>
|
|
|
|
|
</ModalWrapper>
|
|
|
|
|