-
-
Notifications
You must be signed in to change notification settings - Fork 137
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: upgrade to support Vue 3 (#114)
Co-authored-by: EGOIST <[email protected]> BREAKING CHANGE: Require Vue 3
- Loading branch information
1 parent
3a49886
commit 007bde6
Showing
15 changed files
with
2,786 additions
and
1,967 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 |
---|---|---|
@@ -1,11 +1,12 @@ | ||
{ | ||
"presets": [ | ||
["@babel/preset-env",{ | ||
"modules": false, | ||
"loose": true | ||
}] | ||
[ | ||
"@babel/preset-env", | ||
{ | ||
"modules": false, | ||
"loose": true | ||
} | ||
] | ||
], | ||
"plugins": [ | ||
"transform-vue-jsx" | ||
] | ||
"plugins": ["@vue/babel-plugin-jsx"] | ||
} |
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,9 @@ | ||
/** @type {import('bili').Config} */ | ||
module.exports = { | ||
externals: ['vue'], | ||
output: { | ||
format: ['cjs', 'es', 'umd', 'umd-min'], | ||
fileName: 'vue-content-loader.[format][min][ext]', | ||
moduleName: 'contentLoaders' | ||
} | ||
} |
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,20 +1,18 @@ | ||
import ContentLoader from './ContentLoader' | ||
|
||
export default { | ||
name: 'BulletListLoader', | ||
functional: true, | ||
render(h, { data }) { | ||
return ( | ||
<ContentLoader {...data}> | ||
<circle cx="10" cy="20" r="8" /> | ||
<rect x="25" y="15" rx="5" ry="5" width="220" height="10" /> | ||
<circle cx="10" cy="50" r="8" /> | ||
<rect x="25" y="45" rx="5" ry="5" width="220" height="10" /> | ||
<circle cx="10" cy="80" r="8" /> | ||
<rect x="25" y="75" rx="5" ry="5" width="220" height="10" /> | ||
<circle cx="10" cy="110" r="8" /> | ||
<rect x="25" y="105" rx="5" ry="5" width="220" height="10" /> | ||
</ContentLoader> | ||
) | ||
} | ||
const BulletListLoader = (props, { attrs }) => { | ||
return ( | ||
<ContentLoader {...attrs}> | ||
<circle cx="10" cy="20" r="8" /> | ||
<rect x="25" y="15" rx="5" ry="5" width="220" height="10" /> | ||
<circle cx="10" cy="50" r="8" /> | ||
<rect x="25" y="45" rx="5" ry="5" width="220" height="10" /> | ||
<circle cx="10" cy="80" r="8" /> | ||
<rect x="25" y="75" rx="5" ry="5" width="220" height="10" /> | ||
<circle cx="10" cy="110" r="8" /> | ||
<rect x="25" y="105" rx="5" ry="5" width="220" height="10" /> | ||
</ContentLoader> | ||
) | ||
} | ||
|
||
export default BulletListLoader |
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,24 +1,22 @@ | ||
import ContentLoader from './ContentLoader' | ||
|
||
export default { | ||
name: 'CodeLoader', | ||
functional: true, | ||
render(h, { data }) { | ||
return ( | ||
<ContentLoader {...data}> | ||
<rect x="0" y="0" rx="3" ry="3" width="70" height="10" /> | ||
<rect x="80" y="0" rx="3" ry="3" width="100" height="10" /> | ||
<rect x="190" y="0" rx="3" ry="3" width="10" height="10" /> | ||
const CodeLoader = (props, { attrs }) => { | ||
return ( | ||
<ContentLoader {...attrs}> | ||
<rect x="0" y="0" rx="3" ry="3" width="70" height="10" /> | ||
<rect x="80" y="0" rx="3" ry="3" width="100" height="10" /> | ||
<rect x="190" y="0" rx="3" ry="3" width="10" height="10" /> | ||
|
||
<rect x="15" y="20" rx="3" ry="3" width="130" height="10" /> | ||
<rect x="155" y="20" rx="3" ry="3" width="130" height="10" /> | ||
<rect x="15" y="20" rx="3" ry="3" width="130" height="10" /> | ||
<rect x="155" y="20" rx="3" ry="3" width="130" height="10" /> | ||
|
||
<rect x="15" y="40" rx="3" ry="3" width="90" height="10" /> | ||
<rect x="115" y="40" rx="3" ry="3" width="60" height="10" /> | ||
<rect x="185" y="40" rx="3" ry="3" width="60" height="10" /> | ||
<rect x="15" y="40" rx="3" ry="3" width="90" height="10" /> | ||
<rect x="115" y="40" rx="3" ry="3" width="60" height="10" /> | ||
<rect x="185" y="40" rx="3" ry="3" width="60" height="10" /> | ||
|
||
<rect x="0" y="60" rx="3" ry="3" width="30" height="10" /> | ||
</ContentLoader> | ||
) | ||
} | ||
<rect x="0" y="60" rx="3" ry="3" width="30" height="10" /> | ||
</ContentLoader> | ||
) | ||
} | ||
|
||
export default CodeLoader |
Oops, something went wrong.