From 46b20903cdc9909e74e7e9fb3c18e95c259bb18b Mon Sep 17 00:00:00 2001 From: yutent Date: Sat, 8 Apr 2023 22:43:34 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0drag=E7=BB=84=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/drag/index.js | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 src/drag/index.js diff --git a/src/drag/index.js b/src/drag/index.js new file mode 100644 index 0000000..8b6facd --- /dev/null +++ b/src/drag/index.js @@ -0,0 +1,14 @@ +import { css, html, Component, nextTick, styleMap } from '@bd/core' + +import Core from './core.js' + +class Drag extends Component { + static props = { + overflow: false, + limit: 'window', + 'disable-x': false, + 'disable-y': false + } +} + +Drag.reg('drag')