Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
hung4564 committed Jun 8, 2023
1 parent 6d6d321 commit 6744b2c
Show file tree
Hide file tree
Showing 3 changed files with 168 additions and 168 deletions.
196 changes: 98 additions & 98 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,98 +1,98 @@
<h1 align="center">Vue libraryy draggable</h1>

# Vue libraryy draggable

## Install

```
npm i @hungpv4564/vue-library-draggable
```

```
yarn add @hungpv4564/vue-library-draggable
```

## Usage

```vue
<template>
<div id="app">
<DraggableContianer>
<DraggablePopup
show
title="popup 1"
:right="10"
:bottom="10"
:width="400"
>
<div style="height: 100vh"></div>
</DraggablePopup>
<DraggableSidebar title="siderbar 1" show>
<div style="height: 100vh"></div>
</DraggableSidebar>
<DraggableFloat
show
title="popup 1"
:right="10"
:bottom="10"
:width="400"
headerLocation="bottom"
>
<div style="height: 100vh"></div>
</DraggableFloat>
</DraggableContianer>
</div>
</template>
<script>
import {
DraggableContianer,
DraggablePopup,
DraggableSidebar,
DraggableFloat
} from "@hungpv4564/vue-library-draggable";
export default {
name: "App",
components: { DraggableContianer, DraggablePopup, DraggableSidebar }
};
</script>
<style>
* {
padding: 0;
margin: 0;
}
body,
html,
#app {
height: 100%;
}
</style>
```

## Components

- [draggable-container](docs/draggable-container.md)
- [draggable-bottom](docs/draggable-bottom.md)
- [draggable-popup](docs/draggable-popup.md)
- [draggable-sidebar](docs/draggable-sidebar.md)
- [draggable-float](docs/draggable-float.md)

## Contributing

Any contribution to the code or any part of the documentation and any idea and/or suggestion are very welcome.

```bash
# serve with hot reload at localhost:8080
npm run serve

# distribution build
npm run build

```

## License

[MIT license](LICENSE)
<h1 align="center">Vue libraryy draggable</h1>

# Vue libraryy draggable

## Install

```
npm i @hungpv97/vue-library-draggable
```

```
yarn add @hungpv97/vue-library-draggable
```

## Usage

```vue
<template>
<div id="app">
<DraggableContianer>
<DraggablePopup
show
title="popup 1"
:right="10"
:bottom="10"
:width="400"
>
<div style="height: 100vh"></div>
</DraggablePopup>
<DraggableSidebar title="siderbar 1" show>
<div style="height: 100vh"></div>
</DraggableSidebar>
<DraggableFloat
show
title="popup 1"
:right="10"
:bottom="10"
:width="400"
headerLocation="bottom"
>
<div style="height: 100vh"></div>
</DraggableFloat>
</DraggableContianer>
</div>
</template>
<script>
import {
DraggableContianer,
DraggablePopup,
DraggableSidebar,
DraggableFloat
} from "@hungpv97/vue-library-draggable";
export default {
name: "App",
components: { DraggableContianer, DraggablePopup, DraggableSidebar }
};
</script>
<style>
* {
padding: 0;
margin: 0;
}
body,
html,
#app {
height: 100%;
}
</style>
```

## Components

- [draggable-container](docs/draggable-container.md)
- [draggable-bottom](docs/draggable-bottom.md)
- [draggable-popup](docs/draggable-popup.md)
- [draggable-sidebar](docs/draggable-sidebar.md)
- [draggable-float](docs/draggable-float.md)

## Contributing

Any contribution to the code or any part of the documentation and any idea and/or suggestion are very welcome.

```bash
# serve with hot reload at localhost:8080
npm run serve

# distribution build
npm run build

```

## License

[MIT license](LICENSE)
114 changes: 57 additions & 57 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,57 +1,57 @@
{
"main": "./dist/draggable.common.js",
"name": "@hungpv4564/vue-library-draggable",
"author": {
"name": "hung.pv"
},
"repository": {
"type": "git",
"url": "https://github.com/hung4564/vue-library-draggable"
},
"private": false,
"publishConfig": {
"access": "public",
"registry": "https://registry.npmjs.org/"
},
"bugs": "https://github.com/hung4564/vue-library-draggable/issues",
"license": "MIT",
"version": "0.0.1",
"files": [
"dist/*",
"types/*"
],
"types": "./types/index.d.ts",
"scripts": {
"serve": "vue-cli-service serve",
"web": "NODE_ENV=webproduction vue-cli-service build",
"deploy": "node scripts/gh-pages-deploy.js",
"build": "vue-cli-service build --target lib --name draggable src/index.js",
"lint": "vue-cli-service lint"
},
"dependencies": {
"@vue/runtime-dom": "3.2.37",
"core-js": "^3.8.3",
"minify-css-string": "^1.0.0",
"sass": "^1.53.0",
"sass-loader": "^13.0.2",
"vue": "^2.6.14",
"vue-drag-resize": "^1.5.4",
"vue-material-design-icons": "^5.2.0",
"vue-resize-directive": "^1.2.0"
},
"devDependencies": {
"@babel/core": "^7.12.16",
"@babel/eslint-parser": "^7.12.16",
"@vue/cli-plugin-babel": "^5.0.0",
"@vue/cli-plugin-eslint": "^5.0.0",
"@vue/cli-service": "^5.0.0",
"eslint": "^7.32.0",
"eslint-config-prettier": "^8.3.0",
"eslint-plugin-prettier": "^4.0.0",
"eslint-plugin-vue": "^8.0.3",
"execa": "^7.1.1",
"npm-run-all": "^4.1.5",
"prettier": "^2.4.1",
"vue-template-compiler": "^2.6.14"
}
}
{
"main": "./dist/draggable.common.js",
"name": "@hungpv97/vue-library-draggable",
"author": {
"name": "hung.pv"
},
"repository": {
"type": "git",
"url": "https://github.com/hung4564/vue-library-draggable"
},
"private": false,
"publishConfig": {
"access": "public",
"registry": "https://registry.npmjs.org/"
},
"bugs": "https://github.com/hung4564/vue-library-draggable/issues",
"license": "MIT",
"version": "0.0.1",
"files": [
"dist/*",
"types/*"
],
"types": "./types/index.d.ts",
"scripts": {
"serve": "vue-cli-service serve",
"web": "NODE_ENV=webproduction vue-cli-service build",
"deploy": "node scripts/gh-pages-deploy.js",
"build": "vue-cli-service build --target lib --name draggable src/index.js",
"lint": "vue-cli-service lint"
},
"dependencies": {
"@vue/runtime-dom": "3.2.37",
"core-js": "^3.8.3",
"minify-css-string": "^1.0.0",
"sass": "^1.53.0",
"sass-loader": "^13.0.2",
"vue": "^2.6.14",
"vue-drag-resize": "^1.5.4",
"vue-material-design-icons": "^5.2.0",
"vue-resize-directive": "^1.2.0"
},
"devDependencies": {
"@babel/core": "^7.12.16",
"@babel/eslint-parser": "^7.12.16",
"@vue/cli-plugin-babel": "^5.0.0",
"@vue/cli-plugin-eslint": "^5.0.0",
"@vue/cli-service": "^5.0.0",
"eslint": "^7.32.0",
"eslint-config-prettier": "^8.3.0",
"eslint-plugin-prettier": "^4.0.0",
"eslint-plugin-vue": "^8.0.3",
"execa": "^7.1.1",
"npm-run-all": "^4.1.5",
"prettier": "^2.4.1",
"vue-template-compiler": "^2.6.14"
}
}
26 changes: 13 additions & 13 deletions types/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import { VueConstructor } from "vue";
declare module "@hungpv4564/vue-library-draggable" {
const DraggableContianer: VueConstructor;
const DraggablePopup: VueConstructor;
const DraggableSidebar: VueConstructor;
const DraggableBottom: VueConstructor;
export {
DraggableContianer,
DraggablePopup,
DraggableSidebar,
DraggableBottom
};
}
import { VueConstructor } from "vue";
declare module "@hungpv97/vue-library-draggable" {
const DraggableContianer: VueConstructor;
const DraggablePopup: VueConstructor;
const DraggableSidebar: VueConstructor;
const DraggableBottom: VueConstructor;
export {
DraggableContianer,
DraggablePopup,
DraggableSidebar,
DraggableBottom
};
}

0 comments on commit 6744b2c

Please sign in to comment.