Skip to content

Commit 4ed0938

Browse files
committed
fix(tinyvue): defineProps、defineExpose 是一个编译器宏,不再需要导入。
1 parent f402ca8 commit 4ed0938

17 files changed

Lines changed: 15 additions & 17 deletions

File tree

template/tinyvue/src/components/breadcrumb/index.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
</template>
88

99
<script lang="ts" setup>
10-
import { PropType, defineProps } from 'vue';
10+
import { PropType } from 'vue';
1111
import {
1212
Breadcrumb as TinyBreadcrumb,
1313
BreadcrumbItem as TinyBreadcrumbItem,

template/tinyvue/src/views/form/base/components/detail-info.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@
8282
</template>
8383

8484
<script lang="ts" setup>
85-
import { reactive, toRefs, defineExpose } from 'vue';
85+
import { reactive, toRefs } from 'vue';
8686
import {
8787
Layout as TinyLayout,
8888
Form as TinyForm,

template/tinyvue/src/views/form/step/components/collapse-form.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
</template>
4141

4242
<script lang="ts" setup>
43-
import { ref, reactive, onMounted, watch, defineExpose } from 'vue';
43+
import { ref, reactive, onMounted, watch } from 'vue';
4444
import { useI18n } from 'vue-i18n';
4545
import { Modal, Loading } from '@opentiny/vue';
4646
import { useAppStore } from '@/store';

template/tinyvue/src/views/form/step/components/summation-form.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
</template>
2525

2626
<script lang="ts" setup>
27-
import { ref, reactive, computed, defineExpose, toRefs } from 'vue';
27+
import { ref, reactive, computed, toRefs } from 'vue';
2828
import {
2929
Layout as TinyLayout,
3030
Form as TinyForm,

template/tinyvue/src/views/form/step/components/target-form.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
</template>
1111

1212
<script lang="ts" setup>
13-
import { ref, reactive, defineExpose } from 'vue';
13+
import { ref, reactive } from 'vue';
1414
import { Transfer as TinyTransfer } from '@opentiny/vue';
1515
1616
interface data {

template/tinyvue/src/views/list/card-list/components/image.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<img :src="url" class="img" alt="" />
33
</template>
44
<script lang="ts" setup>
5-
import { computed, defineProps } from 'vue';
5+
import { computed } from 'vue';
66
77
const props = defineProps({
88
src: {

template/tinyvue/src/views/user/info/components/info-chart.vue

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@
4747
</template>
4848

4949
<script lang="ts" setup>
50-
import { defineProps } from 'vue';
5150
import tip1 from '@/assets/images/tip1.png';
5251
import tip2 from '@/assets/images/tip2.png';
5352
import tip3 from '@/assets/images/tip3.png';

template/tinyvue/src/views/user/info/components/info-filter.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
</template>
1919

2020
<script lang="ts" setup>
21-
import { defineProps, ref } from 'vue';
21+
import { ref } from 'vue';
2222
import { useI18n } from 'vue-i18n';
2323
import { Button as TinyButton, Modal } from '@opentiny/vue';
2424
import { useUserStore } from '@/store';

template/tinyvue/src/views/user/info/components/info-filterEndTime.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
</template>
1212

1313
<script lang="ts" setup>
14-
import { watch, ref, defineExpose } from 'vue';
14+
import { watch, ref } from 'vue';
1515
import { DatePicker as TinyDatePicker, Modal } from '@opentiny/vue';
1616
import { useI18n } from 'vue-i18n';
1717
import { useUserStore } from '@/store';

template/tinyvue/src/views/user/info/components/info-filterStartTime.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
</template>
1111

1212
<script lang="ts" setup>
13-
import { watch, ref, defineExpose } from 'vue';
13+
import { watch, ref } from 'vue';
1414
import { DatePicker as TinyDatePicker } from '@opentiny/vue';
1515
import { useUserStore } from '@/store';
1616

0 commit comments

Comments
 (0)