diff --git a/components/lib/inplace/style/InplaceStyle.js b/components/lib/inplace/style/InplaceStyle.js
index 9d78a0a09..ba51d4969 100644
--- a/components/lib/inplace/style/InplaceStyle.js
+++ b/components/lib/inplace/style/InplaceStyle.js
@@ -2,8 +2,9 @@ import BaseStyle from 'primevue/base/style';
const theme = ({ dt }) => `
.p-inplace-display {
- display: inline;
+ display: inline-block;
cursor: pointer;
+ border: 1px solid transparent;
padding: ${dt('inplace.padding')};
border-radius: ${dt('inplace.border.radius')};
transition: background ${dt('inplace.transition.duration')}, color ${dt('inplace.transition.duration')}, outline-color ${dt('inplace.transition.duration')}, box-shadow ${dt('inplace.transition.duration')};
@@ -22,7 +23,7 @@ const theme = ({ dt }) => `
}
.p-inplace-content {
- display: inline;
+ display: block;
}
`;
diff --git a/doc/inplace/ImageDoc.vue b/doc/inplace/ImageDoc.vue
index 0d76ce117..9b35aecb3 100644
--- a/doc/inplace/ImageDoc.vue
+++ b/doc/inplace/ImageDoc.vue
@@ -3,13 +3,15 @@
Any content such as an image can be placed inside an Inplace.
-
+
-
- View Picture
+
+
+ View Photo
+
-
+
@@ -24,11 +26,13 @@ export default {
basic: `
-
- View Picture
+
+
+ View Photo
+
-
+
`,
@@ -37,11 +41,13 @@ export default {
-
- View Picture
+
+
+ View Photo
+
-
+
@@ -55,11 +61,13 @@ export default {
-
- View Picture
+
+
+ View Photo
+
-
+
diff --git a/doc/inplace/InputDoc.vue b/doc/inplace/InputDoc.vue
index 7e402389a..81ffb0b8c 100644
--- a/doc/inplace/InputDoc.vue
+++ b/doc/inplace/InputDoc.vue
@@ -1,6 +1,6 @@
- Inplace can be used within a form to display a value as read only before making it editable.
+ The closeCallback switches the state back to display mode when called from an event.
@@ -8,8 +8,10 @@
{{ text || 'Click to Edit' }}
-
-
+
+
+
+
@@ -28,8 +30,10 @@ export default {
{{ text || 'Click to Edit' }}
-
-
+
+
+
+
`,
@@ -41,8 +45,10 @@ export default {
{{ text || 'Click to Edit' }}
-
-
+
+
+
+
@@ -66,8 +72,10 @@ export default {
{{ text || 'Click to Edit' }}
-
-
+
+
+
+
diff --git a/doc/inplace/LazyDoc.vue b/doc/inplace/LazyDoc.vue
index 45cd0f3a1..0155c5287 100644
--- a/doc/inplace/LazyDoc.vue
+++ b/doc/inplace/LazyDoc.vue
@@ -1,6 +1,6 @@
- Using the open event, data can be loaded in a lazy manner before displaying it in a table.
+ The open event is used to initialize the content such as loading data in a lazy manner.
@@ -67,7 +67,7 @@ export default {
},
methods: {
loadData() {
- ProductService.getProductsSmall().then((data) => (this.products = data));
+ ProductService.getProductsMini().then((data) => (this.products = data));
}
}
}
@@ -97,7 +97,7 @@ import {ProductService} from "@/service/ProductService";
const products = ref();
const loadData = () => {
- ProductService.getProductsSmall().then((data) => (products.value = data));
+ ProductService.getProductsMini().then((data) => (products.value = data));
}
<\/script>
`
@@ -106,7 +106,7 @@ const loadData = () => {
},
methods: {
loadData() {
- ProductService.getProductsSmall().then((data) => (this.products = data));
+ ProductService.getProductsMini().then((data) => (this.products = data));
}
}
};