-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
93 changed files
with
3,405 additions
and
2,525 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
root = true | ||
|
||
[*] | ||
indent_style = tab | ||
indent_size = 4 |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,3 @@ | ||
node_modules | ||
package-lock.json | ||
|
||
*.zip | ||
.Ds_store | ||
*.tgz | ||
*.log | ||
.vscode | ||
.idea | ||
|
||
public/demos | ||
public/dist | ||
public/stats.html | ||
dist | ||
cypress/screenshots | ||
cypress/videos |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
@wx:registry=https://npm.svar.dev/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{ | ||
"useTabs": true, | ||
"semi": true, | ||
"singleQuote": false, | ||
"quoteProps": "as-needed", | ||
"trailingComma": "es5", | ||
"bracketSpacing": true, | ||
"arrowParens": "avoid", | ||
"svelteSortOrder": "options-scripts-markup-styles", | ||
"vueIndentScriptAndStyle": true, | ||
"plugins": [ | ||
"prettier-plugin-svelte" | ||
], | ||
"overrides": [{ "files": "*.svelte", "options": { "parser": "svelte" } }] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,83 @@ | ||
<script> | ||
import { Button } from "../../src/index"; | ||
import { getContext } from "svelte"; | ||
const { showNotice } = getContext("wx-helpers"); | ||
function click() { | ||
showNotice({ | ||
text: "Button clicked", | ||
}); | ||
} | ||
</script> | ||
|
||
<div class="demo-box"> | ||
<h3>Default button</h3> | ||
<Button {click} title="Click me and I will do nothing">Click Me</Button> | ||
<Button disabled={true} {click}>Click Me</Button> | ||
</div> | ||
|
||
<div class="demo-box"> | ||
<h3>Primary button</h3> | ||
<Button type={"primary"} {click}>Click Me</Button> | ||
<Button type={"primary"} disabled={true} {click}>Click Me</Button> | ||
</div> | ||
|
||
<div class="demo-box"> | ||
<h3>Secondary button</h3> | ||
<Button type={"secondary"} {click}>Click Me</Button> | ||
<Button type={"secondary"} disabled={true} {click}>Click Me</Button> | ||
</div> | ||
|
||
<div class="demo-box"> | ||
<h3>Danger button</h3> | ||
<Button type={"danger"} {click}>Click Me</Button> | ||
<Button type={"danger"} disabled={true} {click}>Click Me</Button> | ||
</div> | ||
|
||
<div class="demo-box"> | ||
<h3>Link button</h3> | ||
<p> | ||
<Button type={"link"} icon="wxi-alert" {click}>Click Me</Button> | ||
</p> | ||
<p> | ||
<Button type={"link"} {click}>Click Me</Button> | ||
</p> | ||
<p> | ||
<Button type={"link"} disabled={true} {click}>Click Me</Button> | ||
</p> | ||
</div> | ||
|
||
<div class="demo-box"> | ||
<h3>Block buttons</h3> | ||
<p> | ||
<Button type={"primary block"}>Click Me</Button> | ||
</p> | ||
<p> | ||
<Button type={"secondary block"}>Click Me</Button> | ||
</p> | ||
<div style="display:flex;"> | ||
<Button type={"secondary block"}>Click Me</Button> | ||
| ||
<Button type={"primary block"}>Click Me</Button> | ||
</div> | ||
</div> | ||
|
||
<div class="demo-box"> | ||
<h3>Icon buttons</h3> | ||
<Button icon="wxi-alert">With Icon</Button> | ||
<Button type={"primary"} icon="wxi-alert">With Icon</Button> | ||
<Button type={"secondary"} icon="wxi-alert">With Icon</Button> | ||
<Button icon="wxi-alert" /> | ||
<Button type={"primary"} icon="wxi-alert" /> | ||
<Button type={"secondary"} icon="wxi-alert" /> | ||
<Button type={"danger"} icon="wxi-alert" /> | ||
<Button disabled icon="wxi-alert" /> | ||
</div> | ||
|
||
<div class="demo-box"> | ||
<h3>Multi-line button</h3> | ||
<p> | ||
<Button type={"primary"}>Click me<br />a few times</Button> | ||
</p> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.