Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug Report] PopupPicker控件的内容字体颜色被固定为#999 #3263

Open
Haixing-Hu opened this issue Nov 25, 2018 · 1 comment
Open

Comments

@Haixing-Hu
Copy link
Contributor

VUX version

2.9.2

OS/Browsers version

All operating system / All browser

Vue version

2.5.17

Code

<template>
  <group class="form" label-width="4.5em" label-margin-right="1em" label-align="right">
    <x-input title="姓&emsp;&emsp;名" v-model="name"
             placeholder="请填写姓名">
    </x-input>
    <popup-picker title="性&emsp;&emsp;别" v-model="gender"
                placeholder="请选择性别" :data="genderData"
                show-name value-text-align="left"
                @on-change="onGenderChange">
    </popup-picker>
  </group>
</template>

<script>
import {
  Group,
  XInput,
  PopupPicker,
} from 'vux';

export default {
  name: 'test-form',
  components: {
    Group,
    XInput,
    PopupPicker,
  },
  data() {
    return {
      name: '',
      gender: [],
      genderData: [[{
        name: '男',
        value: 'MALE',
      }, {
        name: '女',
        value: 'FEMALE',
      }]],
    };
  },
};
</script>
<style>
.form {
  color: red;
}
</style>

Steps to reproduce

  1. 创建一个简单的Vue项目;
  2. 使用上述代码实现一个简单的表单,包含一个XInput和一个PopupPicker控件;
  3. .form的字体颜色设置为红色;
  4. 表单上的XInput控件的标题字体为红色,输入的内容字体也为红色;
  5. PopupPicker控件的标题字体颜色为红色,但选择后显示的内容字体颜色永远固定为#999

What is Expected?

表单上的XInput控件的标题字体为红色,,输入的内容字体也为红色;
PopupPicker控件的标题字体颜色为红色,但选择后显示的内容字体颜色也应该为红色;

What is actually happening?

表单上的XInput控件的标题字体为红色,,输入的内容字体也为红色;
PopupPicker控件的标题字体颜色为红色,但选择后显示的内容字体颜色永远固定为#999

2d7d998c-df30-46d6-a1f5-6213f1400d96

Haixing-Hu pushed a commit to Haixing-Hu/vux that referenced this issue Nov 25, 2018
@Marybigdog
Copy link

解决了吗 我浏览器模拟强制改颜色是可以的 到了手机端完全是灰的

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants