@geektech/geek-ui
Advanced tools
Comparing version 1.3.0 to 1.3.1
import { defineComponent, computed, openBlock, createElementBlock, normalizeClass, renderSlot } from "vue"; | ||
import { i as isNumber } from "./is.5088f8a5.js"; | ||
import { i as isNumber } from "./is.e38f1191.js"; | ||
const colProps = { | ||
@@ -4,0 +4,0 @@ span: { |
@@ -40,2 +40,8 @@ import { AllowedComponentProps } from 'vue'; | ||
declare type __VLS_WithTemplateSlots_14<T, S> = T & { | ||
new (): { | ||
$slots: S; | ||
}; | ||
}; | ||
declare type __VLS_WithTemplateSlots_2<T, S> = T & { | ||
@@ -100,2 +106,4 @@ new (): { | ||
declare type BoundaryPosition = 'start' | 'end' | 'center' | 'nearest'; | ||
declare const _default: { | ||
@@ -111,2 +119,39 @@ install: (app: App<any>) => void; | ||
export declare const GAnchor: __VLS_WithTemplateSlots_14<DefineComponent<{ | ||
boundary: { | ||
type: PropType<number | BoundaryPosition>; | ||
default: string; | ||
}; | ||
scrollContainer: { | ||
type: PropType<string | HTMLElement | Window>; | ||
}; | ||
smooth: { | ||
type: PropType<boolean>; | ||
default: boolean; | ||
}; | ||
}, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, { | ||
select: (...args: any[]) => void; | ||
change: (...args: any[]) => void; | ||
}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{ | ||
boundary: { | ||
type: PropType<number | BoundaryPosition>; | ||
default: string; | ||
}; | ||
scrollContainer: { | ||
type: PropType<string | HTMLElement | Window>; | ||
}; | ||
smooth: { | ||
type: PropType<boolean>; | ||
default: boolean; | ||
}; | ||
}>> & { | ||
onChange?: ((...args: any[]) => any) | undefined; | ||
onSelect?: ((...args: any[]) => any) | undefined; | ||
}, { | ||
boundary: number | BoundaryPosition; | ||
smooth: boolean; | ||
}, {}>, { | ||
default?(_: {}): any; | ||
}>; | ||
export declare const GButton: __VLS_WithTemplateSlots_3<DefineComponent<{ | ||
@@ -113,0 +158,0 @@ type: { |
@@ -27,2 +27,4 @@ import { GCol as _sfc_main } from "./col.js"; | ||
import { GTable } from "./table.js"; | ||
import { GAnchor as _sfc_main$g } from "./anchor.js"; | ||
import { GAnchor } from "./anchor.js"; | ||
import { _ as _sfc_main$2 } from "./button.vue_vue_type_style_index_0_lang.6881cd9a.js"; | ||
@@ -33,3 +35,5 @@ import { _ } from "./button.vue_vue_type_style_index_0_lang.6881cd9a.js"; | ||
import "vue"; | ||
import "./is.5088f8a5.js"; | ||
import "./is.e38f1191.js"; | ||
import "./dom.7b31d805.js"; | ||
import "./validate-7008d2c6.9a35a861.js"; | ||
const components = [ | ||
@@ -51,3 +55,4 @@ _sfc_main, | ||
_sfc_main$e, | ||
_sfc_main$f | ||
_sfc_main$f, | ||
_sfc_main$g | ||
]; | ||
@@ -63,2 +68,3 @@ const install = (app) => { | ||
export { | ||
GAnchor, | ||
_ as GButton, | ||
@@ -65,0 +71,0 @@ GCarousel, |
import { ref, onMounted, watch, defineComponent, toRefs, computed, openBlock, createBlock, Teleport, unref, withDirectives, createElementVNode, normalizeClass, createVNode, Transition, withCtx, createElementBlock, vShow, createCommentVNode, renderSlot, createTextVNode, toDisplayString } from "vue"; | ||
import { a as isString } from "./is.5088f8a5.js"; | ||
import { g as getElement } from "./dom.7b31d805.js"; | ||
import "./button.js"; | ||
@@ -7,13 +7,3 @@ import "./icon.js"; | ||
import { _ as _sfc_main$2 } from "./button.vue_vue_type_style_index_0_lang.6881cd9a.js"; | ||
const querySelector = (selectors, container) => { | ||
var _a; | ||
return (_a = (container != null ? container : document).querySelector(selectors)) != null ? _a : void 0; | ||
}; | ||
const getElement = (target, container) => { | ||
if (isString(target)) { | ||
const selector = target[0] === "#" ? `[id='${target.slice(1)}']` : target; | ||
return querySelector(selector, container); | ||
} | ||
return target; | ||
}; | ||
import "./is.e38f1191.js"; | ||
const useTeleportContainer = ({ | ||
@@ -20,0 +10,0 @@ popupContainer, |
import { onMounted, defineComponent, computed, ref, openBlock, createBlock, unref, normalizeClass, withCtx, createElementVNode, createVNode, normalizeStyle, createElementBlock, Fragment, renderList, renderSlot, createTextVNode, toDisplayString, createCommentVNode } from "vue"; | ||
import { GScrollbarBox as _sfc_main$2 } from "./scrollbar-box.js"; | ||
import { i as ifNotFunction } from "./validate-7008d2c6.9a35a861.js"; | ||
import "./icon.js"; | ||
@@ -19,11 +20,2 @@ import { GLoading as _sfc_main$1 } from "./loading.js"; | ||
} | ||
function isFunction(obj) { | ||
return typeof obj === "function"; | ||
} | ||
const FUNC_ERROR_TEXT = "Expected a function"; | ||
const ifNotFunction = (fn) => { | ||
if (!isFunction(fn)) { | ||
throw new TypeError(FUNC_ERROR_TEXT); | ||
} | ||
}; | ||
function debounce(callback, delay = 60) { | ||
@@ -30,0 +22,0 @@ ifNotFunction(callback); |
{ | ||
"name": "@geektech/geek-ui", | ||
"version": "1.3.0", | ||
"version": "1.3.1", | ||
"type": "module", | ||
@@ -65,3 +65,7 @@ "main": "dist/index.js", | ||
] | ||
}, | ||
"publishConfig": { | ||
"registry": "https://registry.npmjs.org/", | ||
"access": "public" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
187956
40
6121