🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

vuedraggable-es

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vuedraggable-es - npm Package Compare versions

Comparing version

to
4.1.1

12

dist/index.es.js

@@ -37,3 +37,3 @@ var __defProp = Object.defineProperty;

}
const console = getConsole();
const console$1 = getConsole();
function cached(fn) {

@@ -213,3 +213,9 @@ const cache = /* @__PURE__ */ Object.create(null);

}
const getHtmlElementFromNode = ({ el }) => el;
const getHtmlElementFromNode = (node) => {
const el = node.el || Array.isArray(node.children) && node.children[0].el.parentNode;
if (!el) {
console.error("\u4F7F\u7528 transition-group , \u9700\u8981\u5728slot\u4E2Dtemplate\u5185\u81F3\u5C112\u5C42html\u6807\u7B7E");
}
return el || {};
};
const addContext = (domElement, context) => domElement.__draggable_context = context;

@@ -397,3 +403,3 @@ const getContext = (domElement) => domElement.__draggable_context;

if (this.list !== null && this.modelValue !== null) {
console.error("modelValue and list props are mutually exclusive! Please set one or another.");
console$1.error("modelValue and list props are mutually exclusive! Please set one or another.");
}

@@ -400,0 +406,0 @@ },

{
"name": "vuedraggable-es",
"version": "4.1.0",
"version": "4.1.1",
"description": "draggable component for vue",

@@ -5,0 +5,0 @@ "license": "MIT",

@@ -13,3 +13,11 @@ <p align="center"><img width="140"src="https://raw.githubusercontent.com/SortableJS/Vue.Draggable/master/logo.svg?sanitize=true"></p>

### With npm or yarn
```bash
yarn add vuedraggable-es // 改了个名字,esm模块
npm i -S vuedraggable-es
```
Vue ESM component (Vue.js 3.0) allowing drag-and-drop and synchronization with view model array.

@@ -53,10 +61,4 @@

### With npm or yarn
```bash
yarn add vuedraggable-es
npm i -S vuedraggable-es
```
### with direct link

@@ -63,0 +65,0 @@ ```html

@@ -1,2 +0,12 @@

const getHtmlElementFromNode = ({ el }) => el;
const getHtmlElementFromNode = node => {
const el =
node.el || (Array.isArray(node.children) && node.children[0].el.parentNode);
if (!el) {
console.error(
"使用 transition-group , 需要在slot中template内至少2层html标签"
);
}
return el || {};
};
const addContext = (domElement, context) =>

@@ -3,0 +13,0 @@ (domElement.__draggable_context = context);