|
@@ -8,6 +8,12 @@ import isCollaose from '/src/views/natural-resources/images/isCollaose.png';
|
|
|
|
|
|
export default defineComponent({
|
|
|
name: 'search-group',
|
|
|
+ props: {
|
|
|
+ type: {
|
|
|
+ type: String,
|
|
|
+ default: ''
|
|
|
+ }
|
|
|
+ },
|
|
|
emits: ['search', 'add'],
|
|
|
setup(props, { emit }) {
|
|
|
const catchStore = useCatchStore();
|
|
@@ -85,7 +91,11 @@ export default defineComponent({
|
|
|
return () => (
|
|
|
<div class={styles.searchGroup}>
|
|
|
<NForm labelAlign="left" labelPlacement="left">
|
|
|
- <div class={styles.collapsSection}>
|
|
|
+ <div
|
|
|
+ class={[
|
|
|
+ styles.collapsSection,
|
|
|
+ props.type === 'myResources' && styles.collapsSectionEmpty
|
|
|
+ ]}>
|
|
|
<NFormItem label="教材:">
|
|
|
<div
|
|
|
class={[
|
|
@@ -161,7 +171,7 @@ export default defineComponent({
|
|
|
</NSpace>
|
|
|
</NFormItem> */}
|
|
|
<TheSearch
|
|
|
- class={styles.inputSearch}
|
|
|
+ class={[styles.inputSearch]}
|
|
|
round
|
|
|
onSearch={(val: string) => {
|
|
|
forms.name = val;
|