From 2b7fa0181b136af36e3c41d4eaf4bb6b34a90eeb Mon Sep 17 00:00:00 2001 From: ajaxzheng <894103554@qq.com> Date: Tue, 10 Jun 2025 19:39:34 +0800 Subject: [PATCH] =?UTF-8?q?feat(grid):=20=E4=BC=98=E5=8C=96mcp=E9=85=8D?= =?UTF-8?q?=E7=BD=AE=E7=94=A8=E6=B3=95=E5=92=8C=E7=A4=BA=E4=BE=8B=E4=BB=A3?= =?UTF-8?q?=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../grid/base/basic-usage-composition-api.vue | 99 +++++-------------- .../pc/app/grid/base/basic-usage.spec.js | 2 +- .../demos/pc/app/grid/base/basic-usage.vue | 55 +---------- examples/sites/package.json | 4 +- examples/sites/playground/App.vue | 4 +- examples/sites/src/App.vue | 19 +++- .../composition/DifyModelProvider.ts | 2 +- .../composition/useTinyRobot.ts | 9 +- .../views/components-doc/composition/utils.ts | 3 +- 9 files changed, 59 insertions(+), 138 deletions(-) diff --git a/examples/sites/demos/pc/app/grid/base/basic-usage-composition-api.vue b/examples/sites/demos/pc/app/grid/base/basic-usage-composition-api.vue index 3708ad4648..82c853c603 100644 --- a/examples/sites/demos/pc/app/grid/base/basic-usage-composition-api.vue +++ b/examples/sites/demos/pc/app/grid/base/basic-usage-composition-api.vue @@ -1,19 +1,5 @@ - diff --git a/examples/sites/demos/pc/app/grid/base/basic-usage.spec.js b/examples/sites/demos/pc/app/grid/base/basic-usage.spec.js index 4fde3edf38..0ca9629bdc 100644 --- a/examples/sites/demos/pc/app/grid/base/basic-usage.spec.js +++ b/examples/sites/demos/pc/app/grid/base/basic-usage.spec.js @@ -4,5 +4,5 @@ test('标签式表格', async ({ page }) => { page.on('pageerror', (exception) => expect(exception).toBeNull()) await page.goto('grid#base-basic-usage') - // await expect(page.getByRole('row', { name: '1 800 2014-04-30 00:56:00 福州' })).toBeVisible() + await expect(page.getByRole('cell', { name: 'GFD 有限责任公司' })).toBeVisible() }) diff --git a/examples/sites/demos/pc/app/grid/base/basic-usage.vue b/examples/sites/demos/pc/app/grid/base/basic-usage.vue index 3708ad4648..8ce06e0799 100644 --- a/examples/sites/demos/pc/app/grid/base/basic-usage.vue +++ b/examples/sites/demos/pc/app/grid/base/basic-usage.vue @@ -1,31 +1,6 @@ diff --git a/examples/sites/package.json b/examples/sites/package.json index 2f75c60070..c80ad9686e 100644 --- a/examples/sites/package.json +++ b/examples/sites/package.json @@ -27,12 +27,12 @@ "@docsearch/css": "^3.8.0", "@docsearch/js": "^3.8.0", "@docsearch/react": "npm:@docsearch/css", - "@modelcontextprotocol/sdk": "1.12.1", "@opentiny/next": "0.1.2", + "@opentiny/next-vue": "0.0.1-alpha.1", "@opentiny/tiny-robot": "0.2.1", "@opentiny/tiny-robot-kit": "0.2.1", "@opentiny/tiny-robot-svgs": "0.2.1", - "@opentiny/tiny-vue-mcp": "0.0.1-alpha.1", + "@opentiny/tiny-vue-mcp": "0.0.1-alpha.2", "@opentiny/utils": "workspace:~", "@opentiny/vue": "workspace:~", "@opentiny/vue-common": "workspace:~", diff --git a/examples/sites/playground/App.vue b/examples/sites/playground/App.vue index a83eb68380..b9b9f5ca69 100644 --- a/examples/sites/playground/App.vue +++ b/examples/sites/playground/App.vue @@ -11,7 +11,7 @@ import logoUrl from './assets/opentiny-logo.svg?url' import GitHub from './icons/Github.vue' import Share from './icons/Share.vue' -const VERSION = 'tiny-vue-version-3.23' +const VERSION = 'tiny-vue-version-3.24' const NOTIFY_KEY = 'tiny-vue-playground-notify' const LAYOUT = 'playground-layout' const LAYOUT_REVERSE = 'playground-layout-reverse' @@ -23,7 +23,7 @@ const isMobileFirst = tinyMode === 'mobile-first' const isSaas = tinyTheme === 'saas' const isPreview = searchObj.get('openMode') === 'preview' // 是否多端弹窗预览 -const versions = ['3.23', '3.22', '3.21'] +const versions = ['3.24', '3.23', '3.22'] const getVersion = () => { if (isPreview) { return versions[0] diff --git a/examples/sites/src/App.vue b/examples/sites/src/App.vue index bd1eb03827..b482a918bb 100644 --- a/examples/sites/src/App.vue +++ b/examples/sites/src/App.vue @@ -11,11 +11,13 @@