mirror of
https://github.com/youzan/vant.git
synced 2026-05-02 01:01:43 +08:00
[Improvement] Support Vue.use to register a component (#401)
This commit is contained in:
@@ -4,17 +4,18 @@
|
||||
:href="url"
|
||||
class="van-goods-action__big-btn"
|
||||
:type="primary ? 'primary' : 'default'"
|
||||
@click="$emit('click', $event)"
|
||||
bottomAction
|
||||
@click="$emit('click', $event)"
|
||||
>
|
||||
<slot></slot>
|
||||
</van-button>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { create } from '../utils';
|
||||
import VanButton from '../button';
|
||||
|
||||
export default {
|
||||
export default create({
|
||||
name: 'van-goods-action-big-btn',
|
||||
|
||||
components: {
|
||||
@@ -25,5 +26,5 @@ export default {
|
||||
url: String,
|
||||
primary: Boolean
|
||||
}
|
||||
};
|
||||
});
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user