Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
DCloud
uni-app
提交
b78dde42
U
uni-app
项目概览
DCloud
/
uni-app
4 天 前同步成功
通知
815
Star
38709
Fork
3642
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
8
列表
看板
标记
里程碑
合并请求
1
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
U
uni-app
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
8
Issue
8
列表
看板
标记
里程碑
合并请求
1
合并请求
1
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
提交
b78dde42
编写于
1月 15, 2024
作者:
fxy060608
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
wip(uvue): 拆分 slider.css,不使用条件编译
上级
85ac9b04
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
89 addition
and
86 deletion
+89
-86
packages/uni-cli-shared/src/constants.ts
packages/uni-cli-shared/src/constants.ts
+1
-0
packages/uni-components/package.json
packages/uni-components/package.json
+1
-0
packages/uni-components/style-x/slider.css
packages/uni-components/style-x/slider.css
+79
-0
packages/uni-components/style/slider.css
packages/uni-components/style/slider.css
+0
-85
packages/uni-h5-vite/src/plugins/easycom.ts
packages/uni-h5-vite/src/plugins/easycom.ts
+8
-1
未找到文件。
packages/uni-cli-shared/src/constants.ts
浏览文件 @
b78dde42
...
...
@@ -50,6 +50,7 @@ export const H5_API_STYLE_PATH = '@dcloudio/uni-h5/style/api/'
export
const
H5_FRAMEWORK_STYLE_PATH
=
'
@dcloudio/uni-h5/style/framework/
'
export
const
H5_COMPONENTS_STYLE_PATH
=
'
@dcloudio/uni-h5/style/
'
export
const
BASE_COMPONENTS_STYLE_PATH
=
'
@dcloudio/uni-components/style/
'
export
const
X_BASE_COMPONENTS_STYLE_PATH
=
'
@dcloudio/uni-components/style-x/
'
export
const
COMMON_EXCLUDE
=
[
/
\/
pages
\.
json
\.
js$/
,
...
...
packages/uni-components/package.json
浏览文件 @
b78dde42
...
...
@@ -5,6 +5,7 @@
"main"
:
"index.js"
,
"files"
:
[
"style"
,
"style-x"
,
"lib"
,
"lib-x"
],
...
...
packages/uni-components/style-x/slider.css
0 → 100644
浏览文件 @
b78dde42
uni-slider
{
display
:
block
;
margin-top
:
1px
;
margin-bottom
:
1px
;
}
uni-slider
[
hidden
]
{
display
:
none
;
}
uni-slider
.uni-slider-brower-input-range
{
position
:
absolute
;
left
:
0
;
top
:
0
;
width
:
100%
;
height
:
100%
;
opacity
:
0
;
}
uni-slider
.uni-slider-wrapper
{
position
:
relative
;
display
:
flex
;
align-items
:
center
;
min-height
:
8px
;
margin-top
:
4px
;
margin-bottom
:
4px
;
}
uni-slider
.uni-slider-input
{
position
:
relative
;
flex
:
1
;
}
uni-slider
.uni-slider-track
{
position
:
absolute
;
top
:
0
;
left
:
0
;
right
:
0
;
bottom
:
0
;
margin-top
:
auto
;
margin-bottom
:
auto
;
height
:
2px
;
border-radius
:
5px
;
background-color
:
#e9e9e9
;
cursor
:
pointer
;
transition
:
background-color
0.3s
ease
;
-webkit-tap-highlight-color
:
transparent
;
}
uni-slider
.uni-slider-track-value
{
height
:
100%
;
border-radius
:
6px
;
background-color
:
#007aff
;
transition
:
background-color
0.3s
ease
;
}
uni-slider
.uni-slider-thumb-value
{
position
:
relative
;
cursor
:
pointer
;
border-radius
:
50%
;
box-shadow
:
0
0
4px
rgba
(
0
,
0
,
0
,
0.2
);
transition
:
border-color
0.3s
ease
;
}
uni-slider
.uni-slider-value
{
width
:
4ch
;
color
:
#888
;
font-size
:
14px
;
margin-left
:
3px
;
}
uni-slider
.uni-slider-disabled
.uni-slider-track
{
background-color
:
#ccc
;
}
uni-slider
.uni-slider-disabled
.uni-slider-thumb-value
{
background-color
:
#fff
;
border-color
:
#ccc
;
}
packages/uni-components/style/slider.css
浏览文件 @
b78dde42
/* #ifndef UNI-APP-X */
uni-slider
{
margin
:
10px
18px
;
padding
:
0
;
...
...
@@ -88,87 +87,3 @@ uni-slider .uni-slider-disabled .uni-slider-thumb {
background-color
:
#fff
;
border-color
:
#ccc
;
}
/* #endif */
/* #ifdef UNI-APP-X */
uni-slider
{
display
:
block
;
margin-top
:
1px
;
margin-bottom
:
1px
;
}
uni-slider
[
hidden
]
{
display
:
none
;
}
uni-slider
.uni-slider-brower-input-range
{
position
:
absolute
;
left
:
0
;
top
:
0
;
width
:
100%
;
height
:
100%
;
opacity
:
0
;
}
uni-slider
.uni-slider-wrapper
{
position
:
relative
;
display
:
flex
;
align-items
:
center
;
min-height
:
8px
;
margin-top
:
4px
;
margin-bottom
:
4px
;
}
uni-slider
.uni-slider-input
{
position
:
relative
;
flex
:
1
;
}
uni-slider
.uni-slider-track
{
position
:
absolute
;
top
:
0
;
left
:
0
;
right
:
0
;
bottom
:
0
;
margin-top
:
auto
;
margin-bottom
:
auto
;
height
:
2px
;
border-radius
:
5px
;
background-color
:
#e9e9e9
;
cursor
:
pointer
;
transition
:
background-color
0.3s
ease
;
-webkit-tap-highlight-color
:
transparent
;
}
uni-slider
.uni-slider-track-value
{
height
:
100%
;
border-radius
:
6px
;
background-color
:
#007aff
;
transition
:
background-color
0.3s
ease
;
}
uni-slider
.uni-slider-thumb-value
{
position
:
relative
;
cursor
:
pointer
;
border-radius
:
50%
;
box-shadow
:
0
0
4px
rgba
(
0
,
0
,
0
,
0.2
);
transition
:
border-color
0.3s
ease
;
}
uni-slider
.uni-slider-value
{
width
:
4ch
;
color
:
#888
;
font-size
:
14px
;
margin-left
:
3px
;
}
uni-slider
.uni-slider-disabled
.uni-slider-track
{
background-color
:
#ccc
;
}
uni-slider
.uni-slider-disabled
.uni-slider-thumb-value
{
background-color
:
#fff
;
border-color
:
#ccc
;
}
/* #endif */
\ No newline at end of file
packages/uni-h5-vite/src/plugins/easycom.ts
浏览文件 @
b78dde42
...
...
@@ -7,6 +7,7 @@ import { COMPONENT_PREFIX, isBuiltInComponent } from '@dcloudio/uni-shared'
import
{
H5_COMPONENTS_STYLE_PATH
,
BASE_COMPONENTS_STYLE_PATH
,
X_BASE_COMPONENTS_STYLE_PATH
,
COMPONENT_DEPS_CSS
,
parseVueRequest
,
buildInCssSet
,
...
...
@@ -19,6 +20,7 @@ import {
const
H5_COMPONENTS_PATH
=
'
@dcloudio/uni-h5
'
const
xBaseComponents
=
[
'
slider
'
]
const
baseComponents
=
[
'
audio
'
,
'
button
'
,
...
...
@@ -133,7 +135,12 @@ export function uniEasycomPlugin(options: UniEasycomPluginOptions): Plugin {
function
resolveBuiltInCssImport
(
name
:
string
)
{
const
cssImports
:
string
[]
=
[]
if
(
baseComponents
.
includes
(
name
))
{
cssImports
.
push
(
BASE_COMPONENTS_STYLE_PATH
+
name
+
'
.css
'
)
const
isX
=
process
.
env
.
UNI_APP_X
===
'
true
'
if
(
isX
&&
xBaseComponents
.
includes
(
name
))
{
cssImports
.
push
(
X_BASE_COMPONENTS_STYLE_PATH
+
name
+
'
.css
'
)
}
else
{
cssImports
.
push
(
BASE_COMPONENTS_STYLE_PATH
+
name
+
'
.css
'
)
}
}
else
{
cssImports
.
push
(
H5_COMPONENTS_STYLE_PATH
+
name
+
'
.css
'
)
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录