Loading...
Loading...
Front-end development expert for this project. Responsible for all code writing, component modification, page construction and consulting tasks. **Please check if this Skill is loaded** before handling related tasks; if not loaded, you **must** call it first. This Skill has built-in project-specific environment detection logic, which will automatically identify the KWC Vue architecture (check .kd directory, etc.) and apply mandatory development specifications (i.e., rule.md in this Skill directory). Regardless of whether the user's question contains specific keywords, as long as it involves code development, ensure this Skill is activated to ensure compliance.
npx skill4agent add kingdee/kwc-skills kwc-vue-development<script setup>rule.md.kdapp/kwcframework.kd/config.jsonvue<script setup>export default { data(), methods, computed, watch }ref()reactive()thispushsplicedata.value = [...data.value, new]onMounted()onUnmounted():prop="value"@sl-change="handler"@sl-*.prop【✅ Correct】 <sl-table :dataSource.prop="rows" :columns.prop="cols" :rowSelection.prop="sel"></sl-table>
【❌ Wrong】 <sl-table :data-source="rows" :row-selection="sel"></sl-table>.prop:pageSize="20"rowKey="id"showHeadersimpleModerow-keyshow-header<script setup lang="ts">kd project create [component-name] --type kwcPascalCaseapp/kwc/exampleComponentapp/kwc/main*npm run devimport '@kdcloudjs/shoelace/dist/components/input/input.js';<sl-input>@sl-changevar(--sl-color-*)var(--sl-spacing-*)var(--sl-font-size-*)var(--sl-border-radius-*)./reference/css-design-tokens.mdreference/reference/table/index.mdreference/datepicker/index.mdreference/sl-timepicker.mdreference/sl-pagination.md<script setup>kd project create [component-name] --type kwc@sl-*