{"version":3,"file":"table2.mjs","sources":["../../../../../../packages/components/table/src/table.vue"],"sourcesContent":["<template>\n  <div :class=\"ns.b('wrapper')\">\n    <div v-if=\"$slots.header\" :class=\"ns.be('wrapper', 'header')\">\n      <slot name=\"header\" />\n    </div>\n\n    <div :class=\"tableKls\">\n      <table>\n        <thead ref=\"theadRef\" :class=\"ns.e('thead')\">\n          <slot name=\"thead\" />\n        </thead>\n        <tbody :class=\"ns.e('tbody')\">\n          <slot name=\"tbody\" />\n        </tbody>\n\n        <tbody :class=\"ns.e('not-found')\">\n          <tr>\n            <td :colspan=\"colspan\">\n              <slot name=\"notFound\">{{ t('vs.table.noMatch') }}</slot>\n            </td>\n          </tr>\n        </tbody>\n      </table>\n    </div>\n\n    <div v-if=\"$slots.footer\" :class=\"ns.e('footer')\">\n      <slot name=\"footer\" />\n    </div>\n  </div>\n</template>\n\n<script lang=\"ts\" setup>\nimport { computed, provide } from 'vue'\nimport { useLocale, useNamespace } from '@vuesax-alpha/hooks'\nimport { tableContextKey } from '@vuesax-alpha/tokens'\nimport { tableEmits, tableProps } from './table'\nimport { useTable } from './composables'\n\ndefineOptions({\n  name: 'VsTable',\n})\n\nconst ns = useNamespace('table')\nconst { t } = useLocale()\n\nconst props = defineProps(tableProps)\n\nconst emit = defineEmits(tableEmits)\n\nconst { tableKls, colspan, selected, theadRef } = useTable(props, emit)\n\nprovide(tableContextKey, {\n  selected,\n  colspan,\n  multiple: computed(() => props.multiple),\n  modelValue: computed(() => props.modelValue),\n})\n</script>\n"],"names":[],"mappings":";;;;;;;;;;;;mCAsCc,CAAA;AAAA,EACZ,IAAM,EAAA,SAAA;AACR,CAAA,CAAA,CAAA;;;;;;;AAEM,IAAA,MAAA,EAAA,GAAK,aAAa,OAAO,CAAA,CAAA;AACzB,IAAA,MAAA,EAAE,CAAE,EAAA,GAAI,SAAU,EAAA,CAAA;AAMlB,IAAA,MAAA,EAAE,UAAU,OAAS,EAAA,QAAA,EAAU,UAAa,GAAA,QAAA,CAAS,OAAO,IAAI,CAAA,CAAA;AAEtE,IAAA,OAAA,CAAQ,eAAiB,EAAA;AAAA,MACvB,QAAA;AAAA,MACA,OAAA;AAAA,MACA,QAAU,EAAA,QAAA,CAAS,MAAM,KAAA,CAAM,QAAQ,CAAA;AAAA,MACvC,UAAY,EAAA,QAAA,CAAS,MAAM,KAAA,CAAM,UAAU,CAAA;AAAA,KAC5C,CAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}