<template>
|
<div>
|
<mt-button type="default">default</mt-button>
|
<mt-button type="primary">primary</mt-button>
|
<mt-button id="btn" type="danger">danger</mt-button>
|
<a
|
href="http://mint-ui.github.io/#!/zh-cn"
|
target="_blank"
|
rel="noopener noreferrer"
|
>UI库:Mint UI:</a
|
><br />
|
<a href="http://mint-ui.github.io/#!/zh-cn" target="_blank" rel="noopener noreferrer"
|
>postcss-px-to-viewport</a
|
>
|
<p class="test_postcss">在这里写页面</p>
|
<p>{{ text }}</p>
|
<t-component></t-component>
|
</div>
|
</template>
|
<script>
|
import TComponent from "@/components/HelloWorld";
|
import tmixin from "@/mixins/test-mixin";
|
import $ from 'jquery'
|
|
export default {
|
components: { TComponent },
|
mixins: [tmixin],
|
created(){
|
//已经能打印出来了
|
console.log($("#btn").text())
|
}
|
};
|
</script>
|
|
<style lang="less" scoped>
|
a {
|
text-decoration: underline;
|
}
|
.test_postcss {
|
font-size: 20px;
|
padding: 50px;
|
}
|
</style>
|