Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
xsf0105 committed Nov 8, 2022
2 parents 1dacf3d + f110339 commit 33e4275
Show file tree
Hide file tree
Showing 8 changed files with 28 additions and 15 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@
微信群已满员,请添加下面管理员拉你入群谢谢~

<div style="display:flex;">
<img src="https://m.hellobike.com/resource/helloyun/15697/N-Exc_qun.png?x-oss-process=image/quality,q_80" width='230'/>
<img src="https://user-images.githubusercontent.com/14307551/198974064-8d02f3af-3cef-4f89-8744-bb860dd56121.png" width='230'/>
</div>

Expand Down
5 changes: 3 additions & 2 deletions packages/quark-core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"package.json"
],
"scripts": {
"build": "rm -rf lib && cross-env BABEL_ENV=umd rollup -c",
"build": "rimraf lib && cross-env BABEL_ENV=umd rollup -c",
"release:major": "npm run release -- --release-as major",
"release:minor": "npm run release -- --release-as minor",
"release:patch": "npm run release -- --release-as patch",
Expand All @@ -36,7 +36,8 @@
"rollup-plugin-terser": "^7.0.2",
"sinon": "^12.0.1",
"standard-version": "^9.3.0",
"typescript": "^4.1.5"
"typescript": "^4.1.5",
"rimraf": "3.0.2"
},
"repository": {
"type": "git",
Expand Down
5 changes: 3 additions & 2 deletions packages/quark-icons/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"package.json"
],
"scripts": {
"build": "rm -rf umd && rm -rf lib && cross-env BABEL_ENV=umd rollup -c",
"build": "rimraf umd && rimraf lib && cross-env BABEL_ENV=umd rollup -c",
"release:major": "npm run release -- --release-as major",
"release:minor": "npm run release -- --release-as minor",
"release:patch": "npm run release -- --release-as patch",
Expand Down Expand Up @@ -59,7 +59,8 @@
"stylelint-scss": "^4.2.0",
"typescript": "^4.1.5",
"vite": "^2.3.4",
"standard-version": "^9.3.0"
"standard-version": "^9.3.0",
"rimraf": "3.0.2"
},
"engines": {
"node": ">=12.0.0"
Expand Down
5 changes: 3 additions & 2 deletions packages/quark-react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"package.json"
],
"scripts": {
"build": "rm -rf lib && npx tsc",
"build": "rimraf lib && npx tsc",
"release:major": "npm run release -- --release-as major",
"release:minor": "npm run release -- --release-as minor",
"release:patch": "npm run release -- --release-as patch",
Expand Down Expand Up @@ -55,7 +55,8 @@
"rollup-plugin-terser": "^7.0.2",
"sinon": "^12.0.1",
"standard-version": "^9.3.0",
"typescript": "^4.1.5"
"typescript": "^4.1.5",
"rimraf": "3.0.2"
},
"repository": {
"type": "git",
Expand Down
5 changes: 3 additions & 2 deletions packages/quark-reactify/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"main": "lib/index.js",
"types": "lib/index.d.ts",
"scripts": {
"build": "rm -rf lib && npx tsc",
"build": "rimraf lib && npx tsc",
"release:major": "npm run release -- --release-as major",
"release:minor": "npm run release -- --release-as minor",
"release:patch": "npm run release -- --release-as patch",
Expand All @@ -23,7 +23,8 @@
"@types/react": "^16.0.0",
"react": "^16.10.0",
"typescript": "^4.3.5",
"standard-version": "^9.3.0"
"standard-version": "^9.3.0",
"rimraf": "3.0.2"
},
"author": "",
"license": "MIT",
Expand Down
7 changes: 4 additions & 3 deletions packages/quark/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
"main": "lib/index.js",
"module": "lib/index.js",
"scripts": {
"tsc": "rm -rf types && npx tsc -b ./tsconfig.types.json && node ./typesGenerat.js",
"build": "rm -rf umd && rm -rf lib && cross-env BABEL_ENV=umd rollup -c && npm run tsc",
"tsc": "rimraf types && npx tsc -b ./tsconfig.types.json && node ./typesGenerat.js",
"build": "rimraf umd && rimraf lib && cross-env BABEL_ENV=umd rollup -c && npm run tsc",
"release:major": "npm run release -- --release-as major",
"release:minor": "npm run release -- --release-as minor",
"release:patch": "npm run release -- --release-as patch",
Expand Down Expand Up @@ -66,7 +66,8 @@
"typescript": "^4.1.5",
"rollup-plugin-filesize": "^9.1.2",
"postcss-px-to-viewport": "^1.1.1",
"postcss": "8.4.16"
"postcss": "8.4.16",
"rimraf": "3.0.2"
},
"engines": {
"node": ">=12.0.0"
Expand Down
13 changes: 10 additions & 3 deletions packages/quark/src/list/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,15 +60,22 @@ class QuarkList extends QuarkElement {
})
loading: boolean = false;

@property({
type: Boolean
})
immediatecheck: boolean = true;

placeholderRef: any = createRef();

componentDidMount() {
this.check({ auto: true });
window.addEventListener('scroll', this.check);
if(this.immediatecheck) {
setTimeout(() => this.check({ auto: true }), 50);
}
window.addEventListener('scroll', this.check, true);
}

componentWillUnmount() {
window.removeEventListener('scroll', this.check);
window.removeEventListener('scroll', this.check, true);
}

shouldComponentUpdate(
Expand Down
2 changes: 1 addition & 1 deletion yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -10977,7 +10977,7 @@ rimraf@2:
dependencies:
glob "^7.1.3"

rimraf@^3.0.0, rimraf@^3.0.2:
rimraf@3.0.2, rimraf@^3.0.0, rimraf@^3.0.2:
version "3.0.2"
resolved "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz#f1a5402ba6220ad52cc1282bac1ae3aa49fd061a"
integrity sha1-8aVAK6YiCtUswSgrrBrjqkn9Bho=
Expand Down

0 comments on commit 33e4275

Please sign in to comment.