# 如何正确地将我的脚本移动到组件的新 JS 选项卡中？

**URL:** <https://meta.discourse.org/t/how-to-properly-move-my-script-to-the-new-js-tab-in-my-component/377603>\
**Category:** Development\
**Tags:** composer, tags\
**Created:** [2025 年8 月 6 日 19:23 UTC](https://meta.discourse.org/t/how-to-properly-move-my-script-to-the-new-js-tab-in-my-component/377603 "2025-08-06T19:23:46Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

作者： ![Canapin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/canapin/32/119591_2.png) [@Canapin](https://meta.discourse.org/u/Canapin)\
发布日期： [2025 年8 月 7 日 09:33 UTC](https://meta.discourse.org/t/how-to-properly-move-my-script-to-the-new-js-tab-in-my-component/377603/7 "2025-08-07T09:33:46Z")

</div>

我的天哪！看来我 2012 年的 CSS 技能已经跟不上了。这有点奇怪，因为我明明记得 2012 年就像是昨天一样！

* * *

我选择了

```scss
.d-editor-container:not(:has(.category-input .select-kit-header\[data-name=“Trading Post”\])) .tags-input {
    display: none;
}

```

这样它就会隐藏在除“Trading Post”之外的所有类别中。

谢谢大家！

---

_[View the full topic](https://meta.discourse.org/t/how-to-properly-move-my-script-to-the-new-js-tab-in-my-component/377603)._
