first commit

This commit is contained in:
lingxiao865
2026-02-10 08:05:03 +08:00
commit c5af079d8c
1094 changed files with 97530 additions and 0 deletions

View File

@@ -0,0 +1,33 @@
import { getInstance } from '../common/utils';
export const ActionSheetTheme = {
List: 'list',
Grid: 'grid',
};
export const actionSheetTheme = {
List: ActionSheetTheme.List,
Grid: ActionSheetTheme.Grid,
} ;
export const show = function (options) {
const { context, selector = '#t-action-sheet', ...otherOptions } = { ...options };
const instance = getInstance(context, selector);
if (instance) {
instance.show({
...otherOptions,
});
return instance;
}
console.error('未找到组件,请确认 selector && context 是否正确');
};
export const close = function (options) {
const { context, selector = '#t-action-sheet' } = { ...options };
const instance = getInstance(context, selector);
if (instance) {
instance.close();
}
};