@geektech/geek-ui
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -278,3 +278,3 @@ import { defineComponent, computed, openBlock, createElementBlock, Fragment, createVNode, unref, normalizeClass, renderList, ref, reactive, provide, watchEffect, onBeforeUnmount, createElementVNode, renderSlot, createBlock, createCommentVNode, inject, getCurrentInstance, onMounted, normalizeStyle } from "vue"; | ||
const carouselDynamicClass = computed(() => { | ||
const { previousIndex, nextIndex, animationName, slideDirection } = context; | ||
const { previousIndex, nextIndex, animationName } = context; | ||
return { | ||
@@ -303,3 +303,4 @@ [`${COMPONENT}-prev`]: index.value === previousIndex, | ||
onMounted(() => { | ||
context.addComponent(instance == null ? void 0 : instance.uid); | ||
if ((instance == null ? void 0 : instance.uid) && context.addComponent) | ||
context.addComponent(instance.uid); | ||
}); | ||
@@ -306,0 +307,0 @@ return (_ctx, _cache) => { |
@@ -24,30 +24,18 @@ import { AllowedComponentProps } from 'vue'; | ||
xs: { | ||
type: PropType<number | { | ||
[key: string]: any; | ||
}>; | ||
type: PropType<number>; | ||
}; | ||
sm: { | ||
type: PropType<number | { | ||
[key: string]: any; | ||
}>; | ||
type: PropType<number>; | ||
}; | ||
md: { | ||
type: PropType<number | { | ||
[key: string]: any; | ||
}>; | ||
type: PropType<number>; | ||
}; | ||
lg: { | ||
type: PropType<number | { | ||
[key: string]: any; | ||
}>; | ||
type: PropType<number>; | ||
}; | ||
xl: { | ||
type: PropType<number | { | ||
[key: string]: any; | ||
}>; | ||
type: PropType<number>; | ||
}; | ||
xxl: { | ||
type: PropType<number | { | ||
[key: string]: any; | ||
}>; | ||
type: PropType<number>; | ||
}; | ||
@@ -63,30 +51,18 @@ }, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{ | ||
xs: { | ||
type: PropType<number | { | ||
[key: string]: any; | ||
}>; | ||
type: PropType<number>; | ||
}; | ||
sm: { | ||
type: PropType<number | { | ||
[key: string]: any; | ||
}>; | ||
type: PropType<number>; | ||
}; | ||
md: { | ||
type: PropType<number | { | ||
[key: string]: any; | ||
}>; | ||
type: PropType<number>; | ||
}; | ||
lg: { | ||
type: PropType<number | { | ||
[key: string]: any; | ||
}>; | ||
type: PropType<number>; | ||
}; | ||
xl: { | ||
type: PropType<number | { | ||
[key: string]: any; | ||
}>; | ||
type: PropType<number>; | ||
}; | ||
xxl: { | ||
type: PropType<number | { | ||
[key: string]: any; | ||
}>; | ||
type: PropType<number>; | ||
}; | ||
@@ -93,0 +69,0 @@ }>>, { |
@@ -251,30 +251,18 @@ import { AllowedComponentProps } from 'vue'; | ||
xs: { | ||
type: PropType<number | { | ||
[key: string]: any; | ||
}>; | ||
type: PropType<number>; | ||
}; | ||
sm: { | ||
type: PropType<number | { | ||
[key: string]: any; | ||
}>; | ||
type: PropType<number>; | ||
}; | ||
md: { | ||
type: PropType<number | { | ||
[key: string]: any; | ||
}>; | ||
type: PropType<number>; | ||
}; | ||
lg: { | ||
type: PropType<number | { | ||
[key: string]: any; | ||
}>; | ||
type: PropType<number>; | ||
}; | ||
xl: { | ||
type: PropType<number | { | ||
[key: string]: any; | ||
}>; | ||
type: PropType<number>; | ||
}; | ||
xxl: { | ||
type: PropType<number | { | ||
[key: string]: any; | ||
}>; | ||
type: PropType<number>; | ||
}; | ||
@@ -290,30 +278,18 @@ }, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{ | ||
xs: { | ||
type: PropType<number | { | ||
[key: string]: any; | ||
}>; | ||
type: PropType<number>; | ||
}; | ||
sm: { | ||
type: PropType<number | { | ||
[key: string]: any; | ||
}>; | ||
type: PropType<number>; | ||
}; | ||
md: { | ||
type: PropType<number | { | ||
[key: string]: any; | ||
}>; | ||
type: PropType<number>; | ||
}; | ||
lg: { | ||
type: PropType<number | { | ||
[key: string]: any; | ||
}>; | ||
type: PropType<number>; | ||
}; | ||
xl: { | ||
type: PropType<number | { | ||
[key: string]: any; | ||
}>; | ||
type: PropType<number>; | ||
}; | ||
xxl: { | ||
type: PropType<number | { | ||
[key: string]: any; | ||
}>; | ||
type: PropType<number>; | ||
}; | ||
@@ -578,3 +554,3 @@ }>>, { | ||
data: { | ||
type: PropType<Record<string, any>[]>; | ||
type: PropType<Record<string, unknown>[]>; | ||
required: true; | ||
@@ -598,3 +574,3 @@ default: () => never[]; | ||
data: { | ||
type: PropType<Record<string, any>[]>; | ||
type: PropType<Record<string, unknown>[]>; | ||
required: true; | ||
@@ -617,3 +593,3 @@ default: () => never[]; | ||
}>>, { | ||
data: Record<string, any>[]; | ||
data: Record<string, unknown>[]; | ||
header: HeaderItem[]; | ||
@@ -620,0 +596,0 @@ headerSticky: boolean; |
@@ -80,3 +80,3 @@ import { defineComponent, ref, computed, openBlock, createElementBlock, normalizeClass, createElementVNode, createVNode, Fragment, renderList, toDisplayString, withDirectives, vModelText, withCtx, createTextVNode, createCommentVNode } from "vue"; | ||
}; | ||
const last = (e) => { | ||
const last = () => { | ||
if (currentPage.value <= 1) { | ||
@@ -88,3 +88,3 @@ return; | ||
}; | ||
const next = (e) => { | ||
const next = () => { | ||
if (currentPage.value >= pageLength.value) { | ||
@@ -120,3 +120,3 @@ return; | ||
class: normalizeClass(["page-item page-item--prev", { "page-item--disabled": currentPage.value == 1 }]), | ||
onClick: _cache[0] || (_cache[0] = ($event) => last()) | ||
onClick: last | ||
}, [ | ||
@@ -142,3 +142,3 @@ createVNode(_sfc_main$1, { name: "left" }) | ||
class: normalizeClass(["page-item page-item--next", { "page-item--disabled": currentPage.value == pageLength.value }]), | ||
onClick: _cache[1] || (_cache[1] = ($event) => next()) | ||
onClick: next | ||
}, [ | ||
@@ -151,3 +151,3 @@ createVNode(_sfc_main$1, { name: "right" }) | ||
withDirectives(createElementVNode("input", { | ||
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => jumpToNum.value = $event), | ||
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => jumpToNum.value = $event), | ||
class: "input", | ||
@@ -154,0 +154,0 @@ type: "number", |
@@ -84,3 +84,3 @@ import { defineComponent, openBlock, createElementBlock, normalizeClass, createElementVNode, normalizeStyle, computed, createBlock, createCommentVNode } from "vue"; | ||
return openBlock(), createElementBlock("div", { | ||
class: normalizeClass(`${COMPONENT$1}-wrapper`) | ||
class: normalizeClass(`${COMPONENT$1}`) | ||
}, [ | ||
@@ -103,3 +103,3 @@ (openBlock(), createElementBlock("svg", { | ||
createElementVNode("circle", { | ||
class: normalizeClass(`${COMPONENT$1}-bar`), | ||
class: normalizeClass(`${COMPONENT$1}-svg-bar`), | ||
fill: "none", | ||
@@ -106,0 +106,0 @@ cx: center.value, |
@@ -20,3 +20,3 @@ import { AllowedComponentProps } from 'vue'; | ||
data: { | ||
type: PropType<Record<string, any>[]>; | ||
type: PropType<Record<string, unknown>[]>; | ||
required: true; | ||
@@ -40,3 +40,3 @@ default: () => never[]; | ||
data: { | ||
type: PropType<Record<string, any>[]>; | ||
type: PropType<Record<string, unknown>[]>; | ||
required: true; | ||
@@ -59,3 +59,3 @@ default: () => never[]; | ||
}>>, { | ||
data: Record<string, any>[]; | ||
data: Record<string, unknown>[]; | ||
header: HeaderItem[]; | ||
@@ -62,0 +62,0 @@ headerSticky: boolean; |
{ | ||
"name": "@geektech/geek-ui", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"type": "module", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -47,3 +47,3 @@ # Geek UI Quick Start | ||
<script setup lang="ts"> | ||
import { GButton } from "geek-ui"; | ||
import { GButton } from "@geektech/geek-ui/dist/button"; | ||
</script> | ||
@@ -50,0 +50,0 @@ <template> |
Sorry, the diff of this file is not supported yet
161107
5291