فهرست منبع

Fix the highlighted style that was selected when shortcut options were displayed.

杜府 3 سال پیش
والد
کامیت
eca672bbf6

+ 1 - 1
components/package.json

@@ -1,6 +1,6 @@
 {
     "name": "stdf",
-    "version": "0.0.7",
+    "version": "0.0.8",
     "description": "Mobile Web component library based on Svelte and Tailwind",
     "main": "index.js",
     "scripts": {

+ 3 - 3
components/src/calendar/Calendar.svelte

@@ -378,10 +378,10 @@
                     {#each quickSelects as item}
                         <!-- svelte-ignore a11y-click-events-have-key-events -->
                         <div
-                            class="text-xs px-2 py-1 cursor-pointer flex-none bg-white dark:bg-black dark:shadow-white/10 shadow dark:bg-white/5 rounded"
-                            class:bg-primary={isQuickSelect && quickSelectItem === item}
+                            class="text-xs px-2 py-1 cursor-pointer flex-none bg-white dark:bg-black dark:shadow-white/10 shadow rounded"
+                            class:!bg-primary={isQuickSelect && quickSelectItem === item}
                             class:text-white={isQuickSelect && quickSelectItem === item}
-                            class:dark:bg-dark={isQuickSelect && quickSelectItem === item}
+                            class:dark:!bg-dark={isQuickSelect && quickSelectItem === item}
                             class:dark:text-black={isQuickSelect && quickSelectItem === item}
                             on:click={() => quickSelectFunc(item)}
                         >

+ 5 - 0
doc/components/calendar/version.md

@@ -0,0 +1,5 @@
+## 0.0.8
+
+-   [!tag|B|2|]修复显示快捷选项时已选项的高亮样式。
+
+<font size=1>2023-06-01</font>

+ 5 - 0
doc/components/calendar/version_en.md

@@ -0,0 +1,5 @@
+## 0.0.8
+
+-   [!tag|B|2|]Fix the highlighted style that was selected when shortcut options were displayed.
+
+<font size=1>2023-06-01</font>

+ 5 - 1
doc/guide/changelog.md

@@ -1,3 +1,7 @@
+## 0.0.8
+
+-   修复 Calendar,详见 [Calendar](https://stdf.design/#/components?nav=calendar&tab=4)。
+
 ## 0.0.7
 
 -   多语言包 Context 的值由 `lang` 改为 `STDF_lang`,避免与工程内其他语言包名称冲突。
@@ -5,7 +9,7 @@
 
 ## 0.0.6
 
--   新增 Loading 类型。详见:[Loading](https://stdf.design/#/components?nav=loading&tab=4)。
+-   新增 Loading 类型,详见 [Loading](https://stdf.design/#/components?nav=loading&tab=4)。
 
 ## 0.0.1
 

+ 5 - 1
doc/guide/changelog_en.md

@@ -1,3 +1,7 @@
+## 0.0.8
+
+-   Fix Calendar, please see [Calendar](https://stdf.design/#/components?nav=calendar&tab=4).
+
 ## 0.0.7
 
 -   The value of the Context for the multilingual package has been changed from "lang" to "STDF_lang" to avoid conflicts with the names of other language packages within the project.
@@ -5,7 +9,7 @@
 
 ## 0.0.6
 
--   Add Loading type. For more information, please see [Loading](https://stdf.design/#/components?nav=loading&tab=4).
+-   Add Loading type, For more information, please see [Loading](https://stdf.design/#/components?nav=loading&tab=4).
 
 ## 0.0.1