@@ -124,6 +124,10 @@ const initTranslate = () =>
}
});
export default createDemo({
+ components: {
+ Notice,
+ Follow
+ },
setup(props, context) {
initTranslate();
const data = reactive({
@@ -142,8 +146,6 @@ export default createDemo({
console.log(`点击了name是${name}的面板`);
};
return {
- Notice,
- Follow,
translate,
change,
...toRefs(data)
@@ -127,6 +127,10 @@ Set custom icons through icon and rotate to set the rotation angle of icons
import { reactive, ref, toRefs } from 'vue';
import { Notice, Follow } from '@nutui/icons-vue';
export default {
setup() {
const activeName = ref(1);
const title = reactive({
@@ -136,8 +140,6 @@ export default {
activeName,
...toRefs(title),
- Follow
@@ -126,6 +126,10 @@ export default {
@@ -135,8 +139,6 @@ export default {
@@ -209,7 +209,7 @@ When text is long, you can enable multi-line display by setting the wrapable pro
components: { Fabulous },
setup(props) {
const horseLamp1 = ref(['Noticebar 公告栏', 'Cascader 级联选择', 'DatePicker 日期选择器', 'CheckBox 复选按钮']);
- return { horseLamp1,Fabulous };
+ return { horseLamp1 };
</script>
@@ -211,7 +211,7 @@ app.use(Noticebar);
@@ -90,7 +90,6 @@ app.use(Icon);
...toRefs(state),
- Search2