1 line
6.3 KiB
Plaintext
1 line
6.3 KiB
Plaintext
<view class="editor-container data-v-3012ade8"><view class="{{['fixed-top','data-v-3012ade8',(isFixed)?'isFixed':'']}}" id="fixed-top"><button data-event-opts="{{[['tap',[['save',['$event']]]]]}}" class="btn btn-primary data-v-3012ade8" bindtap="__e">保存</button></view><view class="fixed-top__place data-v-3012ade8"></view><scroll-view style="{{'height:'+(scrollViewHeight+'px')+';'}}" scroll-y="{{true}}" class="data-v-3012ade8"><editor class="cu-editor data-v-3012ade8" id="editor" placeholder="{{placeholder}}" read-only="{{readOnly}}" show-img-size="{{showImgSize}}" show-img-toolbar="{{showImgToolbar}}" show-img-resize="{{showImgResize}}" data-event-opts="{{[['statuschange',[['onStatusChange',['$event']]]],['ready',[['onEditorReady',['$event']]]],['input',[['onEditorInput',['$event']]]],['focus',[['onEditorFocus',['$event']]]],['blur',[['onEditorBlur',['$event']]]]]}}" bindstatuschange="__e" bindready="__e" bindinput="__e" bindfocus="__e" bindblur="__e"></editor></scroll-view><view class="fixed-bottom data-v-3012ade8" style="{{'bottom:'+(fixedBottom+'px')+';'}}" hidden="{{!toolbarShow}}" data-event-opts="{{[['touchstart',[['',['$event']]]]]}}" catchtouchstart="__e"><view class="toolbar selector data-v-3012ade8" style="{{'height:'+(toolBarHeight+'rpx')+';'}}"><view data-event-opts="{{[['touchend',[['changeKeyBoard',['$event']]]]]}}" class="toolbar-item-header data-v-3012ade8" catchtouchend="__e"><view class="iconfont icon-keyboard _i data-v-3012ade8"></view></view><block wx:for="{{['icon-add','icon-textformat','icon-align-left']}}" wx:for-item="icon" wx:for-index="index"><view data-event-opts="{{[['touchend',[['e0',['$event']]]]]}}" data-event-params="{{({index})}}" class="toolbar-item data-v-3012ade8" catchtouchend="__e"><view class="{{['iconfont','_i','data-v-3012ade8',icon,[(toolBarContentShow&&swiperCurrent==index)?'active':'']]}}"></view></view></block><view data-event-opts="{{[['touchend',[['formatformat',['check']]]]]}}" class="toolbar-item data-v-3012ade8" catchtouchend="__e"><view class="iconfont icon-list-check _i data-v-3012ade8"></view></view><view data-event-opts="{{[['touchend',[['formatformat',['undo']]]]]}}" class="toolbar-item data-v-3012ade8" catchtouchend="__e"><view class="iconfont icon-undo _i data-v-3012ade8"></view></view><view data-event-opts="{{[['touchend',[['formatformat',['redo']]]]]}}" class="toolbar-item data-v-3012ade8" catchtouchend="__e"><view class="iconfont icon-redo _i data-v-3012ade8"></view></view><view data-event-opts="{{[['touchend',[['hideToolbar',['$event']]]]]}}" class="toolbar-item-footer data-v-3012ade8" catchtouchend="__e"><view class="iconfont icon-check _i data-v-3012ade8"></view></view></view><swiper class="toolbar-content swiper-box data-v-3012ade8" style="{{'height:'+(toolBarContentHeight+'rpx')+';'}}" hidden="{{!toolBarContentShow}}" current="{{swiperCurrent}}" duration="300"><block wx:for="{{$root.l2}}" wx:for-item="page" wx:for-index="i" wx:key="i"><swiper-item data-event-opts="{{[['touchstart',[['',['$event']]]]]}}" class="swiper-item data-v-3012ade8" catchtouchstart="__e"><block wx:if="{{swiperCurrent===0}}"><view class="feature-items flex data-v-3012ade8"><block wx:for="{{page.$orig.array}}" wx:for-item="pitem" wx:for-index="pindex" wx:key="pindex"><view data-event-opts="{{[['touchend',[['formatformat',['$0'],[[['formatArray','',i],['array','',pindex,'name']]]]]]]}}" class="feature data-v-3012ade8" catchtouchend="__e"><view class="icon data-v-3012ade8"><text class="{{['iconfont','data-v-3012ade8','icon-'+pitem.icon]}}"></text><text class="iconfont data-v-3012ade8">{{pitem.title}}</text></view></view></block></view></block><block wx:else><block wx:if="{{swiperCurrent===1||swiperCurrent===2}}"><block wx:for="{{page.l1}}" wx:for-item="pitem" wx:for-index="pindex" wx:key="pindex"><view class="tool-items flex data-v-3012ade8"><block wx:for="{{pitem.l0}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view data-event-opts="{{[['touchend',[['formatformat',['format','$0','$1'],[[['formatArray','',i],['array','',pindex],['items','',index]],[['formatArray','',i],['array','',pindex]]]]]]]}}" class="{{['tool-item','data-v-3012ade8',(item.m0)?'ql-active':'',(pitem.$orig.name=='color')?'noBgColor':'']}}" catchtouchend="__e"><block wx:if="{{pitem.$orig.name=='color'}}"><view class="color-circle data-v-3012ade8" style="{{'background-color:'+(item.$orig.value)+';'}}"></view></block><block wx:else><block wx:if="{{pitem.$orig.label=='icon'}}"><view class="{{['iconfont','_i','data-v-3012ade8','icon-'+item.$orig.icon]}}"></view></block><block wx:else><text class="txt data-v-3012ade8" style="{{item.s0}}">{{item.$orig.title||item.$orig.value}}</text></block></block></view></block></view></block></block></block><block wx:if="{{swiperCurrent===3}}"><view class="temps data-v-3012ade8"><view class="title data-v-3012ade8">背景模板</view><radio-group class="data-v-3012ade8"><block wx:for="{{templateConfig}}" wx:for-item="t" wx:for-index="ti" wx:key="ti"><label data-event-opts="{{[['touchend',[['templateChange',['$0'],[[['templateConfig','',ti,'value']]]]]]]}}" class="label data-v-3012ade8" catchtouchend="__e"><view class="{{['data-v-3012ade8','img-area',currentTemplate===t.value&&'radio-checked']}}"><image class="img_item data-v-3012ade8" src="{{t.src}}" alt mode="widthFix"></image></view><view class="content data-v-3012ade8"><radio class="radio data-v-3012ade8" value="{{t.value}}" checked="{{t.checked}}" activeBackgroundColor="red"></radio>默认模板</view></label></block></radio-group><view class="btn-area data-v-3012ade8"><button data-event-opts="{{[['touchend',[['toPreview',['$event']]]]]}}" class="btn red-btn data-v-3012ade8" catchtouchend="__e">去预览</button></view></view></block><block wx:if="{{swiperCurrent===4}}"><view class="music data-v-3012ade8"><block wx:if="{{musicConfig.show}}"><audio src="{{musicConfig.src}}" poster="{{musicConfig.poster}}" name="{{musicConfig.name}}" author="{{musicConfig.author}}" controls="{{true}}" class="data-v-3012ade8"></audio></block><view class="btn-area data-v-3012ade8"><button data-event-opts="{{[['touchend',[['chooseAudio',['$event']]]]]}}" class="btn data-v-3012ade8" catchtouchend="__e">选择音乐</button><block wx:if="{{musicConfig.show}}"><button data-event-opts="{{[['touchend',[['toPreview',['$event']]]]]}}" class="btn red-btn data-v-3012ade8" catchtouchend="__e">去预览</button></block></view></view></block></swiper-item></block></swiper></view></view> |