小编sha*_*har的帖子

为什么wire:click在laravel livewire中不起作用

laaravel 版本:8.0
livewire 版本:2.x

你好呀

我是 laravel livewire 的新手,面临一个奇怪的问题!。为了执行我使用 wire:click 的操作,可以在我的 admin-login.blade.php 中的以下代码中看到

@section('content')
<div class="admin-login display-flex  flex-align-items-center flex-justify-content-center">
    <button wire:click="toDo">{{$login}}</button>
    <div class="admin-form display-flex flex-direction-column flex-justify-content-center" >
        @livewire('header',['name'=> 'Admin Login','width'=> '100%','height' => '20%'])
    <form  class=" display-flex flex-direction-column flex-justify-content-center"  >
        <section style="margin: 2%;">
        <label for="Email">Email :<span style="color: red">*</span></label>
        <input type="email" required>
        </section>
        <section style="margin: 2%;">
            <label for="Password">Password :<span style="color: red">*</span></label>
            <input type="password" required>
        </section>

            <button  style="width: 40%; height: 5vh; align-self: center;justify-self: flex-end;">Login</button>

    </form>
    </div>
</div>
@endsection
Run Code Online (Sandbox Code Playgroud)

我的布局目录中的 app.blade.php 文件是

<!doctype html> …
Run Code Online (Sandbox Code Playgroud)

laravel laravel-livewire

2
推荐指数
1
解决办法
4012
查看次数

使用 Chartjs 将图像放置在饼图切片上

Chartjs 版本:3.6.0 vue 版本:2.6.11。我正在尝试使用 Chartjs 和 Vue 构建图表。一切都很顺利。但有一个我无法解决的挑战。我试图将图像放置在饼图切片上,如下图所示 在此输入图像描述

这只是我想要实现的想法的参考。如果您知道解决方案,请帮助我。谢谢你!

javascript vue.js chart.js

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

标签 统计

chart.js ×1

javascript ×1

laravel ×1

laravel-livewire ×1

vue.js ×1