ソースを参照

نمایش ویجت محتوا با عنوان دلخواه

hgh 1 年間 前
親
コミット
9ce901c754

+ 6 - 1
src/components/Widgets/Content/ContentCarousel/ContentCarousel.vue

@@ -3,7 +3,7 @@
     <div class="contentCarousel-title">
       <div>
         <q-banner class="banner">
-          سیر مطالعاتی و سخنرانی‌ها
+          {{ getCategoryTitle }}
         </q-banner>
       </div>
       <div>
@@ -83,6 +83,11 @@ export default {
       maximizedToggle: true
     }
   },
+  computed: {
+    getCategoryTitle () {
+      return this.localOptions.categoryTitle
+    }
+  },
   mounted () {
     this.loadSlider()
   },

+ 9 - 0
src/components/Widgets/Content/ContentCarousel/OptionPanel.vue

@@ -1,6 +1,14 @@
 <template>
   <option-panel-tabs v-model:options="localOptions">
     <template #main-tab>
+      <div class="q-mt-md">
+        عنوان
+      </div>
+      <div class="row">
+        <div class="col-md-8 col-12">
+          <q-input v-model="localOptions.categoryTitle" />
+        </div>
+      </div>
       <div class="q-mt-md">
         کد دسته پدربزرگ
       </div>
@@ -53,6 +61,7 @@ export default defineComponent({
   data () {
     return {
       defaultOptions: {
+        categoryTitle: 'عنوان دلخواه برای دسته محتوای مشخص شده',
         categoryId: null,
         categoryCategoryId: null,
         categoryCategoryCategoryId: null,

+ 1 - 1
src/components/Widgets/Content/ContentCarousel/componetns/ContentItem.vue

@@ -22,7 +22,7 @@
       <q-btn color="primary"
              class="btn-show-content"
              :to="{name: 'Public.Content.Show', params: {id: content.id}}">
-        مشاهده و ثبت نام
+        مشاهده جزییات
         <svg xmlns="http://www.w3.org/2000/svg"
              width="18.387"
              height="11.502"