|
|
@@ -41,15 +41,47 @@
|
|
|
<cl-image src=""></cl-image>
|
|
|
</demo-item>
|
|
|
|
|
|
- <demo-item :label="t('自定义')">
|
|
|
- <cl-image
|
|
|
- :src="url"
|
|
|
- :height="200"
|
|
|
- :width="300"
|
|
|
- :pt="{
|
|
|
- className: '!rounded-none border border-solid border-surface-200 p-3'
|
|
|
- }"
|
|
|
- ></cl-image>
|
|
|
+ <demo-item :label="t('自定义圆角')">
|
|
|
+ <view class="flex flex-row">
|
|
|
+ <cl-image
|
|
|
+ :src="url"
|
|
|
+ :pt="{
|
|
|
+ inner: {
|
|
|
+ className: '!rounded-none'
|
|
|
+ }
|
|
|
+ }"
|
|
|
+ ></cl-image>
|
|
|
+
|
|
|
+ <cl-image
|
|
|
+ :src="url"
|
|
|
+ :pt="{
|
|
|
+ className: 'ml-3',
|
|
|
+ inner: {
|
|
|
+ className: '!rounded-2xl'
|
|
|
+ }
|
|
|
+ }"
|
|
|
+ ></cl-image>
|
|
|
+
|
|
|
+ <cl-image
|
|
|
+ :src="url"
|
|
|
+ :pt="{
|
|
|
+ className: 'ml-3',
|
|
|
+ inner: {
|
|
|
+ className: '!rounded-3xl'
|
|
|
+ }
|
|
|
+ }"
|
|
|
+ ></cl-image>
|
|
|
+
|
|
|
+ <cl-image
|
|
|
+ :src="url"
|
|
|
+ :pt="{
|
|
|
+ className: 'ml-3',
|
|
|
+ inner: {
|
|
|
+ className: '!rounded-full'
|
|
|
+ }
|
|
|
+ }"
|
|
|
+ ></cl-image>
|
|
|
+ </view>
|
|
|
</demo-item>
|
|
|
</view>
|
|
|
</cl-page>
|
|
|
@@ -60,5 +92,5 @@ import { ref } from "vue";
|
|
|
import DemoItem from "../components/item.uvue";
|
|
|
import { t } from "@/locale";
|
|
|
|
|
|
-const url = ref("https://uni-docs.cool-js.com/demo/pages/demo/static/bg1.png");
|
|
|
+const url = ref("https://unix.cool-js.com/images/demo/avatar.jpg");
|
|
|
</script>
|