我将 ionic-vue 与 ionicons 5.0.1 一起使用,但在通话后
<ion-icon name="add"></ion-icon>
Run Code Online (Sandbox Code Playgroud)
我正在关注https://dev.to/aaronksaunders/build-your-first-ionic-vue-app-18kj和https://github.com/ionic-team/ionic/issues/19078教程,但卡住了和图标在 FAB 中无法显示。这是我的语法,谢谢你的帮助。
<template>
<ion-page>
....
<ion-fab vertical="bottom" horizontal="end" slot="fixed">
<ion-fab-button @click="$router.push({ name: 'new-item' })">
<ion-icon name="add"></ion-icon>
</ion-fab-button>
</ion-fab>
</ion-content>
</ion-page>
</template>
<script>
...
import { addIcons } from 'ionicons';
import * as allIcons from 'ionicons/icons';
const currentIcons = Object.keys(allIcons).map(i => {
const key = i.replace(/[A-Z]/g, letter => `-${letter.toLowerCase()}`)
if(typeof allIcons[i] === 'string') {
return {
[key]: allIcons[i],
}
}
return {
['ios-' + key]: allIcons[i].ios,
['md-' + …Run Code Online (Sandbox Code Playgroud) 我是 Laravel 8 的新手。在之前的 Laravel 版本 7 中,我们可以通过这种方式传递子域名
Route::group( [ 'domain' => '{admin}.example.com' ], function () {
Route::get('/index', 'HomeController@index($account)' );
}
Run Code Online (Sandbox Code Playgroud)
但是,在 Laravel 8 中,调用Controller 的结构代码被这样改变了。
Route::domain('{admin}.example.com')->group(function () {
Route::get('/home', [App\Http\Controllers\HomeController::class, 'index'])->name('home');
});
Run Code Online (Sandbox Code Playgroud)
我一直在寻找文档,但尚未找到。您可以向我展示文档或帮助我将子域从web.php发送/传递到控制器吗