|
1 | 1 | <template> |
2 | | - <div> |
3 | | - <button |
4 | | - class="i-class i-btn" |
5 | | - v-bind:class="classObject" |
6 | | - @click="handleTap" |
7 | | - v-bind:open-type="openType" |
8 | | - v-bind:app-parameter="appParameter" |
9 | | - v-bind:hover-stop-propagation="hoverStopPropagation" |
10 | | - v-bind:hover-start-time="hoverStartTime" |
11 | | - v-bind:hover-stay-time="hoverStayTime" |
12 | | - v-bind:session-from="sessionFrom" |
13 | | - v-bind:send-message-title="sendMessageTitle" |
14 | | - v-bind:send-message-path="sendMessagePath" |
15 | | - v-bind:send-message-img="sendMessageImg" |
16 | | - v-bind:show-message-card="showMessageCard" |
17 | | - @contact="bindcontact" |
18 | | - @getuserinfo="bindgetuserinfo" |
19 | | - @getphonenumber="bindgetphonenumber" |
20 | | - @error="binderror" |
21 | | - plain="true" |
22 | | - > |
23 | | - <div class="i-btn-loading-inner" v-if="loading"></div> |
24 | | - <slot></slot> |
25 | | - </button> |
26 | | - </div> |
| 2 | + <button |
| 3 | + class="i-btn" |
| 4 | + v-bind:class="classObject" |
| 5 | + @click="handleTap" |
| 6 | + v-bind:open-type="openType" |
| 7 | + v-bind:app-parameter="appParameter" |
| 8 | + v-bind:hover-stop-propagation="hoverStopPropagation" |
| 9 | + v-bind:hover-start-time="hoverStartTime" |
| 10 | + v-bind:hover-stay-time="hoverStayTime" |
| 11 | + v-bind:session-from="sessionFrom" |
| 12 | + v-bind:send-message-title="sendMessageTitle" |
| 13 | + v-bind:send-message-path="sendMessagePath" |
| 14 | + v-bind:send-message-img="sendMessageImg" |
| 15 | + v-bind:show-message-card="showMessageCard" |
| 16 | + @contact="bindcontact" |
| 17 | + @getuserinfo="bindgetuserinfo" |
| 18 | + @getphonenumber="bindgetphonenumber" |
| 19 | + @error="binderror" |
| 20 | + plain="true" |
| 21 | + > |
| 22 | + <div class="i-btn-loading-inner" v-if="loading"></div> |
| 23 | + <slot></slot> |
| 24 | + </button> |
27 | 25 | </template> |
28 | 26 |
|
29 | 27 | <script> |
@@ -90,10 +88,12 @@ export default { |
90 | 88 | const btnSize = 'i-btn-' + this.size |
91 | 89 | const btnType = 'i-btn-' + this.type |
92 | 90 | const btnShape = 'i-btn-' + this.shape |
93 | | - const btnLong = 'i-btn-' + this.long ? 'long' : '' |
94 | | - const btnLoading = 'i-btn-' + this.loading ? 'loading' : '' |
95 | | - const className = iClass + ' ' + btnSize + ' ' + btnType + ' ' + btnShape + ' ' |
96 | | - + btnLong + ' ' + btnLoading |
| 91 | + const btnLong = this.long ? 'i-btn-long' : '' |
| 92 | + const btnLoading = this.loading ? 'i-btn-loading' : '' |
| 93 | + const btnDisabled = this.disabled ? 'i-btn-disabled' : '' |
| 94 | + const btnInline = this.inline ? 'i-btn-inline' : '' |
| 95 | + const className = this.iClass + ' ' + btnSize + ' ' + btnType + ' ' + btnShape + ' ' |
| 96 | + + btnLong + ' ' + btnLoading + ' ' + btnDisabled + ' ' + btnInline |
97 | 97 | return className |
98 | 98 | } |
99 | 99 | }, |
|
0 commit comments