dolphin-weex-ui 2.2.10 → 2.2.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +15 -0
- package/dist/index.native.js +32 -24
- package/dist/index.native.js.map +1 -1
- package/dist/index.web.js +31 -25
- package/dist/index.web.js.map +1 -1
- package/package.json +1 -1
- package/packages/dof-actionsheet/index-bak.vue +1 -0
- package/packages/dof-actionsheet/index.vue +1 -0
- package/packages/dof-button/index.vue +1 -1
- package/packages/dof-popup/index.vue +1 -0
- package/packages/dof-select-picker/index.vue +1 -0
- package/packages/utils/promisify.js +13 -13
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<!-- modified by liuhr7 on 19/12/28. -->
|
|
2
2
|
|
|
3
3
|
<template>
|
|
4
|
-
<WeexThemeView>
|
|
4
|
+
<WeexThemeView :key="disabled + ''">
|
|
5
5
|
<text
|
|
6
6
|
v-if="pattern === 'plain_text'"
|
|
7
7
|
:class="['btn-text', isHighlight && !disabled && pattern === 'text' && !_isColmo && `dof-text-highlight-${type}`]"
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
function promisify(fn) {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
2
|
+
return function(...args) {
|
|
3
|
+
return new Promise(function(resolve, reject) {
|
|
4
|
+
args.push(function(err, ...arg) {
|
|
5
|
+
if (err) {
|
|
6
|
+
reject(err)
|
|
7
|
+
} else {
|
|
8
|
+
resolve(...arg)
|
|
9
|
+
}
|
|
10
|
+
})
|
|
11
|
+
fn.apply(null, args)
|
|
12
|
+
})
|
|
13
|
+
}
|
|
14
14
|
}
|
|
15
15
|
|
|
16
|
-
export
|
|
16
|
+
export default promisify
|