added theme and promote fields

pull/49/head
A1Gard 3 months ago
parent b6019d821e
commit 0a33a22a36

@ -21,6 +21,7 @@ return new class extends Migration
$table->string('bg', 2048)->nullable();
$table->integer('sort')->default(0);
$table->unsignedInteger('parent_id')->nullable()->default(null)->index();
$table->json('theme')->nullable();
$table->softDeletes();
$table->timestamps();
});

@ -27,6 +27,8 @@ return new class extends Migration
$table->unsignedInteger('dislike')->default(0);
$table->string('icon', 128)->nullable();
$table->boolean('table_of_contents')->default(0);
$table->json('theme')->nullable();
$table->string('promote')->nullable();
$table->softDeletes();
$table->timestamps();

@ -21,6 +21,7 @@ return new class extends Migration
$table->string('image',2048)->nullable()->default(null);
$table->string('bg',2048)->nullable()->default(null);
$table->unsignedInteger('parent_id')->nullable()->default(null)->index();
$table->json('theme')->nullable();
$table->softDeletes();
$table->timestamps();
});

@ -35,6 +35,8 @@ return new class extends Migration
$table->unsignedBigInteger('view')->default(0);
$table->unsignedBigInteger('sell')->default(0);
$table->unsignedTinyInteger('image_index')->default(0);
$table->json('theme')->nullable();
$table->string('promote')->nullable();
$table->softDeletes();
$table->timestamps();

@ -47,7 +47,7 @@
</template>
<template v-if="prop.type == 'multi'">
<searchable-multi-select :items="prop.optionList" value-field="value"
v-model="meta[prop.name]"></searchable-multi-select>
v-model="meta[prop.name]"></searchable-multi-select>
</template>
<template v-if="prop.type == 'date'">
<vue-date-time-picker v-model="meta[prop.name]"></vue-date-time-picker>

Loading…
Cancel
Save