fix(components): empty icon component judgment (#4178)

* fix(components): empty icon component judgment

* revert: globals components

* fix(components): el-icon missing import

* fix: use shallowRef for icon components

* refactor: remove shallowRef

* fix: remove unused code

* fix: social-link icon size

* fix: time picker icon

* fix: v-if judge
This commit is contained in:
Aex
2021-11-05 17:44:02 +08:00
committed by GitHub
parent c72ea9c1a1
commit f78407a409
28 changed files with 85 additions and 155 deletions

View File

@@ -29,20 +29,13 @@
</div>
</template>
<script lang="ts">
import { defineComponent, ref } from 'vue'
<script setup lang="ts">
import { ref } from 'vue'
import { Search } from '@element-plus/icons'
export default defineComponent({
setup() {
return {
Search,
input1: ref(''),
input2: ref(''),
input3: ref(''),
select: ref(''),
}
},
})
const input1 = ref('')
const input2 = ref('')
const input3 = ref('')
const select = ref('')
</script>
<style>

View File

@@ -36,26 +36,13 @@
</div>
</template>
<script lang="ts">
import { defineComponent, ref } from 'vue'
<script setup lang="ts">
import { ref } from 'vue'
import { Calendar, Search } from '@element-plus/icons'
export default defineComponent({
components: {
Calendar,
Search,
},
setup() {
return {
Calendar,
Search,
input1: ref(''),
input2: ref(''),
input3: ref(''),
input4: ref(''),
}
},
})
const input1 = ref('')
const input2 = ref('')
const input3 = ref('')
const input4 = ref('')
</script>
<style>