Commit 80d98b51839928e4cc4977c3cc8fda0b60b6dec4
1 parent
89e31e35
update lbp-button
Showing
1 changed file
with
1 additions
and
48 deletions
front-end/h5/src/components/plugins/lbp-button.js
| @@ -195,54 +195,7 @@ export default { | @@ -195,54 +195,7 @@ export default { | ||
| 195 | } | 195 | } |
| 196 | }, | 196 | }, |
| 197 | components: { | 197 | components: { |
| 198 | - 'lbs-text-align': LbpTextAlign, | ||
| 199 | - 'lbs-select-input-type': { | ||
| 200 | - props: ['value'], | ||
| 201 | - computed: { | ||
| 202 | - value_: { | ||
| 203 | - get () { | ||
| 204 | - return this.value | ||
| 205 | - }, | ||
| 206 | - set (val) { | ||
| 207 | - this.$emit('input', val) | ||
| 208 | - } | ||
| 209 | - } | ||
| 210 | - }, | ||
| 211 | - template: ` | ||
| 212 | - <a-select v-model="value_" placeholder="类型"> | ||
| 213 | - <a-option | ||
| 214 | - v-for="item in options" | ||
| 215 | - :key="item.value" | ||
| 216 | - :label="item.label" | ||
| 217 | - :value="item.value"> | ||
| 218 | - </a-option> | ||
| 219 | - </a-select> | ||
| 220 | - `, | ||
| 221 | - data: () => ({ | ||
| 222 | - options: [ | ||
| 223 | - { | ||
| 224 | - label: '文字', | ||
| 225 | - value: 'text' | ||
| 226 | - }, | ||
| 227 | - { | ||
| 228 | - label: '密码', | ||
| 229 | - value: 'password' | ||
| 230 | - }, | ||
| 231 | - { | ||
| 232 | - label: '日期', | ||
| 233 | - value: 'date' | ||
| 234 | - }, | ||
| 235 | - { | ||
| 236 | - label: '邮箱', | ||
| 237 | - value: 'email' | ||
| 238 | - }, | ||
| 239 | - { | ||
| 240 | - label: '手机号', | ||
| 241 | - value: 'tel' | ||
| 242 | - } | ||
| 243 | - ] | ||
| 244 | - }) | ||
| 245 | - } | 198 | + 'lbs-text-align': LbpTextAlign |
| 246 | } | 199 | } |
| 247 | } | 200 | } |
| 248 | } | 201 | } |