@nutui/nutui 4.3.5 → 4.3.6

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.
Files changed (72) hide show
  1. package/CHANGELOG.md +20 -1
  2. package/dist/nutui.es.js +1 -1
  3. package/dist/nutui.js +5014 -5222
  4. package/dist/nutui.umd.js +1 -1
  5. package/dist/packages/audio/Audio.js +2 -1
  6. package/dist/packages/audiooperate/AudioOperate.js +2 -1
  7. package/dist/packages/checkbox/Checkbox.js +1 -1
  8. package/dist/packages/{common-DRG0ue26.js → common-BH7uB7Cn.js} +4 -2
  9. package/dist/packages/countdown/Countdown.js +130 -173
  10. package/dist/packages/form/Form.js +2 -2
  11. package/dist/packages/formitem/FormItem.js +2 -2
  12. package/dist/packages/grid/Grid.js +68 -5
  13. package/dist/packages/griditem/GridItem.js +61 -81
  14. package/dist/packages/input/Input.js +1 -1
  15. package/dist/packages/inputnumber/InputNumber.js +1 -1
  16. package/dist/packages/invoice/Invoice.js +4 -4
  17. package/dist/packages/picker/Picker.js +1 -1
  18. package/dist/packages/radio/Radio.js +112 -1
  19. package/dist/packages/radiogroup/RadioGroup.js +60 -1
  20. package/dist/packages/range/Range.js +1 -1
  21. package/dist/packages/rate/Rate.js +1 -1
  22. package/dist/packages/searchbar/Searchbar.js +1 -1
  23. package/dist/packages/step/Step.js +64 -83
  24. package/dist/packages/steps/Steps.js +44 -40
  25. package/dist/packages/switch/Switch.js +1 -1
  26. package/dist/packages/tabpane/TabPane.js +2 -1
  27. package/dist/packages/tabs/Tabs.js +2 -1
  28. package/dist/packages/textarea/Textarea.js +1 -1
  29. package/dist/packages/types-BMA1Y94E.js +4 -0
  30. package/dist/packages/types-BXlnzugj.js +4 -0
  31. package/dist/packages/types-CJeZIBld.js +4 -0
  32. package/dist/packages/uploader/Uploader.js +1 -1
  33. package/dist/smartips/web-types.json +446 -26
  34. package/dist/types/__VUE/audio/index.vue.d.ts +2 -2
  35. package/dist/types/__VUE/audio/types.d.ts +2 -0
  36. package/dist/types/__VUE/audiooperate/index.vue.d.ts +1 -1
  37. package/dist/types/__VUE/countdown/countdown.vue.d.ts +108 -0
  38. package/dist/types/__VUE/countdown/index.d.ts +5 -0
  39. package/dist/types/__VUE/countdown/util.d.ts +14 -0
  40. package/dist/types/__VUE/form/common.d.ts +1 -0
  41. package/dist/types/__VUE/grid/grid.vue.d.ts +87 -0
  42. package/dist/types/__VUE/grid/index.d.ts +6 -0
  43. package/dist/types/__VUE/grid/types.d.ts +2 -0
  44. package/dist/types/__VUE/griditem/grid-item.vue.d.ts +64 -0
  45. package/dist/types/__VUE/griditem/index.d.ts +5 -0
  46. package/dist/types/__VUE/picker/Column.vue.d.ts +2 -2
  47. package/dist/types/__VUE/radio/index.d.ts +6 -0
  48. package/dist/types/__VUE/radio/radio.vue.d.ts +74 -0
  49. package/dist/types/__VUE/radiogroup/index.d.ts +5 -0
  50. package/dist/types/__VUE/radiogroup/radio-group.vue.d.ts +66 -0
  51. package/dist/types/__VUE/step/index.d.ts +5 -0
  52. package/dist/types/__VUE/step/step.vue.d.ts +55 -0
  53. package/dist/types/__VUE/steps/index.d.ts +6 -0
  54. package/dist/types/__VUE/steps/steps.vue.d.ts +64 -0
  55. package/dist/types/__VUE/tabs/index.vue.d.ts +1 -1
  56. package/dist/types/__VUE/tabs/types.d.ts +1 -0
  57. package/dist/types/index.d.ts +15 -8
  58. package/dist/types/utils/index.d.ts +2 -0
  59. package/dist/types/utils/useRelation/useParent.d.ts +1 -1
  60. package/package.json +1 -1
  61. package/dist/packages/common-Chr7cC9o.js +0 -145
  62. package/dist/packages/index.vue_vue_type_script_lang-CTQUvlgN.js +0 -99
  63. package/dist/packages/index.vue_vue_type_script_lang-CaSiRl9x.js +0 -46
  64. package/dist/types/__VUE/audiooperate/types.d.ts +0 -1
  65. package/dist/types/__VUE/countdown/index.vue.d.ts +0 -125
  66. package/dist/types/__VUE/grid/common.d.ts +0 -73
  67. package/dist/types/__VUE/grid/index.vue.d.ts +0 -84
  68. package/dist/types/__VUE/griditem/index.vue.d.ts +0 -47
  69. package/dist/types/__VUE/radio/index.vue.d.ts +0 -64
  70. package/dist/types/__VUE/radiogroup/index.vue.d.ts +0 -49
  71. package/dist/types/__VUE/step/index.vue.d.ts +0 -42
  72. package/dist/types/__VUE/steps/index.vue.d.ts +0 -48
@@ -19,8 +19,10 @@ export * from './__VUE/row/index';
19
19
  import Sticky from './__VUE/sticky/index.vue';
20
20
  import Divider from './__VUE/divider/index';
21
21
  export * from './__VUE/divider/index';
22
- import Grid from './__VUE/grid/index.vue';
23
- import GridItem from './__VUE/griditem/index.vue';
22
+ import Grid from './__VUE/grid/index';
23
+ export * from './__VUE/grid/index';
24
+ import GridItem from './__VUE/griditem/index';
25
+ export * from './__VUE/griditem/index';
24
26
  import Space from './__VUE/space/index.vue';
25
27
  import Navbar from './__VUE/navbar/index';
26
28
  export * from './__VUE/navbar/index';
@@ -52,8 +54,10 @@ import DatePicker from './__VUE/datepicker/index.vue';
52
54
  import InputNumber from './__VUE/inputnumber/index';
53
55
  export * from './__VUE/inputnumber/index';
54
56
  import Input from './__VUE/input/index.vue';
55
- import Radio from './__VUE/radio/index.vue';
56
- import RadioGroup from './__VUE/radiogroup/index.vue';
57
+ import Radio from './__VUE/radio/index';
58
+ export * from './__VUE/radio/index';
59
+ import RadioGroup from './__VUE/radiogroup/index';
60
+ export * from './__VUE/radiogroup/index';
57
61
  import Rate from './__VUE/rate/index';
58
62
  export * from './__VUE/rate/index';
59
63
  import Picker from './__VUE/picker/index.vue';
@@ -97,8 +101,10 @@ import Noticebar from './__VUE/noticebar/index.vue';
97
101
  import Empty from './__VUE/empty/index';
98
102
  export * from './__VUE/empty/index';
99
103
  import Video from './__VUE/video/index.vue';
100
- import Steps from './__VUE/steps/index.vue';
101
- import Step from './__VUE/step/index.vue';
104
+ import Steps from './__VUE/steps/index';
105
+ export * from './__VUE/steps/index';
106
+ import Step from './__VUE/step/index';
107
+ export * from './__VUE/step/index';
102
108
  import Swiper from './__VUE/swiper/index.vue';
103
109
  import SwiperItem from './__VUE/swiperitem/index.vue';
104
110
  import Price from './__VUE/price/index';
@@ -106,7 +112,8 @@ export * from './__VUE/price/index';
106
112
  import ImagePreview from './__VUE/imagepreview/index.vue';
107
113
  import { showImagePreview } from './__VUE/imagepreview/index';
108
114
  import Countup from './__VUE/countup/index.vue';
109
- import Countdown from './__VUE/countdown/index.vue';
115
+ import Countdown from './__VUE/countdown/index';
116
+ export * from './__VUE/countdown/index';
110
117
  import Badge from './__VUE/badge/index.vue';
111
118
  import Tag from './__VUE/tag/index';
112
119
  export * from './__VUE/tag/index';
@@ -142,7 +149,7 @@ import Invoice from './__VUE/invoice/index';
142
149
  export * from './__VUE/invoice/index';
143
150
  import AvatarCropper from './__VUE/avatarcropper/index.vue';
144
151
  declare function install(app: App): void;
145
- declare const version = "4.3.5";
152
+ declare const version = "4.3.6";
146
153
  export { install, version, Locale, Button, Cell, CellGroup, Overlay, Popup, ConfigProvider, Image, Layout, Col, Row, Sticky, Divider, Grid, GridItem, Space, Navbar, FixedNav, Menu, MenuItem, Tabbar, TabbarItem, Elevator, Pagination, Tabs, TabPane, Indicator, SideNavbar, SideNavbarItem, SubSideNavbar, Range, Searchbar, Cascader, Calendar, CalendarCard, Checkbox, CheckboxGroup, DatePicker, InputNumber, Input, Radio, RadioGroup, Rate, Picker, ShortPassword, Textarea, Uploader, NumberKeyboard, Form, FormItem, Swipe, SwipeGroup, ActionSheet, Backtop, Drag, Dialog, InfiniteLoading, PullRefresh, Notify, Switch, Toast, Audio, AudioOperate, Avatar, AvatarGroup, List, Progress, CircleProgress, Noticebar, Empty, Video, Steps, Step, Swiper, SwiperItem, Price, ImagePreview, Countup, Countdown, Badge, Tag, Popover, Skeleton, Collapse, CollapseItem, Table, Animate, Ellipsis, Watermark, TrendArrow, Tour, Address, Barrage, Signature, TimeSelect, TimePannel, TimeDetail, Sku, Card, Ecard, AddressList, Category, CategoryPane, Comment, Invoice, AvatarCropper, showDialog, showNotify, showToast, showImagePreview };
147
154
  declare const _default: {
148
155
  install: typeof install;
@@ -1,3 +1,5 @@
1
1
  export * from './useRelation';
2
2
  export * from './with-install';
3
3
  export * from './util';
4
+ export * from './pxCheck';
5
+ export * from './useRoute';
@@ -1,4 +1,4 @@
1
1
  export declare const useParent: (key: symbol) => {
2
2
  parent: any;
3
- index: import("vue").ComputedRef<any>;
3
+ index: import("vue").ComputedRef<number>;
4
4
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nutui/nutui",
3
- "version": "4.3.5",
3
+ "version": "4.3.6",
4
4
  "description": "京东风格的轻量级移动端 Vue2、Vue3 组件库(支持小程序开发)",
5
5
  "main": "dist/nutui.umd.js",
6
6
  "module": "dist/nutui.es.js",
@@ -1,145 +0,0 @@
1
- import { shallowReactive, getCurrentInstance, provide, markRaw, isVNode, computed, h } from "vue";
2
- import { c as createComponent } from "./component-DQf3CENX.js";
3
- import { p as pxCheck } from "./pxCheck-DN6FYV6q.js";
4
- function flattenVNodes(children, childName) {
5
- const result = [];
6
- const traverse = (children2) => {
7
- if (!Array.isArray(children2))
8
- return;
9
- children2.forEach((child) => {
10
- var _a;
11
- if (!isVNode(child))
12
- return;
13
- if (childName) {
14
- if (child.type && child.type.name === childName) {
15
- result.push(child);
16
- return;
17
- }
18
- } else {
19
- result.push(child);
20
- }
21
- if ((_a = child.component) == null ? void 0 : _a.subTree) {
22
- traverse(child.component.subTree.children);
23
- }
24
- if (child.children) {
25
- traverse(child.children);
26
- }
27
- });
28
- };
29
- traverse(children);
30
- return result;
31
- }
32
- function sortChildren(parent, internalChildren, childName) {
33
- const vnodes = flattenVNodes(parent.subTree.children, childName);
34
- internalChildren.sort((a, b) => {
35
- return vnodes.indexOf(a.vnode) - vnodes.indexOf(b.vnode);
36
- });
37
- }
38
- function useProvide(key, childName) {
39
- const internalChildren = shallowReactive([]);
40
- const parent = getCurrentInstance();
41
- const add = (child) => {
42
- if (!child.proxy)
43
- return;
44
- internalChildren.push(markRaw(child));
45
- sortChildren(parent, internalChildren, childName);
46
- };
47
- const remove = (child) => {
48
- internalChildren.splice(internalChildren.indexOf(markRaw(child)), 1);
49
- };
50
- const extend = Object.assign;
51
- return (value) => {
52
- provide(
53
- key,
54
- extend(
55
- {
56
- add,
57
- remove,
58
- internalChildren
59
- },
60
- value
61
- )
62
- );
63
- return {
64
- internalChildren
65
- };
66
- };
67
- }
68
- const { componentName } = createComponent("grid");
69
- const GRID_KEY = Symbol("grid");
70
- const gridProps = {
71
- // 列数
72
- columnNum: {
73
- type: [Number, String],
74
- default: 4
75
- },
76
- // 是否显示边框
77
- border: {
78
- type: Boolean,
79
- default: true
80
- },
81
- // 格子之间间隔距离
82
- gutter: {
83
- type: [Number, String],
84
- default: 0
85
- },
86
- // 是否内容居中
87
- center: {
88
- type: Boolean,
89
- default: true
90
- },
91
- // 是否固定正方形
92
- square: {
93
- type: Boolean,
94
- default: false
95
- },
96
- // 内容与文字翻转
97
- reverse: {
98
- type: Boolean,
99
- default: false
100
- },
101
- // 内容排列方向
102
- direction: {
103
- type: String
104
- },
105
- // 是否开启点击反馈
106
- clickable: {
107
- type: Boolean,
108
- default: false
109
- }
110
- };
111
- const component = {
112
- props: gridProps,
113
- setup(props, { slots }) {
114
- useProvide(GRID_KEY, `NutGridItem`)({ props });
115
- const rootClass = computed(() => {
116
- const prefixCls = componentName;
117
- return {
118
- [prefixCls]: true,
119
- [`${prefixCls}--border`]: props.border && !props.gutter
120
- };
121
- });
122
- const rootStyle = computed(() => {
123
- const style = {};
124
- if (props.gutter) {
125
- style.paddingLeft = pxCheck(props.gutter);
126
- }
127
- return style;
128
- });
129
- return () => {
130
- var _a;
131
- return h(
132
- "view",
133
- {
134
- class: rootClass.value,
135
- style: rootStyle.value
136
- },
137
- (_a = slots.default) == null ? void 0 : _a.call(slots)
138
- );
139
- };
140
- }
141
- };
142
- export {
143
- GRID_KEY as G,
144
- component as c
145
- };
@@ -1,99 +0,0 @@
1
- import { toRef, toRefs, inject, computed, h } from "vue";
2
- import { c as createComponent } from "./component-DQf3CENX.js";
3
- import { CheckNormal, CheckChecked } from "@nutui/icons-vue";
4
- import { p as pxCheck } from "./pxCheck-DN6FYV6q.js";
5
- import { R as RADIO_KEY } from "./types-BODurTjN.js";
6
- import { u as useFormDisabled } from "./common-DRG0ue26.js";
7
- const { componentName, create } = createComponent("radio");
8
- const _sfc_main = create({
9
- components: {
10
- CheckNormal,
11
- CheckChecked
12
- },
13
- props: {
14
- disabled: {
15
- type: Boolean,
16
- default: false
17
- },
18
- shape: {
19
- type: String,
20
- default: "round"
21
- },
22
- label: {
23
- type: [String, Number, Boolean],
24
- default: ""
25
- },
26
- iconSize: {
27
- type: [String, Number],
28
- default: ""
29
- },
30
- size: {
31
- type: String,
32
- default: "normal"
33
- }
34
- },
35
- setup(props, { slots }) {
36
- const disabled = useFormDisabled(toRef(props, "disabled"));
37
- const { size } = toRefs(props);
38
- let parent = inject(RADIO_KEY, null);
39
- const isCurValue = computed(() => {
40
- return parent.label.value === props.label;
41
- });
42
- const color = computed(() => {
43
- return !disabled.value ? isCurValue.value ? "nut-radio__icon" : "nut-radio__icon--unchecked" : "nut-radio__icon--disable";
44
- });
45
- const renderIcon = () => {
46
- const { iconSize } = props;
47
- const iconNodeMap = {
48
- CheckNormal: slots.icon ? slots.icon : CheckNormal,
49
- Checked: slots.checkedIcon ? slots.checkedIcon : CheckChecked
50
- };
51
- const iconNode = !isCurValue.value ? iconNodeMap.CheckNormal : iconNodeMap.Checked;
52
- const size2 = pxCheck(iconSize);
53
- return h(iconNode, {
54
- width: size2,
55
- height: size2,
56
- class: color.value
57
- });
58
- };
59
- const renderLabel = () => {
60
- var _a;
61
- return h(
62
- "view",
63
- {
64
- class: `${componentName}__label ${disabled.value ? `${componentName}__label--disabled` : ""}`
65
- },
66
- (_a = slots.default) == null ? void 0 : _a.call(slots)
67
- );
68
- };
69
- const renderButton = () => {
70
- var _a;
71
- return h(
72
- "view",
73
- {
74
- class: `${componentName}__button ${isCurValue.value && `${componentName}__button--active`} ${componentName}__button--${size.value} ${props.disabled ? `${componentName}__button--disabled` : ""}`
75
- },
76
- (_a = slots.default) == null ? void 0 : _a.call(slots)
77
- );
78
- };
79
- const handleClick = () => {
80
- if (isCurValue.value || disabled.value)
81
- return;
82
- parent.updateValue(props.label);
83
- };
84
- const reverseState = computed(() => parent.position.value === "left");
85
- return () => {
86
- return h(
87
- "view",
88
- {
89
- class: `${componentName} ${componentName}--${props.shape} ${reverseState.value ? `${componentName}--reverse` : ""}`,
90
- onClick: handleClick
91
- },
92
- [props.shape === "button" ? renderButton() : [renderIcon(), renderLabel()]]
93
- );
94
- };
95
- }
96
- });
97
- export {
98
- _sfc_main as _
99
- };
@@ -1,46 +0,0 @@
1
- import { provide, readonly, computed, watch, h } from "vue";
2
- import { c as createComponent } from "./component-DQf3CENX.js";
3
- import { R as RADIO_KEY } from "./types-BODurTjN.js";
4
- const { componentName, create } = createComponent("radio-group");
5
- const _sfc_main = create({
6
- props: {
7
- modelValue: {
8
- type: [Number, String, Boolean],
9
- default: ""
10
- },
11
- direction: {
12
- type: String,
13
- default: "vertical"
14
- },
15
- textPosition: {
16
- type: String,
17
- default: "right"
18
- }
19
- },
20
- emits: ["change", "update:modelValue"],
21
- setup(props, { emit, slots }) {
22
- const updateValue = (value) => emit("update:modelValue", value);
23
- provide(RADIO_KEY, {
24
- label: readonly(computed(() => props.modelValue)),
25
- position: readonly(computed(() => props.textPosition)),
26
- updateValue
27
- });
28
- watch(
29
- () => props.modelValue,
30
- (value) => emit("change", value)
31
- );
32
- return () => {
33
- var _a;
34
- return h(
35
- "view",
36
- {
37
- class: `${componentName} ${componentName}--${props.direction}`
38
- },
39
- (_a = slots.default) == null ? void 0 : _a.call(slots)
40
- );
41
- };
42
- }
43
- });
44
- export {
45
- _sfc_main as _
46
- };
@@ -1 +0,0 @@
1
- export type AudioOperateType = 'play' | 'back' | 'forward' | 'mute';
@@ -1,125 +0,0 @@
1
-
2
- declare type Install<T> = T & {
3
- install(app: import('vue').App): void;
4
- };
5
- declare const _default: Install< import("vue").DefineComponent<{
6
- modelValue: {
7
- type: ObjectConstructor;
8
- default: () => {};
9
- };
10
- paused: {
11
- default: boolean;
12
- type: BooleanConstructor;
13
- };
14
- startTime: {
15
- type: (NumberConstructor | StringConstructor)[];
16
- validator(v: Date): boolean;
17
- };
18
- endTime: {
19
- type: (NumberConstructor | StringConstructor)[];
20
- validator(v: Date): boolean;
21
- };
22
- millisecond: {
23
- default: boolean;
24
- type: BooleanConstructor;
25
- };
26
- format: {
27
- type: StringConstructor;
28
- default: string;
29
- };
30
- autoStart: {
31
- type: BooleanConstructor;
32
- default: boolean;
33
- };
34
- time: {
35
- type: (NumberConstructor | StringConstructor)[];
36
- default: number;
37
- };
38
- }, {
39
- slots: Readonly<{
40
- [name: string]: import("vue").Slot<any> | undefined;
41
- }>;
42
- start: () => void;
43
- pause: () => void;
44
- renderTime: import("vue").ComputedRef<string | {
45
- d: number;
46
- h: number;
47
- m: number;
48
- s: number;
49
- ms: number;
50
- }>;
51
- translate: (keyPath: string, ...args: unknown[]) => any;
52
- reset: () => void;
53
- time: import("vue").Ref<string | number>;
54
- paused: import("vue").Ref<boolean>;
55
- modelValue: import("vue").Ref<Record<string, any>>;
56
- millisecond: import("vue").Ref<boolean>;
57
- format: import("vue").Ref<string>;
58
- autoStart: import("vue").Ref<boolean>;
59
- startTime: import("vue").Ref<string | number | undefined>;
60
- endTime: import("vue").Ref<string | number | undefined>;
61
- onInput: import("vue").Ref<((...args: any[]) => any) | undefined>;
62
- "onUpdate:modelValue": import("vue").Ref<((...args: any[]) => any) | undefined>;
63
- onEnd: import("vue").Ref<((...args: any[]) => any) | undefined>;
64
- onRestart: import("vue").Ref<((...args: any[]) => any) | undefined>;
65
- onPaused: import("vue").Ref<((...args: any[]) => any) | undefined>;
66
- onOnEnd: import("vue").Ref<((...args: any[]) => any) | undefined>;
67
- onOnRestart: import("vue").Ref<((...args: any[]) => any) | undefined>;
68
- onOnPaused: import("vue").Ref<((...args: any[]) => any) | undefined>;
69
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("input" | "end" | "paused" | "update:modelValue" | "restart" | "onEnd" | "onRestart" | "onPaused")[], "input" | "end" | "paused" | "update:modelValue" | "restart" | "onEnd" | "onRestart" | "onPaused", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
70
- modelValue: {
71
- type: ObjectConstructor;
72
- default: () => {};
73
- };
74
- paused: {
75
- default: boolean;
76
- type: BooleanConstructor;
77
- };
78
- startTime: {
79
- type: (NumberConstructor | StringConstructor)[];
80
- validator(v: Date): boolean;
81
- };
82
- endTime: {
83
- type: (NumberConstructor | StringConstructor)[];
84
- validator(v: Date): boolean;
85
- };
86
- millisecond: {
87
- default: boolean;
88
- type: BooleanConstructor;
89
- };
90
- format: {
91
- type: StringConstructor;
92
- default: string;
93
- };
94
- autoStart: {
95
- type: BooleanConstructor;
96
- default: boolean;
97
- };
98
- time: {
99
- type: (NumberConstructor | StringConstructor)[];
100
- default: number;
101
- };
102
- }>> & {
103
- onInput?: ((...args: any[]) => any) | undefined;
104
- "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
105
- onEnd?: ((...args: any[]) => any) | undefined;
106
- onRestart?: ((...args: any[]) => any) | undefined;
107
- onPaused?: ((...args: any[]) => any) | undefined;
108
- onOnEnd?: ((...args: any[]) => any) | undefined;
109
- onOnRestart?: ((...args: any[]) => any) | undefined;
110
- onOnPaused?: ((...args: any[]) => any) | undefined;
111
- }, {
112
- time: string | number;
113
- paused: boolean;
114
- modelValue: Record<string, any>;
115
- millisecond: boolean;
116
- format: string;
117
- autoStart: boolean;
118
- }, {}>>;
119
- export default _default;
120
-
121
- declare module 'vue' {
122
- interface GlobalComponents {
123
- NutCountdown: typeof _default;
124
- }
125
- }
@@ -1,73 +0,0 @@
1
- import type { ExtractPropTypes, SetupContext, RenderFunction } from 'vue';
2
- export declare const GRID_KEY: unique symbol;
3
- export type GridDirection = 'horizontal' | 'vertical';
4
- export declare const gridProps: {
5
- columnNum: {
6
- type: (NumberConstructor | StringConstructor)[];
7
- default: number;
8
- };
9
- border: {
10
- type: BooleanConstructor;
11
- default: boolean;
12
- };
13
- gutter: {
14
- type: (NumberConstructor | StringConstructor)[];
15
- default: number;
16
- };
17
- center: {
18
- type: BooleanConstructor;
19
- default: boolean;
20
- };
21
- square: {
22
- type: BooleanConstructor;
23
- default: boolean;
24
- };
25
- reverse: {
26
- type: BooleanConstructor;
27
- default: boolean;
28
- };
29
- direction: {
30
- type: import("vue").PropType<GridDirection>;
31
- };
32
- clickable: {
33
- type: BooleanConstructor;
34
- default: boolean;
35
- };
36
- };
37
- export type GridProps = ExtractPropTypes<typeof gridProps>;
38
- export declare const component: {
39
- props: {
40
- columnNum: {
41
- type: (NumberConstructor | StringConstructor)[];
42
- default: number;
43
- };
44
- border: {
45
- type: BooleanConstructor;
46
- default: boolean;
47
- };
48
- gutter: {
49
- type: (NumberConstructor | StringConstructor)[];
50
- default: number;
51
- };
52
- center: {
53
- type: BooleanConstructor;
54
- default: boolean;
55
- };
56
- square: {
57
- type: BooleanConstructor;
58
- default: boolean;
59
- };
60
- reverse: {
61
- type: BooleanConstructor;
62
- default: boolean;
63
- };
64
- direction: {
65
- type: import("vue").PropType<GridDirection>;
66
- };
67
- clickable: {
68
- type: BooleanConstructor;
69
- default: boolean;
70
- };
71
- };
72
- setup(props: GridProps, { slots }: SetupContext): RenderFunction;
73
- };
@@ -1,84 +0,0 @@
1
-
2
- declare type Install<T> = T & {
3
- install(app: import('vue').App): void;
4
- };
5
- declare const _default: Install< import("vue").DefineComponent<{
6
- columnNum: {
7
- type: (NumberConstructor | StringConstructor)[];
8
- default: number;
9
- };
10
- border: {
11
- type: BooleanConstructor;
12
- default: boolean;
13
- };
14
- gutter: {
15
- type: (NumberConstructor | StringConstructor)[];
16
- default: number;
17
- };
18
- center: {
19
- type: BooleanConstructor;
20
- default: boolean;
21
- };
22
- square: {
23
- type: BooleanConstructor;
24
- default: boolean;
25
- };
26
- reverse: {
27
- type: BooleanConstructor;
28
- default: boolean;
29
- };
30
- direction: {
31
- type: import("vue").PropType<import("./common").GridDirection>;
32
- };
33
- clickable: {
34
- type: BooleanConstructor;
35
- default: boolean;
36
- };
37
- }, import("vue").RenderFunction, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
38
- columnNum: {
39
- type: (NumberConstructor | StringConstructor)[];
40
- default: number;
41
- };
42
- border: {
43
- type: BooleanConstructor;
44
- default: boolean;
45
- };
46
- gutter: {
47
- type: (NumberConstructor | StringConstructor)[];
48
- default: number;
49
- };
50
- center: {
51
- type: BooleanConstructor;
52
- default: boolean;
53
- };
54
- square: {
55
- type: BooleanConstructor;
56
- default: boolean;
57
- };
58
- reverse: {
59
- type: BooleanConstructor;
60
- default: boolean;
61
- };
62
- direction: {
63
- type: import("vue").PropType<import("./common").GridDirection>;
64
- };
65
- clickable: {
66
- type: BooleanConstructor;
67
- default: boolean;
68
- };
69
- }>>, {
70
- square: boolean;
71
- reverse: boolean;
72
- center: boolean;
73
- border: boolean;
74
- gutter: string | number;
75
- columnNum: string | number;
76
- clickable: boolean;
77
- }, {}>>;
78
- export default _default;
79
-
80
- declare module 'vue' {
81
- interface GlobalComponents {
82
- NutGrid: typeof _default;
83
- }
84
- }