Skip to content

Commit 93b9ee1

Browse files
committed
update
1 parent 59fff85 commit 93b9ee1

File tree

2 files changed

+26
-10
lines changed

2 files changed

+26
-10
lines changed

src/components/textarea.js renamed to src/components/textarea/index.js

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,7 @@
1616
* specific language governing permissions and limitations
1717
* under the License.
1818
*/
19-
const _css = `
20-
.weex-textarea {
21-
font-size: 0.426667rem
22-
}
23-
.weex-textarea:focus {
24-
outline: none;
25-
}
26-
`
19+
import './style.css'
2720

2821
function getTextarea (weex) {
2922
const { extractComponentStyle } = weex
@@ -74,8 +67,7 @@ function getTextarea (weex) {
7467
staticClass: 'weex-textarea weex-el',
7568
staticStyle: extractComponentStyle(this)
7669
})
77-
},
78-
_css
70+
}
7971
}
8072
}
8173

src/components/textarea/style.css

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
/*
2+
* Licensed to the Apache Software Foundation (ASF) under one
3+
* or more contributor license agreements. See the NOTICE file
4+
* distributed with this work for additional information
5+
* regarding copyright ownership. The ASF licenses this file
6+
* to you under the Apache License, Version 2.0 (the
7+
* "License"); you may not use this file except in compliance
8+
* with the License. You may obtain a copy of the License at
9+
*
10+
* http://www.apache.org/licenses/LICENSE-2.0
11+
*
12+
* Unless required by applicable law or agreed to in writing,
13+
* software distributed under the License is distributed on an
14+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15+
* KIND, either express or implied. See the License for the
16+
* specific language governing permissions and limitations
17+
* under the License.
18+
*/
19+
.weex-textarea {
20+
font-size: 0.426667rem
21+
}
22+
.weex-textarea:focus {
23+
outline: none;
24+
}

0 commit comments

Comments
 (0)