消息
This commit is contained in:
34
unpackage/dist/dev/mp-weixin/TUIKit/components/common/Slider/index.js
vendored
Normal file
34
unpackage/dist/dev/mp-weixin/TUIKit/components/common/Slider/index.js
vendored
Normal file
@@ -0,0 +1,34 @@
|
||||
"use strict";
|
||||
const common_vendor = require("../../../../common/vendor.js");
|
||||
require("../../../adapter-vue.js");
|
||||
const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
|
||||
__name: "index",
|
||||
props: {
|
||||
open: {
|
||||
type: Boolean,
|
||||
default: false
|
||||
}
|
||||
},
|
||||
emits: ["change"],
|
||||
setup(__props, { emit: __emit }) {
|
||||
const props = __props;
|
||||
const isSliderOpen = common_vendor.ref(false);
|
||||
const emits = __emit;
|
||||
common_vendor.watchEffect(() => {
|
||||
isSliderOpen.value = props.open;
|
||||
});
|
||||
const toggleSlider = () => {
|
||||
isSliderOpen.value = !isSliderOpen.value;
|
||||
emits("change", isSliderOpen.value);
|
||||
};
|
||||
return (_ctx, _cache) => {
|
||||
return {
|
||||
a: common_vendor.n(common_vendor.unref(isSliderOpen) && "slider-open"),
|
||||
b: common_vendor.o$1(toggleSlider)
|
||||
};
|
||||
};
|
||||
}
|
||||
});
|
||||
const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-a7f8ad37"]]);
|
||||
wx.createComponent(Component);
|
||||
//# sourceMappingURL=../../../../../.sourcemap/mp-weixin/TUIKit/components/common/Slider/index.js.map
|
||||
4
unpackage/dist/dev/mp-weixin/TUIKit/components/common/Slider/index.json
vendored
Normal file
4
unpackage/dist/dev/mp-weixin/TUIKit/components/common/Slider/index.json
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"component": true,
|
||||
"usingComponents": {}
|
||||
}
|
||||
1
unpackage/dist/dev/mp-weixin/TUIKit/components/common/Slider/index.wxml
vendored
Normal file
1
unpackage/dist/dev/mp-weixin/TUIKit/components/common/Slider/index.wxml
vendored
Normal file
@@ -0,0 +1 @@
|
||||
<view class="{{['slider-box', 'data-v-a7f8ad37', a]}}" bindtap="{{b}}"><label class="slider-block data-v-a7f8ad37"/></view>
|
||||
97
unpackage/dist/dev/mp-weixin/TUIKit/components/common/Slider/index.wxss
vendored
Normal file
97
unpackage/dist/dev/mp-weixin/TUIKit/components/common/Slider/index.wxss
vendored
Normal file
@@ -0,0 +1,97 @@
|
||||
/**
|
||||
* 这里是uni-app内置的常用样式变量
|
||||
*
|
||||
* uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量
|
||||
* 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App
|
||||
*
|
||||
*/
|
||||
/**
|
||||
* 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能
|
||||
*
|
||||
* 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
|
||||
*/
|
||||
/* 颜色变量 */
|
||||
/* 行为相关颜色 */
|
||||
/* 文字基本颜色 */
|
||||
/* 背景颜色 */
|
||||
/* 边框颜色 */
|
||||
/* 尺寸变量 */
|
||||
/* 文字尺寸 */
|
||||
/* 图片尺寸 */
|
||||
/* Border Radius */
|
||||
/* 水平间距 */
|
||||
/* 垂直间距 */
|
||||
/* 透明度 */
|
||||
/* 文章场景相关 */
|
||||
body.data-v-a7f8ad37, div.data-v-a7f8ad37, ul.data-v-a7f8ad37, ol.data-v-a7f8ad37, dt.data-v-a7f8ad37, dd.data-v-a7f8ad37, li.data-v-a7f8ad37, dl.data-v-a7f8ad37, h1.data-v-a7f8ad37, h2.data-v-a7f8ad37, h3.data-v-a7f8ad37, h4.data-v-a7f8ad37, p.data-v-a7f8ad37 {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
font-style: normal;
|
||||
/* font:12px/22px"\5B8B\4F53",Arial,Helvetica,sans-serif; */
|
||||
}
|
||||
ol.data-v-a7f8ad37, ul.data-v-a7f8ad37, li.data-v-a7f8ad37 {
|
||||
list-style: none;
|
||||
}
|
||||
img.data-v-a7f8ad37 {
|
||||
border: 0;
|
||||
vertical-align: middle;
|
||||
pointer-events: none;
|
||||
}
|
||||
body.data-v-a7f8ad37 {
|
||||
color: #000;
|
||||
background: #FFF;
|
||||
}
|
||||
.clear.data-v-a7f8ad37 {
|
||||
clear: both;
|
||||
height: 1px;
|
||||
width: 100%;
|
||||
overflow: hidden;
|
||||
margin-top: -1px;
|
||||
}
|
||||
a.data-v-a7f8ad37 {
|
||||
color: #000;
|
||||
text-decoration: none;
|
||||
cursor: pointer;
|
||||
}
|
||||
a.data-v-a7f8ad37:hover {
|
||||
text-decoration: none;
|
||||
}
|
||||
input.data-v-a7f8ad37, textarea.data-v-a7f8ad37 {
|
||||
-webkit-user-select: auto;
|
||||
user-select: auto;
|
||||
}
|
||||
input.data-v-a7f8ad37:focus, input.data-v-a7f8ad37:active, textarea.data-v-a7f8ad37:focus, textarea.data-v-a7f8ad37:active {
|
||||
outline: none;
|
||||
}
|
||||
.chat-aside.data-v-a7f8ad37 {
|
||||
position: absolute;
|
||||
top: 50px;
|
||||
right: 0;
|
||||
box-sizing: border-box;
|
||||
width: 360px !important;
|
||||
border-radius: 8px 0 0 8px;
|
||||
z-index: 9999;
|
||||
max-height: calc(100% - 50px);
|
||||
}
|
||||
.slider-box.data-v-a7f8ad37 {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
width: 40px;
|
||||
height: 20px;
|
||||
border-radius: 10px;
|
||||
background: #e1e1e3;
|
||||
}
|
||||
.slider-open.data-v-a7f8ad37 {
|
||||
background: #006eff !important;
|
||||
justify-content: flex-end;
|
||||
}
|
||||
.slider-block.data-v-a7f8ad37 {
|
||||
display: inline-block;
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
border-radius: 8px;
|
||||
margin: 0 2px;
|
||||
background: #fff;
|
||||
border: 0 solid rgba(0, 0, 0, 0.85);
|
||||
box-shadow: 0 2px 4px 0 #d1d1d1;
|
||||
}
|
||||
Reference in New Issue
Block a user