我想用Angular Material来实现Notch Outline Material主题。 Material Design提供了常规安装说明(https://material.io/develop/web/components/input-controls/notched-outline),但很少提供有关将其与Angular本身一起使用(https://material.io/develop/web/docs/framework-integration)的信息。有没有人成功地将MDC Web(例如Notched Outline)实现到框架中?你的过程是什么?
答案 0 :(得分:3)
角度材料Form field支持Material Notched Outline主题。将render() {
const { isLoading, temperature } = this.state;
return (
<View style={styles.container}>
{isLoading ?
(
<Text>Fetching the weather</Text>
) : (
<Weather weather={weatherCondition} temperature={temperature}/>
)}
</View>
);
}
设置为weight_lbs = input('weight (lbs): ')
# I just converted the type of "weight_lbs" to Float and removed the last parenthesis
weight_kg = float(weight_lbs) * 0.5
print(weight_kg)
。
appearance
请参见Stackblitz demo。