Commit 3ac887079a157045413cd45b53c8357e453ca38c

Authored by 梁灏
1 parent 4b7138b9

optimize Page

optimize Page
Showing 1 changed file with 4 additions and 4 deletions   Show diff stats
src/components/page/page.vue
... ... @@ -145,7 +145,7 @@
145 145 return [
146 146 `${prefixCls}-prev`,
147 147 {
148   - [`${prefixCls}-disabled`]: this.current == 1
  148 + [`${prefixCls}-disabled`]: this.current === 1
149 149 }
150 150 ]
151 151 },
... ... @@ -153,7 +153,7 @@
153 153 return [
154 154 `${prefixCls}-next`,
155 155 {
156   - [`${prefixCls}-disabled`]: this.current == this.allPages
  156 + [`${prefixCls}-disabled`]: this.current === this.allPages
157 157 }
158 158 ]
159 159 },
... ... @@ -161,7 +161,7 @@
161 161 return [
162 162 `${prefixCls}-item`,
163 163 {
164   - [`${prefixCls}-item-active`]: this.current == 1
  164 + [`${prefixCls}-item-active`]: this.current === 1
165 165 }
166 166 ]
167 167 },
... ... @@ -169,7 +169,7 @@
169 169 return [
170 170 `${prefixCls}-item`,
171 171 {
172   - [`${prefixCls}-item-active`]: this.current == this.allPages
  172 + [`${prefixCls}-item-active`]: this.current === this.allPages
173 173 }
174 174 ]
175 175 }
... ...