Skip to content

Commit b66dc1e

Browse files
release: 0.2.3
1 parent d122d89 commit b66dc1e

File tree

3 files changed

+16
-5
lines changed

3 files changed

+16
-5
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "vue-draggable-plus",
3-
"version": "0.2.2",
3+
"version": "0.2.3",
44
"author": {
55
"name": "yangpanteng",
66
"email": "[email protected]"

src/component.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@ import {
55
ref,
66
computed,
77
useAttrs,
8-
unref
8+
unref,
9+
toRefs
910
} from 'vue-demi'
1011
import { objectMap } from './utils'
1112
import { useDraggable, UseDraggableOptions } from './useDraggable'
12-
import { toRefs } from 'vue'
1313

1414
interface IProps extends UseDraggableOptions<any> {
1515
modelValue: any[]

vite.config.ts

+13-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,19 @@ import vue from '@vitejs/plugin-vue'
44
import dts from 'vite-plugin-dts'
55
import UnoCSS from 'unocss/vite'
66
export default defineConfig({
7-
plugins: [vue(), dts(), UnoCSS()],
7+
plugins: [
8+
vue(),
9+
dts({
10+
beforeWriteFile: (filePath, content) => {
11+
const _content = content.replace(/vue-demi/g, 'vue')
12+
return {
13+
filePath,
14+
content: _content
15+
}
16+
}
17+
}),
18+
UnoCSS()
19+
],
820
server: {
921
port: 5230
1022
},
@@ -17,7 +29,6 @@ export default defineConfig({
1729
formats: ['es', 'umd', 'cjs', 'iife']
1830
},
1931
rollupOptions: {
20-
// @ts-ignore
2132
external: ['vue'],
2233
output: {
2334
globals: {

0 commit comments

Comments
 (0)