方法一:直接用render函数写,层次不是很清晰,点了cancel后不知道怎么关闭框。有谁知道并可以告诉我吗?render:(h,params)=>{returnh('div',[h('Poptip',{props:{placement:'left-start',},},[h('Button',{props:{type:'primary',size:'small'},on:{click:()=>{//this.remove(params.index)}}},'move'),h('div',{slot:'content','class':'api',style:{textAlign:'center'}},[h('p','移动到指定的优先级'),h('p','最小为1、最大为5'),h('InputNumber',{props:{value:'1'},style:{width:'50px',marginBottom:'10px',marginTop:'10px',}}),h('br'),h('Button',{style:{marginRight:'5px'},props:{type:'primary',size:'small'},on:{click:(e)=>{e.stopPropagation();//this.remove(params.index)}}},'OK'),h('Button',{道具:{类型:'默认',尺寸:'小'},on:{click:(e)=>{e.stopPropagation();//this.remove(params.index)}}},'Cancel'),]),]),])}方法2:componentimporttest.vue
