Skip to content

Commit

Permalink
支持完整 CSS 屬性,如 :background-color,方便快速設置。
Browse files Browse the repository at this point in the history
  • Loading branch information
pardnchiu committed Nov 9, 2024
1 parent f6ff130 commit e423d11
Show file tree
Hide file tree
Showing 28 changed files with 27 additions and 28 deletions.
3 changes: 2 additions & 1 deletion DEPRECATION.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,5 @@
},
}
});
```
```
- 非標準 CSS 屬性寫法將不再支持。請使用標準 CSS 屬性名稱。 (例如:將 `:borderRadius` 改為 `:border-radius`;將 `:bg-color` 改為 `:background-color`)
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,6 @@
- **自動渲染**:監控資料變動並自動更新,減少手動操作。
- **輕量化**:使用原生 JS 和內建 API 撰寫,無任何外部依賴。

## 範例

- 範例一: [預覽](https://pardnchiu.github.io/web-template/target/personal-introduction-20230220) [源碼](https://github.com/pardnchiu/web-template/blob/main/target/personal-introduction-20230220)
- 範例二: [預覽](https://pardnchiu.github.io/web-template/target/20230616) [源碼](https://github.com/pardnchiu/web-template/blob/main/target/20230616)

## 安裝方式

- **從 npm 安裝**
Expand Down Expand Up @@ -628,6 +623,11 @@
</details>
## 範例
- 範例一: [預覽](https://pardnchiu.github.io/web-template/target/personal-introduction-20230220) [源碼](https://github.com/pardnchiu/web-template/blob/main/target/personal-introduction-20230220)
- 範例二: [預覽](https://pardnchiu.github.io/web-template/target/20230616) [源碼](https://github.com/pardnchiu/web-template/blob/main/target/20230616)
## 開發者
<img src="https://avatars.githubusercontent.com/u/25631760" align="left" width="96" height="96" style="margin-right: 0.5rem;" />
Expand Down
16 changes: 1 addition & 15 deletions dist/PDQuickUI.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

*[\:animation="fade-in"],
*[animation="fade-in"] {
opacity: 0;
Expand Down Expand Up @@ -67,11 +68,6 @@
}

img[lazyload]:not([lazyload=""]) {
width: 1rem;
height: 1rem;
border: 0.25rem solid rgba(0, 0, 0, 0.1);
border-top-color: #3498db;
border-radius: 50%;
animation: spin 2s ease-in-out infinite;
}

Expand All @@ -83,14 +79,4 @@ img[lazyload]:not([lazyload=""]) {
100% {
transform: rotate(360deg);
}
}

img[src]:not([src=""]) {
width: unset;
height: unset;
border: 0 solid transparent;
border-radius: 0;
animation: none;
transition: width 0.3s;
transition: height 0.3s;
}
2 changes: 1 addition & 1 deletion dist/PDQuickUI.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/PDQuickUI.module.js

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
<script src="./dist/PDQuickUI.js"></script>
</head>

<body id="app" :animation="fade-in">
<body id="app" :effect="fade-in">
<strong>延遲載入過渡</strong>
<hr>
<img :lazyload="https://picsum.photos/id/1/640/480" alt="">
Expand Down Expand Up @@ -239,13 +239,13 @@ <h4 :else>{{ title }} 4
// setTimeout(_ => {

// app.data.heading = 3
// }, 1000)
// }, 2000)
// setTimeout(_ => {

// app.data.isH2 = true
// app.data.obj.home.ary[0].name = "Test"

// }, 2000)
// }, 3000)
console.log("已渲染")
},
before_update: _ => {
Expand Down
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "pdquickui",
"version": "0.5.1",
"version": "0.5.2",
"description": "PDQuickUI contains a lightweight front-end framework designed to separate the front-end user interface and data logic.",
"main": "dist/PDQuickUI.js",
"module": "dist/PDQuickUI.module.js",
Expand All @@ -18,7 +18,8 @@
"index.html",
"src/interface.ts",
"LICENSE",
"README.md"
"README.md",
"DEPRECATION.md"
],
"repository": {
"type": "git",
Expand Down
Binary file modified src/*.ts
Binary file not shown.
Binary file removed src/Lifecycle.ts
Binary file not shown.
Binary file modified src/PDQuickUI.js
Binary file not shown.
Binary file removed src/QUI.ts
Binary file not shown.
Binary file added src/function/calc.ts
Binary file not shown.
Binary file added src/function/createElement.ts
Binary file not shown.
Binary file modified src/function/createReactiveObject.ts
Binary file not shown.
Binary file added src/function/getCamelString.ts
Binary file not shown.
Binary file modified src/function/getElementIndex.ts
Binary file not shown.
Binary file modified src/function/getUniqueID.ts
Binary file not shown.
Binary file modified src/function/htmlParser.ts
Binary file not shown.
Binary file modified src/function/printLog.ts
Binary file not shown.
Binary file modified src/function/removeEmptyTextNode.ts
Binary file not shown.
Binary file removed src/function/renderElement.ts
Binary file not shown.
Binary file modified src/listener/LazyloadListener.ts
Binary file not shown.
Binary file modified src/listener/SVGListener.ts
Binary file not shown.
Binary file added src/model/Lifecycle.ts
Binary file not shown.
Binary file added src/model/QUI.ts
Binary file not shown.
Binary file added src/model/vDOM.ts
Binary file not shown.
Binary file removed src/vDOM.ts
Binary file not shown.
11 changes: 11 additions & 0 deletions static/image/loading.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit e423d11

Please sign in to comment.