-
Notifications
You must be signed in to change notification settings - Fork 50
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
自定义的模式创建成功后如何赋值到该字段? #6
Comments
通过测试可以使用原有的json格式传参在 $form->sku('skus')->default($json) 但问题是如果 sku 是独立表的话,会带有 id ,这种形式没有传 id |
本扩展只会将SKU数据写指定的字段中,如需个性化处理数据,请在【表单回调】中处理 粗暴的解决方法可以先删除sku独立表中对应商品的数据在重新赋值
|
感谢作者的回复,我这边已经解决了,稍后提个 PR |
#7 已解决了,自行修改 vendor 中的 sku.js 已实现自身需求,作者可以参考一下 |
虽然这个方法可以,但是是不是有点影响(这样方式要解决两个问题) |
不过先删除sku再添加好象也是最好的办法,因为中间还会有删除的操作,要不就太麻烦了 |
@gg22mm 作者不维护了,但你可以看我PR那里,加一行就可以了 |
哦哦。多谢!! 是这个吧: tbody_html += ''; 不过要解决我上面的两个问题 |
合并一下这个: (修复)修改时id,库存,价格变为0 if (JSON.stringify(_this.attrs) !== JSON.stringify(attr)) {
|
这个 |
@lyne007 是的 |
编辑的时候如何对 sku 进行赋值?
The text was updated successfully, but these errors were encountered: