js: define text color with gradient

This commit is contained in:
王劲鹏
2021-07-19 16:29:54 +08:00
committed by osborn
parent ae62a76160
commit 4a0c8bd171
10 changed files with 458 additions and 367 deletions

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
import { View, Property } from "../ui/view"
import { Color } from "../util/color"
import { Color, GradientColor } from "../util/color"
import { Gravity } from "../util/gravity"
import { layoutConfig } from "../util/layoutconfig"
@@ -30,7 +30,7 @@ export class Text extends View {
text?: string
@Property
textColor?: Color
textColor?: Color | GradientColor
@Property
textSize?: number