@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 CHANGED
@@ -2992,8 +2992,9 @@ const modelValueUpdated = (e) => {
2992
2992
  };
2993
2993
  vue.onMounted(()=>{
2994
2994
  props.modelValue && (inputModel.value = props.modelValue);
2995
- if(props.data){
2996
- selectOptions.value = props.data.map(item=>{
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
- if(props.data){
2984
- selectOptions.value = props.data.map(item=>{
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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@iankibetsh/shframework",
3
- "version": "4.1.1",
3
+ "version": "4.1.2",
4
4
  "description": "Vue library for handling laravel backend",
5
5
  "main": "dist/library.js",
6
6
  "module": "dist/library.mjs",