node-karin 1.3.6 → 1.3.7
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 +7 -0
- package/dist/index.d.ts +66 -1540
- package/dist/index.js +40 -51
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -16692,29 +16692,23 @@ var init_accordion = __esm({
|
|
|
16692
16692
|
"src/components/accordion.ts"() {
|
|
16693
16693
|
"use strict";
|
|
16694
16694
|
init_esm_shims();
|
|
16695
|
-
createAccordion = (key, config2) => ({
|
|
16695
|
+
createAccordion = (key, config2 = {}) => ({
|
|
16696
16696
|
key,
|
|
16697
16697
|
...config2,
|
|
16698
16698
|
componentType: "accordion"
|
|
16699
16699
|
});
|
|
16700
|
-
createAccordionPro = (key, config2) => {
|
|
16701
|
-
|
|
16702
|
-
|
|
16703
|
-
|
|
16704
|
-
|
|
16705
|
-
|
|
16706
|
-
|
|
16707
|
-
|
|
16708
|
-
|
|
16709
|
-
|
|
16710
|
-
|
|
16711
|
-
|
|
16712
|
-
...config2,
|
|
16713
|
-
componentType: "accordion-item"
|
|
16714
|
-
};
|
|
16715
|
-
console.log("createAccordionItem:", JSON.stringify(result));
|
|
16716
|
-
return result;
|
|
16717
|
-
};
|
|
16700
|
+
createAccordionPro = (key, config2 = {}) => ({
|
|
16701
|
+
...config2,
|
|
16702
|
+
key,
|
|
16703
|
+
componentType: "accordion-pro",
|
|
16704
|
+
data: config2.data || []
|
|
16705
|
+
});
|
|
16706
|
+
createAccordionItem = (key, config2 = {}) => ({
|
|
16707
|
+
key,
|
|
16708
|
+
...config2,
|
|
16709
|
+
componentType: "accordion-item",
|
|
16710
|
+
children: config2.children || []
|
|
16711
|
+
});
|
|
16718
16712
|
accordion = {
|
|
16719
16713
|
/**
|
|
16720
16714
|
* 创建基础手风琴组件
|
|
@@ -16784,15 +16778,11 @@ var init_input = __esm({
|
|
|
16784
16778
|
"src/components/input.ts"() {
|
|
16785
16779
|
"use strict";
|
|
16786
16780
|
init_esm_shims();
|
|
16787
|
-
createInput = (key, config2) => {
|
|
16788
|
-
|
|
16789
|
-
|
|
16790
|
-
|
|
16791
|
-
|
|
16792
|
-
componentType: "input"
|
|
16793
|
-
};
|
|
16794
|
-
return result;
|
|
16795
|
-
};
|
|
16781
|
+
createInput = (key, config2 = {}) => ({
|
|
16782
|
+
...config2,
|
|
16783
|
+
key,
|
|
16784
|
+
componentType: "input"
|
|
16785
|
+
});
|
|
16796
16786
|
input = {
|
|
16797
16787
|
/**
|
|
16798
16788
|
* 创建基础输入框
|
|
@@ -17050,15 +17040,11 @@ var init_switch = __esm({
|
|
|
17050
17040
|
"src/components/switch.ts"() {
|
|
17051
17041
|
"use strict";
|
|
17052
17042
|
init_esm_shims();
|
|
17053
|
-
createSwitch = (key, config2 = {}) => {
|
|
17054
|
-
|
|
17055
|
-
|
|
17056
|
-
|
|
17057
|
-
|
|
17058
|
-
};
|
|
17059
|
-
console.log("createSwitch:", JSON.stringify(result));
|
|
17060
|
-
return result;
|
|
17061
|
-
};
|
|
17043
|
+
createSwitch = (key, config2 = {}) => ({
|
|
17044
|
+
...config2,
|
|
17045
|
+
key,
|
|
17046
|
+
componentType: "switch"
|
|
17047
|
+
});
|
|
17062
17048
|
switchComponent = {
|
|
17063
17049
|
/**
|
|
17064
17050
|
* 创建基础开关
|
|
@@ -17093,12 +17079,12 @@ var init_divider = __esm({
|
|
|
17093
17079
|
"src/components/divider.ts"() {
|
|
17094
17080
|
"use strict";
|
|
17095
17081
|
init_esm_shims();
|
|
17096
|
-
createDivider = (key, config2) => ({
|
|
17097
|
-
key,
|
|
17082
|
+
createDivider = (key, config2 = {}) => ({
|
|
17098
17083
|
componentType: "divider",
|
|
17099
17084
|
transparent: false,
|
|
17100
17085
|
orientation: "horizontal",
|
|
17101
|
-
...config2
|
|
17086
|
+
...config2,
|
|
17087
|
+
key
|
|
17102
17088
|
});
|
|
17103
17089
|
divider = {
|
|
17104
17090
|
/**
|
|
@@ -17106,7 +17092,7 @@ var init_divider = __esm({
|
|
|
17106
17092
|
* @param key 唯一标识符
|
|
17107
17093
|
* @param options 分隔线配置
|
|
17108
17094
|
*/
|
|
17109
|
-
create: (key, options) => createDivider(key, options),
|
|
17095
|
+
create: (key, options = {}) => createDivider(key, options),
|
|
17110
17096
|
/**
|
|
17111
17097
|
* 创建水平分隔线
|
|
17112
17098
|
* @param key 唯一标识符
|
|
@@ -17135,15 +17121,17 @@ var init_radioGroup = __esm({
|
|
|
17135
17121
|
"src/components/radioGroup.ts"() {
|
|
17136
17122
|
"use strict";
|
|
17137
17123
|
init_esm_shims();
|
|
17138
|
-
createRadio = (key, config2) => ({
|
|
17139
|
-
key,
|
|
17124
|
+
createRadio = (key, config2 = {}) => ({
|
|
17140
17125
|
...config2,
|
|
17126
|
+
key,
|
|
17127
|
+
value: config2.value || "",
|
|
17141
17128
|
componentType: "radio"
|
|
17142
17129
|
});
|
|
17143
|
-
createRadioGroup = (key, config2) => ({
|
|
17144
|
-
key,
|
|
17130
|
+
createRadioGroup = (key, config2 = {}) => ({
|
|
17145
17131
|
...config2,
|
|
17146
|
-
|
|
17132
|
+
key,
|
|
17133
|
+
componentType: "radio-group",
|
|
17134
|
+
radio: config2.radio || []
|
|
17147
17135
|
});
|
|
17148
17136
|
radio = {
|
|
17149
17137
|
/**
|
|
@@ -17223,15 +17211,16 @@ var init_checkbox = __esm({
|
|
|
17223
17211
|
"src/components/checkbox.ts"() {
|
|
17224
17212
|
"use strict";
|
|
17225
17213
|
init_esm_shims();
|
|
17226
|
-
createCheckbox = (key, config2) => ({
|
|
17227
|
-
key,
|
|
17214
|
+
createCheckbox = (key, config2 = {}) => ({
|
|
17228
17215
|
...config2,
|
|
17216
|
+
key,
|
|
17229
17217
|
componentType: "checkbox"
|
|
17230
17218
|
});
|
|
17231
|
-
createCheckboxGroup = (key, config2) => ({
|
|
17232
|
-
key,
|
|
17219
|
+
createCheckboxGroup = (key, config2 = {}) => ({
|
|
17233
17220
|
...config2,
|
|
17234
|
-
|
|
17221
|
+
key,
|
|
17222
|
+
componentType: "checkbox-group",
|
|
17223
|
+
checkbox: config2.checkbox || []
|
|
17235
17224
|
});
|
|
17236
17225
|
checkbox = {
|
|
17237
17226
|
/**
|