aloha-vue 1.0.43 → 1.0.46
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/docs/src/views/PageForm/PageForm.js +6 -0
- package/docs/src/views/PageInput/PageInput.pug +1 -1
- package/package.json +1 -1
- package/src/AModal/AModal.js +4 -3
- package/src/ui/ACheckbox/ACheckbox.js +1 -1
- package/src/ui/AFieldset/AFieldset.js +1 -1
- package/src/ui/AInput/AInput.js +1 -1
- package/src/ui/AOneCheckbox/AOneCheckbox.js +1 -1
- package/src/ui/ARadio/ARadio.js +1 -1
- package/src/ui/ASelect/ASelect.js +2 -1
- package/src/ui/ASelect/compositionAPI/ASelectModelChangeAPI.js +3 -0
- package/src/ui/ASwitch/ASwitch.js +1 -1
- package/src/ui/ATemplate/ATemplate.js +1 -1
- package/src/ui/ATextarea/ATextarea.js +1 -1
- package/src/ui/compositionApi/UiAPI.js +5 -2
- package/src/ui/mixins/UiMixinProps.js +9 -1
|
@@ -60,6 +60,7 @@ export default {
|
|
|
60
60
|
id: "aloha1",
|
|
61
61
|
classColumn: "a_column_8",
|
|
62
62
|
required: true,
|
|
63
|
+
isHide: true,
|
|
63
64
|
},
|
|
64
65
|
{
|
|
65
66
|
type: "text",
|
|
@@ -79,6 +80,7 @@ export default {
|
|
|
79
80
|
keyGroup: "group",
|
|
80
81
|
data: this.selectData,
|
|
81
82
|
helpText: "ALOHA help!!!",
|
|
83
|
+
change: this.changeAloha,
|
|
82
84
|
},
|
|
83
85
|
{
|
|
84
86
|
type: "text",
|
|
@@ -196,5 +198,9 @@ export default {
|
|
|
196
198
|
reset() {
|
|
197
199
|
this.errors = undefined;
|
|
198
200
|
},
|
|
201
|
+
|
|
202
|
+
changeAloha(arg) {
|
|
203
|
+
console.log("arg", arg);
|
|
204
|
+
},
|
|
199
205
|
},
|
|
200
206
|
};
|
package/package.json
CHANGED
package/src/AModal/AModal.js
CHANGED
|
@@ -415,7 +415,7 @@ export default {
|
|
|
415
415
|
ref: "modal_header",
|
|
416
416
|
class: "a_modal_header",
|
|
417
417
|
}, [
|
|
418
|
-
this.$slots.
|
|
418
|
+
this.$slots.modalHeader && this.$slots.modalHeader(),
|
|
419
419
|
this.headerText && h(this.headerTag, {
|
|
420
420
|
class: "a_modal_title",
|
|
421
421
|
}, [
|
|
@@ -433,7 +433,7 @@ export default {
|
|
|
433
433
|
ref: "modal_body",
|
|
434
434
|
class: "a_modal_body",
|
|
435
435
|
}, [
|
|
436
|
-
this.$slots.
|
|
436
|
+
this.$slots.modalBodyPrepend && this.$slots.modalBodyPrepend(),
|
|
437
437
|
this.isDataForm && h(AForm, {
|
|
438
438
|
modelValue: this.modelValue,
|
|
439
439
|
data: this.dataForm,
|
|
@@ -446,12 +446,13 @@ export default {
|
|
|
446
446
|
this.bodyHtml && h("div", {
|
|
447
447
|
innerHTML: this.bodyHtml,
|
|
448
448
|
}),
|
|
449
|
+
this.$slots.modalBodyAppend && this.$slots.modalBodyAppend(),
|
|
449
450
|
]),
|
|
450
451
|
h("div", {
|
|
451
452
|
ref: "modal_footer",
|
|
452
453
|
class: "a_modal_footer",
|
|
453
454
|
}, [
|
|
454
|
-
this.$slots.
|
|
455
|
+
this.$slots.modalFooter && this.$slots.modalFooter(),
|
|
455
456
|
this.save && h("button", {
|
|
456
457
|
type: "button",
|
|
457
458
|
class: this.saveButtonClass,
|
package/src/ui/AInput/AInput.js
CHANGED
package/src/ui/ARadio/ARadio.js
CHANGED
|
@@ -267,6 +267,7 @@ export default {
|
|
|
267
267
|
changeModel,
|
|
268
268
|
togglePopover,
|
|
269
269
|
dataLocal,
|
|
270
|
+
dataKeyByKeyIdLocal,
|
|
270
271
|
});
|
|
271
272
|
|
|
272
273
|
const {
|
|
@@ -355,7 +356,7 @@ export default {
|
|
|
355
356
|
};
|
|
356
357
|
},
|
|
357
358
|
render() {
|
|
358
|
-
return h("div", {
|
|
359
|
+
return !this.isHide && h("div", {
|
|
359
360
|
style: this.componentStyleHideDependencies,
|
|
360
361
|
}, [
|
|
361
362
|
h("div", {
|
|
@@ -14,6 +14,7 @@ export default function ASelectModelChangeAPI(props, {
|
|
|
14
14
|
changeModel = () => {},
|
|
15
15
|
togglePopover = () => {},
|
|
16
16
|
dataLocal = computed(() => []),
|
|
17
|
+
dataKeyByKeyIdLocal = computed(() => ({})),
|
|
17
18
|
}) {
|
|
18
19
|
const isCloseByClick = toRef(props, "isCloseByClick");
|
|
19
20
|
const isCloseByClickLocal = computed(() => {
|
|
@@ -50,6 +51,8 @@ export default function ASelectModelChangeAPI(props, {
|
|
|
50
51
|
changeModel({
|
|
51
52
|
model: modelValueLocal,
|
|
52
53
|
$event,
|
|
54
|
+
currentModel: currentValue,
|
|
55
|
+
item: dataKeyByKeyIdLocal.value[currentValue],
|
|
53
56
|
});
|
|
54
57
|
|
|
55
58
|
if (isCloseByClickLocal.value) {
|
|
@@ -25,11 +25,14 @@ export default function UiAPI(props, { emit }) {
|
|
|
25
25
|
htmlIdLocal,
|
|
26
26
|
});
|
|
27
27
|
|
|
28
|
-
const
|
|
28
|
+
const change = toRef(props, "change");
|
|
29
|
+
const changeModel = ({ model, currentModel, item }) => {
|
|
29
30
|
emit("update:modelValue", model);
|
|
30
|
-
|
|
31
|
+
change.value({
|
|
31
32
|
model,
|
|
32
33
|
props,
|
|
34
|
+
currentModel,
|
|
35
|
+
item,
|
|
33
36
|
});
|
|
34
37
|
};
|
|
35
38
|
|
|
@@ -91,10 +91,18 @@ export default {
|
|
|
91
91
|
type: String,
|
|
92
92
|
required: false,
|
|
93
93
|
},
|
|
94
|
+
isHide: {
|
|
95
|
+
type: Boolean,
|
|
96
|
+
required: false,
|
|
97
|
+
},
|
|
98
|
+
change: {
|
|
99
|
+
type: Function,
|
|
100
|
+
required: false,
|
|
101
|
+
default: () => {},
|
|
102
|
+
},
|
|
94
103
|
},
|
|
95
104
|
emits: [
|
|
96
105
|
"update:modelValue",
|
|
97
|
-
"change",
|
|
98
106
|
"focus",
|
|
99
107
|
"blur",
|
|
100
108
|
],
|