优化页面
This commit is contained in:
1
unpackage/dist/build/mp-weixin/TUIKit/components/common/SwitchBar/index.js
vendored
Normal file
1
unpackage/dist/build/mp-weixin/TUIKit/components/common/SwitchBar/index.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
"use strict";const e=require("../../../../common/vendor.js"),t=e.defineComponent({__name:"index",props:{value:{type:Boolean,default:!1}},setup:t=>(o,c)=>({a:e.n(t.value?"tui-switch-checked":"tui-switch-no-checked")})}),o=e._export_sfc(t,[["__scopeId","data-v-c4dd154a"]]);wx.createComponent(o);
|
||||
4
unpackage/dist/build/mp-weixin/TUIKit/components/common/SwitchBar/index.json
vendored
Normal file
4
unpackage/dist/build/mp-weixin/TUIKit/components/common/SwitchBar/index.json
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"component": true,
|
||||
"usingComponents": {}
|
||||
}
|
||||
1
unpackage/dist/build/mp-weixin/TUIKit/components/common/SwitchBar/index.wxml
vendored
Normal file
1
unpackage/dist/build/mp-weixin/TUIKit/components/common/SwitchBar/index.wxml
vendored
Normal file
@@ -0,0 +1 @@
|
||||
<view class="{{['data-v-c4dd154a', 'tui-switch', a]}}"/>
|
||||
1
unpackage/dist/build/mp-weixin/TUIKit/components/common/SwitchBar/index.wxss
vendored
Normal file
1
unpackage/dist/build/mp-weixin/TUIKit/components/common/SwitchBar/index.wxss
vendored
Normal file
@@ -0,0 +1 @@
|
||||
.tui-switch.data-v-c4dd154a{margin:2px 5px;width:48px;height:30px;position:relative;border:1px solid transparent;box-shadow:#dfdfdf 0 0 inset;border-radius:20px;background-clip:content-box;display:inline-block;appearance:none;-webkit-appearance:none;-moz-appearance:none;-webkit-user-select:none;user-select:none;outline:none}.tui-switch.data-v-c4dd154a:before{content:"";position:absolute;width:24px;height:24px;background-color:#fff;border-radius:50%;top:0;bottom:0;margin:auto;transition:.3s}.tui-switch-checked.data-v-c4dd154a{background-color:#007aff;transition:.6s}.tui-switch-checked.data-v-c4dd154a:before{transition:.3s;left:20px}.tui-switch-checked.data-v-c4dd154a:active:before{width:28px;left:16px;transition:.3s}.tui-switch-no-checked.data-v-c4dd154a{background-color:#dcdfe6;transition:.6s}.tui-switch-no-checked.data-v-c4dd154a:before{left:2px;transition:.3s}.tui-switch-no-checked.data-v-c4dd154a:active:before{width:28px;transition:.3s}
|
||||
Reference in New Issue
Block a user