Skip to content

Commit

Permalink
feat: remove console in demo and update readme.md
Browse files Browse the repository at this point in the history
  • Loading branch information
xsf0105 committed Aug 28, 2024
1 parent d6a4ad2 commit b32f542
Show file tree
Hide file tree
Showing 9 changed files with 13 additions and 9 deletions.
1 change: 1 addition & 0 deletions README.en-US.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ Quarkc,跨技术栈/原生组件构建工具。

| author | github address | screenshot / link
| ---- | ---- | ----- |
| @xsf0105 | https://xsf0105.github.io/piano/ | https://xsf0105.github.io/piano/ |
| @xsf0105 | https://github.com/xsf0105/dark-light-element | https://unpkg.com/dark-light-element@latest/demo.html |
| @yuhaiyang1 | https://github.com/yuhaiyang1/quarkc-time | https://unpkg.com/[email protected]/demo.html |
| @hellof2e | https://github.com/hellof2e/quark-doc-header | ![1685501041275](https://github.com/hellof2e/quark-core/assets/14307551/24dd5626-e6a9-452c-9c95-c2cdb8891573 ) https://quarkc.hellobike.com/#/ |
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,7 @@ export default defineConfig({

| 作者 | github 地址 | 截图 / 链接
| ---- | ---- | ----- |
| @xsf0105 | https://xsf0105.github.io/piano/ | https://xsf0105.github.io/piano/ |
| @xsf0105 | https://github.com/xsf0105/dark-light-element | https://unpkg.com/dark-light-element@latest/demo.html |
| @hellof2e | https://github.com/hellof2e/quark-doc-header | ![1685501041275](https://github.com/hellof2e/quark-core/assets/14307551/24dd5626-e6a9-452c-9c95-c2cdb8891573) https://quarkc.hellobike.com/#/ |
| @yuhaiyang1 | https://github.com/yuhaiyang1/quarkc-time | https://unpkg.com/[email protected]/demo.html |
Expand Down
10 changes: 5 additions & 5 deletions demo4gluang/src/app-header/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,26 +15,26 @@ class MyComponent extends connectStore(QuarkElement) {

@watch('showAuthorName')
handleShowChange(newVal) {
console.log('handleShowChange', newVal)
// console.log('handleShowChange', newVal)
store.author = newVal ? 'Sun Tzu' : 'Guess who?';
this.$nextTick(() => {
const { current: btn } = this.btn;
if (btn) {
console.log('nextTick, content of btn:', btn.textContent)
// console.log('nextTick, content of btn:', btn.textContent)
}
})
}

handleSwitch = () => {
this.showAuthorName = !this.showAuthorName;
}

componentDidUpdate(propName, oldVal, newVal) {
console.log('componentDidUpdate', propName, oldVal, newVal)
// console.log('componentDidUpdate', propName, oldVal, newVal)
}

componentUpdated() {
console.log('componentUpdated', this.showAuthorName, store.author)
// console.log('componentUpdated', this.showAuthorName, store.author)
}

btn = createRef(null)
Expand Down
2 changes: 1 addition & 1 deletion examples/using-cdn/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
});

rate.addEventListener("change", (event) => {
console.log("value changed", event.detail);
// console.log("value changed", event.detail);
});
});
</script>
Expand Down
2 changes: 1 addition & 1 deletion examples/using-local-bundle/src/lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ let l = class extends r {
});
}
componentDidMount() {
console.log("dom loaded!");
// console.log("dom loaded!");
}
render() {
return r.h(
Expand Down
1 change: 1 addition & 0 deletions packages/core/README.en-US.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ Quarkc, a cross technology stack / native component building tool.

| author | github address | screenshot / link
| ---- | ---- | ----- |
| @xsf0105 | https://xsf0105.github.io/piano/ | https://xsf0105.github.io/piano/ |
| @yuhaiyang1 | https://github.com/yuhaiyang1/quarkc-time | https://unpkg.com/[email protected]/demo.html |
| @khno | https://github.com/khno/quark-element-demo-celebrate | https://unpkg.com/quarkc-demo-celebrate@latest/demo.html |
| @hellof2e | https://github.com/hellof2e/quark-doc-header | ![1685501041275](https://github.com/hellof2e/quark-core/assets/14307551/24dd5626-e6a9-452c-9c95-c2cdb8891573 ) https://quarkc.hellobike.com/#/ |
Expand Down
1 change: 1 addition & 0 deletions packages/core/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,7 @@ export default defineConfig({

| 作者 | github 地址 | 截图 / 链接
| ---- | ---- | ----- |
| @xsf0105 | https://xsf0105.github.io/piano/ | https://xsf0105.github.io/piano/ |
| @xsf0105 | https://github.com/xsf0105/dark-light-element | https://unpkg.com/dark-light-element@latest/demo.html |
| @hellof2e | https://github.com/hellof2e/quark-doc-header | ![1685501041275](https://github.com/hellof2e/quark-core/assets/14307551/24dd5626-e6a9-452c-9c95-c2cdb8891573) https://quarkc.hellobike.com/#/ |
| @yuhaiyang1 | https://github.com/yuhaiyang1/quarkc-time | https://unpkg.com/[email protected]/demo.html |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class MyComponent extends QuarkElement {

componentDidMount() {
// 生命周期
console.log("dom loaded!")
// console.log("dom loaded!")
// ...
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class MyComponent extends QuarkElement {

componentDidMount() {
// 生命周期
console.log("dom loaded!")
// console.log("dom loaded!")
// ...
}

Expand Down

0 comments on commit b32f542

Please sign in to comment.