@koi-design/uxd-ui 14.0.7 → 14.0.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/components/Cascader/Cascader.d.ts +3 -3
- package/es/components/Cascader/Cascader.mjs +2 -4
- package/es/components/Cascader/Cascader.mjs.map +1 -1
- package/es/components/Cascader/Cascader.type.d.ts +1 -1
- package/es/components/Cascader/Cascader.type.mjs +1 -1
- package/es/components/Cascader/Cascader.type.mjs.map +1 -1
- package/es/components/Cascader/CascaderMenu.mjs +4 -4
- package/es/components/Cascader/CascaderMenu.mjs.map +1 -1
- package/es/components/Cascader/index.d.ts +6 -6
- package/es/components/Checkbox/Checkbox.mjs +1 -0
- package/es/components/Checkbox/Checkbox.mjs.map +1 -1
- package/es/components/Checkbox/Checkbox.type.d.ts +1 -0
- package/es/components/Checkbox/Checkbox.type.mjs +2 -1
- package/es/components/Checkbox/Checkbox.type.mjs.map +1 -1
- package/es/components/Checkbox/Checkbox.vue.d.ts +2 -0
- package/es/components/Checkbox/CheckboxGroup.vue.d.ts +2 -0
- package/es/components/Checkbox/index.d.ts +7 -0
- package/es/components/Progress/Circle.mjs +1 -3
- package/es/components/Progress/Circle.mjs.map +1 -1
- package/es/components/Progress/Progress.mjs +2 -3
- package/es/components/Progress/Progress.mjs.map +1 -1
- package/es/components/Progress/Progress.type.d.ts +1 -6
- package/es/components/Progress/Progress.type.mjs +0 -6
- package/es/components/Progress/Progress.type.mjs.map +1 -1
- package/es/components/Progress/Progress.vue.d.ts +0 -16
- package/es/components/Progress/index.d.ts +0 -33
- package/es/components/Select/RefSelect.vue.d.ts +7 -0
- package/es/components/Table/BaseTable.vue.d.ts +7 -0
- package/es/components/Table/BodyTable.vue.d.ts +7 -0
- package/es/components/Table/HeadTable.vue.d.ts +7 -0
- package/es/components/Table/Table.vue.d.ts +14 -0
- package/es/components/Table/TableBox.vue.d.ts +14 -0
- package/es/components/Table/tableUnits/FilterDropdown.vue.d.ts +7 -0
- package/es/components/Table/tableUnits/SelectionBox.vue.d.ts +7 -0
- package/es/components/Table/tableUnits/SelectionCheckAll.vue.d.ts +7 -0
- package/es/components/Table/tableUnits/TableHeader.vue.d.ts +7 -0
- package/es/components/Table/tableUnits/TableHeaderRow.vue.d.ts +7 -0
- package/es/components/Transfer/Operation.mjs +6 -4
- package/es/components/Transfer/Operation.mjs.map +1 -1
- package/es/components/Transfer/Transfer.mjs +2 -4
- package/es/components/Transfer/Transfer.mjs.map +1 -1
- package/es/components/Transfer/Transfer.type.d.ts +0 -5
- package/es/components/Transfer/Transfer.type.mjs +1 -8
- package/es/components/Transfer/Transfer.type.mjs.map +1 -1
- package/es/components/Transfer/Transfer.vue.d.ts +42 -11
- package/es/components/Transfer/TransferList.mjs +14 -10
- package/es/components/Transfer/TransferList.mjs.map +1 -1
- package/es/components/Transfer/TransferList.vue.d.ts +14 -0
- package/es/components/Transfer/TransferListItem.vue.d.ts +7 -0
- package/es/components/Transfer/index.d.ts +112 -18
- package/es/components/Tree/SubTree.vue.d.ts +7 -0
- package/es/components/Tree/Tree.vue.d.ts +7 -0
- package/es/components/Tree/TreeNode.vue.d.ts +7 -0
- package/es/components/Tree/index.d.ts +14 -0
- package/es/components/TreeSelect/TreeSelect.vue.d.ts +14 -0
- package/es/components/TreeSelect/index.d.ts +28 -0
- package/es/components/Upload/UploadList.vue.d.ts +0 -33
- package/lib/components/Cascader/Cascader.d.ts +3 -3
- package/lib/components/Cascader/Cascader.js +2 -4
- package/lib/components/Cascader/Cascader.js.map +1 -1
- package/lib/components/Cascader/Cascader.type.d.ts +1 -1
- package/lib/components/Cascader/Cascader.type.js +1 -1
- package/lib/components/Cascader/Cascader.type.js.map +1 -1
- package/lib/components/Cascader/CascaderMenu.js +3 -3
- package/lib/components/Cascader/CascaderMenu.js.map +1 -1
- package/lib/components/Cascader/index.d.ts +6 -6
- package/lib/components/Checkbox/Checkbox.js +1 -0
- package/lib/components/Checkbox/Checkbox.js.map +1 -1
- package/lib/components/Checkbox/Checkbox.type.d.ts +1 -0
- package/lib/components/Checkbox/Checkbox.type.js +2 -1
- package/lib/components/Checkbox/Checkbox.type.js.map +1 -1
- package/lib/components/Checkbox/Checkbox.vue.d.ts +2 -0
- package/lib/components/Checkbox/CheckboxGroup.vue.d.ts +2 -0
- package/lib/components/Checkbox/index.d.ts +7 -0
- package/lib/components/Progress/Circle.js +1 -3
- package/lib/components/Progress/Circle.js.map +1 -1
- package/lib/components/Progress/Progress.js +2 -3
- package/lib/components/Progress/Progress.js.map +1 -1
- package/lib/components/Progress/Progress.type.d.ts +1 -6
- package/lib/components/Progress/Progress.type.js +0 -6
- package/lib/components/Progress/Progress.type.js.map +1 -1
- package/lib/components/Progress/Progress.vue.d.ts +0 -16
- package/lib/components/Progress/index.d.ts +0 -33
- package/lib/components/Select/RefSelect.vue.d.ts +7 -0
- package/lib/components/Table/BaseTable.vue.d.ts +7 -0
- package/lib/components/Table/BodyTable.vue.d.ts +7 -0
- package/lib/components/Table/HeadTable.vue.d.ts +7 -0
- package/lib/components/Table/Table.vue.d.ts +14 -0
- package/lib/components/Table/TableBox.vue.d.ts +14 -0
- package/lib/components/Table/tableUnits/FilterDropdown.vue.d.ts +7 -0
- package/lib/components/Table/tableUnits/SelectionBox.vue.d.ts +7 -0
- package/lib/components/Table/tableUnits/SelectionCheckAll.vue.d.ts +7 -0
- package/lib/components/Table/tableUnits/TableHeader.vue.d.ts +7 -0
- package/lib/components/Table/tableUnits/TableHeaderRow.vue.d.ts +7 -0
- package/lib/components/Transfer/Operation.js +6 -4
- package/lib/components/Transfer/Operation.js.map +1 -1
- package/lib/components/Transfer/Transfer.js +2 -4
- package/lib/components/Transfer/Transfer.js.map +1 -1
- package/lib/components/Transfer/Transfer.type.d.ts +0 -5
- package/lib/components/Transfer/Transfer.type.js +0 -7
- package/lib/components/Transfer/Transfer.type.js.map +1 -1
- package/lib/components/Transfer/Transfer.vue.d.ts +42 -11
- package/lib/components/Transfer/TransferList.js +14 -10
- package/lib/components/Transfer/TransferList.js.map +1 -1
- package/lib/components/Transfer/TransferList.vue.d.ts +14 -0
- package/lib/components/Transfer/TransferListItem.vue.d.ts +7 -0
- package/lib/components/Transfer/index.d.ts +112 -18
- package/lib/components/Tree/SubTree.vue.d.ts +7 -0
- package/lib/components/Tree/Tree.vue.d.ts +7 -0
- package/lib/components/Tree/TreeNode.vue.d.ts +7 -0
- package/lib/components/Tree/index.d.ts +14 -0
- package/lib/components/TreeSelect/TreeSelect.vue.d.ts +14 -0
- package/lib/components/TreeSelect/index.d.ts +28 -0
- package/lib/components/Upload/UploadList.vue.d.ts +0 -33
- package/package.json +1 -1
- package/styles/components/alert/index.css +1 -1
- package/styles/components/autoComplete/index.css +1 -1
- package/styles/components/avatar/index.css +1 -1
- package/styles/components/button/index.css +1 -1
- package/styles/components/carousel/index.css +1 -1
- package/styles/components/carousel/index.less +38 -35
- package/styles/components/carousel/var.less +6 -19
- package/styles/components/cascader/index.css +1 -1
- package/styles/components/cascader/index.less +20 -32
- package/styles/components/datePicker/index.css +1 -1
- package/styles/components/form/index.css +1 -1
- package/styles/components/icon/index.css +1 -1
- package/styles/components/input/index.css +1 -1
- package/styles/components/inputNumber/index.css +1 -1
- package/styles/components/link/index.css +1 -1
- package/styles/components/mentions/index.css +1 -1
- package/styles/components/menu/index.css +1 -1
- package/styles/components/menu/var.less +3 -2
- package/styles/components/modal/index.css +1 -1
- package/styles/components/progress/index.css +1 -1
- package/styles/components/progress/index.less +42 -56
- package/styles/components/progress/var.less +3 -4
- package/styles/components/select/index.css +1 -1
- package/styles/components/spin/index.css +1 -1
- package/styles/components/timePicker/index.css +1 -1
- package/styles/components/transfer/index.css +1 -1
- package/styles/components/transfer/index.less +38 -42
- package/styles/components/transfer/var.less +8 -42
- package/styles/components/tree/index.css +1 -1
- package/styles/components/tree/index.less +17 -27
- package/styles/components/tree/var.less +5 -16
- package/styles/cssVariable.css +1 -1
- package/styles/cssVariable.less +0 -1
- package/styles/index.css +1 -1
- package/styles/tokens/typography.css +1 -1
- package/types/components/Cascader/Cascader.d.ts +3 -3
- package/types/components/Cascader/Cascader.type.d.ts +1 -1
- package/types/components/Cascader/index.d.ts +6 -6
- package/types/components/Checkbox/Checkbox.type.d.ts +1 -0
- package/types/components/Checkbox/Checkbox.vue.d.ts +2 -0
- package/types/components/Checkbox/CheckboxGroup.vue.d.ts +2 -0
- package/types/components/Checkbox/index.d.ts +7 -0
- package/types/components/Progress/Progress.type.d.ts +1 -6
- package/types/components/Progress/Progress.vue.d.ts +0 -16
- package/types/components/Progress/index.d.ts +0 -33
- package/types/components/Select/RefSelect.vue.d.ts +7 -0
- package/types/components/Table/BaseTable.vue.d.ts +7 -0
- package/types/components/Table/BodyTable.vue.d.ts +7 -0
- package/types/components/Table/HeadTable.vue.d.ts +7 -0
- package/types/components/Table/Table.vue.d.ts +14 -0
- package/types/components/Table/TableBox.vue.d.ts +14 -0
- package/types/components/Table/tableUnits/FilterDropdown.vue.d.ts +7 -0
- package/types/components/Table/tableUnits/SelectionBox.vue.d.ts +7 -0
- package/types/components/Table/tableUnits/SelectionCheckAll.vue.d.ts +7 -0
- package/types/components/Table/tableUnits/TableHeader.vue.d.ts +7 -0
- package/types/components/Table/tableUnits/TableHeaderRow.vue.d.ts +7 -0
- package/types/components/Transfer/Transfer.type.d.ts +0 -5
- package/types/components/Transfer/Transfer.vue.d.ts +42 -11
- package/types/components/Transfer/TransferList.vue.d.ts +14 -0
- package/types/components/Transfer/TransferListItem.vue.d.ts +7 -0
- package/types/components/Transfer/index.d.ts +112 -18
- package/types/components/Tree/SubTree.vue.d.ts +7 -0
- package/types/components/Tree/Tree.vue.d.ts +7 -0
- package/types/components/Tree/TreeNode.vue.d.ts +7 -0
- package/types/components/Tree/index.d.ts +14 -0
- package/types/components/TreeSelect/TreeSelect.vue.d.ts +14 -0
- package/types/components/TreeSelect/index.d.ts +28 -0
- package/types/components/Upload/UploadList.vue.d.ts +0 -33
- package/uxd-ui.css +1 -1
- package/uxd-ui.esm.min.mjs +6 -6
- package/uxd-ui.esm.mjs +142 -151
- package/uxd-ui.umd.js +141 -150
- package/uxd-ui.umd.min.js +6 -6
|
@@ -126,7 +126,7 @@ export declare const UCascader: {
|
|
|
126
126
|
type: StringConstructor;
|
|
127
127
|
};
|
|
128
128
|
variant: {
|
|
129
|
-
type: import("vue").PropType<"
|
|
129
|
+
type: import("vue").PropType<"surface" | "soft" | "borderless" | "underline">;
|
|
130
130
|
default: string;
|
|
131
131
|
validator: (val: string) => boolean;
|
|
132
132
|
};
|
|
@@ -570,7 +570,7 @@ export declare const UCascader: {
|
|
|
570
570
|
placement: "top" | "bottom" | "auto" | "auto-start" | "auto-end" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right" | "right-start" | "right-end" | "left" | "left-start" | "left-end";
|
|
571
571
|
popupStyle: import("vue").CSSProperties;
|
|
572
572
|
disabled: boolean;
|
|
573
|
-
variant: "
|
|
573
|
+
variant: "surface" | "soft" | "borderless" | "underline";
|
|
574
574
|
modelValue: import("./Cascader.type").CascaderValueType;
|
|
575
575
|
placeholder: string;
|
|
576
576
|
clearable: boolean;
|
|
@@ -723,7 +723,7 @@ export declare const UCascader: {
|
|
|
723
723
|
type: StringConstructor;
|
|
724
724
|
};
|
|
725
725
|
variant: {
|
|
726
|
-
type: import("vue").PropType<"
|
|
726
|
+
type: import("vue").PropType<"surface" | "soft" | "borderless" | "underline">;
|
|
727
727
|
default: string;
|
|
728
728
|
validator: (val: string) => boolean;
|
|
729
729
|
};
|
|
@@ -1159,7 +1159,7 @@ export declare const UCascader: {
|
|
|
1159
1159
|
placement: "top" | "bottom" | "auto" | "auto-start" | "auto-end" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right" | "right-start" | "right-end" | "left" | "left-start" | "left-end";
|
|
1160
1160
|
popupStyle: import("vue").CSSProperties;
|
|
1161
1161
|
disabled: boolean;
|
|
1162
|
-
variant: "
|
|
1162
|
+
variant: "surface" | "soft" | "borderless" | "underline";
|
|
1163
1163
|
modelValue: import("./Cascader.type").CascaderValueType;
|
|
1164
1164
|
placeholder: string;
|
|
1165
1165
|
clearable: boolean;
|
|
@@ -1309,7 +1309,7 @@ export declare const UCascader: {
|
|
|
1309
1309
|
type: StringConstructor;
|
|
1310
1310
|
};
|
|
1311
1311
|
variant: {
|
|
1312
|
-
type: import("vue").PropType<"
|
|
1312
|
+
type: import("vue").PropType<"surface" | "soft" | "borderless" | "underline">;
|
|
1313
1313
|
default: string;
|
|
1314
1314
|
validator: (val: string) => boolean;
|
|
1315
1315
|
};
|
|
@@ -1753,7 +1753,7 @@ export declare const UCascader: {
|
|
|
1753
1753
|
placement: "top" | "bottom" | "auto" | "auto-start" | "auto-end" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right" | "right-start" | "right-end" | "left" | "left-start" | "left-end";
|
|
1754
1754
|
popupStyle: import("vue").CSSProperties;
|
|
1755
1755
|
disabled: boolean;
|
|
1756
|
-
variant: "
|
|
1756
|
+
variant: "surface" | "soft" | "borderless" | "underline";
|
|
1757
1757
|
modelValue: import("./Cascader.type").CascaderValueType;
|
|
1758
1758
|
placeholder: string;
|
|
1759
1759
|
clearable: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Checkbox.js","sources":["../../../../src/components/Checkbox/Checkbox.vue"],"sourcesContent":["<template>\n <label\n :class=\"[\n `${prefixCls}-wrap`,\n {\n [`${prefixCls}-wrap-checked`]: computedChecked,\n [`${prefixCls}-wrap-indeterminate`]: indeterminate,\n [`${prefixCls}-wrap-disabled`]: computedDisabled,\n [`${prefixCls}-focus`]: focusWrap\n }\n ]\"\n >\n <span\n :class=\"[\n prefixCls,\n {\n [`${prefixCls}-checked`]: computedChecked,\n [`${prefixCls}-disabled`]: computedDisabled,\n [`${prefixCls}-indeterminate`]: indeterminate\n }\n ]\"\n >\n <span :class=\"[`${prefixCls}-inner`, { [`${prefixCls}-focus`]: focusInner }]\">\n <UIcon>\n <Check v-if=\"computedChecked\" />\n <Minus v-else-if=\"indeterminate\" />\n </UIcon>\n </span>\n <input\n type=\"checkbox\"\n :class=\"`${prefixCls}-input`\"\n :disabled=\"computedDisabled\"\n :checked=\"computedChecked\"\n :name=\"name\"\n @keydown=\"handleKeyDown\"\n @change=\"change\"\n @click=\"onClick\"\n @focus=\"handleFocus\"\n @blur=\"handleBlur\"\n />\n </span>\n\n <span v-if=\"showSlot\" :class=\"[`${prefixCls}-label`]\">\n <slot>{{ value }}</slot>\n </span>\n </label>\n</template>\n\n<script lang=\"ts\">\nimport { defineComponent, inject, computed, ref, watch } from 'vue';\nimport { Check, Minus } from 'lucide-vue-next';\nimport UIcon from '@uxd-ui/components/Icon';\nimport useGlobalConfig from '../base/hooks/useGlobalConfig';\nimport { FormItemKey } from '../Form';\nimport { isValid } from '../../utils/isValid';\nimport type { FormItemContext } from '../Form/Form.type';\nimport { checkboxProps, checkboxEmits, type CheckboxGroupContext } from './Checkbox.type';\n\nexport default defineComponent({\n name: 'UCheckbox',\n components: {\n UIcon,\n Check,\n Minus\n },\n props: checkboxProps,\n emits: checkboxEmits,\n setup(props, { emit, slots }) {\n // prefixCls\n const { prefixCls } = useGlobalConfig('checkbox');\n const checkboxGroupContext = inject<CheckboxGroupContext>('checkboxGroupContext', {} as CheckboxGroupContext);\n // data\n const focusWrap = ref(false);\n const focusInner = ref(false);\n const stateValue = ref(props.modelValue || false);\n // computed\n const showSlot = computed(() => {\n return !!props.value || slots.default;\n });\n const computedChecked = computed(() => {\n if (checkboxGroupContext.stateValue) {\n return checkboxGroupContext.stateValue.value.includes(props.value);\n }\n return !!stateValue.value;\n });\n\n const computedDisabled = computed(() => {\n if (checkboxGroupContext.disabled) {\n return checkboxGroupContext.disabled.value || props.disabled;\n }\n return props.disabled;\n });\n\n // const showInput = computed(() => !checkboxGroupContext.buttonType?.value);\n // watch\n watch(\n () => props.modelValue,\n (nv) => {\n stateValue.value = nv === props.trueValue;\n },\n { immediate: true }\n );\n // methods\n let eventShiftKey = false;\n const onClick = (e: MouseEvent) => {\n eventShiftKey = e.shiftKey;\n };\n\n const { onFieldChange } = inject<FormItemContext>(FormItemKey, {} as FormItemContext);\n const change = (event: any) => {\n if (props.disabled) {\n return false;\n }\n if (checkboxGroupContext.change) {\n if (isValid(props.value)) {\n checkboxGroupContext.change({\n value: props.value,\n checked: event.target.checked\n });\n }\n } else {\n const value = event.target.checked ? props.trueValue : props.falseValue;\n if (props.modelValue === undefined) {\n stateValue.value = event.target.checked;\n }\n event.shiftKey = eventShiftKey;\n emit('update:modelValue', value);\n emit('change', value, event);\n if (onFieldChange) {\n onFieldChange(value);\n }\n }\n };\n const handleKeyDown = (e: KeyboardEvent) => {\n if (e.code === 'Space' || e.code === 'Enter') {\n change(e);\n }\n };\n const handleFocus = () => {\n if (checkboxGroupContext.buttonType?.value) {\n focusWrap.value = true;\n }\n focusInner.value = true;\n };\n const handleBlur = () => {\n focusWrap.value = false;\n focusInner.value = false;\n };\n\n return {\n prefixCls,\n computedDisabled,\n focusWrap,\n focusInner,\n showSlot,\n computedChecked,\n change,\n handleKeyDown,\n handleFocus,\n handleBlur,\n onClick\n };\n }\n});\n</script>\n\n<style></style>\n"],"names":["defineComponent","UIcon","Check","Minus","checkboxProps","checkboxEmits","useGlobalConfig","inject","ref","computed","FormItemKey","isValid","_createElementBlock","_normalizeClass","_createElementVNode","_createVNode","_createBlock","_renderSlot"],"mappings":";;;;;;;;;;;;;;AA0DA,MAAK,YAAaA,oBAAa;AAAA,EAC7B,MAAM;AAAA,EACN,YAAY;AAAA,WACVC;AAAA,WACAC;AAAA,WACAC;AAAA;AACF,EACA,OAAOC;AAAA,EACP,OAAOC;AAAA,EACP,MAAM,OAAO,EAAE,MAAM,SAAS;UAEtB,EAAE,cAAcC,2BAAgB,UAAU;UAC1C,uBAAuBC,WAA6B,wBAAwB,EAA0B;UAEtG,YAAYC,QAAI,KAAK;UACrB,aAAaA,QAAI,KAAK;UACtB,aAAaA,QAAI,MAAM,cAAc,KAAK;UAE1C,WAAWC,aAAS,MAAM;aACvB,CAAC,CAAC,MAAM,SAAS,MAAM;AAAA,KAC/B;UACK,kBAAkBA,aAAS,MAAM;UACjC,qBAAqB,YAAY;eAC5B,qBAAqB,WAAW,MAAM,SAAS,MAAM,KAAK;AAAA;aAE5D,CAAC,CAAC,WAAW;AAAA,KACrB;UAEK,mBAAmBA,aAAS,MAAM;UAClC,qBAAqB,UAAU;eAC1B,qBAAqB,SAAS,SAAS,MAAM;AAAA;aAE/C,MAAM;AAAA,KACd;;MAKC,MAAM,MAAM;AAAA,MACZ,CAAC,OAAO;mBACK,QAAQ,OAAO,MAAM;AAAA;AAClC,MACA,EAAE,WAAW;AAAK;QAGhB,gBAAgB;UACd,UAAU,CAAC,MAAkB;sBACjB,EAAE;AAAA;
|
|
1
|
+
{"version":3,"file":"Checkbox.js","sources":["../../../../src/components/Checkbox/Checkbox.vue"],"sourcesContent":["<template>\n <label\n :class=\"[\n `${prefixCls}-wrap`,\n {\n [`${prefixCls}-wrap-checked`]: computedChecked,\n [`${prefixCls}-wrap-indeterminate`]: indeterminate,\n [`${prefixCls}-wrap-disabled`]: computedDisabled,\n [`${prefixCls}-focus`]: focusWrap\n }\n ]\"\n >\n <span\n :class=\"[\n prefixCls,\n {\n [`${prefixCls}-checked`]: computedChecked,\n [`${prefixCls}-disabled`]: computedDisabled,\n [`${prefixCls}-indeterminate`]: indeterminate\n }\n ]\"\n >\n <span :class=\"[`${prefixCls}-inner`, { [`${prefixCls}-focus`]: focusInner }]\">\n <UIcon>\n <Check v-if=\"computedChecked\" />\n <Minus v-else-if=\"indeterminate\" />\n </UIcon>\n </span>\n <input\n type=\"checkbox\"\n :class=\"`${prefixCls}-input`\"\n :disabled=\"computedDisabled\"\n :checked=\"computedChecked\"\n :name=\"name\"\n @keydown=\"handleKeyDown\"\n @change=\"change\"\n @click=\"onClick\"\n @focus=\"handleFocus\"\n @blur=\"handleBlur\"\n />\n </span>\n\n <span v-if=\"showSlot\" :class=\"[`${prefixCls}-label`]\">\n <slot>{{ value }}</slot>\n </span>\n </label>\n</template>\n\n<script lang=\"ts\">\nimport { defineComponent, inject, computed, ref, watch } from 'vue';\nimport { Check, Minus } from 'lucide-vue-next';\nimport UIcon from '@uxd-ui/components/Icon';\nimport useGlobalConfig from '../base/hooks/useGlobalConfig';\nimport { FormItemKey } from '../Form';\nimport { isValid } from '../../utils/isValid';\nimport type { FormItemContext } from '../Form/Form.type';\nimport { checkboxProps, checkboxEmits, type CheckboxGroupContext } from './Checkbox.type';\n\nexport default defineComponent({\n name: 'UCheckbox',\n components: {\n UIcon,\n Check,\n Minus\n },\n props: checkboxProps,\n emits: checkboxEmits,\n setup(props, { emit, slots }) {\n // prefixCls\n const { prefixCls } = useGlobalConfig('checkbox');\n const checkboxGroupContext = inject<CheckboxGroupContext>('checkboxGroupContext', {} as CheckboxGroupContext);\n // data\n const focusWrap = ref(false);\n const focusInner = ref(false);\n const stateValue = ref(props.modelValue || false);\n // computed\n const showSlot = computed(() => {\n return !!props.value || slots.default;\n });\n const computedChecked = computed(() => {\n if (checkboxGroupContext.stateValue) {\n return checkboxGroupContext.stateValue.value.includes(props.value);\n }\n return !!stateValue.value;\n });\n\n const computedDisabled = computed(() => {\n if (checkboxGroupContext.disabled) {\n return checkboxGroupContext.disabled.value || props.disabled;\n }\n return props.disabled;\n });\n\n // const showInput = computed(() => !checkboxGroupContext.buttonType?.value);\n // watch\n watch(\n () => props.modelValue,\n (nv) => {\n stateValue.value = nv === props.trueValue;\n },\n { immediate: true }\n );\n // methods\n let eventShiftKey = false;\n const onClick = (e: MouseEvent) => {\n eventShiftKey = e.shiftKey;\n emit('click', e);\n };\n\n const { onFieldChange } = inject<FormItemContext>(FormItemKey, {} as FormItemContext);\n const change = (event: any) => {\n if (props.disabled) {\n return false;\n }\n if (checkboxGroupContext.change) {\n if (isValid(props.value)) {\n checkboxGroupContext.change({\n value: props.value,\n checked: event.target.checked\n });\n }\n } else {\n const value = event.target.checked ? props.trueValue : props.falseValue;\n if (props.modelValue === undefined) {\n stateValue.value = event.target.checked;\n }\n event.shiftKey = eventShiftKey;\n emit('update:modelValue', value);\n emit('change', value, event);\n if (onFieldChange) {\n onFieldChange(value);\n }\n }\n };\n const handleKeyDown = (e: KeyboardEvent) => {\n if (e.code === 'Space' || e.code === 'Enter') {\n change(e);\n }\n };\n const handleFocus = () => {\n if (checkboxGroupContext.buttonType?.value) {\n focusWrap.value = true;\n }\n focusInner.value = true;\n };\n const handleBlur = () => {\n focusWrap.value = false;\n focusInner.value = false;\n };\n\n return {\n prefixCls,\n computedDisabled,\n focusWrap,\n focusInner,\n showSlot,\n computedChecked,\n change,\n handleKeyDown,\n handleFocus,\n handleBlur,\n onClick\n };\n }\n});\n</script>\n\n<style></style>\n"],"names":["defineComponent","UIcon","Check","Minus","checkboxProps","checkboxEmits","useGlobalConfig","inject","ref","computed","FormItemKey","isValid","_createElementBlock","_normalizeClass","_createElementVNode","_createVNode","_createBlock","_renderSlot"],"mappings":"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"}
|
|
@@ -46,6 +46,7 @@ export declare type CheckboxProps = ExtractPropTypes<typeof checkboxProps>;
|
|
|
46
46
|
export declare const checkboxEmits: {
|
|
47
47
|
'update:modelValue': (val: CheckboxValueType) => boolean;
|
|
48
48
|
change: (val: CheckboxValueType, ev: Event) => boolean;
|
|
49
|
+
click: (ev: Event) => boolean;
|
|
49
50
|
};
|
|
50
51
|
export declare type CheckboxEmits = typeof checkboxEmits;
|
|
51
52
|
export declare type CheckboxInstanceType = InstanceType<typeof Checkbox>;
|
|
@@ -38,7 +38,8 @@ const checkboxProps = {
|
|
|
38
38
|
};
|
|
39
39
|
const checkboxEmits = {
|
|
40
40
|
"update:modelValue": (val) => val === void 0 || typeof val === "boolean" || typeof val === "number" || typeof val === "string",
|
|
41
|
-
change: (val, ev) => (val === void 0 || typeof val === "boolean" || typeof val === "number" || typeof val === "string") && ev instanceof Event
|
|
41
|
+
change: (val, ev) => (val === void 0 || typeof val === "boolean" || typeof val === "number" || typeof val === "string") && ev instanceof Event,
|
|
42
|
+
click: (ev) => ev instanceof Event
|
|
42
43
|
};
|
|
43
44
|
const checkboxButtonType = ["border", "fill", "card"];
|
|
44
45
|
const checkboxGroupProps = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Checkbox.type.js","sources":["../../../../src/components/Checkbox/Checkbox.type.ts"],"sourcesContent":["import type { ExtractPropTypes, PropType, Ref } from 'vue';\nimport { oneOf } from '../../utils/propsValidators';\nimport { normalSizeMap } from '../../utils/globalType';\nimport type { NormalSizeMap } from '../../utils/globalType';\nimport type Checkbox from './Checkbox.vue';\nimport type CheckboxGroup from './CheckboxGroup.vue';\n\nexport type CheckboxValueType = boolean | number | string | undefined;\nexport type CheckboxGroupSingleValue = number | string;\nexport const checkboxGroupType = ['default', 'button'] as const;\nexport type CheckboxGroupType = (typeof checkboxGroupType)[number];\nexport interface CheckboxGroupOption {\n value: CheckboxGroupSingleValue;\n label: string;\n disabled?: boolean;\n border?: boolean;\n}\n\nexport const checkboxProps = {\n modelValue: {\n type: [Boolean, String, Number],\n default: undefined as undefined\n },\n trueValue: {\n type: [String, Number, Boolean],\n default: true\n },\n falseValue: {\n type: [String, Number, Boolean],\n default: false\n },\n value: {\n type: [String, Number],\n default: ''\n },\n disabled: {\n type: Boolean,\n default: false\n },\n name: {\n type: String,\n default: ''\n },\n indeterminate: {\n type: Boolean,\n default: false\n }\n};\n\nexport type CheckboxProps = ExtractPropTypes<typeof checkboxProps>;\n\nexport const checkboxEmits = {\n 'update:modelValue': (val: CheckboxValueType) =>\n val === undefined || typeof val === 'boolean' || typeof val === 'number' || typeof val === 'string',\n change: (val: CheckboxValueType, ev: Event) =>\n (val === undefined || typeof val === 'boolean' || typeof val === 'number' || typeof val === 'string') && ev instanceof Event\n};\n\nexport type CheckboxEmits = typeof checkboxEmits;\n\nexport type CheckboxInstanceType = InstanceType<typeof Checkbox>;\n\nexport const checkboxButtonType = ['border', 'fill', 'card'] as const;\nexport type CheckboxButtonType = (typeof checkboxButtonType)[number];\n\nexport const checkboxGroupProps = {\n modelValue: {\n type: Array as PropType<CheckboxGroupSingleValue[]>,\n default: () => [] as CheckboxGroupSingleValue[]\n },\n size: {\n type: String as PropType<NormalSizeMap>,\n default: 'default',\n validator: oneOf(normalSizeMap.map((x) => x))\n },\n options: {\n type: Array as PropType<CheckboxGroupOption[]>,\n default: () => [] as CheckboxGroupOption[]\n },\n disabled: {\n type: Boolean,\n default: false\n },\n loading: {\n type: Boolean,\n default: false\n },\n loadingText: {\n type: String\n },\n buttonType: {\n type: String as PropType<CheckboxButtonType>,\n default: 'border',\n validator: oneOf(checkboxButtonType)\n },\n type: {\n type: String as PropType<CheckboxGroupType>,\n default: 'default',\n validator: oneOf(checkboxGroupType)\n },\n buttonFill: {\n type: Boolean,\n default: false\n },\n direction: {\n type: String as PropType<'ltr' | 'rtl'>\n }\n};\n\nexport type CheckboxGroupProps = ExtractPropTypes<typeof checkboxGroupProps>;\n\nexport const checkboxGroupEmits = {\n 'update:modelValue': (v: CheckboxGroupSingleValue[]) =>\n Array.isArray(v) && v.every((x) => x === undefined || typeof x === 'number' || typeof x === 'string'),\n change: (v: CheckboxGroupSingleValue[]) => Array.isArray(v) && v.every((x) => x === undefined || typeof x === 'number' || typeof x === 'string')\n};\n\nexport type CheckboxGroupEmits = typeof checkboxGroupEmits;\n\nexport type CheckboxGroupInstanceType = InstanceType<typeof CheckboxGroup>;\n\nexport interface ChangeState {\n checked: boolean;\n value: CheckboxGroupSingleValue;\n}\n\nexport interface CheckboxGroupContext {\n stateValue: Ref<CheckboxGroupSingleValue[]>;\n size: Ref<NormalSizeMap>;\n disabled: Ref<boolean>;\n buttonType: Ref<boolean>;\n change: (state: ChangeState) => void;\n}\n"],"names":["oneOf","normalSizeMap"],"mappings":";;;;;;;MASa,oBAAoB,CAAC,WAAW,QAAQ;MASxC,gBAAgB;AAAA,EAC3B,YAAY;AAAA,IACV,MAAM,CAAC,SAAS,QAAQ,MAAM;AAAA,IAC9B,SAAS;AAAA;AACX,EACA,WAAW;AAAA,IACT,MAAM,CAAC,QAAQ,QAAQ,OAAO;AAAA,IAC9B,SAAS;AAAA;AACX,EACA,YAAY;AAAA,IACV,MAAM,CAAC,QAAQ,QAAQ,OAAO;AAAA,IAC9B,SAAS;AAAA;AACX,EACA,OAAO;AAAA,IACL,MAAM,CAAC,QAAQ,MAAM;AAAA,IACrB,SAAS;AAAA;AACX,EACA,UAAU;AAAA,IACR,MAAM;AAAA,IACN,SAAS;AAAA;AACX,EACA,MAAM;AAAA,IACJ,MAAM;AAAA,IACN,SAAS;AAAA;AACX,EACA,eAAe;AAAA,IACb,MAAM;AAAA,IACN,SAAS;AAAA;AAEb;MAIa,gBAAgB;AAAA,EAC3B,qBAAqB,CAAC,QACpB,QAAQ,UAAa,OAAO,QAAQ,aAAa,OAAO,QAAQ,YAAY,OAAO,QAAQ;AAAA,EAC7F,QAAQ,CAAC,KAAwB,QAC9B,QAAQ,UAAa,OAAO,QAAQ,aAAa,OAAO,QAAQ,YAAY,OAAO,QAAQ,aAAa,cAAc;
|
|
1
|
+
{"version":3,"file":"Checkbox.type.js","sources":["../../../../src/components/Checkbox/Checkbox.type.ts"],"sourcesContent":["import type { ExtractPropTypes, PropType, Ref } from 'vue';\nimport { oneOf } from '../../utils/propsValidators';\nimport { normalSizeMap } from '../../utils/globalType';\nimport type { NormalSizeMap } from '../../utils/globalType';\nimport type Checkbox from './Checkbox.vue';\nimport type CheckboxGroup from './CheckboxGroup.vue';\n\nexport type CheckboxValueType = boolean | number | string | undefined;\nexport type CheckboxGroupSingleValue = number | string;\nexport const checkboxGroupType = ['default', 'button'] as const;\nexport type CheckboxGroupType = (typeof checkboxGroupType)[number];\nexport interface CheckboxGroupOption {\n value: CheckboxGroupSingleValue;\n label: string;\n disabled?: boolean;\n border?: boolean;\n}\n\nexport const checkboxProps = {\n modelValue: {\n type: [Boolean, String, Number],\n default: undefined as undefined\n },\n trueValue: {\n type: [String, Number, Boolean],\n default: true\n },\n falseValue: {\n type: [String, Number, Boolean],\n default: false\n },\n value: {\n type: [String, Number],\n default: ''\n },\n disabled: {\n type: Boolean,\n default: false\n },\n name: {\n type: String,\n default: ''\n },\n indeterminate: {\n type: Boolean,\n default: false\n }\n};\n\nexport type CheckboxProps = ExtractPropTypes<typeof checkboxProps>;\n\nexport const checkboxEmits = {\n 'update:modelValue': (val: CheckboxValueType) =>\n val === undefined || typeof val === 'boolean' || typeof val === 'number' || typeof val === 'string',\n change: (val: CheckboxValueType, ev: Event) =>\n (val === undefined || typeof val === 'boolean' || typeof val === 'number' || typeof val === 'string') && ev instanceof Event,\n click: (ev: Event) => ev instanceof Event\n};\n\nexport type CheckboxEmits = typeof checkboxEmits;\n\nexport type CheckboxInstanceType = InstanceType<typeof Checkbox>;\n\nexport const checkboxButtonType = ['border', 'fill', 'card'] as const;\nexport type CheckboxButtonType = (typeof checkboxButtonType)[number];\n\nexport const checkboxGroupProps = {\n modelValue: {\n type: Array as PropType<CheckboxGroupSingleValue[]>,\n default: () => [] as CheckboxGroupSingleValue[]\n },\n size: {\n type: String as PropType<NormalSizeMap>,\n default: 'default',\n validator: oneOf(normalSizeMap.map((x) => x))\n },\n options: {\n type: Array as PropType<CheckboxGroupOption[]>,\n default: () => [] as CheckboxGroupOption[]\n },\n disabled: {\n type: Boolean,\n default: false\n },\n loading: {\n type: Boolean,\n default: false\n },\n loadingText: {\n type: String\n },\n buttonType: {\n type: String as PropType<CheckboxButtonType>,\n default: 'border',\n validator: oneOf(checkboxButtonType)\n },\n type: {\n type: String as PropType<CheckboxGroupType>,\n default: 'default',\n validator: oneOf(checkboxGroupType)\n },\n buttonFill: {\n type: Boolean,\n default: false\n },\n direction: {\n type: String as PropType<'ltr' | 'rtl'>\n }\n};\n\nexport type CheckboxGroupProps = ExtractPropTypes<typeof checkboxGroupProps>;\n\nexport const checkboxGroupEmits = {\n 'update:modelValue': (v: CheckboxGroupSingleValue[]) =>\n Array.isArray(v) && v.every((x) => x === undefined || typeof x === 'number' || typeof x === 'string'),\n change: (v: CheckboxGroupSingleValue[]) => Array.isArray(v) && v.every((x) => x === undefined || typeof x === 'number' || typeof x === 'string')\n};\n\nexport type CheckboxGroupEmits = typeof checkboxGroupEmits;\n\nexport type CheckboxGroupInstanceType = InstanceType<typeof CheckboxGroup>;\n\nexport interface ChangeState {\n checked: boolean;\n value: CheckboxGroupSingleValue;\n}\n\nexport interface CheckboxGroupContext {\n stateValue: Ref<CheckboxGroupSingleValue[]>;\n size: Ref<NormalSizeMap>;\n disabled: Ref<boolean>;\n buttonType: Ref<boolean>;\n change: (state: ChangeState) => void;\n}\n"],"names":["oneOf","normalSizeMap"],"mappings":";;;;;;;MASa,oBAAoB,CAAC,WAAW,QAAQ;MASxC,gBAAgB;AAAA,EAC3B,YAAY;AAAA,IACV,MAAM,CAAC,SAAS,QAAQ,MAAM;AAAA,IAC9B,SAAS;AAAA;AACX,EACA,WAAW;AAAA,IACT,MAAM,CAAC,QAAQ,QAAQ,OAAO;AAAA,IAC9B,SAAS;AAAA;AACX,EACA,YAAY;AAAA,IACV,MAAM,CAAC,QAAQ,QAAQ,OAAO;AAAA,IAC9B,SAAS;AAAA;AACX,EACA,OAAO;AAAA,IACL,MAAM,CAAC,QAAQ,MAAM;AAAA,IACrB,SAAS;AAAA;AACX,EACA,UAAU;AAAA,IACR,MAAM;AAAA,IACN,SAAS;AAAA;AACX,EACA,MAAM;AAAA,IACJ,MAAM;AAAA,IACN,SAAS;AAAA;AACX,EACA,eAAe;AAAA,IACb,MAAM;AAAA,IACN,SAAS;AAAA;AAEb;MAIa,gBAAgB;AAAA,EAC3B,qBAAqB,CAAC,QACpB,QAAQ,UAAa,OAAO,QAAQ,aAAa,OAAO,QAAQ,YAAY,OAAO,QAAQ;AAAA,EAC7F,QAAQ,CAAC,KAAwB,QAC9B,QAAQ,UAAa,OAAO,QAAQ,aAAa,OAAO,QAAQ,YAAY,OAAO,QAAQ,aAAa,cAAc;AAAA,EACzH,OAAO,CAAC,OAAc,cAAc;AACtC;MAMa,qBAAqB,CAAC,UAAU,QAAQ,MAAM;MAG9C,qBAAqB;AAAA,EAChC,YAAY;AAAA,IACV,MAAM;AAAA,IACN,SAAS,MAAM;AAAC;AAClB,EACA,MAAM;AAAA,IACJ,MAAM;AAAA,IACN,SAAS;AAAA,IACT,WAAWA,sBAAMC,yBAAc,IAAI,CAAC,MAAM,CAAC,CAAC;AAAA;AAC9C,EACA,SAAS;AAAA,IACP,MAAM;AAAA,IACN,SAAS,MAAM;AAAC;AAClB,EACA,UAAU;AAAA,IACR,MAAM;AAAA,IACN,SAAS;AAAA;AACX,EACA,SAAS;AAAA,IACP,MAAM;AAAA,IACN,SAAS;AAAA;AACX,EACA,aAAa;AAAA,IACX,MAAM;AAAA;AACR,EACA,YAAY;AAAA,IACV,MAAM;AAAA,IACN,SAAS;AAAA,IACT,WAAWD,sBAAM,kBAAkB;AAAA;AACrC,EACA,MAAM;AAAA,IACJ,MAAM;AAAA,IACN,SAAS;AAAA,IACT,WAAWA,sBAAM,iBAAiB;AAAA;AACpC,EACA,YAAY;AAAA,IACV,MAAM;AAAA,IACN,SAAS;AAAA;AACX,EACA,WAAW;AAAA,IACT,MAAM;AAAA;AAEV;MAIa,qBAAqB;AAAA,EAChC,qBAAqB,CAAC,MACpB,MAAM,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC,MAAM,MAAM,UAAa,OAAO,MAAM,YAAY,OAAO,MAAM,QAAQ;AAAA,EACtG,QAAQ,CAAC,MAAkC,MAAM,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC,MAAM,MAAM,UAAa,OAAO,MAAM,YAAY,OAAO,MAAM,QAAQ;AACjJ;;;;;;;;;"}
|
|
@@ -42,6 +42,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
42
42
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
43
43
|
'update:modelValue': (val: import("./Checkbox.type").CheckboxValueType) => boolean;
|
|
44
44
|
change: (val: import("./Checkbox.type").CheckboxValueType, ev: Event) => boolean;
|
|
45
|
+
click: (ev: Event) => boolean;
|
|
45
46
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
46
47
|
modelValue: {
|
|
47
48
|
type: (BooleanConstructor | StringConstructor | NumberConstructor)[];
|
|
@@ -73,6 +74,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
73
74
|
};
|
|
74
75
|
}>> & Readonly<{
|
|
75
76
|
onChange?: (val: import("./Checkbox.type").CheckboxValueType, ev: Event) => any;
|
|
77
|
+
onClick?: (ev: Event) => any;
|
|
76
78
|
"onUpdate:modelValue"?: (val: import("./Checkbox.type").CheckboxValueType) => any;
|
|
77
79
|
}>, {
|
|
78
80
|
name: string;
|
|
@@ -281,6 +281,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
281
281
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
282
282
|
'update:modelValue': (val: import("./Checkbox.type").CheckboxValueType) => boolean;
|
|
283
283
|
change: (val: import("./Checkbox.type").CheckboxValueType, ev: Event) => boolean;
|
|
284
|
+
click: (ev: Event) => boolean;
|
|
284
285
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
285
286
|
modelValue: {
|
|
286
287
|
type: (BooleanConstructor | StringConstructor | NumberConstructor)[];
|
|
@@ -312,6 +313,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
312
313
|
};
|
|
313
314
|
}>> & Readonly<{
|
|
314
315
|
onChange?: (val: import("./Checkbox.type").CheckboxValueType, ev: Event) => any;
|
|
316
|
+
onClick?: (ev: Event) => any;
|
|
315
317
|
"onUpdate:modelValue"?: (val: import("./Checkbox.type").CheckboxValueType) => any;
|
|
316
318
|
}>, {
|
|
317
319
|
name: string;
|
|
@@ -31,6 +31,7 @@ export declare const UCheckbox: {
|
|
|
31
31
|
};
|
|
32
32
|
}>> & Readonly<{
|
|
33
33
|
onChange?: (val: import("./Checkbox.type").CheckboxValueType, ev: Event) => any;
|
|
34
|
+
onClick?: (ev: Event) => any;
|
|
34
35
|
"onUpdate:modelValue"?: (val: import("./Checkbox.type").CheckboxValueType) => any;
|
|
35
36
|
}>, {
|
|
36
37
|
prefixCls: import("vue").ComputedRef<string>;
|
|
@@ -47,6 +48,7 @@ export declare const UCheckbox: {
|
|
|
47
48
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
48
49
|
'update:modelValue': (val: import("./Checkbox.type").CheckboxValueType) => boolean;
|
|
49
50
|
change: (val: import("./Checkbox.type").CheckboxValueType, ev: Event) => boolean;
|
|
51
|
+
click: (ev: Event) => boolean;
|
|
50
52
|
}, import("vue").PublicProps, {
|
|
51
53
|
name: string;
|
|
52
54
|
disabled: boolean;
|
|
@@ -227,6 +229,7 @@ export declare const UCheckbox: {
|
|
|
227
229
|
};
|
|
228
230
|
}>> & Readonly<{
|
|
229
231
|
onChange?: (val: import("./Checkbox.type").CheckboxValueType, ev: Event) => any;
|
|
232
|
+
onClick?: (ev: Event) => any;
|
|
230
233
|
"onUpdate:modelValue"?: (val: import("./Checkbox.type").CheckboxValueType) => any;
|
|
231
234
|
}>, {
|
|
232
235
|
prefixCls: import("vue").ComputedRef<string>;
|
|
@@ -283,6 +286,7 @@ export declare const UCheckbox: {
|
|
|
283
286
|
};
|
|
284
287
|
}>> & Readonly<{
|
|
285
288
|
onChange?: (val: import("./Checkbox.type").CheckboxValueType, ev: Event) => any;
|
|
289
|
+
onClick?: (ev: Event) => any;
|
|
286
290
|
"onUpdate:modelValue"?: (val: import("./Checkbox.type").CheckboxValueType) => any;
|
|
287
291
|
}>, {
|
|
288
292
|
prefixCls: import("vue").ComputedRef<string>;
|
|
@@ -299,6 +303,7 @@ export declare const UCheckbox: {
|
|
|
299
303
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
300
304
|
'update:modelValue': (val: import("./Checkbox.type").CheckboxValueType) => boolean;
|
|
301
305
|
change: (val: import("./Checkbox.type").CheckboxValueType, ev: Event) => boolean;
|
|
306
|
+
click: (ev: Event) => boolean;
|
|
302
307
|
}, string, {
|
|
303
308
|
name: string;
|
|
304
309
|
disabled: boolean;
|
|
@@ -725,6 +730,7 @@ export declare const UCheckbox: {
|
|
|
725
730
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
726
731
|
'update:modelValue': (val: import("./Checkbox.type").CheckboxValueType) => boolean;
|
|
727
732
|
change: (val: import("./Checkbox.type").CheckboxValueType, ev: Event) => boolean;
|
|
733
|
+
click: (ev: Event) => boolean;
|
|
728
734
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
729
735
|
modelValue: {
|
|
730
736
|
type: (BooleanConstructor | StringConstructor | NumberConstructor)[];
|
|
@@ -756,6 +762,7 @@ export declare const UCheckbox: {
|
|
|
756
762
|
};
|
|
757
763
|
}>> & Readonly<{
|
|
758
764
|
onChange?: (val: import("./Checkbox.type").CheckboxValueType, ev: Event) => any;
|
|
765
|
+
onClick?: (ev: Event) => any;
|
|
759
766
|
"onUpdate:modelValue"?: (val: import("./Checkbox.type").CheckboxValueType) => any;
|
|
760
767
|
}>, {
|
|
761
768
|
name: string;
|
|
@@ -129,9 +129,7 @@ var UCircle = vue.defineComponent({
|
|
|
129
129
|
const iconSvg = statusIcon.value;
|
|
130
130
|
const defaultTextRender = isStatus.value ? vue.createVNode("span", {
|
|
131
131
|
"class": `${prefixCls.value}-text-inner`
|
|
132
|
-
}, [vue.createVNode(index.UIcon, {
|
|
133
|
-
"style": "font-size: 24px"
|
|
134
|
-
}, {
|
|
132
|
+
}, [vue.createVNode(index.UIcon, null, {
|
|
135
133
|
default: () => [vue.createVNode(iconSvg, null, null)]
|
|
136
134
|
})]) : vue.createVNode("span", {
|
|
137
135
|
"class": `${prefixCls.value}-text-inner`
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Circle.js","sources":["../../../../src/components/Progress/Circle.tsx"],"sourcesContent":["import { defineComponent, watch, onMounted } from 'vue';\nimport type { PropType } from 'vue';\nimport UIcon from '@uxd-ui/components/Icon';\nimport { oneOf } from '../../utils/propsValidators';\nimport useGlobalConfig from '../base/hooks/useGlobalConfig';\nimport URender from '../base/Render';\nimport useProgress from './hooks/useProgress';\nimport { progressEmits, progressStatus, type ProgressStauts } from './Progress.type';\nimport { getSlot } from '../../utils/slots';\n\nconst defineProps = {\n percent: {\n type: Number,\n default: 0\n },\n successPercent: {\n type: Number,\n default: 0\n },\n status: {\n type: String as PropType<ProgressStauts>,\n default: 'normal',\n validator: oneOf(progressStatus)\n },\n hideInfo: {\n type: Boolean,\n default: false\n },\n strokeWidth: {\n type: Number,\n default: 6\n },\n strokeColor: {\n type: [String, Array] as PropType<string | string[]>\n },\n textInside: {\n type: Boolean,\n default: false\n }\n};\n\nexport default defineComponent({\n name: 'UCircle',\n components: {\n URender,\n UIcon\n },\n props: defineProps,\n emits: progressEmits,\n setup(props, { emit, slots }) {\n const { prefixCls } = useGlobalConfig('progress');\n // data\n const patchColor = '#F3F3F3';\n const statusColorMap: Record<ProgressStauts, string> = {\n normal: '#4d9bee',\n active: '#4d9bee',\n wrong: '#ed3f14',\n success: '#19be6b'\n };\n const radius = Math.ceil(44 - props.strokeWidth / 2);\n const len = Math.ceil(Math.PI * 2 * radius);\n\n const { currentStatus, isStatus, statusIcon, handleStatus } = useProgress(props, { emit });\n // computed\n\n // watch\n watch(\n () => props.percent,\n (nv, ov) => {\n if (nv < ov) {\n handleStatus(true);\n } else {\n handleStatus();\n }\n }\n );\n watch(\n () => props.status,\n (nv) => {\n currentStatus.value = nv;\n }\n );\n // lifecycle\n onMounted(() => {\n handleStatus();\n });\n // methods\n const circleStyle = {\n cx: '50%',\n cy: '50%',\n r: '40',\n transform: 'rotate(-90 50 50)',\n 'stroke-width': props.strokeWidth,\n 'stroke-linecap': props.percent === 0 ? 'butt' : 'round'\n };\n\n return () => {\n const { strokeColor, successPercent, percent } = props;\n\n const gradientRender =\n strokeColor !== undefined ? (\n <defs>\n <linearGradient id=\"svg-gradient\" gradientUnits=\"userSpaceOnUse\" x1=\"100%\" y1=\"100%\" x2=\"0\" y2=\"0\">\n <stop offset=\"0%\" stop-color={Array.isArray(props.strokeColor) ? props.strokeColor[0] : props.strokeColor} />\n <stop offset=\"100%\" stop-color={Array.isArray(props.strokeColor) ? props.strokeColor[1] : props.strokeColor} />\n </linearGradient>\n </defs>\n ) : null;\n\n const pathRender = <circle {...circleStyle} stroke={patchColor}></circle>;\n const percentRender = (\n <circle\n {...circleStyle}\n stroke={!props.strokeColor || isStatus.value ? statusColorMap[currentStatus.value] : 'url(#svg-gradient)'}\n stroke-dasharray={`${Math.ceil((props.percent / 100) * len)}, ${len}`}\n stroke-linecap={Math.ceil(props.percent / 100) ? 'round' : 'butt'}\n ></circle>\n );\n\n const successPercentRender = successPercent ? (\n <circle\n {...circleStyle}\n stroke={statusColorMap.success}\n stroke-dasharray={`${Math.ceil((props.successPercent / 100) * len)}, ${len}`}\n ></circle>\n ) : null;\n\n const iconSvg = statusIcon.value;\n\n const defaultTextRender = isStatus.value ? (\n <span class={`${prefixCls.value}-text-inner`}>\n <UIcon
|
|
1
|
+
{"version":3,"file":"Circle.js","sources":["../../../../src/components/Progress/Circle.tsx"],"sourcesContent":["import { defineComponent, watch, onMounted } from 'vue';\nimport type { PropType } from 'vue';\nimport UIcon from '@uxd-ui/components/Icon';\nimport { oneOf } from '../../utils/propsValidators';\nimport useGlobalConfig from '../base/hooks/useGlobalConfig';\nimport URender from '../base/Render';\nimport useProgress from './hooks/useProgress';\nimport { progressEmits, progressStatus, type ProgressStauts } from './Progress.type';\nimport { getSlot } from '../../utils/slots';\n\nconst defineProps = {\n percent: {\n type: Number,\n default: 0\n },\n successPercent: {\n type: Number,\n default: 0\n },\n status: {\n type: String as PropType<ProgressStauts>,\n default: 'normal',\n validator: oneOf(progressStatus)\n },\n hideInfo: {\n type: Boolean,\n default: false\n },\n strokeWidth: {\n type: Number,\n default: 6\n },\n strokeColor: {\n type: [String, Array] as PropType<string | string[]>\n },\n textInside: {\n type: Boolean,\n default: false\n }\n};\n\nexport default defineComponent({\n name: 'UCircle',\n components: {\n URender,\n UIcon\n },\n props: defineProps,\n emits: progressEmits,\n setup(props, { emit, slots }) {\n const { prefixCls } = useGlobalConfig('progress');\n // data\n const patchColor = '#F3F3F3';\n const statusColorMap: Record<ProgressStauts, string> = {\n normal: '#4d9bee',\n active: '#4d9bee',\n wrong: '#ed3f14',\n success: '#19be6b'\n };\n const radius = Math.ceil(44 - props.strokeWidth / 2);\n const len = Math.ceil(Math.PI * 2 * radius);\n\n const { currentStatus, isStatus, statusIcon, handleStatus } = useProgress(props, { emit });\n // computed\n\n // watch\n watch(\n () => props.percent,\n (nv, ov) => {\n if (nv < ov) {\n handleStatus(true);\n } else {\n handleStatus();\n }\n }\n );\n watch(\n () => props.status,\n (nv) => {\n currentStatus.value = nv;\n }\n );\n // lifecycle\n onMounted(() => {\n handleStatus();\n });\n // methods\n const circleStyle = {\n cx: '50%',\n cy: '50%',\n r: '40',\n transform: 'rotate(-90 50 50)',\n 'stroke-width': props.strokeWidth,\n 'stroke-linecap': props.percent === 0 ? ('butt' as const) : ('round' as const)\n };\n\n return () => {\n const { strokeColor, successPercent, percent } = props;\n\n const gradientRender =\n strokeColor !== undefined ? (\n <defs>\n <linearGradient id=\"svg-gradient\" gradientUnits=\"userSpaceOnUse\" x1=\"100%\" y1=\"100%\" x2=\"0\" y2=\"0\">\n <stop offset=\"0%\" stop-color={Array.isArray(props.strokeColor) ? props.strokeColor[0] : props.strokeColor} />\n <stop offset=\"100%\" stop-color={Array.isArray(props.strokeColor) ? props.strokeColor[1] : props.strokeColor} />\n </linearGradient>\n </defs>\n ) : null;\n\n const pathRender = <circle {...circleStyle} stroke={patchColor}></circle>;\n const percentRender = (\n <circle\n {...circleStyle}\n stroke={!props.strokeColor || isStatus.value ? statusColorMap[currentStatus.value] : 'url(#svg-gradient)'}\n stroke-dasharray={`${Math.ceil((props.percent / 100) * len)}, ${len}`}\n stroke-linecap={Math.ceil(props.percent / 100) ? 'round' : 'butt'}\n ></circle>\n );\n\n const successPercentRender = successPercent ? (\n <circle\n {...circleStyle}\n stroke={statusColorMap.success}\n stroke-dasharray={`${Math.ceil((props.successPercent / 100) * len)}, ${len}`}\n ></circle>\n ) : null;\n\n const iconSvg = statusIcon.value;\n\n const defaultTextRender = isStatus.value ? (\n <span class={`${prefixCls.value}-text-inner`}>\n <UIcon>\n <iconSvg></iconSvg>\n </UIcon>\n </span>\n ) : (\n <span class={`${prefixCls.value}-text-inner`}>{percent}%</span>\n );\n\n return (\n <div class={[`${prefixCls.value}`, `${prefixCls.value}-circle`, `${prefixCls.value}-${currentStatus.value}`]}>\n <div class={`${prefixCls.value}-inner`}>\n <svg xmlns=\"http://www.w3.org/2000/svg\" height=\"100%\" width=\"100%\" viewBox=\"0 0 100 100\">\n {gradientRender}\n {pathRender}\n {percentRender}\n {successPercentRender}\n </svg>\n <div class={`${prefixCls.value}-text`}>{getSlot(slots).length ? getSlot(slots) : defaultTextRender}</div>\n </div>\n </div>\n );\n };\n }\n});\n"],"names":["defineProps","percent","type","Number","default","successPercent","status","String","validator","oneOf","progressStatus","hideInfo","Boolean","strokeWidth","strokeColor","Array","textInside","defineComponent","name","components","URender","UIcon","props","emits","progressEmits","setup","emit","slots","prefixCls","useGlobalConfig","patchColor","statusColorMap","normal","active","wrong","success","radius","Math","ceil","len","PI","currentStatus","isStatus","statusIcon","handleStatus","useProgress","watch","nv","ov","value","onMounted","circleStyle","cx","cy","r","transform","gradientRender","undefined","_createVNode","isArray","pathRender","_mergeProps","percentRender","successPercentRender","iconSvg","defaultTextRender","_createTextVNode","getSlot","length"],"mappings":"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"}
|
|
@@ -48,14 +48,13 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
48
48
|
"stroke-width": _ctx.strokeWidth,
|
|
49
49
|
"stroke-color": _ctx.strokeColor,
|
|
50
50
|
vertical: _ctx.vertical,
|
|
51
|
-
"text-inside": _ctx.textInside
|
|
52
|
-
"data-color": _ctx.color
|
|
51
|
+
"text-inside": _ctx.textInside
|
|
53
52
|
}, {
|
|
54
53
|
default: vue.withCtx(() => [
|
|
55
54
|
vue.renderSlot(_ctx.$slots, "default")
|
|
56
55
|
]),
|
|
57
56
|
_: 3
|
|
58
|
-
}, 8, ["percent", "success-percent", "status", "hide-info", "stroke-width", "stroke-color", "vertical", "text-inside"
|
|
57
|
+
}, 8, ["percent", "success-percent", "status", "hide-info", "stroke-width", "stroke-color", "vertical", "text-inside"]);
|
|
59
58
|
}
|
|
60
59
|
var Progress = /* @__PURE__ */ pluginVue_exportHelper["default"](_sfc_main, [["render", _sfc_render], ["__file", "/Users/admin/Documents/uxd/uxd-ui/src/components/Progress/Progress.vue"]]);
|
|
61
60
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Progress.js","sources":["../../../../src/components/Progress/Progress.vue"],"sourcesContent":["<template>\n <component\n :is=\"wrapperComponent\"\n :percent=\"percent\"\n :success-percent=\"successPercent\"\n :status=\"status\"\n :hide-info=\"hideInfo\"\n :stroke-width=\"strokeWidth\"\n :stroke-color=\"strokeColor\"\n :vertical=\"vertical\"\n :text-inside=\"textInside\"\n
|
|
1
|
+
{"version":3,"file":"Progress.js","sources":["../../../../src/components/Progress/Progress.vue"],"sourcesContent":["<template>\n <component\n :is=\"wrapperComponent\"\n :percent=\"percent\"\n :success-percent=\"successPercent\"\n :status=\"status\"\n :hide-info=\"hideInfo\"\n :stroke-width=\"strokeWidth\"\n :stroke-color=\"strokeColor\"\n :vertical=\"vertical\"\n :text-inside=\"textInside\"\n >\n <slot />\n </component>\n</template>\n\n<script lang=\"ts\">\nimport { defineComponent, computed } from 'vue';\nimport ULine from './Line.vue';\nimport UCircle from './Circle';\nimport UWater from './Water.vue';\n\nimport { progressProps } from './Progress.type';\n\nexport default defineComponent({\n name: 'UProgress',\n components: {\n ULine,\n UCircle,\n UWater\n },\n props: progressProps,\n setup(props) {\n const wrapperComponent = computed(() => {\n const { type } = props;\n let wrapComponent = '';\n switch (type) {\n case 'circle':\n wrapComponent = 'u-circle';\n break;\n case 'water':\n wrapComponent = 'u-water';\n break;\n default:\n wrapComponent = 'u-line';\n }\n return wrapComponent;\n });\n return {\n props,\n wrapperComponent\n };\n }\n});\n</script>\n"],"names":["defineComponent","ULine","UCircle","UWater","progressProps","computed","_createBlock","_resolveDynamicComponent","_renderSlot"],"mappings":";;;;;;;;;;;AAwBA,MAAK,YAAaA,oBAAa;AAAA,EAC7B,MAAM;AAAA,EACN,YAAY;AAAA,WACVC;AAAA,aACAC;AAAA,YACAC;AAAA;AACF,EACA,OAAOC;AAAA,EACP,MAAM,OAAO;UACL,mBAAmBC,aAAS,MAAM;YAChC,EAAE,SAAS;UACb,gBAAgB;cACZ;AAAA,aACD;0BACa;;aAEb;0BACa;;;0BAGA;AAAA;aAEb;AAAA,KACR;WACM;AAAA,MACL;AAAA,MACA;AAAA;AACF;AAEJ,CAAC;;0BApDCC,gBAYYC,4BAXL,qBAAgB;IACpB,SAAS;IACT,mBAAiB;IACjB,QAAQ;IACR,aAAW;IACX,gBAAc;IACd,gBAAc;IACd,UAAU;IACV,eAAa;;yBAEd,MAAQ;AAAA,MAARC,eAAQ;;;;;;;;;"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ExtractPropTypes, PropType } from 'vue';
|
|
2
|
-
import {
|
|
2
|
+
import type { EmitFn } from '../../utils/globalType';
|
|
3
3
|
import type Progress from './Progress.vue';
|
|
4
4
|
export declare const progressStatus: readonly ["normal", "active", "wrong", "success"];
|
|
5
5
|
export declare type ProgressStauts = (typeof progressStatus)[number];
|
|
@@ -43,11 +43,6 @@ export declare const progressProps: {
|
|
|
43
43
|
default: string;
|
|
44
44
|
validator: (val: "circle" | "line" | "water") => boolean;
|
|
45
45
|
};
|
|
46
|
-
color: {
|
|
47
|
-
type: PropType<"primary" | "blue" | "red" | "orange" | "green" | "iris" | "cyan" | "yellow" | "amber" | "purple" | "lime" | "sky" | "violet" | "pink" | "mint">;
|
|
48
|
-
default: "primary" | "blue" | "red" | "orange" | "green" | "iris" | "cyan" | "yellow" | "amber" | "purple" | "lime" | "sky" | "violet" | "pink" | "mint";
|
|
49
|
-
validator: (val: "primary" | "blue" | "red" | "orange" | "green" | "iris" | "cyan" | "yellow" | "amber" | "purple" | "lime" | "sky" | "violet" | "pink" | "mint") => boolean;
|
|
50
|
-
};
|
|
51
46
|
};
|
|
52
47
|
export declare type ProgressProps = ExtractPropTypes<typeof progressProps>;
|
|
53
48
|
export declare const progressEmits: {
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var globalType = require('../../utils/globalType.js');
|
|
6
5
|
var propsValidators = require('../../utils/propsValidators.js');
|
|
7
6
|
|
|
8
7
|
const progressStatus = ["normal", "active", "wrong", "success"];
|
|
@@ -44,11 +43,6 @@ const progressProps = {
|
|
|
44
43
|
type: String,
|
|
45
44
|
default: "line",
|
|
46
45
|
validator: propsValidators.oneOf(progressType)
|
|
47
|
-
},
|
|
48
|
-
color: {
|
|
49
|
-
type: String,
|
|
50
|
-
default: void 0,
|
|
51
|
-
validator: propsValidators.oneOf(globalType.colorType)
|
|
52
46
|
}
|
|
53
47
|
};
|
|
54
48
|
const progressEmits = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Progress.type.js","sources":["../../../../src/components/Progress/Progress.type.ts"],"sourcesContent":["import type { ExtractPropTypes, PropType } from 'vue';\nimport
|
|
1
|
+
{"version":3,"file":"Progress.type.js","sources":["../../../../src/components/Progress/Progress.type.ts"],"sourcesContent":["import type { ExtractPropTypes, PropType } from 'vue';\nimport type { EmitFn } from '../../utils/globalType';\nimport { oneOf } from '../../utils/propsValidators';\nimport type Progress from './Progress.vue';\n\nexport const progressStatus = ['normal', 'active', 'wrong', 'success'] as const;\nexport type ProgressStauts = (typeof progressStatus)[number];\nexport const progressType = ['line', 'circle', 'water'] as const;\nexport type ProgressType = (typeof progressType)[number];\n\nexport const progressProps = {\n percent: {\n type: Number,\n default: 0\n },\n successPercent: {\n type: Number,\n default: 0\n },\n status: {\n type: String as PropType<ProgressStauts>,\n default: 'normal',\n validator: oneOf(progressStatus)\n },\n hideInfo: {\n type: Boolean,\n default: false\n },\n strokeWidth: {\n type: Number,\n default: 8\n },\n strokeColor: {\n type: [String, Array] as PropType<string | string[]>\n },\n vertical: {\n type: Boolean,\n default: false\n },\n textInside: {\n type: Boolean,\n default: false\n },\n type: {\n type: String as PropType<ProgressType>,\n default: 'line',\n validator: oneOf(progressType)\n }\n};\n\nexport type ProgressProps = ExtractPropTypes<typeof progressProps>;\n\nexport const progressEmits = {\n 'status-change': (status: ProgressStauts) => progressStatus.includes(status)\n};\n\nexport type ProgressEmits = typeof progressEmits;\n\nexport type ProgressEmit = EmitFn<ProgressEmits>;\n\nexport type ProgressInstanceType = InstanceType<typeof Progress>;\n"],"names":["oneOf"],"mappings":";;;;;;MAKa,iBAAiB,CAAC,UAAU,UAAU,SAAS,SAAS;MAExD,eAAe,CAAC,QAAQ,UAAU,OAAO;MAGzC,gBAAgB;AAAA,EAC3B,SAAS;AAAA,IACP,MAAM;AAAA,IACN,SAAS;AAAA;AACX,EACA,gBAAgB;AAAA,IACd,MAAM;AAAA,IACN,SAAS;AAAA;AACX,EACA,QAAQ;AAAA,IACN,MAAM;AAAA,IACN,SAAS;AAAA,IACT,WAAWA,sBAAM,cAAc;AAAA;AACjC,EACA,UAAU;AAAA,IACR,MAAM;AAAA,IACN,SAAS;AAAA;AACX,EACA,aAAa;AAAA,IACX,MAAM;AAAA,IACN,SAAS;AAAA;AACX,EACA,aAAa;AAAA,IACX,MAAM,CAAC,QAAQ,KAAK;AAAA;AACtB,EACA,UAAU;AAAA,IACR,MAAM;AAAA,IACN,SAAS;AAAA;AACX,EACA,YAAY;AAAA,IACV,MAAM;AAAA,IACN,SAAS;AAAA;AACX,EACA,MAAM;AAAA,IACJ,MAAM;AAAA,IACN,SAAS;AAAA,IACT,WAAWA,sBAAM,YAAY;AAAA;AAEjC;MAIa,gBAAgB;AAAA,EAC3B,iBAAiB,CAAC,WAA2B,eAAe,SAAS,MAAM;AAC7E;;;;;;;"}
|
|
@@ -36,11 +36,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
36
36
|
default: string;
|
|
37
37
|
validator: (val: "circle" | "line" | "water") => boolean;
|
|
38
38
|
};
|
|
39
|
-
color: {
|
|
40
|
-
type: import("vue").PropType<"primary" | "blue" | "red" | "orange" | "green" | "iris" | "cyan" | "yellow" | "amber" | "purple" | "lime" | "sky" | "violet" | "pink" | "mint">;
|
|
41
|
-
default: "primary" | "blue" | "red" | "orange" | "green" | "iris" | "cyan" | "yellow" | "amber" | "purple" | "lime" | "sky" | "violet" | "pink" | "mint";
|
|
42
|
-
validator: (val: "primary" | "blue" | "red" | "orange" | "green" | "iris" | "cyan" | "yellow" | "amber" | "purple" | "lime" | "sky" | "violet" | "pink" | "mint") => boolean;
|
|
43
|
-
};
|
|
44
39
|
}>, {
|
|
45
40
|
props: import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
46
41
|
percent: {
|
|
@@ -80,11 +75,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
80
75
|
default: string;
|
|
81
76
|
validator: (val: "circle" | "line" | "water") => boolean;
|
|
82
77
|
};
|
|
83
|
-
color: {
|
|
84
|
-
type: import("vue").PropType<"primary" | "blue" | "red" | "orange" | "green" | "iris" | "cyan" | "yellow" | "amber" | "purple" | "lime" | "sky" | "violet" | "pink" | "mint">;
|
|
85
|
-
default: "primary" | "blue" | "red" | "orange" | "green" | "iris" | "cyan" | "yellow" | "amber" | "purple" | "lime" | "sky" | "violet" | "pink" | "mint";
|
|
86
|
-
validator: (val: "primary" | "blue" | "red" | "orange" | "green" | "iris" | "cyan" | "yellow" | "amber" | "purple" | "lime" | "sky" | "violet" | "pink" | "mint") => boolean;
|
|
87
|
-
};
|
|
88
78
|
}>> & Readonly<{}> & {}>;
|
|
89
79
|
wrapperComponent: import("vue").ComputedRef<string>;
|
|
90
80
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
@@ -125,13 +115,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
125
115
|
default: string;
|
|
126
116
|
validator: (val: "circle" | "line" | "water") => boolean;
|
|
127
117
|
};
|
|
128
|
-
color: {
|
|
129
|
-
type: import("vue").PropType<"primary" | "blue" | "red" | "orange" | "green" | "iris" | "cyan" | "yellow" | "amber" | "purple" | "lime" | "sky" | "violet" | "pink" | "mint">;
|
|
130
|
-
default: "primary" | "blue" | "red" | "orange" | "green" | "iris" | "cyan" | "yellow" | "amber" | "purple" | "lime" | "sky" | "violet" | "pink" | "mint";
|
|
131
|
-
validator: (val: "primary" | "blue" | "red" | "orange" | "green" | "iris" | "cyan" | "yellow" | "amber" | "purple" | "lime" | "sky" | "violet" | "pink" | "mint") => boolean;
|
|
132
|
-
};
|
|
133
118
|
}>> & Readonly<{}>, {
|
|
134
|
-
color: "primary" | "blue" | "red" | "orange" | "green" | "iris" | "cyan" | "yellow" | "amber" | "purple" | "lime" | "sky" | "violet" | "pink" | "mint";
|
|
135
119
|
percent: number;
|
|
136
120
|
status: "success" | "normal" | "active" | "wrong";
|
|
137
121
|
type: "circle" | "line" | "water";
|
|
@@ -37,11 +37,6 @@ export declare const UProgress: {
|
|
|
37
37
|
default: string;
|
|
38
38
|
validator: (val: "circle" | "line" | "water") => boolean;
|
|
39
39
|
};
|
|
40
|
-
color: {
|
|
41
|
-
type: import("vue").PropType<"primary" | "blue" | "red" | "orange" | "green" | "iris" | "cyan" | "yellow" | "amber" | "purple" | "lime" | "sky" | "violet" | "pink" | "mint">;
|
|
42
|
-
default: "primary" | "blue" | "red" | "orange" | "green" | "iris" | "cyan" | "yellow" | "amber" | "purple" | "lime" | "sky" | "violet" | "pink" | "mint";
|
|
43
|
-
validator: (val: "primary" | "blue" | "red" | "orange" | "green" | "iris" | "cyan" | "yellow" | "amber" | "purple" | "lime" | "sky" | "violet" | "pink" | "mint") => boolean;
|
|
44
|
-
};
|
|
45
40
|
}>> & Readonly<{}>, {
|
|
46
41
|
props: import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
47
42
|
percent: {
|
|
@@ -81,15 +76,9 @@ export declare const UProgress: {
|
|
|
81
76
|
default: string;
|
|
82
77
|
validator: (val: "circle" | "line" | "water") => boolean;
|
|
83
78
|
};
|
|
84
|
-
color: {
|
|
85
|
-
type: import("vue").PropType<"primary" | "blue" | "red" | "orange" | "green" | "iris" | "cyan" | "yellow" | "amber" | "purple" | "lime" | "sky" | "violet" | "pink" | "mint">;
|
|
86
|
-
default: "primary" | "blue" | "red" | "orange" | "green" | "iris" | "cyan" | "yellow" | "amber" | "purple" | "lime" | "sky" | "violet" | "pink" | "mint";
|
|
87
|
-
validator: (val: "primary" | "blue" | "red" | "orange" | "green" | "iris" | "cyan" | "yellow" | "amber" | "purple" | "lime" | "sky" | "violet" | "pink" | "mint") => boolean;
|
|
88
|
-
};
|
|
89
79
|
}>> & Readonly<{}> & {}>;
|
|
90
80
|
wrapperComponent: import("vue").ComputedRef<string>;
|
|
91
81
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").PublicProps, {
|
|
92
|
-
color: "primary" | "blue" | "red" | "orange" | "green" | "iris" | "cyan" | "yellow" | "amber" | "purple" | "lime" | "sky" | "violet" | "pink" | "mint";
|
|
93
82
|
percent: number;
|
|
94
83
|
status: "success" | "normal" | "active" | "wrong";
|
|
95
84
|
type: "circle" | "line" | "water";
|
|
@@ -652,11 +641,6 @@ export declare const UProgress: {
|
|
|
652
641
|
default: string;
|
|
653
642
|
validator: (val: "circle" | "line" | "water") => boolean;
|
|
654
643
|
};
|
|
655
|
-
color: {
|
|
656
|
-
type: import("vue").PropType<"primary" | "blue" | "red" | "orange" | "green" | "iris" | "cyan" | "yellow" | "amber" | "purple" | "lime" | "sky" | "violet" | "pink" | "mint">;
|
|
657
|
-
default: "primary" | "blue" | "red" | "orange" | "green" | "iris" | "cyan" | "yellow" | "amber" | "purple" | "lime" | "sky" | "violet" | "pink" | "mint";
|
|
658
|
-
validator: (val: "primary" | "blue" | "red" | "orange" | "green" | "iris" | "cyan" | "yellow" | "amber" | "purple" | "lime" | "sky" | "violet" | "pink" | "mint") => boolean;
|
|
659
|
-
};
|
|
660
644
|
}>> & Readonly<{}>, {
|
|
661
645
|
props: import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
662
646
|
percent: {
|
|
@@ -696,15 +680,9 @@ export declare const UProgress: {
|
|
|
696
680
|
default: string;
|
|
697
681
|
validator: (val: "circle" | "line" | "water") => boolean;
|
|
698
682
|
};
|
|
699
|
-
color: {
|
|
700
|
-
type: import("vue").PropType<"primary" | "blue" | "red" | "orange" | "green" | "iris" | "cyan" | "yellow" | "amber" | "purple" | "lime" | "sky" | "violet" | "pink" | "mint">;
|
|
701
|
-
default: "primary" | "blue" | "red" | "orange" | "green" | "iris" | "cyan" | "yellow" | "amber" | "purple" | "lime" | "sky" | "violet" | "pink" | "mint";
|
|
702
|
-
validator: (val: "primary" | "blue" | "red" | "orange" | "green" | "iris" | "cyan" | "yellow" | "amber" | "purple" | "lime" | "sky" | "violet" | "pink" | "mint") => boolean;
|
|
703
|
-
};
|
|
704
683
|
}>> & Readonly<{}> & {}>;
|
|
705
684
|
wrapperComponent: import("vue").ComputedRef<string>;
|
|
706
685
|
}, {}, {}, {}, {
|
|
707
|
-
color: "primary" | "blue" | "red" | "orange" | "green" | "iris" | "cyan" | "yellow" | "amber" | "purple" | "lime" | "sky" | "violet" | "pink" | "mint";
|
|
708
686
|
percent: number;
|
|
709
687
|
status: "success" | "normal" | "active" | "wrong";
|
|
710
688
|
type: "circle" | "line" | "water";
|
|
@@ -755,11 +733,6 @@ export declare const UProgress: {
|
|
|
755
733
|
default: string;
|
|
756
734
|
validator: (val: "circle" | "line" | "water") => boolean;
|
|
757
735
|
};
|
|
758
|
-
color: {
|
|
759
|
-
type: import("vue").PropType<"primary" | "blue" | "red" | "orange" | "green" | "iris" | "cyan" | "yellow" | "amber" | "purple" | "lime" | "sky" | "violet" | "pink" | "mint">;
|
|
760
|
-
default: "primary" | "blue" | "red" | "orange" | "green" | "iris" | "cyan" | "yellow" | "amber" | "purple" | "lime" | "sky" | "violet" | "pink" | "mint";
|
|
761
|
-
validator: (val: "primary" | "blue" | "red" | "orange" | "green" | "iris" | "cyan" | "yellow" | "amber" | "purple" | "lime" | "sky" | "violet" | "pink" | "mint") => boolean;
|
|
762
|
-
};
|
|
763
736
|
}>> & Readonly<{}>, {
|
|
764
737
|
props: import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
765
738
|
percent: {
|
|
@@ -799,15 +772,9 @@ export declare const UProgress: {
|
|
|
799
772
|
default: string;
|
|
800
773
|
validator: (val: "circle" | "line" | "water") => boolean;
|
|
801
774
|
};
|
|
802
|
-
color: {
|
|
803
|
-
type: import("vue").PropType<"primary" | "blue" | "red" | "orange" | "green" | "iris" | "cyan" | "yellow" | "amber" | "purple" | "lime" | "sky" | "violet" | "pink" | "mint">;
|
|
804
|
-
default: "primary" | "blue" | "red" | "orange" | "green" | "iris" | "cyan" | "yellow" | "amber" | "purple" | "lime" | "sky" | "violet" | "pink" | "mint";
|
|
805
|
-
validator: (val: "primary" | "blue" | "red" | "orange" | "green" | "iris" | "cyan" | "yellow" | "amber" | "purple" | "lime" | "sky" | "violet" | "pink" | "mint") => boolean;
|
|
806
|
-
};
|
|
807
775
|
}>> & Readonly<{}> & {}>;
|
|
808
776
|
wrapperComponent: import("vue").ComputedRef<string>;
|
|
809
777
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
|
|
810
|
-
color: "primary" | "blue" | "red" | "orange" | "green" | "iris" | "cyan" | "yellow" | "amber" | "purple" | "lime" | "sky" | "violet" | "pink" | "mint";
|
|
811
778
|
percent: number;
|
|
812
779
|
status: "success" | "normal" | "active" | "wrong";
|
|
813
780
|
type: "circle" | "line" | "water";
|
|
@@ -3737,6 +3737,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
3737
3737
|
};
|
|
3738
3738
|
}>> & Readonly<{
|
|
3739
3739
|
onChange?: (val: import("@koi-design/uxd-ui/es/components/Checkbox").CheckboxValueType, ev: Event) => any;
|
|
3740
|
+
onClick?: (ev: Event) => any;
|
|
3740
3741
|
"onUpdate:modelValue"?: (val: import("@koi-design/uxd-ui/es/components/Checkbox").CheckboxValueType) => any;
|
|
3741
3742
|
}>, {
|
|
3742
3743
|
prefixCls: import("vue").ComputedRef<string>;
|
|
@@ -3753,6 +3754,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
3753
3754
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
3754
3755
|
'update:modelValue': (val: import("@koi-design/uxd-ui/es/components/Checkbox").CheckboxValueType) => boolean;
|
|
3755
3756
|
change: (val: import("@koi-design/uxd-ui/es/components/Checkbox").CheckboxValueType, ev: Event) => boolean;
|
|
3757
|
+
click: (ev: Event) => boolean;
|
|
3756
3758
|
}, import("vue").PublicProps, {
|
|
3757
3759
|
name: string;
|
|
3758
3760
|
disabled: boolean;
|
|
@@ -3933,6 +3935,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
3933
3935
|
};
|
|
3934
3936
|
}>> & Readonly<{
|
|
3935
3937
|
onChange?: (val: import("@koi-design/uxd-ui/es/components/Checkbox").CheckboxValueType, ev: Event) => any;
|
|
3938
|
+
onClick?: (ev: Event) => any;
|
|
3936
3939
|
"onUpdate:modelValue"?: (val: import("@koi-design/uxd-ui/es/components/Checkbox").CheckboxValueType) => any;
|
|
3937
3940
|
}>, {
|
|
3938
3941
|
prefixCls: import("vue").ComputedRef<string>;
|
|
@@ -3989,6 +3992,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
3989
3992
|
};
|
|
3990
3993
|
}>> & Readonly<{
|
|
3991
3994
|
onChange?: (val: import("@koi-design/uxd-ui/es/components/Checkbox").CheckboxValueType, ev: Event) => any;
|
|
3995
|
+
onClick?: (ev: Event) => any;
|
|
3992
3996
|
"onUpdate:modelValue"?: (val: import("@koi-design/uxd-ui/es/components/Checkbox").CheckboxValueType) => any;
|
|
3993
3997
|
}>, {
|
|
3994
3998
|
prefixCls: import("vue").ComputedRef<string>;
|
|
@@ -4005,6 +4009,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
4005
4009
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
4006
4010
|
'update:modelValue': (val: import("@koi-design/uxd-ui/es/components/Checkbox").CheckboxValueType) => boolean;
|
|
4007
4011
|
change: (val: import("@koi-design/uxd-ui/es/components/Checkbox").CheckboxValueType, ev: Event) => boolean;
|
|
4012
|
+
click: (ev: Event) => boolean;
|
|
4008
4013
|
}, string, {
|
|
4009
4014
|
name: string;
|
|
4010
4015
|
disabled: boolean;
|
|
@@ -4431,6 +4436,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
4431
4436
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
4432
4437
|
'update:modelValue': (val: import("@koi-design/uxd-ui/es/components/Checkbox").CheckboxValueType) => boolean;
|
|
4433
4438
|
change: (val: import("@koi-design/uxd-ui/es/components/Checkbox").CheckboxValueType, ev: Event) => boolean;
|
|
4439
|
+
click: (ev: Event) => boolean;
|
|
4434
4440
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
4435
4441
|
modelValue: {
|
|
4436
4442
|
type: (BooleanConstructor | StringConstructor | NumberConstructor)[];
|
|
@@ -4462,6 +4468,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
4462
4468
|
};
|
|
4463
4469
|
}>> & Readonly<{
|
|
4464
4470
|
onChange?: (val: import("@koi-design/uxd-ui/es/components/Checkbox").CheckboxValueType, ev: Event) => any;
|
|
4471
|
+
onClick?: (ev: Event) => any;
|
|
4465
4472
|
"onUpdate:modelValue"?: (val: import("@koi-design/uxd-ui/es/components/Checkbox").CheckboxValueType) => any;
|
|
4466
4473
|
}>, {
|
|
4467
4474
|
name: string;
|