@dcloudio/vue-cli-plugin-hbuilderx 2.0.1-alpha-34920220516002 → 2.0.1-alpha-34920220516003
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dcloudio/vue-cli-plugin-hbuilderx",
|
|
3
|
-
"version": "2.0.1-alpha-
|
|
3
|
+
"version": "2.0.1-alpha-34920220516003",
|
|
4
4
|
"description": "HBuilderX plugin for vue-cli 3",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"repository": {
|
|
@@ -18,5 +18,5 @@
|
|
|
18
18
|
"css": "~2.2.1",
|
|
19
19
|
"escodegen": "^1.8.1"
|
|
20
20
|
},
|
|
21
|
-
"gitHead": "
|
|
21
|
+
"gitHead": "86075e895f2961ccbaf45038648162545d250223"
|
|
22
22
|
}
|
|
@@ -39,7 +39,9 @@ function transition (declaration) {
|
|
|
39
39
|
map['transition-delay'].push((match[4] || '0s').trim())
|
|
40
40
|
}
|
|
41
41
|
for (var key in map) {
|
|
42
|
-
|
|
42
|
+
var value = map[key]
|
|
43
|
+
value = value.find(item => item !== value[0]) ? value.join(', ') : value[0]
|
|
44
|
+
result.push(generateDeclaration(key, value, important, position))
|
|
43
45
|
}
|
|
44
46
|
}
|
|
45
47
|
return result
|
|
@@ -73,6 +73,36 @@ describe('shorthand-parser', function () {
|
|
|
73
73
|
value: '0s, 1s, 0s',
|
|
74
74
|
position: {}
|
|
75
75
|
}])
|
|
76
|
+
|
|
77
|
+
expect(shorthandParser([{
|
|
78
|
+
type: 'declaration',
|
|
79
|
+
property: 'transition',
|
|
80
|
+
value: 'width 2s, height 2s',
|
|
81
|
+
position: {}
|
|
82
|
+
}])).eql([{
|
|
83
|
+
type: 'declaration',
|
|
84
|
+
property: 'transition-property',
|
|
85
|
+
value: 'width, height',
|
|
86
|
+
position: {}
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
type: 'declaration',
|
|
90
|
+
property: 'transition-duration',
|
|
91
|
+
value: '2s',
|
|
92
|
+
position: {}
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
type: 'declaration',
|
|
96
|
+
property: 'transition-timing-function',
|
|
97
|
+
value: 'ease',
|
|
98
|
+
position: {}
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
type: 'declaration',
|
|
102
|
+
property: 'transition-delay',
|
|
103
|
+
value: '0s',
|
|
104
|
+
position: {}
|
|
105
|
+
}])
|
|
76
106
|
})
|
|
77
107
|
|
|
78
108
|
it('parse margin', function () {
|