<Test :dark="true" :dark="false"/>
. Немного нелогично, похоже на неопределенное или незадокументированное поведение для случая с совпадением имен.defineProps({
dark:Boolean
})
тогда конкретно dark проваливаться перестанет.<Test v-bind="$attrs" :dark="true"/>
заработает: defineOptions({
inheritAttrs:false
})
<Test :dark="true" v-bind="$attrs"/>
- поведение останется текущимbackground: linear-gradient(to bottom right, rgba(48, 62, 254, 0.48), rgba(48, 62, 254, .13));
$price = ['price'];
$sale = ['sale'];
$price = $_POST['price'];
$sale = $_POST['sale'];
@import "tailwindcss";
@theme {
--width1: 1em;
}
@layer components {
.my {
@apply bg-green-200;
@media (width >= theme(--breakpoint-md)) {
--width1: 3em;
}
@media (width >= theme(--breakpoint-xl)) {
--width1: 7em;
}
}
}
grid-template-areas:
"a a b c"
"d e e f";
grid-column: span 2 / span 2;
на соответствующие ячейки: https://play.tailwindcss.com/TFCFv701GP return new class extends Migration
{
/**
* Run the migrations.
*/
public function up(): void
{
$prefix = DB::getTablePrefix();
$agreementTypesTable = "agreement_types";
$profilesTable = "profiles";
$agreementProfileTable = "agreement_profile";
$sqlQuery = DB::table($agreementTypesTable)
->select([
"$agreementTypesTable.id as agreement_type_id",
"$agreementTypesTable.last_agreement_id as last_agreement_id",
"$profilesTable.id as profile_id",
DB::raw("!ISNULL($agreementProfileTable.profile_id) as last_agreement_approved"),
])
->join($profilesTable, DB::raw('1'), '=', DB::raw('1'))
->leftJoin($agreementProfileTable, function (JoinClause $join) use ($agreementProfileTable, $agreementTypesTable, $profilesTable) {
$join->on("$agreementProfileTable.agreement_id", "=", "$agreementTypesTable.last_agreement_id")
->on("$agreementProfileTable.profile_id", "=", "$profilesTable.id");
})
->toSql();
DB::statement("CREATE VIEW ${prefix}agreement_type_profile AS ($sqlQuery)");
}
/**
* Reverse the migrations.
*/
public function down(): void
{
$prefix = DB::getTablePrefix();
DB::statement("DROP VIEW ${prefix}agreement_type_profile");
}
};
public function scopeWithLastApprovedByProfile(Builder $query, string $profileId): void
{
$query->withExists(['lastApproved as last_agreement_approved' => function ($q) use ($profileId) {
$q->where('profile_id', $profileId);
}]);
}
AgreementType::whereNotNull('last_agreement_id')->withLastApprovedByProfile($profile->id);