我有一个用Cordova创建的iOS应用程序,刚刚向苹果支付了99美元,将其上传到App Store.我已经创建了应用程序存档,但在管理器中显示Upload to App Store…为灰色,我已经"分发需要在Apple开发人员计划中注册".
这是我的偏好帐户,我尝试删除并重新添加
我错过了什么?
我正在使用div's as按钮转换为实际按钮,现在我需要让按钮填满容器的整个宽度.

码:
.container {
background-color: #ddd;
padding: 10px;
max-width: 500px;
margin-left: auto;
margin-right: auto;
}
.button {
display: block;
background-color: #bbb;
margin: 10px;
padding: 10px
}Run Code Online (Sandbox Code Playgroud)
<div class="container">
<div class="button">
Fills the full width
</div>
<button class="button">
Does not fill the full width
</button>
</div>Run Code Online (Sandbox Code Playgroud)
添加display:block到.button不工作(虽然我敢肯定,一定是在回答部分?),而且也没有left: 0; right: 0.width: 100%一些工作,但它忽略容器的填充属性,并使按钮太靠近容器的右侧.
这是JSFiddle:http://jsfiddle.net/mn40mz2n/
我从一个非常简单的 PropTypes 验证开始:
name: PropTypes.string.isRequired,
Run Code Online (Sandbox Code Playgroud)
现在我只需要在某个其他条件为假时才需要字符串,所以:
name: ({name, otherProp}) => {
if (otherProp === 'foo') return null;
if (typeof name === 'string') return null;
return new Error('Error');
}
Run Code Online (Sandbox Code Playgroud)
在这种情况下这很好,但我真正希望在第一次检查后能够做的是在string.isRequired我的自定义验证器中运行常规 PropTypes 检查,例如:
name: ({name, otherProp}) => {
if (otherProp === 'foo') return null;
return PropTypes.string.isRequired;
}
Run Code Online (Sandbox Code Playgroud)
似乎应该有一种方法可以做到这一点PropTypes.checkPropTypes,但我无法弄清楚。
新的 Material UI DatePicker有一个 renderInput 属性,它获取渲染文本字段的函数。工作得很好,除了这个函数被渲染两次,并且在第一次渲染时它只接收它需要的一些道具。
当使用 React 测试库渲染时,仅发生第一次渲染。值得注意的是,endAdornment 不存在。因此不可能getByRole('button')单击按钮来打开选择器模式。
我尝试了waitFor()和的各种排列rerender(),但似乎无法显示按钮。
这是一个代码沙箱,显示了被注销的 renderInput 参数的两个版本。(我还在那里进行了一个测试来寻找按钮,但不幸的是我也对测试做了一些错误的事情并且它没有运行。)
有什么建议么?