title: How to make functions in <script setup > called by other components
body: <p>i have a function in &lt; script setup &gt; component, it not called in this component,i want use this function in other componet.</p>
  <pre><code>const playAudioType = (type) =&gt; {
            if (type === 'play') {
                store.setPlayStatus(!isPlayed.value);
                store.setPlayIndex(playIndex.value);
            } else {
                changeSong(type);
            }
        };
  </code></pre>
  <p>this code is grey in vs code</p>
  <p>but when i use this function in other componet ,he can not recognize this function.</p>
  <pre><code> const playSongStates = (state) =&gt; {
        audioRef.value.playAudioType(state);
      };
  </code></pre>
  <p>if use normal &lt; script &gt; i can return this function.</p>
  <p>but in &lt; scrtipt setup &gt; how could i do</p>