-
-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add new
vue-resizor
package (#174)
- Loading branch information
Showing
32 changed files
with
994 additions
and
249 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,6 @@ | ||
--- | ||
"vue-qrcode": patch | ||
"vue-qrious": patch | ||
--- | ||
|
||
chore: add `package.json` into `exports` |
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 @@ | ||
--- | ||
"vue-resizor": minor | ||
--- | ||
|
||
feat: add new `vue-resizor` package, it just works |
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,10 +1,10 @@ | ||
root = true | ||
root=true | ||
|
||
[*] | ||
indent_style = space | ||
indent_size = 2 | ||
tab_width = 2 | ||
end_of_line = lf | ||
charset = utf-8 | ||
trim_trailing_whitespace = true | ||
insert_final_newline = true | ||
indent_style=space | ||
indent_size=2 | ||
tab_width=2 | ||
end_of_line=lf | ||
charset=utf-8 | ||
trim_trailing_whitespace=true | ||
insert_final_newline=true |
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,10 +1,12 @@ | ||
dist | ||
lib | ||
packages/*/lib/* | ||
LICENSE | ||
*.json | ||
*.lock | ||
*.log | ||
*.ts | ||
*.tsbuildinfo | ||
*.tsx | ||
*.yaml | ||
*.yml |
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,3 +1,6 @@ | ||
{ | ||
"extends": "@1stg/stylelint-config" | ||
"extends": "@1stg/stylelint-config", | ||
"rules": { | ||
"color-function-notation": null | ||
} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
<template> | ||
<div class="parent"> | ||
<vue-resizor v-model:indicators="indicators"> | ||
<div class="child">Child 1</div> | ||
<div class="child">Child 2</div> | ||
</vue-resizor> | ||
</div> | ||
</template> | ||
<script lang="ts" setup> | ||
import { ref } from 'vue' | ||
import VueResizor, { Indicator } from 'vue-resizor' | ||
import 'vue-resizor/styles.css' | ||
const indicators = ref<Indicator[]>() | ||
</script> | ||
<style lang="less" scoped> | ||
.parent { | ||
height: 200px; | ||
background-color: pink; | ||
} | ||
.child { | ||
height: 20%; | ||
~ .child { | ||
height: 80%; | ||
background-color: lightgreen; | ||
min-height: 0; | ||
} | ||
} | ||
</style> |
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,2 +1,3 @@ | ||
export { default as VueQrcodeDemo } from './VueQrcodeDemo.vue' | ||
export { default as VueQriousDemo } from './VueQriousDemo.vue' | ||
export { default as VueResizorDemo } from './VueResizorDemo.vue' |
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,8 +1,15 @@ | ||
import vueJsx from '@vitejs/plugin-vue-jsx' | ||
import { defineConfig } from 'vitepress' | ||
|
||
const description = process.env.npm_package_description | ||
|
||
export default defineConfig({ | ||
title: [process.env.npm_package_name, description].join(' - '), | ||
description, | ||
vite: { | ||
plugins: [ | ||
// @ts-expect-error | ||
vueJsx(), | ||
], | ||
}, | ||
}) |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,11 +12,12 @@ | |
"packageManager": "[email protected]", | ||
"scripts": { | ||
"build": "run-p build:*", | ||
"build:r": "r -e named -f cjs", | ||
"build:r": "r -e named -f cjs --vue-jsx", | ||
"build:styles": "lessc --source-map packages/vue-resizor/src/styles.less packages/vue-resizor/lib/styles.css", | ||
"build:ts": "tsc -b", | ||
"clean": "rimraf dist packages/*/{lib,*.tsbuildinfo}", | ||
"docs:build": "vitepress build .", | ||
"docs:dev": "vitepress dev .", | ||
"docs:dev": "vitepress dev . --open", | ||
"docs:serve": "vitepress serve . --port 8000", | ||
"lint": "run-p lint:*", | ||
"lint:es": "eslint . --cache -f friendly", | ||
|
@@ -29,13 +30,15 @@ | |
}, | ||
"devDependencies": { | ||
"@1stg/app-config": "^10.0.1", | ||
"@1stg/lib-config": "^13.0.0", | ||
"@changesets/changelog-github": "^0.5.0", | ||
"@changesets/cli": "^2.27.1", | ||
"@d-ts/vue": "^1.0.0", | ||
"@pkgr/rollup": "^6.0.0", | ||
"@types/lodash-es": "^4.17.12", | ||
"@types/node": "^18.19.8", | ||
"@types/qrcode": "^1.5.5", | ||
"@vitejs/plugin-vue-jsx": "^3.1.0", | ||
"less": "^4.2.0", | ||
"lodash-es": "^4.17.21", | ||
"postcss": "^8.4.33", | ||
"qrcode": "^1.5.3", | ||
|
@@ -45,6 +48,7 @@ | |
"sass": "^1.70.0", | ||
"type-coverage": "^2.27.1", | ||
"typescript": "^5.3.3", | ||
"vite": "^5.0.12", | ||
"vitepress": "^0.22.4", | ||
"vue": "^3.4.15", | ||
"vue-tsc": "^1.8.27", | ||
|
@@ -61,6 +65,7 @@ | |
"ignoreFiles": [ | ||
"**/*.d.ts" | ||
], | ||
"ignoreNested": true, | ||
"ignoreNonNullAssertion": true, | ||
"showRelativePath": true, | ||
"strict": true, | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
# Change Log |
Oops, something went wrong.
53ebd70
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
vue – ./
rx-vue.vercel.app
vue-git-master-jounqin.vercel.app
vue-jounqin.vercel.app
vue-rx.vercel.app