ideaz-element
Version:
<p align="center"> <a href="" target="_blank" rel="noopener noreferrer"> <img src="./docs/public/logo.svg" alt="Ideaz Element" width="180" style="width: 180px;" /> </a> </p>
1 lines • 885 B
Source Map (JSON)
{"version":3,"file":"tableDraggable.cjs","sources":["../../../packages/directives/tableDraggable.ts"],"sourcesContent":["import Sortable from 'sortablejs'\nimport type { Directive, DirectiveBinding } from 'vue'\n\nexport interface DraggableOption {\n selector: string\n options: Sortable.Options\n}\n\nexport const draggable: Directive = {\n mounted(el: HTMLElement, binding: DirectiveBinding) {\n const options: DraggableOption[] = binding.value\n options.forEach((item) => {\n // eslint-disable-next-line no-new\n new Sortable(item.selector ? el.querySelector(item.selector) as HTMLElement : el, item.options)\n })\n },\n}\n"],"names":["draggable","el","binding","item","sortable_esm"],"mappings":"4LAQOA,EAAA,CAA6B,QAAAC,EAAAC,EAAA,CAEhCA,EAAA,MACA,QAAAC,GAAA,CAEE,IAAAC,EAAA,QAAAD,EAAA,SAAAF,EAAA,cAAAE,EAAA,QAAA,EAAAF,EAAAE,EAAA,OAAA,CAA8F,CAAA,CAC/F,CAEL"}