Skip to content

Commit

Permalink
fix: eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
Sanqi committed Nov 9, 2022
1 parent 44d10c6 commit e025292
Show file tree
Hide file tree
Showing 26 changed files with 496 additions and 97 deletions.
176 changes: 176 additions & 0 deletions packages/quark-react/CHANGELOG.md

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions packages/quark-react/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@quarkd/quark-react",
"version": "1.0.15",
"version": "1.0.16",
"description": "Web components react reactify",
"types": "lib/index.d.ts",
"typings": "lib/index.d.ts",
Expand All @@ -24,7 +24,7 @@
"*.js"
],
"dependencies": {
"quarkd": "^1.0.14",
"quarkd": "^1.0.16",
"@quarkd/reactify": "^1.0.3"
},
"devDependencies": {
Expand Down
176 changes: 176 additions & 0 deletions packages/quark-react/src/docs

Large diffs are not rendered by default.

26 changes: 26 additions & 0 deletions packages/quark/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,30 @@
# 更新日志
### [1.0.16](https://github.com/hellof2e/quark-design/compare/v1.0.15...v1.0.16) (2022-11-09)


### Documentation

* Button props type 标点符号修改 ([e3fcaf1](https://github.com/hellof2e/quark-design/commit/e3fcaf1d4dce515c83666f5f9691f4022abc43c9))


### 🎉 Features

* code format ([839f68d](https://github.com/hellof2e/quark-design/commit/839f68d6b8e3ddbc183da1cbc0257f296f519f2f))
* code format ([52d0f9e](https://github.com/hellof2e/quark-design/commit/52d0f9eb21bee9e1309ad866f5ebda621ca15f1c))
* code format for example ([2882ba0](https://github.com/hellof2e/quark-design/commit/2882ba08f9e9ef5cb330c3dbe28837268bc0557f))
* code format for example/src/**/*.ts ([b608ede](https://github.com/hellof2e/quark-design/commit/b608edef520f72c6d9116752b795b38ffab92b45))
* code format for quarkd ([fd380b4](https://github.com/hellof2e/quark-design/commit/fd380b4bcd0fa18fac0a0a6fa32aad8aed0aa371))
* **picker:** Add confirmtext a props ([f751e1b](https://github.com/hellof2e/quark-design/commit/f751e1bfb1c4fbbf370cff5b3cf078c74bf300c1))
* prettier --write packages/quark-core/src/**/*.ts ([b83c12f](https://github.com/hellof2e/quark-design/commit/b83c12f7462479beba7f69038227237a5d637795))
* prettier --write packages/quark-icons/src/**/*.ts ([97eaf43](https://github.com/hellof2e/quark-design/commit/97eaf434f82cf3ab19ca9b6c85066b8bafd6bee0))
* prettier --write packages/quark-react/src/**/*.ts ([080ce93](https://github.com/hellof2e/quark-design/commit/080ce93f66d37abfa4899029a96065bde7527bf0))
* prettier --write packages/quark-reactify/src/**/*.ts ([7eaad5e](https://github.com/hellof2e/quark-design/commit/7eaad5e2fcb085278912ea056c6ff2084db87123))
* prettier --write packages/quark/src/**/*.test.js ([6c22936](https://github.com/hellof2e/quark-design/commit/6c229366fb5a138d40e59a3f00a60043d5aa8d94))
* refactor type ([8701741](https://github.com/hellof2e/quark-design/commit/8701741f85f8004ed7148cc008461a6f6c986eb2))
* release 1.0.15 ([ff710cb](https://github.com/hellof2e/quark-design/commit/ff710cb0cee486d0c8c987efbbf743bec0728043))
* remove example mobile-react files ([909edc8](https://github.com/hellof2e/quark-design/commit/909edc8c4e391bcdf3991e64c3a22b1908b030cf))
* update quark-icon readme ([44d10c6](https://github.com/hellof2e/quark-design/commit/44d10c61723eadc2d101b391374b2ffa92fbe069))

### [1.0.15](https://github.com/hellof2e/quark-design/compare/v1.0.14...v1.0.15) (2022-11-08)


Expand Down
2 changes: 1 addition & 1 deletion packages/quark/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "quarkd",
"version": "1.0.15",
"version": "1.0.16",
"description": "Mobile UI Components built on Web Components.",
"main": "lib/index.js",
"module": "lib/index.js",
Expand Down
2 changes: 1 addition & 1 deletion packages/quark/rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ const options = [
commonjs(),
nodeResolve({
extensions,
modulesOnly: true,
// modulesOnly: true,
}),
babel({
babelHelpers: "runtime",
Expand Down
8 changes: 4 additions & 4 deletions packages/quark/src/card/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,16 @@ import style from "./style.css";
})
class QuarkCard extends QuarkElement {
@property()
title: string = "";
title = "";

@property()
content: string = "";
content = "";

@property()
tips: string = "";
tips = "";

@property()
desc: string = "";
desc = "";

render() {
return (
Expand Down
12 changes: 6 additions & 6 deletions packages/quark/src/cascadepicker/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,16 +43,16 @@ class QuarkCascadePicker extends QuarkElement {
}

@property({ type: Boolean })
open: boolean = false;
open = false;

@property()
title: string = "";
title = "";

@property()
name: string = "";
name = "";

@property({ type: Boolean })
bottomhidden: boolean = false;
bottomhidden = false;

@state()
pickerData: string[][] = [];
Expand All @@ -63,7 +63,7 @@ class QuarkCascadePicker extends QuarkElement {

selectedIndexPair: number[] = [];

depth: number = 1;
depth = 1;

wheelWrapper: any = createRef();

Expand Down Expand Up @@ -111,7 +111,7 @@ class QuarkCascadePicker extends QuarkElement {
return this.getDepths(column.children[0], depth);
}

getValues(needRestore: boolean = true) {
getValues(needRestore = true) {
if (needRestore) {
this.restorePosition();
}
Expand Down
6 changes: 3 additions & 3 deletions packages/quark/src/countdown/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,13 @@ class QuarkButton extends QuarkElement {
}

@property()
time: string = "0";
time = "0";

@property()
format: string = "hh:mm:ss";
format = "hh:mm:ss";

@state()
totalTime: number = 0;
totalTime = 0;

timeCounter: any = null;

Expand Down
10 changes: 5 additions & 5 deletions packages/quark/src/datetimepicker/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,22 +51,22 @@ class QuarkDatetimePicker extends QuarkElement {
}

@property({ type: Boolean })
open: boolean = false;
open = false;

@property()
value: string;

@property({ type: String })
title: string = "";
title = "";

@property({ type: String })
type: DateType = "datetime";

@property({ type: String })
mindate: string = "";
mindate = "";

@property({ type: String })
maxdate: string = "";
maxdate = "";

@property({ type: Number })
minhour: number | string = 0;
Expand All @@ -81,7 +81,7 @@ class QuarkDatetimePicker extends QuarkElement {
maxminute: number | string = 59;

@property({ type: Boolean })
showtoolbar: boolean = false;
showtoolbar = false;

@property({ type: String })
confirmbuttontext: string = Locale.current.confirm;
Expand Down
24 changes: 12 additions & 12 deletions packages/quark/src/dialog/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,13 +44,13 @@ export interface CustomEvent {
})
class QuarkDialog extends QuarkElement {
@property()
zindex: string = "999";
zindex = "999";

@property()
title: string = "";
title = "";

@property({ type: Boolean })
notitle: boolean = false;
notitle = false;

@property()
content: string | HTMLElement = "";
Expand All @@ -62,37 +62,37 @@ class QuarkDialog extends QuarkElement {
canceltext: string = Locale.current.cancel;

@property()
type: string = "modal";
type = "modal";

@property({ type: Boolean })
open: boolean = false;
open = false;

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

@property({ type: Boolean })
nofooter: boolean = false;
nofooter = false;

@property({ type: Boolean })
hideclose: boolean = false;
hideclose = false;

@property({ type: Boolean })
maskclosable: boolean = false;
maskclosable = false;

@property({ type: Boolean })
btnvertical: boolean = false;
btnvertical = false;

btnActive: any = null;

dRemove: boolean = false;
dRemove = false;

close: any = null;

cancel: any = null;

confirm: any = null;

hasChangeBodyStyle: boolean = false;
hasChangeBodyStyle = false;

bodyRef: any = createRef();

Expand Down
26 changes: 26 additions & 0 deletions packages/quark/src/docs
Original file line number Diff line number Diff line change
@@ -1,4 +1,30 @@
# 更新日志
### [1.0.16](https://github.com/hellof2e/quark-design/compare/v1.0.15...v1.0.16) (2022-11-09)


### Documentation

* Button props type 标点符号修改 ([e3fcaf1](https://github.com/hellof2e/quark-design/commit/e3fcaf1d4dce515c83666f5f9691f4022abc43c9))


### 🎉 Features

* code format ([839f68d](https://github.com/hellof2e/quark-design/commit/839f68d6b8e3ddbc183da1cbc0257f296f519f2f))
* code format ([52d0f9e](https://github.com/hellof2e/quark-design/commit/52d0f9eb21bee9e1309ad866f5ebda621ca15f1c))
* code format for example ([2882ba0](https://github.com/hellof2e/quark-design/commit/2882ba08f9e9ef5cb330c3dbe28837268bc0557f))
* code format for example/src/**/*.ts ([b608ede](https://github.com/hellof2e/quark-design/commit/b608edef520f72c6d9116752b795b38ffab92b45))
* code format for quarkd ([fd380b4](https://github.com/hellof2e/quark-design/commit/fd380b4bcd0fa18fac0a0a6fa32aad8aed0aa371))
* **picker:** Add confirmtext a props ([f751e1b](https://github.com/hellof2e/quark-design/commit/f751e1bfb1c4fbbf370cff5b3cf078c74bf300c1))
* prettier --write packages/quark-core/src/**/*.ts ([b83c12f](https://github.com/hellof2e/quark-design/commit/b83c12f7462479beba7f69038227237a5d637795))
* prettier --write packages/quark-icons/src/**/*.ts ([97eaf43](https://github.com/hellof2e/quark-design/commit/97eaf434f82cf3ab19ca9b6c85066b8bafd6bee0))
* prettier --write packages/quark-react/src/**/*.ts ([080ce93](https://github.com/hellof2e/quark-design/commit/080ce93f66d37abfa4899029a96065bde7527bf0))
* prettier --write packages/quark-reactify/src/**/*.ts ([7eaad5e](https://github.com/hellof2e/quark-design/commit/7eaad5e2fcb085278912ea056c6ff2084db87123))
* prettier --write packages/quark/src/**/*.test.js ([6c22936](https://github.com/hellof2e/quark-design/commit/6c229366fb5a138d40e59a3f00a60043d5aa8d94))
* refactor type ([8701741](https://github.com/hellof2e/quark-design/commit/8701741f85f8004ed7148cc008461a6f6c986eb2))
* release 1.0.15 ([ff710cb](https://github.com/hellof2e/quark-design/commit/ff710cb0cee486d0c8c987efbbf743bec0728043))
* remove example mobile-react files ([909edc8](https://github.com/hellof2e/quark-design/commit/909edc8c4e391bcdf3991e64c3a22b1908b030cf))
* update quark-icon readme ([44d10c6](https://github.com/hellof2e/quark-design/commit/44d10c61723eadc2d101b391374b2ffa92fbe069))

### [1.0.15](https://github.com/hellof2e/quark-design/compare/v1.0.14...v1.0.15) (2022-11-08)


Expand Down
6 changes: 3 additions & 3 deletions packages/quark/src/empty/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@ class QuarkEmpty extends QuarkElement {
}

@property()
title: string = "";
title = "";

@property()
desc: string = "";
desc = "";

@property()
image: string = "";
image = "";

@property()
imagesize: string;
Expand Down
30 changes: 15 additions & 15 deletions packages/quark/src/field/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,46 +33,46 @@ export interface CustomEvent {
})
class QuarkField extends QuarkElement {
@property()
name: string = "";
name = "";

@property()
label: string = "";
label = "";

@property()
defaultvalue: string = "";
defaultvalue = "";

@property()
value: string = "";
value = "";

@property()
type: string = "";
type = "";

@property()
placeholder: string = "";
placeholder = "";

@property()
max: string = "";
max = "";

@property()
maxlength: string = "";
maxlength = "";

@property()
min: string = "";
min = "";

@property()
minlength: string = "";
minlength = "";

@property()
errormsg: string = "";
errormsg = "";

@property({ type: Boolean })
disabled: boolean = false;
disabled = false;

@property({ type: Boolean })
readonly: boolean = false;
readonly = false;

@property({ type: Boolean })
required: boolean = false;
required = false;

rules: any[] = [];

Expand All @@ -81,7 +81,7 @@ class QuarkField extends QuarkElement {
errorRef: any = createRef();

@state()
showError: boolean = false;
showError = false;

evenFn = (type: string) => (e: Event) => {
if (!this.inputRef && !this.inputRef.current) return;
Expand Down
4 changes: 2 additions & 2 deletions packages/quark/src/form/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ import validateAll, {
})
class QuarkForm extends QuarkElement {
@property()
value: string = "";
value = "";

@property({ type: Boolean })
showtext: boolean = false;
showtext = false;

formRef: any = createRef();

Expand Down
Loading

0 comments on commit e025292

Please sign in to comment.