1.!El . has attribute(‘disabled‘)
2.},
3 . close(){
4 . this . show = false;//前端关闭更快。
5.$dispatch(“关闭模式”);SOC的推出为用户提供了重置响应数据的机会。
艺术签名免费设计姓名6.},
7 . addbodyfix(){
8 . document . body . class list . add(‘overflow-hidden‘);
9.},
10 . first focusable(){ return this . focusables()【0】},
11 . lastfocusable(){ return this . focusables()。切片(-1)【0】},
12 . nextfocusable(){ return this . focusables()【this . nextfocusableindex()】| | this . first focusable()},
13 . prevefocusable(){ return this . focusables()【this . prevefocusableindex()】| | this . lastfocusable()},
14 . next focusableindex(){ return(this . focusables()。index of(document . active element)+1)%(this . focusables()。长度+1)},
15 . prevfocusableindex(){ return math . max(0,this.focusables()。index of(document . active element)-1 },
16.}"
17 . x-init =“if(show){ addBodyFix()}
18.$ watch(‘show‘,value =》{
if(值){
addBodyFix()
21.$ dispatch(‘show-modal‘);
22.}否则{
23 . document . body . class list . remove(‘overflow-hidden‘);
24.}
25.})"
26 . x-on:close . stop =“close“
27 . x-on:keydown . escape . window =“close“
28 . x-on:keydown . tab . prevent =“$ event . shift key | | next focusable()。焦点()“
29 . x-on:keydown . shift . tab . prevent =“prev focusable()。焦点()“
30 . x-show =“show“
31 . id =“4044651437 c 722 DCA 3005 e7ad 4072251“
32 . class =“modal“
33 . x-bind:class =“show & &‘d-block‘“》
网友评论