Skip to content

Commit

Permalink
[stdf]Fix Pagination component and update version to 0.4.5
Browse files Browse the repository at this point in the history
  • Loading branch information
dufu1991 committed Mar 28, 2024
1 parent 60665f1 commit 49b09a8
Show file tree
Hide file tree
Showing 8 changed files with 20 additions and 39 deletions.
6 changes: 3 additions & 3 deletions demo/src/routes/+layout.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,9 @@
// mode 是否是指定组件模式
// whether mode is specified component mode
const isComponentMode = mode != 'production' && mode != 'development' && mode != 'english' ? true : false;
const isComponentMode = mode != 'production' && mode != 'development' && mode != 'english';
$: showLeft = isIframe === '1' || $page.url.pathname === '/' || isComponentMode ? false : true;
$: showLeft = !(isIframe === '1' || $page.url.pathname === '/' || isComponentMode);
let theme = localStorage.getItem('theme') === 'dark' ? 'dark' : 'light';
// 设置主题
Expand Down Expand Up @@ -113,7 +113,7 @@
}
}
sessionStorage.setItem('lang', lang);
const isZh = lang === 'zh_CN' ? true : false;
const isZh = lang === 'zh_CN';
setContext('STDF_lang', isZh ? zh_CN : en_US);
onMount(() => {
Expand Down
16 changes: 3 additions & 13 deletions doc/components/pagination/version.md
Original file line number Diff line number Diff line change
@@ -1,18 +1,8 @@
<!-- "[!tag|A|0|]"表示一个 tag,其中A表示新增,B表示 BUG,O表示优化,第二个数字表示 BUG 等级,0暂无意义。 -->
<!-- "[!issue|dufu1991|]"表示一个 issue 提出者,其中 dufu1991 是提出者的id。 -->
<!-- "[!contribute|dufu1991|]"表示一个贡献者,其中 eric1932 是贡献者的id。 -->
## 0.4.5

<!-- 记得带上版本号和更新日期,以下是一个示例:
- [!tag|B|1|]修复页码显示错乱问题,关联 [#22](https://github.com/any-tdf/stdf/pull/22)[!contribute|lemonTree345|]

## 0.0.1
- [!tag|B|1|]严重 BUG。[!contribute|dufu1991|][!issue|dufu1991|]
- [!tag|B|2|]一般 BUG。
- [!tag|B|3|]轻微 BUG。
- [!tag|O|0|]优化。
- [!tag|A|0|]新增。
<font size=1>2022-07-18</font> -->
<font size=1>2024-03-28</font>

## 0.1.3

Expand Down
16 changes: 3 additions & 13 deletions doc/components/pagination/version_en.md
Original file line number Diff line number Diff line change
@@ -1,18 +1,8 @@
<!-- "[!tag|A|0|]" This represents a tag, where A stands for addition, B stands for bug, and O stands for optimization. The second digit represents the severity level of the bug, with 0 having no significance. -->
<!-- "[!issue|dufu1991|]" Indicates an issue submitter, where dufu1991 is the submitter's ID. -->
<!-- "[!contribute|dufu1991|]" Indicates a contributor, where dufu1991 is the ID of the contributor. -->
## 0.4.5

<!-- Remember to include the version number and update date. Here is an example:
- [!tag|B|1|]Fixed the problem of incorrect page number display. Related to [#22](https://github.com/any-tdf/stdf/pull/22). [!contribute|lemonTree345|]

## 0.0.1
- [!tag|B|1|]严重 BUG。[!contribute|dufu1991|][!issue|dufu1991|]
- [!tag|B|2|]一般 BUG。
- [!tag|B|3|]轻微 BUG。
- [!tag|O|0|]优化。
- [!tag|A|0|]新增。
<font size=1>2022-07-18</font> -->
<font size=1>2024-03-28</font>

## 0.1.3

Expand Down
4 changes: 4 additions & 0 deletions doc/guide/changelog.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 0.4.5

- 修复 Pagination 组件,详见 [Pagination](https://stdf.design/#/components?nav=pagination&tab=4)

## 0.4.4

- 增强 Tabs 组件,详见 [Tabs](https://stdf.design/#/components?nav=tabs&tab=4)
Expand Down
4 changes: 4 additions & 0 deletions doc/guide/changelog_en.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 0.4.5

- Fixed the Pagination component, please see [Pagination](https://stdf.design/#/components?nav=pagination&tab=4).

## 0.4.4

- Enhanced Tabs components, please see [Tabs](https://stdf.design/#/components?nav=tabs&tab=4).
Expand Down
2 changes: 1 addition & 1 deletion packages/stdf/components/modal/Modal.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@
size={0}
duration={300}
outDuration={150}
maskClosable={showBtn ? false : true}
maskClosable={!showBtn}
position="center"
radiusPosition="all"
radius="lg"
Expand Down
9 changes: 1 addition & 8 deletions packages/stdf/components/pagination/Page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,7 @@
bold: 'font-bold text-primary dark:text-dark border-transparent',
};
const radiusClass = {
base: 'rounded',
md: 'rounded-md',
lg: 'rounded-lg',
xl: 'rounded-xl',
full: 'rounded-full',
none: 'rounded-none',
};
const radiusClass = { base: 'rounded', md: 'rounded-md', lg: 'rounded-lg', xl: 'rounded-xl', full: 'rounded-full', none: 'rounded-none' };
</script>

<!-- svelte-ignore a11y-click-events-have-key-events -->
Expand Down
2 changes: 1 addition & 1 deletion packages/stdf/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "stdf",
"version": "0.4.4",
"version": "0.4.5",
"description": "Mobile web component library based on Svelte and Tailwind",
"main": "./components/index.js",
"svelte": "./components/index.js",
Expand Down

0 comments on commit 49b09a8

Please sign in to comment.