Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
陈庄旺
uni-app
提交
6e24f5f9
U
uni-app
项目概览
陈庄旺
/
uni-app
与 Fork 源项目一致
Fork自
DCloud / uni-app
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
U
uni-app
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
6e24f5f9
编写于
12月 01, 2020
作者:
fxy060608
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
chore(cli): renameStyle => assetFileNames
上级
aba2a90c
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
32 addition
and
69 deletion
+32
-69
packages/uni-components/dist/uni-components.esm.js
packages/uni-components/dist/uni-components.esm.js
+14
-40
packages/uni-components/vite.config.ts
packages/uni-components/vite.config.ts
+7
-1
packages/uni-h5/dist/uni-h5.esm.js
packages/uni-h5/dist/uni-h5.esm.js
+3
-11
packages/uni-h5/vite.config.ts
packages/uni-h5/vite.config.ts
+7
-1
scripts/build.js
scripts/build.js
+1
-2
scripts/renameStyle.js
scripts/renameStyle.js
+0
-14
未找到文件。
packages/uni-components/dist/uni-components.esm.js
浏览文件 @
6e24f5f9
...
...
@@ -551,7 +551,6 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
])
],
16
,
[
"
id
"
,
"
controls
"
]);
}
;
script
.
render
=
render
;
const
pixelRatio
=
function
()
{
const
canvas
=
document
.
createElement
(
"
canvas
"
);
...
...
@@ -1223,7 +1222,6 @@ function render$1(_ctx, _cache, $props, $setup, $data, $options) {
},
null
,
8
,
[
"
onResize
"
])
],
16
,
[
"
canvas-id
"
,
"
disable-scroll
"
]);
}
;
script$1
.
render
=
render$1
;
var
script$2
=
{
name
:
"
Checkbox
"
,
...
...
@@ -1315,7 +1313,6 @@ function render$2(_ctx, _cache, $props, $setup, $data, $options) {
])
],
16
,
[
"
disabled
"
]);
}
;
script$2
.
render
=
render$2
;
var
script$3
=
{
name
:
"
CheckboxGroup
"
,
...
...
@@ -1388,7 +1385,6 @@ function render$3(_ctx, _cache, $props, $setup, $data, $options) {
renderSlot
(
_ctx
.
$slots
,
"
default
"
)
],
16
);
}
;
script$3
.
render
=
render$3
;
var
startTag
=
/^<
([
-A-Za-z0-9_
]
+
)((?:\s
+
[
a-zA-Z_:
][
-a-zA-Z0-9_:.
]
*
(?:\s
*=
\s
*
(?:(?:
"
[^
"
]
*"
)
|
(?:
'
[^
'
]
*'
)
|
[^
>
\s]
+
))?)
*
)\s
*
(\/?)
>/
;
var
endTag
=
/^<
\/([
-A-Za-z0-9_
]
+
)[^
>
]
*>/
;
...
...
@@ -2100,8 +2096,6 @@ function render$4(_ctx, _cache, $props, $setup, $data, $options) {
class
:
"
ql-container
"
},
_ctx
.
$attrs
),
null
,
16
,
[
"
id
"
]);
}
;
;
script$4
.
render
=
render$4
;
var
script$5
=
{
name
:
"
Form
"
,
...
...
@@ -2151,7 +2145,6 @@ function render$5(_ctx, _cache, $props, $setup, $data, $options) {
])
],
16
);
}
;
script$5
.
render
=
render$5
;
var
script$6
=
{
name
:
"
Icon
"
,
...
...
@@ -2192,7 +2185,6 @@ function render$6(_ctx, _cache, $props, $setup, $data, $options) {
},
null
,
6
)
],
16
);
}
;
script$6
.
render
=
render$6
;
var
script$7
=
{
name
:
"
Image
"
,
...
...
@@ -2360,7 +2352,6 @@ function render$7(_ctx, _cache, $props, $setup, $data, $options) {
},
null
,
8
,
[
"
onResize
"
]))
:
createCommentVNode
(
""
,
true
)
],
16
);
}
;
script$7
.
render
=
render$7
;
const
INPUT_TYPES
=
[
"
text
"
,
"
number
"
,
"
idcard
"
,
"
digit
"
,
"
password
"
];
const
NUMBER_TYPES
=
[
"
number
"
,
"
digit
"
];
...
...
@@ -2582,7 +2573,6 @@ function render$8(_ctx, _cache, $props, $setup, $data, $options) {
],
512
)
],
16
);
}
;
script$8
.
render
=
render$8
;
var
script$9
=
{
name
:
"
Label
"
,
...
...
@@ -2624,7 +2614,6 @@ function render$9(_ctx, _cache, $props, $setup, $data, $options) {
renderSlot
(
_ctx
.
$slots
,
"
default
"
)
],
16
);
}
;
script$9
.
render
=
render$9
;
const
addListenerToElement
=
function
(
element
,
type
,
callback
,
capture
)
{
element
.
addEventListener
(
type
,
(
$event
)
=>
{
...
...
@@ -3689,7 +3678,6 @@ function render$a(_ctx, _cache, $props, $setup, $data, $options) {
renderSlot
(
_ctx
.
$slots
,
"
default
"
)
],
16
);
}
;
script$a
.
render
=
render$a
;
const
OPEN_TYPES
=
[
"
navigate
"
,
"
redirect
"
,
"
switchTab
"
,
"
reLaunch
"
,
"
navigateBack
"
];
var
script$b
=
{
...
...
@@ -3777,7 +3765,6 @@ function render$b(_ctx, _cache, $props, $setup, $data, $options) {
renderSlot
(
_ctx
.
$slots
,
"
default
"
)
],
16
));
}
;
script$b
.
render
=
render$b
;
const
VALUES
=
{
activeColor
:
"
#007AFF
"
,
...
...
@@ -3899,7 +3886,6 @@ function render$c(_ctx, _cache, $props, $setup, $data, $options) {
$props
.
showInfo
?
(
openBlock
(),
createBlock
(
"
p
"
,
_hoisted_1$4
,
toDisplayString
(
$data
.
currentPercent
)
+
"
%
"
,
1
))
:
createCommentVNode
(
""
,
true
)
],
16
);
}
;
script$c
.
render
=
render$c
;
var
script$d
=
{
name
:
"
Radio
"
,
...
...
@@ -3996,7 +3982,6 @@ function render$d(_ctx, _cache, $props, $setup, $data, $options) {
])
],
16
,
[
"
disabled
"
]);
}
;
script$d
.
render
=
render$d
;
var
script$e
=
{
name
:
"
RadioGroup
"
,
...
...
@@ -4087,7 +4072,6 @@ function render$e(_ctx, _cache, $props, $setup, $data, $options) {
renderSlot
(
_ctx
.
$slots
,
"
default
"
)
],
16
);
}
;
script$e
.
render
=
render$e
;
var
script$f
=
{
name
:
"
ResizeSensor
"
,
...
...
@@ -4162,10 +4146,6 @@ var script$f = {
]);
}
};
;
const
render$f
=
()
=>
{
};
script$f
.
render
=
render$f
;
function
removeDOCTYPE
(
html
)
{
return
html
.
replace
(
/<
\?
xml.*
\?
>
\n
/
,
""
).
replace
(
/<!doctype.*>
\n
/
,
""
).
replace
(
/<!DOCTYPE.*>
\n
/
,
""
);
}
...
...
@@ -4403,12 +4383,12 @@ var script$g = {
}
};
const
_hoisted_1$6
=
/* @__PURE__ */
createVNode
(
"
div
"
,
null
,
null
,
-
1
);
function
render$
g
(
_ctx
,
_cache
,
$props
,
$setup
,
$data
,
$options
)
{
function
render$
f
(
_ctx
,
_cache
,
$props
,
$setup
,
$data
,
$options
)
{
return
openBlock
(),
createBlock
(
"
uni-rich-text
"
,
_ctx
.
$attrs
,
[
_hoisted_1$6
],
16
);
}
script$g
.
render
=
render$
g
;
script$g
.
render
=
render$
f
;
function
Friction$1
(
e2
)
{
this
.
_drag
=
e2
;
this
.
_dragLog
=
Math
.
log
(
e2
);
...
...
@@ -5531,7 +5511,7 @@ const _hoisted_8 = /* @__PURE__ */ createVNode("circle", {
style
:
{
color
:
"
#2BD009
"
},
"
stroke-width
"
:
"
3
"
},
null
,
-
1
);
function
render$
h
(
_ctx
,
_cache
,
$props
,
$setup
,
$data
,
$options
)
{
function
render$
g
(
_ctx
,
_cache
,
$props
,
$setup
,
$data
,
$options
)
{
return
openBlock
(),
createBlock
(
"
uni-scroll-view
"
,
_ctx
.
$attrs
,
[
createVNode
(
"
div
"
,
_hoisted_1$7
,
[
createVNode
(
"
div
"
,
{
...
...
@@ -5573,8 +5553,7 @@ function render$h(_ctx, _cache, $props, $setup, $data, $options) {
],
512
)
],
16
);
}
;
script$h
.
render
=
render$h
;
script$h
.
render
=
render$g
;
var
script$i
=
{
name
:
"
Slider
"
,
mixins
:
[
emitter
,
listeners
,
touchtrack
],
...
...
@@ -5740,7 +5719,7 @@ var script$i = {
};
const
_hoisted_1$8
=
{
class
:
"
uni-slider-wrapper
"
};
const
_hoisted_2$3
=
{
class
:
"
uni-slider-tap-area
"
};
function
render$
i
(
_ctx
,
_cache
,
$props
,
$setup
,
$data
,
$options
)
{
function
render$
h
(
_ctx
,
_cache
,
$props
,
$setup
,
$data
,
$options
)
{
return
openBlock
(),
createBlock
(
"
uni-slider
"
,
mergeProps
({
ref
:
"
uni-slider
"
},
_ctx
.
$attrs
,
{
onClick
:
_cache
[
1
]
||
(
_cache
[
1
]
=
(...
args
)
=>
$options
.
_onClick
(...
args
))
}),
[
...
...
@@ -5772,8 +5751,7 @@ function render$i(_ctx, _cache, $props, $setup, $data, $options) {
renderSlot
(
_ctx
.
$slots
,
"
default
"
)
],
16
);
}
;
script$i
.
render
=
render$i
;
script$i
.
render
=
render$h
;
var
script$j
=
{
name
:
"
SwiperItem
"
,
props
:
{
...
...
@@ -5795,13 +5773,12 @@ var script$j = {
}
}
};
function
render$
j
(
_ctx
,
_cache
,
$props
,
$setup
,
$data
,
$options
)
{
function
render$
i
(
_ctx
,
_cache
,
$props
,
$setup
,
$data
,
$options
)
{
return
openBlock
(),
createBlock
(
"
uni-swiper-item
"
,
_ctx
.
$attrs
,
[
renderSlot
(
_ctx
.
$slots
,
"
default
"
)
],
16
);
}
;
script$j
.
render
=
render$j
;
script$j
.
render
=
render$i
;
var
script$k
=
{
name
:
"
Switch
"
,
mixins
:
[
emitter
,
listeners
],
...
...
@@ -5881,7 +5858,7 @@ var script$k = {
}
};
const
_hoisted_1$9
=
{
class
:
"
uni-switch-wrapper
"
};
function
render$
k
(
_ctx
,
_cache
,
$props
,
$setup
,
$data
,
$options
)
{
function
render$
j
(
_ctx
,
_cache
,
$props
,
$setup
,
$data
,
$options
)
{
return
openBlock
(),
createBlock
(
"
uni-switch
"
,
mergeProps
({
disabled
:
$props
.
disabled
},
_ctx
.
$attrs
,
{
onClick
:
_cache
[
1
]
||
(
_cache
[
1
]
=
(...
args
)
=>
$options
.
_onClick
(...
args
))
}),
[
...
...
@@ -5901,8 +5878,7 @@ function render$k(_ctx, _cache, $props, $setup, $data, $options) {
])
],
16
,
[
"
disabled
"
]);
}
;
script$k
.
render
=
render$k
;
script$k
.
render
=
render$j
;
const
DARK_TEST_STRING
=
"
(prefers-color-scheme: dark)
"
;
var
script$l
=
{
name
:
"
Textarea
"
,
...
...
@@ -6127,7 +6103,7 @@ var script$l = {
};
const
_hoisted_1$a
=
{
class
:
"
uni-textarea-wrapper
"
};
const
_hoisted_2$4
=
{
class
:
"
uni-textarea-compute
"
};
function
render$
l
(
_ctx
,
_cache
,
$props
,
$setup
,
$data
,
$options
)
{
function
render$
k
(
_ctx
,
_cache
,
$props
,
$setup
,
$data
,
$options
)
{
const
_component_v_uni_resize_sensor
=
resolveComponent
(
"
v-uni-resize-sensor
"
);
return
openBlock
(),
createBlock
(
"
uni-textarea
"
,
mergeProps
({
onChange
:
_cache
[
8
]
||
(
_cache
[
8
]
=
withModifiers
(()
=>
{
...
...
@@ -6179,8 +6155,7 @@ function render$l(_ctx, _cache, $props, $setup, $data, $options) {
])
],
16
);
}
;
script$l
.
render
=
render$l
;
script$l
.
render
=
render$k
;
var
script$m
=
{
name
:
"
View
"
,
mixins
:
[
hover
],
...
...
@@ -6188,7 +6163,7 @@ var script$m = {
"
label-click
"
:
"
clickHandler
"
}
};
function
render$
m
(
_ctx
,
_cache
,
$props
,
$setup
,
$data
,
$options
)
{
function
render$
l
(
_ctx
,
_cache
,
$props
,
$setup
,
$data
,
$options
)
{
return
_ctx
.
hoverClass
&&
_ctx
.
hoverClass
!==
"
none
"
?
(
openBlock
(),
createBlock
(
"
uni-view
"
,
mergeProps
({
key
:
0
,
class
:
[
_ctx
.
hovering
?
_ctx
.
hoverClass
:
""
],
...
...
@@ -6201,6 +6176,5 @@ function render$m(_ctx, _cache, $props, $setup, $data, $options) {
renderSlot
(
_ctx
.
$slots
,
"
default
"
)
],
16
));
}
;
script$m
.
render
=
render$m
;
script$m
.
render
=
render$l
;
export
{
script
as
Audio
,
script$1
as
Canvas
,
script$2
as
Checkbox
,
script$3
as
CheckboxGroup
,
script$4
as
Editor
,
script$5
as
Form
,
script$6
as
Icon
,
script$7
as
Image
,
script$8
as
Input
,
script$9
as
Label
,
script$a
as
MovableView
,
script$b
as
Navigator
,
script$c
as
Progress
,
script$d
as
Radio
,
script$e
as
RadioGroup
,
script$f
as
ResizeSensor
,
script$g
as
RichText
,
script$h
as
ScrollView
,
script$i
as
Slider
,
script$j
as
SwiperItem
,
script$k
as
Switch
,
script$l
as
Textarea
,
script$m
as
View
,
passiveOptions
,
supportsPassive$1
as
supportsPassive
};
packages/uni-components/vite.config.ts
浏览文件 @
6e24f5f9
...
...
@@ -17,6 +17,12 @@ export default {
},
rollupOutputOptions
:
{
format
:
'
es
'
,
entryFileNames
:
'
uni-components.esm.js
'
entryFileNames
:
'
uni-components.esm.js
'
,
assetFileNames
(
assetInfo
)
{
if
(
assetInfo
.
name
===
'
style.css
'
)
{
return
'
uni-components.css
'
}
return
'
assets/[name]-[hash][extname]
'
}
}
}
packages/uni-h5/dist/uni-h5.esm.js
浏览文件 @
6e24f5f9
...
...
@@ -451,6 +451,7 @@ function $getRealPath(v) {
}
var
instance
=
/* @__PURE__ */
Object
.
freeze
({
__proto__
:
null
,
[
Symbol
.
toStringTag
]:
"
Module
"
,
$trigger
,
$handleEvent
,
$getRealPath
...
...
@@ -667,6 +668,7 @@ function selectAllComponents(selector) {
}
var
wxInstance
=
/* @__PURE__ */
Object
.
freeze
({
__proto__
:
null
,
[
Symbol
.
toStringTag
]:
"
Module
"
,
createSelectorQuery
,
createIntersectionObserver
,
selectComponent
,
...
...
@@ -825,7 +827,6 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
_hoisted_2
]);
}
;
script
.
render
=
render
;
var
Transtion
=
{
methods
:
{
...
...
@@ -928,7 +929,6 @@ function render$1(_ctx, _cache, $props, $setup, $data, $options) {
_
:
1
});
}
;
script$1
.
render
=
render$1
;
var
script$2
=
{
name
:
"
Modal
"
,
...
...
@@ -1022,7 +1022,6 @@ function render$2(_ctx, _cache, $props, $setup, $data, $options) {
_
:
1
});
}
;
script$2
.
render
=
render$2
;
var
script$3
=
{
name
:
"
ActionSheet
"
,
...
...
@@ -1098,7 +1097,6 @@ function render$3(_ctx, _cache, $props, $setup, $data, $options) {
],
2
)
],
32
);
}
;
script$3
.
render
=
render$3
;
var
Components
=
{
Toast
:
script$1
,
...
...
@@ -1687,6 +1685,7 @@ const getRealPath = /* @__PURE__ */ createApi({type: API_TYPE_SYNC}, (path) => {
});
var
api
=
/* @__PURE__ */
Object
.
freeze
({
__proto__
:
null
,
[
Symbol
.
toStringTag
]:
"
Module
"
,
upx2px
,
addInterceptor
,
removeInterceptor
,
...
...
@@ -1802,7 +1801,6 @@ function render$4(_ctx, _cache, $props, $setup, $data, $options) {
}),
128
))
:
createCommentVNode
(
""
,
true
)
],
2
);
}
;
script$4
.
render
=
render$4
;
function
initSystemComponents
(
app2
)
{
script$4
.
name
=
COMPONENT_NAME_PREFIX
+
script$4
.
name
;
...
...
@@ -2334,7 +2332,6 @@ function render$5(_ctx, _cache, $props, $setup, $data, $options) {
},
null
,
2
))
:
createCommentVNode
(
""
,
true
)
],
8
,
[
"
uni-page-head-type
"
]);
}
;
script$5
.
render
=
render$5
;
var
script$6
=
{
name
:
"
PageBody
"
...
...
@@ -2346,7 +2343,6 @@ function render$6(_ctx, _cache, $props, $setup, $data, $options) {
])
]);
}
;
script$6
.
render
=
render$6
;
var
script$7
=
{
name
:
"
PageRefresh
"
,
...
...
@@ -2406,7 +2402,6 @@ function render$7(_ctx, _cache, $props, $setup, $data, $options) {
],
4
)
]);
}
;
script$7
.
render
=
render$7
;
function
processDeltaY
(
evt
,
identifier
,
startY
)
{
const
touch
=
Array
.
prototype
.
slice
.
call
(
evt
.
changedTouches
).
filter
((
touch2
)
=>
touch2
.
identifier
===
identifier
)[
0
];
...
...
@@ -2801,7 +2796,6 @@ function render$8(_ctx, _cache, $props, $setup, $data, $options) {
}))
],
8
,
[
"
data-page
"
]);
}
;
script$8
.
render
=
render$8
;
var
script$9
=
{
name
:
"
AsyncError
"
,
...
...
@@ -2817,7 +2811,6 @@ function render$9(_ctx, _cache, $props, $setup, $data, $options) {
onClick
:
_cache
[
1
]
||
(
_cache
[
1
]
=
(...
args
)
=>
$options
.
_onClick
(...
args
))
},
"
\
u8FDE
\
u63A5
\
u670D
\
u52A1
\
u5668
\
u8D85
\
u65F6
\
uFF0C
\
u70B9
\
u51FB
\
u5C4F
\
u5E55
\
u91CD
\
u8BD5
"
);
}
;
script$9
.
render
=
render$9
;
var
script$a
=
{
name
:
"
AsyncLoading
"
...
...
@@ -2829,6 +2822,5 @@ function render$a(_ctx, _cache, $props, $setup, $data, $options) {
_hoisted_2$6
]);
}
;
script$a
.
render
=
render$a
;
export
{
script$9
as
AsyncErrorComponent
,
script$a
as
AsyncLoadingComponent
,
script$8
as
PageComponent
,
UniServiceJSBridge$1
as
UniServiceJSBridge
,
UniViewJSBridge$1
as
UniViewJSBridge
,
addInterceptor
,
arrayBufferToBase64
,
base64ToArrayBuffer
,
canIUse
,
createIntersectionObserver$1
as
createIntersectionObserver
,
createSelectorQuery$1
as
createSelectorQuery
,
getApp$1
as
getApp
,
getCurrentPages$1
as
getCurrentPages
,
getImageInfo
,
getRealPath
,
getSystemInfo
,
getSystemInfoSync
,
makePhoneCall
,
navigateBack
,
navigateTo
,
openDocument
,
index
as
plugin
,
promiseInterceptor
,
reLaunch
,
redirectTo
,
removeInterceptor
,
switchTab
,
uni$1
as
uni
,
upx2px
};
packages/uni-h5/vite.config.ts
浏览文件 @
6e24f5f9
...
...
@@ -44,6 +44,12 @@ export default {
},
rollupOutputOptions
:
{
format
:
'
es
'
,
entryFileNames
:
'
uni-h5.esm.js
'
entryFileNames
:
'
uni-h5.esm.js
'
,
assetFileNames
(
assetInfo
)
{
if
(
assetInfo
.
name
===
'
style.css
'
)
{
return
'
uni-h5.css
'
}
return
'
assets/[name]-[hash][extname]
'
}
}
}
scripts/build.js
浏览文件 @
6e24f5f9
...
...
@@ -51,14 +51,13 @@ async function build(target) {
const
env
=
devOnly
?
'
development
'
:
'
production
'
if
(
bundler
===
'
vite
'
)
{
await
execa
(
return
await
execa
(
'
vite
'
,
[
'
build
'
,
'
--config
'
,
path
.
resolve
(
pkgDir
,
'
vite.config.ts
'
)],
{
stdio
:
'
inherit
'
}
)
return
require
(
'
./renameStyle
'
).
renameStyle
(
target
,
pkgDir
)
}
else
if
(
bundler
===
'
tsc
'
)
{
return
await
execa
(
'
tsc
'
,
[
'
--listEmittedFiles
'
,
'
-p
'
,
pkgDir
],
{
stdio
:
'
inherit
'
...
...
scripts/renameStyle.js
已删除
100644 → 0
浏览文件 @
aba2a90c
const
fs
=
require
(
'
fs-extra
'
)
const
path
=
require
(
'
path
'
)
exports
.
renameStyle
=
function
(
target
,
pkgDir
)
{
const
distDir
=
path
.
resolve
(
pkgDir
,
'
dist
'
)
fs
.
readdirSync
(
distDir
).
forEach
(
file
=>
{
if
(
path
.
extname
(
file
)
===
'
.css
'
)
{
fs
.
renameSync
(
path
.
resolve
(
distDir
,
file
),
path
.
resolve
(
distDir
,
target
+
'
.css
'
)
)
}
})
}
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录