@iankibetsh/shframework 5.6.4 → 5.6.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/dist/library.js +5 -1
- package/dist/library.mjs +5 -1
- package/package.json +1 -1
package/dist/library.js
CHANGED
|
@@ -4475,6 +4475,9 @@ vue.onMounted(()=>{
|
|
|
4475
4475
|
if(!url.value) {
|
|
4476
4476
|
url.value = '';
|
|
4477
4477
|
}
|
|
4478
|
+
if(typeof url.value === 'function'){
|
|
4479
|
+
url.value = url.value(props.record);
|
|
4480
|
+
}
|
|
4478
4481
|
// replace params in url with record key e.g {id} replaced with record.id
|
|
4479
4482
|
url.value = url.value.replace(/{(\w+)}/g, (match, key) => {
|
|
4480
4483
|
return props.record[key]
|
|
@@ -6331,6 +6334,7 @@ const getTabKey = (tab) => {
|
|
|
6331
6334
|
return tab.key ?? tab.label.replace(/\s+/g, '_').toLowerCase()
|
|
6332
6335
|
};
|
|
6333
6336
|
|
|
6337
|
+
|
|
6334
6338
|
return (_ctx, _cache) => {
|
|
6335
6339
|
const _component_router_link = vue.resolveComponent("router-link");
|
|
6336
6340
|
|
|
@@ -6379,7 +6383,7 @@ return (_ctx, _cache) => {
|
|
|
6379
6383
|
(vue.unref(currentTab))
|
|
6380
6384
|
? (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(vue.unref(currentTab).component ?? __props.defaultComponent), vue.mergeProps({
|
|
6381
6385
|
key: getTabKey(vue.unref(currentTab))
|
|
6382
|
-
}, vue.unref(currentTab)), null, 16 /* FULL_PROPS */))
|
|
6386
|
+
}, {..._ctx.$attrs, ...vue.unref(currentTab)}), null, 16 /* FULL_PROPS */))
|
|
6383
6387
|
: vue.createCommentVNode("v-if", true)
|
|
6384
6388
|
])
|
|
6385
6389
|
], 64 /* STABLE_FRAGMENT */))
|
package/dist/library.mjs
CHANGED
|
@@ -4464,6 +4464,9 @@ onMounted(()=>{
|
|
|
4464
4464
|
if(!url.value) {
|
|
4465
4465
|
url.value = '';
|
|
4466
4466
|
}
|
|
4467
|
+
if(typeof url.value === 'function'){
|
|
4468
|
+
url.value = url.value(props.record);
|
|
4469
|
+
}
|
|
4467
4470
|
// replace params in url with record key e.g {id} replaced with record.id
|
|
4468
4471
|
url.value = url.value.replace(/{(\w+)}/g, (match, key) => {
|
|
4469
4472
|
return props.record[key]
|
|
@@ -6320,6 +6323,7 @@ const getTabKey = (tab) => {
|
|
|
6320
6323
|
return tab.key ?? tab.label.replace(/\s+/g, '_').toLowerCase()
|
|
6321
6324
|
};
|
|
6322
6325
|
|
|
6326
|
+
|
|
6323
6327
|
return (_ctx, _cache) => {
|
|
6324
6328
|
const _component_router_link = resolveComponent("router-link");
|
|
6325
6329
|
|
|
@@ -6368,7 +6372,7 @@ return (_ctx, _cache) => {
|
|
|
6368
6372
|
(unref(currentTab))
|
|
6369
6373
|
? (openBlock(), createBlock(resolveDynamicComponent(unref(currentTab).component ?? __props.defaultComponent), mergeProps({
|
|
6370
6374
|
key: getTabKey(unref(currentTab))
|
|
6371
|
-
}, unref(currentTab)), null, 16 /* FULL_PROPS */))
|
|
6375
|
+
}, {..._ctx.$attrs, ...unref(currentTab)}), null, 16 /* FULL_PROPS */))
|
|
6372
6376
|
: createCommentVNode("v-if", true)
|
|
6373
6377
|
])
|
|
6374
6378
|
], 64 /* STABLE_FRAGMENT */))
|