@nutui/nutui 4.3.4 → 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.
- package/CHANGELOG.md +40 -1
- package/dist/nutui.es.js +1 -1
- package/dist/nutui.js +5358 -5629
- package/dist/nutui.umd.js +1 -1
- package/dist/packages/audio/Audio.js +2 -1
- package/dist/packages/audiooperate/AudioOperate.js +2 -1
- package/dist/packages/cell/Cell.js +89 -80
- package/dist/packages/cellgroup/CellGroup.js +44 -21
- package/dist/packages/checkbox/Checkbox.js +1 -1
- package/dist/packages/{common-DRG0ue26.js → common-BH7uB7Cn.js} +4 -2
- package/dist/packages/countdown/Countdown.js +130 -173
- package/dist/packages/form/Form.js +5 -5
- package/dist/packages/formitem/FormItem.js +5 -5
- package/dist/packages/grid/Grid.js +68 -5
- package/dist/packages/griditem/GridItem.js +61 -81
- package/dist/packages/input/Input.js +1 -1
- package/dist/packages/inputnumber/InputNumber.js +7 -7
- package/dist/packages/invoice/Invoice.js +4 -4
- package/dist/packages/picker/Picker.js +1 -1
- package/dist/packages/radio/Radio.js +112 -1
- package/dist/packages/radiogroup/RadioGroup.js +60 -1
- package/dist/packages/range/Range.js +1 -1
- package/dist/packages/rate/Rate.js +1 -1
- package/dist/packages/searchbar/Searchbar.js +1 -1
- package/dist/packages/skeleton/Skeleton.js +88 -123
- package/dist/packages/step/Step.js +64 -83
- package/dist/packages/steps/Steps.js +44 -40
- package/dist/packages/switch/Switch.js +1 -1
- package/dist/packages/tabpane/TabPane.js +2 -1
- package/dist/packages/tabs/Tabs.js +2 -1
- package/dist/packages/textarea/Textarea.js +1 -1
- package/dist/packages/types-BMA1Y94E.js +4 -0
- package/dist/packages/types-BXlnzugj.js +4 -0
- package/dist/packages/types-CJeZIBld.js +4 -0
- package/dist/packages/uploader/Uploader.js +1 -1
- package/dist/smartips/web-types.json +446 -26
- package/dist/types/__VUE/audio/index.vue.d.ts +2 -2
- package/dist/types/__VUE/audio/types.d.ts +2 -0
- package/dist/types/__VUE/audiooperate/index.vue.d.ts +1 -1
- package/dist/types/__VUE/cell/cell.vue.d.ts +113 -0
- package/dist/types/__VUE/cell/index.d.ts +6 -0
- package/dist/types/__VUE/cellgroup/cell-group.vue.d.ts +55 -0
- package/dist/types/__VUE/cellgroup/index.d.ts +5 -0
- package/dist/types/__VUE/countdown/countdown.vue.d.ts +108 -0
- package/dist/types/__VUE/countdown/index.d.ts +5 -0
- package/dist/types/__VUE/countdown/util.d.ts +14 -0
- package/dist/types/__VUE/form/common.d.ts +1 -0
- package/dist/types/__VUE/grid/grid.vue.d.ts +87 -0
- package/dist/types/__VUE/grid/index.d.ts +6 -0
- package/dist/types/__VUE/grid/types.d.ts +2 -0
- package/dist/types/__VUE/griditem/grid-item.vue.d.ts +64 -0
- package/dist/types/__VUE/griditem/index.d.ts +5 -0
- package/dist/types/__VUE/navbar/navbar.vue.d.ts +1 -1
- package/dist/types/__VUE/picker/Column.vue.d.ts +2 -2
- package/dist/types/__VUE/radio/index.d.ts +6 -0
- package/dist/types/__VUE/radio/radio.vue.d.ts +74 -0
- package/dist/types/__VUE/radiogroup/index.d.ts +5 -0
- package/dist/types/__VUE/radiogroup/radio-group.vue.d.ts +66 -0
- package/dist/types/__VUE/skeleton/index.d.ts +5 -0
- package/dist/types/__VUE/skeleton/skeleton.vue.d.ts +102 -0
- package/dist/types/__VUE/step/index.d.ts +5 -0
- package/dist/types/__VUE/step/step.vue.d.ts +55 -0
- package/dist/types/__VUE/steps/index.d.ts +6 -0
- package/dist/types/__VUE/steps/steps.vue.d.ts +64 -0
- package/dist/types/__VUE/swiper/index.vue.d.ts +2 -2
- package/dist/types/__VUE/tabs/index.vue.d.ts +1 -1
- package/dist/types/__VUE/tabs/types.d.ts +1 -0
- package/dist/types/__VUE/uploader/index.vue.d.ts +1 -1
- package/dist/types/index.d.ts +21 -11
- package/dist/types/utils/Interceptor.d.ts +2 -2
- package/dist/types/utils/index.d.ts +2 -0
- package/dist/types/utils/useRelation/useParent.d.ts +1 -1
- package/package.json +1 -1
- package/dist/packages/common-Chr7cC9o.js +0 -145
- package/dist/packages/index.vue_vue_type_script_lang-CTQUvlgN.js +0 -99
- package/dist/packages/index.vue_vue_type_script_lang-CaSiRl9x.js +0 -46
- package/dist/types/__VUE/audiooperate/types.d.ts +0 -1
- package/dist/types/__VUE/cell/index.vue.d.ts +0 -120
- package/dist/types/__VUE/cellgroup/index.vue.d.ts +0 -33
- package/dist/types/__VUE/countdown/index.vue.d.ts +0 -125
- package/dist/types/__VUE/grid/common.d.ts +0 -73
- package/dist/types/__VUE/grid/index.vue.d.ts +0 -84
- package/dist/types/__VUE/griditem/index.vue.d.ts +0 -47
- package/dist/types/__VUE/radio/index.vue.d.ts +0 -64
- package/dist/types/__VUE/radiogroup/index.vue.d.ts +0 -49
- package/dist/types/__VUE/skeleton/index.vue.d.ts +0 -117
- package/dist/types/__VUE/step/index.vue.d.ts +0 -42
- package/dist/types/__VUE/steps/index.vue.d.ts +0 -48
|
@@ -21,6 +21,7 @@ import { ref, reactive, onMounted, watch, provide, toRefs, resolveComponent, ope
|
|
|
21
21
|
import { c as createComponent } from "../component-DQf3CENX.js";
|
|
22
22
|
import { Service } from "@nutui/icons-vue";
|
|
23
23
|
import NutRange from "../range/Range.js";
|
|
24
|
+
import { A as AUDIO_KEY } from "../types-BMA1Y94E.js";
|
|
24
25
|
import { _ as _export_sfc } from "../_plugin-vue_export-helper-1tPrXgE0.js";
|
|
25
26
|
const { create } = createComponent("audio");
|
|
26
27
|
const _sfc_main = create({
|
|
@@ -172,7 +173,7 @@ const _sfc_main = create({
|
|
|
172
173
|
handle(value);
|
|
173
174
|
}
|
|
174
175
|
);
|
|
175
|
-
provide(
|
|
176
|
+
provide(AUDIO_KEY, {
|
|
176
177
|
children: [],
|
|
177
178
|
props,
|
|
178
179
|
audioData,
|
|
@@ -21,6 +21,7 @@ import { inject, reactive, ref, useSlots, toRefs, resolveComponent, openBlock, c
|
|
|
21
21
|
import { c as createComponent } from "../component-DQf3CENX.js";
|
|
22
22
|
import { Button as _sfc_main$1 } from "../button/Button.js";
|
|
23
23
|
import { u as useLocale } from "../index-CFigyH92.js";
|
|
24
|
+
import { A as AUDIO_KEY } from "../types-BMA1Y94E.js";
|
|
24
25
|
import { _ as _export_sfc } from "../_plugin-vue_export-helper-1tPrXgE0.js";
|
|
25
26
|
const { create } = createComponent("audio-operate");
|
|
26
27
|
const cN = "NutAudioOperate";
|
|
@@ -38,7 +39,7 @@ const _sfc_main = create({
|
|
|
38
39
|
emits: ["click"],
|
|
39
40
|
setup(props) {
|
|
40
41
|
const translate = useLocale(cN);
|
|
41
|
-
const audio = inject(
|
|
42
|
+
const audio = inject(AUDIO_KEY);
|
|
42
43
|
const parent = reactive(audio);
|
|
43
44
|
const customSlot = ref(useSlots().default);
|
|
44
45
|
return __spreadProps(__spreadValues(__spreadValues({}, toRefs(props)), toRefs(parent)), { customSlot, translate });
|
|
@@ -1,35 +1,60 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __defProps = Object.defineProperties;
|
|
3
|
+
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
4
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
7
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
8
|
+
var __spreadValues = (a, b) => {
|
|
9
|
+
for (var prop in b || (b = {}))
|
|
10
|
+
if (__hasOwnProp.call(b, prop))
|
|
11
|
+
__defNormalProp(a, prop, b[prop]);
|
|
12
|
+
if (__getOwnPropSymbols)
|
|
13
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
|
14
|
+
if (__propIsEnum.call(b, prop))
|
|
15
|
+
__defNormalProp(a, prop, b[prop]);
|
|
16
|
+
}
|
|
17
|
+
return a;
|
|
18
|
+
};
|
|
19
|
+
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
|
+
import { defineComponent, computed, openBlock, createElementBlock, normalizeClass, normalizeStyle, renderSlot, createCommentVNode, Fragment, createElementVNode, toDisplayString, createTextVNode, createBlock, unref } from "vue";
|
|
3
21
|
import { u as useRouter } from "../index-aiGQ-EiA.js";
|
|
4
22
|
import { p as pxCheck } from "../pxCheck-DN6FYV6q.js";
|
|
5
23
|
import { Right } from "@nutui/icons-vue";
|
|
6
|
-
import {
|
|
7
|
-
const
|
|
8
|
-
|
|
9
|
-
|
|
24
|
+
import { w as withInstall } from "../with-install-Ch3FF0uS.js";
|
|
25
|
+
const _hoisted_1 = {
|
|
26
|
+
key: 0,
|
|
27
|
+
class: "nut-cell__icon"
|
|
28
|
+
};
|
|
29
|
+
const _hoisted_2 = {
|
|
30
|
+
key: 1,
|
|
31
|
+
class: "nut-cell__title"
|
|
32
|
+
};
|
|
33
|
+
const _hoisted_3 = { class: "title" };
|
|
34
|
+
const _hoisted_4 = { class: "nut-cell__title-desc" };
|
|
35
|
+
const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({}, {
|
|
36
|
+
name: "NutCell"
|
|
37
|
+
}), {
|
|
38
|
+
__name: "cell",
|
|
10
39
|
props: {
|
|
11
|
-
title: {
|
|
12
|
-
subTitle: {
|
|
13
|
-
desc: {
|
|
14
|
-
descTextAlign: {
|
|
15
|
-
type: String,
|
|
16
|
-
default: "right"
|
|
17
|
-
},
|
|
40
|
+
title: { default: "" },
|
|
41
|
+
subTitle: { default: "" },
|
|
42
|
+
desc: { default: "" },
|
|
43
|
+
descTextAlign: { default: "right" },
|
|
18
44
|
isLink: { type: Boolean, default: false },
|
|
19
|
-
|
|
20
|
-
replace: { type: Boolean, default: false },
|
|
21
|
-
roundRadius: { type: [String, Number], default: "" },
|
|
22
|
-
url: { type: String, default: "" },
|
|
45
|
+
roundRadius: { default: "" },
|
|
23
46
|
center: { type: Boolean, default: false },
|
|
24
|
-
size: {
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
}
|
|
47
|
+
size: { default: "normal" },
|
|
48
|
+
to: {},
|
|
49
|
+
replace: { type: Boolean, default: false },
|
|
50
|
+
url: { default: "" }
|
|
28
51
|
},
|
|
29
52
|
emits: ["click"],
|
|
30
|
-
setup(
|
|
53
|
+
setup(__props, { emit: __emit }) {
|
|
54
|
+
const props = __props;
|
|
55
|
+
const emit = __emit;
|
|
31
56
|
const classes = computed(() => {
|
|
32
|
-
const prefixCls =
|
|
57
|
+
const prefixCls = "nut-cell";
|
|
33
58
|
return {
|
|
34
59
|
[prefixCls]: true,
|
|
35
60
|
[`${prefixCls}--clickable`]: props.isLink || props.to,
|
|
@@ -56,64 +81,48 @@ const _sfc_main = create({
|
|
|
56
81
|
props.replace ? location.replace(props.url) : location.href = props.url;
|
|
57
82
|
}
|
|
58
83
|
};
|
|
59
|
-
return {
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
};
|
|
65
|
-
}
|
|
66
|
-
});
|
|
67
|
-
const _hoisted_1 = {
|
|
68
|
-
key: 0,
|
|
69
|
-
class: "nut-cell__icon"
|
|
70
|
-
};
|
|
71
|
-
const _hoisted_2 = {
|
|
72
|
-
key: 1,
|
|
73
|
-
class: "nut-cell__title"
|
|
74
|
-
};
|
|
75
|
-
const _hoisted_3 = { class: "title" };
|
|
76
|
-
const _hoisted_4 = { class: "nut-cell__title-desc" };
|
|
77
|
-
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
78
|
-
const _component_Right = resolveComponent("Right");
|
|
79
|
-
return openBlock(), createElementBlock("view", {
|
|
80
|
-
class: normalizeClass(_ctx.classes),
|
|
81
|
-
style: normalizeStyle(_ctx.baseStyle),
|
|
82
|
-
onClick: _cache[0] || (_cache[0] = (...args) => _ctx.handleClick && _ctx.handleClick(...args))
|
|
83
|
-
}, [
|
|
84
|
-
renderSlot(_ctx.$slots, "default", {}, () => [
|
|
85
|
-
_ctx.$slots.icon ? (openBlock(), createElementBlock("view", _hoisted_1, [
|
|
86
|
-
renderSlot(_ctx.$slots, "icon")
|
|
87
|
-
])) : createCommentVNode("", true),
|
|
88
|
-
_ctx.title || _ctx.subTitle || _ctx.$slots.title ? (openBlock(), createElementBlock("view", _hoisted_2, [
|
|
89
|
-
_ctx.subTitle ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
90
|
-
renderSlot(_ctx.$slots, "title", {}, () => [
|
|
91
|
-
createElementVNode("view", _hoisted_3, toDisplayString(_ctx.title), 1)
|
|
92
|
-
]),
|
|
93
|
-
createElementVNode("view", _hoisted_4, toDisplayString(_ctx.subTitle), 1)
|
|
94
|
-
], 64)) : renderSlot(_ctx.$slots, "title", { key: 1 }, () => [
|
|
95
|
-
createTextVNode(toDisplayString(_ctx.title), 1)
|
|
96
|
-
])
|
|
97
|
-
])) : createCommentVNode("", true),
|
|
98
|
-
_ctx.desc || _ctx.$slots.desc ? (openBlock(), createElementBlock("view", {
|
|
99
|
-
key: 2,
|
|
100
|
-
class: normalizeClass(["nut-cell__value", { "nut-cell__value--alone": !_ctx.title && !_ctx.subTitle && !_ctx.$slots.title }]),
|
|
101
|
-
style: normalizeStyle(_ctx.descStyle)
|
|
84
|
+
return (_ctx, _cache) => {
|
|
85
|
+
return openBlock(), createElementBlock("view", {
|
|
86
|
+
class: normalizeClass(classes.value),
|
|
87
|
+
style: normalizeStyle(baseStyle.value),
|
|
88
|
+
onClick: handleClick
|
|
102
89
|
}, [
|
|
103
|
-
renderSlot(_ctx.$slots, "
|
|
104
|
-
|
|
90
|
+
renderSlot(_ctx.$slots, "default", {}, () => [
|
|
91
|
+
_ctx.$slots.icon ? (openBlock(), createElementBlock("view", _hoisted_1, [
|
|
92
|
+
renderSlot(_ctx.$slots, "icon")
|
|
93
|
+
])) : createCommentVNode("", true),
|
|
94
|
+
_ctx.title || _ctx.subTitle || _ctx.$slots.title ? (openBlock(), createElementBlock("view", _hoisted_2, [
|
|
95
|
+
_ctx.subTitle ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
96
|
+
renderSlot(_ctx.$slots, "title", {}, () => [
|
|
97
|
+
createElementVNode("view", _hoisted_3, toDisplayString(_ctx.title), 1)
|
|
98
|
+
]),
|
|
99
|
+
createElementVNode("view", _hoisted_4, toDisplayString(_ctx.subTitle), 1)
|
|
100
|
+
], 64)) : renderSlot(_ctx.$slots, "title", { key: 1 }, () => [
|
|
101
|
+
createTextVNode(toDisplayString(_ctx.title), 1)
|
|
102
|
+
])
|
|
103
|
+
])) : createCommentVNode("", true),
|
|
104
|
+
_ctx.desc || _ctx.$slots.desc ? (openBlock(), createElementBlock("view", {
|
|
105
|
+
key: 2,
|
|
106
|
+
class: normalizeClass(["nut-cell__value", { "nut-cell__value--alone": !_ctx.title && !_ctx.subTitle && !_ctx.$slots.title }]),
|
|
107
|
+
style: normalizeStyle(descStyle.value)
|
|
108
|
+
}, [
|
|
109
|
+
renderSlot(_ctx.$slots, "desc", {}, () => [
|
|
110
|
+
createTextVNode(toDisplayString(_ctx.desc), 1)
|
|
111
|
+
])
|
|
112
|
+
], 6)) : createCommentVNode("", true),
|
|
113
|
+
renderSlot(_ctx.$slots, "link", {}, () => [
|
|
114
|
+
_ctx.isLink || _ctx.to ? (openBlock(), createBlock(unref(Right), {
|
|
115
|
+
key: 0,
|
|
116
|
+
class: "nut-cell__link"
|
|
117
|
+
})) : createCommentVNode("", true)
|
|
118
|
+
])
|
|
105
119
|
])
|
|
106
|
-
], 6)
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
})) : createCommentVNode("", true)
|
|
112
|
-
])
|
|
113
|
-
])
|
|
114
|
-
], 6);
|
|
115
|
-
}
|
|
116
|
-
const NutCell = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
120
|
+
], 6);
|
|
121
|
+
};
|
|
122
|
+
}
|
|
123
|
+
}));
|
|
124
|
+
withInstall(_sfc_main);
|
|
117
125
|
export {
|
|
118
|
-
|
|
126
|
+
_sfc_main as Cell,
|
|
127
|
+
_sfc_main as default
|
|
119
128
|
};
|
|
@@ -1,13 +1,24 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
}
|
|
10
|
-
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __defProps = Object.defineProperties;
|
|
3
|
+
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
4
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
7
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
8
|
+
var __spreadValues = (a, b) => {
|
|
9
|
+
for (var prop in b || (b = {}))
|
|
10
|
+
if (__hasOwnProp.call(b, prop))
|
|
11
|
+
__defNormalProp(a, prop, b[prop]);
|
|
12
|
+
if (__getOwnPropSymbols)
|
|
13
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
|
14
|
+
if (__propIsEnum.call(b, prop))
|
|
15
|
+
__defNormalProp(a, prop, b[prop]);
|
|
16
|
+
}
|
|
17
|
+
return a;
|
|
18
|
+
};
|
|
19
|
+
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
|
+
import { defineComponent, openBlock, createElementBlock, renderSlot, toDisplayString, createCommentVNode, createElementVNode } from "vue";
|
|
21
|
+
import { w as withInstall } from "../with-install-Ch3FF0uS.js";
|
|
11
22
|
const _hoisted_1 = { class: "nut-cell-group" };
|
|
12
23
|
const _hoisted_2 = {
|
|
13
24
|
key: 1,
|
|
@@ -18,16 +29,28 @@ const _hoisted_3 = {
|
|
|
18
29
|
class: "nut-cell-group__desc"
|
|
19
30
|
};
|
|
20
31
|
const _hoisted_4 = { class: "nut-cell-group__wrap" };
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
32
|
+
const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({}, {
|
|
33
|
+
name: "NutCellGroup"
|
|
34
|
+
}), {
|
|
35
|
+
__name: "cell-group",
|
|
36
|
+
props: {
|
|
37
|
+
title: { default: "" },
|
|
38
|
+
desc: { default: "" }
|
|
39
|
+
},
|
|
40
|
+
setup(__props) {
|
|
41
|
+
return (_ctx, _cache) => {
|
|
42
|
+
return openBlock(), createElementBlock("view", _hoisted_1, [
|
|
43
|
+
_ctx.$slots.title ? renderSlot(_ctx.$slots, "title", { key: 0 }) : _ctx.title ? (openBlock(), createElementBlock("view", _hoisted_2, toDisplayString(_ctx.title), 1)) : createCommentVNode("", true),
|
|
44
|
+
_ctx.$slots.desc ? renderSlot(_ctx.$slots, "desc", { key: 2 }) : _ctx.desc ? (openBlock(), createElementBlock("view", _hoisted_3, toDisplayString(_ctx.desc), 1)) : createCommentVNode("", true),
|
|
45
|
+
createElementVNode("view", _hoisted_4, [
|
|
46
|
+
renderSlot(_ctx.$slots, "default")
|
|
47
|
+
])
|
|
48
|
+
]);
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
}));
|
|
52
|
+
withInstall(_sfc_main);
|
|
31
53
|
export {
|
|
32
|
-
|
|
54
|
+
_sfc_main as CellGroup,
|
|
55
|
+
_sfc_main as default
|
|
33
56
|
};
|
|
@@ -3,7 +3,7 @@ import { c as createComponent } from "../component-DQf3CENX.js";
|
|
|
3
3
|
import { CheckNormal, Checked, CheckDisabled } from "@nutui/icons-vue";
|
|
4
4
|
import { p as pxCheck } from "../pxCheck-DN6FYV6q.js";
|
|
5
5
|
import { C as CHECKBOX_KEY } from "../types-48N1bMrT.js";
|
|
6
|
-
import { u as useFormDisabled } from "../common-
|
|
6
|
+
import { u as useFormDisabled } from "../common-BH7uB7Cn.js";
|
|
7
7
|
const { create, componentName } = createComponent("checkbox");
|
|
8
8
|
const _sfc_main = create({
|
|
9
9
|
props: {
|
|
@@ -2,6 +2,7 @@ import { computed } from "vue";
|
|
|
2
2
|
import { u as useParent } from "./useParent-D6DiuxZZ.js";
|
|
3
3
|
const FORM_KEY = Symbol("nut-form");
|
|
4
4
|
const FORM_DISABLED_KEY = Symbol("nut-form-disabled");
|
|
5
|
+
const FORM_TIP_KEY = Symbol("nut-form-tip");
|
|
5
6
|
const useFormDisabled = (disabled) => {
|
|
6
7
|
const { parent } = useParent(FORM_DISABLED_KEY);
|
|
7
8
|
return computed(() => {
|
|
@@ -10,7 +11,8 @@ const useFormDisabled = (disabled) => {
|
|
|
10
11
|
});
|
|
11
12
|
};
|
|
12
13
|
export {
|
|
13
|
-
|
|
14
|
-
|
|
14
|
+
FORM_TIP_KEY as F,
|
|
15
|
+
FORM_KEY as a,
|
|
16
|
+
FORM_DISABLED_KEY as b,
|
|
15
17
|
useFormDisabled as u
|
|
16
18
|
};
|