|
这是小程序上的截图,下面是复现代码- <template name='main'>
- <view class="body">
- <safe-area></safe-area>
- <view class="">
- <slider min="0" max="100" value="15" step="1" disabled='false' backgroundColor="#eee" activeColor="#f00"
- block-size="20" vlock-color="#fff" @change="test" />
- </view>
- </view>
- </template>
- <script>
- import mSlider from '../../components/xx_avm_c/m-slider/m-slider.stml'
- export default {
- name: 'main',
- components: {
- "m-slider": mSlider
- },
- apiready() {
- },
- data() {
- return {
- }
- },
- methods: {
- test(e) {
- console.log(`${JSON.stringify(e)}=========来自=======>页面:${api.winName}; 行数: [ ];`)
- }
- }
- }
- </script>
- <style>
- .body {
- width: 100%;
- height: 100%;
- }
- .testcc {
- position: absolute;
- top: 50px;
- left: 50px;
- }
- .height-8 {
- height: 8px;
- }
- .bg-000 {
- width: 100%;
- background: #000;
- }
- .width-100p {
- width: 100%;
- }
- .height-100p {
- height: 100%;
- }
- .width-300 {
- width: 300px;
- }
- .height-300 {
- height: 300px;
- }
- .width-50 {
- width: 50px;
- }
- .height-50 {
- height: 50px;
- }
- </style>
复制代码
|
|