@iankibetsh/shframework 4.1.1 → 4.1.2
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/dist/library.js +3 -2
- package/dist/library.mjs +3 -2
- package/package.json +1 -1
package/dist/library.js
CHANGED
|
@@ -2992,8 +2992,9 @@ const modelValueUpdated = (e) => {
|
|
|
2992
2992
|
};
|
|
2993
2993
|
vue.onMounted(()=>{
|
|
2994
2994
|
props.modelValue && (inputModel.value = props.modelValue);
|
|
2995
|
-
|
|
2996
|
-
|
|
2995
|
+
const options = props.data ?? props.options;
|
|
2996
|
+
if(options){
|
|
2997
|
+
selectOptions.value = options.map(item=>{
|
|
2997
2998
|
return {
|
|
2998
2999
|
id: typeof item.id !== 'undefined' ? item.id : item.key ? item.key : item.value ? item.value:item.name ? item.name:item.label,
|
|
2999
3000
|
name: item.label ? item.label : item.name ? item.name : item.value ? item.value:item.id ? item.id:item.option
|
package/dist/library.mjs
CHANGED
|
@@ -2980,8 +2980,9 @@ const modelValueUpdated = (e) => {
|
|
|
2980
2980
|
};
|
|
2981
2981
|
onMounted(()=>{
|
|
2982
2982
|
props.modelValue && (inputModel.value = props.modelValue);
|
|
2983
|
-
|
|
2984
|
-
|
|
2983
|
+
const options = props.data ?? props.options;
|
|
2984
|
+
if(options){
|
|
2985
|
+
selectOptions.value = options.map(item=>{
|
|
2985
2986
|
return {
|
|
2986
2987
|
id: typeof item.id !== 'undefined' ? item.id : item.key ? item.key : item.value ? item.value:item.name ? item.name:item.label,
|
|
2987
2988
|
name: item.label ? item.label : item.name ? item.name : item.value ? item.value:item.id ? item.id:item.option
|