Skip to content

Commit 9e7fc58

Browse files
committed
updated docs
1 parent d047807 commit 9e7fc58

File tree

6 files changed

+111
-187
lines changed

6 files changed

+111
-187
lines changed
Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
<template>
22
<div
3-
v-if="modelValue"
3+
v-if="value"
44
class="w-screen h-screen fixed z-50 inset-0 flex bg-gray-600 bg-opacity-50"
5-
@click.self="$emit('update:modelValue', false)"
5+
@click.self="$emit('input', false)"
66
>
77
<div
8-
class="max-w-md md:relative m-auto p-8 bg-white rounded w-full h-auto shadow"
8+
class="max-w-md md:relative m-auto bg-white rounded w-full h-auto shadow"
99
>
1010
<slot />
1111
</div>
@@ -16,8 +16,7 @@
1616
export default {
1717
name: 'Dialog',
1818
props: {
19-
modelValue: Boolean,
19+
value: Boolean,
2020
},
21-
emits: ['update:modelValue'],
2221
}
2322
</script>

docs/.vuepress/components/PlayGround.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
</button>
4545
<Dialog v-model="exportDialogVisible">
4646
<pre
47-
class="m-0"
47+
class="m-0 !bg-white text-black"
4848
style="margin: 0"
4949
>{{ config }}</pre
5050
>

docs/.vuepress/config.js

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
const { description } = require('../../package')
2+
const { resolve } = require('path')
3+
const WindiCSSWebpackPlugin = require('windicss-webpack-plugin')
24

35
module.exports = {
46
// dev server port
@@ -68,6 +70,23 @@ module.exports = {
6870
]
6971
}
7072
]
71-
}
73+
},
74+
plugins: [
75+
new WindiCSSWebpackPlugin({
76+
preflight: false,
77+
scan: {
78+
include: [resolve(__dirname, './**/*.{vue,html,md}')],
79+
exclude: ['node_modules/**/*', '.git/**/*']
80+
},
81+
theme: {
82+
extend: {
83+
colors: {
84+
primary: '#3eaf7c'
85+
}
86+
}
87+
},
88+
plugins: [require('windicss/plugin/forms')]
89+
})
90+
]
7291
}
7392
}

docs/.vuepress/enhanceApp.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import VueNumber from '../../src'
22

3-
import 'tailwindcss/dist/tailwind.css'
3+
import 'windi.css'
44

55
export default ({
66
Vue, // the version of Vue being used in the VuePress app

package.json

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@
3636
"@typescript-eslint/eslint-plugin": "^5.38.1",
3737
"@typescript-eslint/parser": "^5.38.1",
3838
"@vitest/coverage-c8": "^0.28.5",
39+
"@vue/babel-preset-jsx": "^1.0.0",
3940
"@vue/eslint-config-prettier": "^7.0.0",
4041
"@vue/eslint-config-typescript": "^11.0.2",
4142
"@vue/test-utils": "^1.3.0",
@@ -51,17 +52,17 @@
5152
"rollup-plugin-filesize": "^9.1.2",
5253
"rollup-plugin-typescript2": "^0.34.1",
5354
"rollup-plugin-vue": "^5.1.6",
54-
"tailwindcss": "^1.0.0",
55+
"ts-loader": "^6.0.0",
5556
"typescript": "^4.9.5",
5657
"vite": "^4.1.1",
5758
"vite-plugin-vue2": "^1.9.3",
5859
"vitest": "^0.28.5",
5960
"vue": "^2.6.11",
6061
"vue-jest": "^3.0.5",
6162
"vue-template-compiler": "^2.6.11",
62-
"@vue/babel-preset-jsx": "^1.0.0",
63-
"ts-loader": "^6.0.0",
64-
"vuepress": "1.9.9"
63+
"vuepress": "1.9.9",
64+
"windicss": "^3.5.6",
65+
"windicss-webpack-plugin": "^1.7.8"
6566
},
6667
"bugs": {
6768
"url": "https://github.com/coders-tm/vue-number-format/issues"

0 commit comments

Comments
 (0)