Skip to content

Commit 3cf89b7

Browse files
committed
updated docs
1 parent 57d6667 commit 3cf89b7

File tree

7 files changed

+221
-16
lines changed

7 files changed

+221
-16
lines changed

docs/.vuepress/components/Dialog.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<div
88
class="max-w-md md:relative m-auto p-8 bg-white rounded w-full h-auto shadow"
99
>
10-
<slot />
10+
<slot></slot>
1111
</div>
1212
</div>
1313
</template>

docs/.vuepress/config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ module.exports = {
4545
},
4646

4747
/**
48-
* Apply plugins,ref:https://v1.vuepress.vuejs.org/zh/plugin/
48+
* Apply plugins,ref:https://v1.vuepress.vuejs.org/plugin/
4949
*/
50-
plugins: ['@vuepress/plugin-back-to-top', '@vuepress/plugin-medium-zoom']
50+
plugins: []
5151
}

docs/.vuepress/enhanceApp.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@
33
*
44
* https://v1.vuepress.vuejs.org/guide/basic-config.html#app-level-enhancements
55
*/
6+
import VueNumber from '../../'
7+
8+
import 'tailwindcss/dist/base.css'
9+
import 'tailwindcss/dist/components.css'
10+
import 'tailwindcss/dist/utilities.css'
611

712
export default ({
813
Vue, // the version of Vue being used in the VuePress app
@@ -11,4 +16,5 @@ export default ({
1116
siteData // site metadata
1217
}) => {
1318
// ...apply enhancements for the site.
19+
Vue.use(VueNumber)
1420
}

docs/.vuepress/plugins/windicss.js

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
const { defineConfig } = require('windicss/helpers')
2+
const { generateCSS } = require('windicss')
3+
4+
module.exports = (options = {}, ctx) => {
5+
const windiOptions = defineConfig({
6+
scan: {
7+
dirs: ['.vuepress/theme', '.vuepress/components'],
8+
exclude: ['node_modules', '.git', '.vuepress']
9+
}
10+
})
11+
12+
return {
13+
name: 'vuepress-plugin-windicss',
14+
clientDynamicModules() {
15+
return {
16+
name: 'windi.css',
17+
content: generateCSS(windiOptions)
18+
}
19+
}
20+
}
21+
}

docs/.vuepress/styles/index.scss renamed to docs/.vuepress/styles/index.styl

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
[type='week'],
1313
[multiple],
1414
textarea,
15-
select {
15+
select
1616
-webkit-appearance: none;
1717
-moz-appearance: none;
1818
appearance: none;
@@ -24,4 +24,12 @@ select {
2424
padding-left: 0.75rem;
2525
font-size: 1rem;
2626
line-height: 1.5rem;
27-
}
27+
28+
img, svg, video, canvas, audio, iframe, embed, object
29+
display: inherit
30+
31+
p
32+
margin-block-start: 1em;
33+
margin-block-end: 1em;
34+
margin-inline-start: 0px;
35+
margin-inline-end: 0px;

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,14 +51,16 @@
5151
"rollup-plugin-filesize": "^9.1.2",
5252
"rollup-plugin-typescript2": "^0.34.1",
5353
"rollup-plugin-vue": "^5.1.6",
54+
"tailwindcss": "^1.0.0",
5455
"typescript": "^4.9.5",
5556
"vite": "^4.1.1",
5657
"vite-plugin-vue2": "^1.9.3",
5758
"vitest": "^0.28.5",
5859
"vue": "^2.6.11",
5960
"vue-jest": "^3.0.5",
6061
"vue-template-compiler": "^2.6.11",
61-
"vuepress": "^1.9.9"
62+
"vuepress": "^1.9.9",
63+
"windicss": "^3.5.6"
6264
},
6365
"bugs": {
6466
"url": "https://github.com/coders-tm/vue-number-format/issues"

0 commit comments

Comments
 (0)