小编Sur*_*tap的帖子

Laravel 8 Jetstream || 未定义变量:_instance(查看:C:\xampp\htdocs\veye-website\resources\views\vendor\jetstream\components\modal.blade.php

我正在尝试使用 Laravel 8 Livewire Modal Popup 进行数据输入并进入另一个页面。但是我没有定义变量 _instance 并且无法理解它。

@entangle($attributes->wire('model'))

当我从 views/vendor/jetstream/components/modal.blade.php 中删除它时,这一行会产生这个错误。错误会消失。

34号线。

<div id="<?php echo e($id); ?>" x-data="{ show: <?php if ((object) ($attributes->wire('model')) instanceof \Livewire\WireDirective) : ?>window.Livewire.find('<?php echo e($_instance->id); ?>').entangle('<?php echo e($attributes->wire('model')->value(

    x-show="show"

    x-on:close.stop="show = false"

    x-on:keydown.escape.window="show = false"

    class="fixed top-0 inset-x-0 px-4 pt-6 sm:px-0 sm:flex sm:items-top sm:justify-center"

    style="display: none;">
Run Code Online (Sandbox Code Playgroud)

php laravel laravel-livewire laravel-8 laravel-jetstream

4
推荐指数
2
解决办法
2204
查看次数

在div之后的悬停按钮上更改div css属性

将鼠标悬停在按钮上,但div不会更改其属性

通过将鼠标悬停在其后创建的另一个标记(按钮)上来更改div的CSS属性

.zz {
  text-align: center;
  line-height: 100px;
  font-size: 20px;
  font-weight: bold;
  width: 100px;
  height: 100px;
  color: white;
  background: red;
  border: 4px solid black;
  margin: 100px;
  -webkit-transition: transform 1s;
  -webkit-transition-timing: ease-in-out;
  -webkit-transition-delay: 0.1s;
  float: left;
}

#btn:hover~.zz {
  background: green;
  -webkit-transform: rotate(40deg) translate(100px, 20px);
}
Run Code Online (Sandbox Code Playgroud)
<div class="zz"> this is div</div>
<button id="btn"> hover me </button>
Run Code Online (Sandbox Code Playgroud)

html css css3

0
推荐指数
1
解决办法
1445
查看次数