@@ -126,6 +126,12 @@
font-family: '微軟正黑體', 'Heiti TC' !important;
.ivu-dropdown {
+
+ .ivu-select-dropdown{
+ width: max-content;
+ width: -webkit-max-content;
+ left: -35%;
+ }
.ivu-dropdown-item:hover {
background: #83d7ff;
@@ -191,7 +191,9 @@
handler(newValue) {
if (!newValue) return
this.curType = newValue
+ this.options = newValue === 'judge' ? [0,1] : [0,1,2,3]
this.optionsContent = []
+ this.initEditors()
}
},
editItem: {
@@ -145,6 +145,7 @@
let addItem = this.$refs.addItem
console.log('新增Ref的内容')
console.log(addItem)
+ console.log(addItem.optionsContent.map(i => i.value))
// 判断获取到的新题是否规范
if ( this.getSimpleText(addItem.stemContent) && (addItem.options.length === this.curType === 'judge' ? 2 : addItem.optionsContent.length) && this.checkOptionNull(addItem.optionsContent)){
let newItem = {
@@ -63,6 +63,9 @@
+ editor.customConfig.onVideoWarning = (text) => {
+ this.$Message.warning(text)
+ },
editor.customConfig.onchange = (html) => {
let key = String.fromCharCode(64 + parseInt(i + 1))
let codeArr = this.optionsContent.map(item => item.code)