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

wangEditor和hasMany有冲突 #4

Open
Fykex opened this issue Oct 12, 2018 · 1 comment
Open

wangEditor和hasMany有冲突 #4

Fykex opened this issue Oct 12, 2018 · 1 comment

Comments

@Fykex
Copy link

Fykex commented Oct 12, 2018

protected function form()
    {
        $form = new Form(new Product);
        $form->text('title', '商品名称');
        $form->decimal('price', '商品价格');
        $form->image('image', '商品图');
        $form->switch('on_sale', '是否上架')->default(1);
        $form->switch('required_sale', '促销产品')->default(0);
        $form->hasMany('skus', function (Form\NestedForm $form) {
            $form->text('title', 'SKU名称');
            $form->decimal('price', 'sku价格');
            $form->text('description', 'sku描述');
            $form->number('amount', '次数');
        });
        $form->editor('description', '商品描述');
        return $form;
    }

编辑器不能正常显示,而注释掉$form->hasMany()后能正常使用

@jingzhongwa
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