Compare commits

...

6 Commits

Author SHA1 Message Date
wwsun 89bcd45728 chore(release): publish
- @music163/tango-designer@0.4.1
 - @music163/tango-setting-form@0.2.4
 - @music163/tango-ui@0.1.5
2023-10-09 18:44:15 +08:00
wwsun e86a6d7cd9 docs: update 2023-10-09 18:41:21 +08:00
wwsun 46b54459ce fix: update tabs style 2023-09-25 19:38:04 +08:00
wwsun 85898dee19 fix: always switch to design mode after preview is on 2023-09-25 16:31:47 +08:00
wwsun e429610606 fix: update export entry 2023-09-25 16:01:04 +08:00
wwsun b6814d6484 chore: update script 2023-09-22 17:55:30 +08:00
18 changed files with 48 additions and 16 deletions
+1 -1
View File
@@ -14,7 +14,7 @@ export default {
], ],
devServer: { devServer: {
host: 'local.netease.com', host: 'local.netease.com',
port: 7007, port: 8008,
https: { https: {
key: path.resolve(__dirname, 'local.netease.com-key.pem'), key: path.resolve(__dirname, 'local.netease.com-key.pem'),
cert: path.resolve(__dirname, 'local.netease.com.pem'), cert: path.resolve(__dirname, 'local.netease.com.pem'),
+1 -1
View File
@@ -10,7 +10,7 @@
], ],
"scripts": { "scripts": {
"build": "COMPRESS=none umi build", "build": "COMPRESS=none umi build",
"start": "HTTPS=1 umi dev" "start": "umi dev"
}, },
"dependencies": { "dependencies": {
"@ant-design/icons": "^4.8.0", "@ant-design/icons": "^4.8.0",
@@ -1,6 +1,6 @@
import React from 'react'; import React from 'react';
import { Row, Switch } from 'antd'; import { Row, Switch } from 'antd';
import { observer } from '@music163/tango-designer'; import { observer } from '@music163/tango-context';
const OtherPanel = observer(({ autoRemove, setAutoRemove }: any) => { const OtherPanel = observer(({ autoRemove, setAutoRemove }: any) => {
const onChange = (checked: boolean) => { const onChange = (checked: boolean) => {
+1 -1
View File
@@ -44,7 +44,7 @@ const tangoConfigJson = {
resources: ['https://unpkg.com/moment@{{version}}/moment.js'], resources: ['https://unpkg.com/moment@{{version}}/moment.js'],
}, },
'@music163/tango-boot': { '@music163/tango-boot': {
version: '0.2.0', version: '0.2.1',
library: 'TangoBoot', library: 'TangoBoot',
type: 'baseDependency', type: 'baseDependency',
resources: ['https://unpkg.com/@music163/tango-boot@{{version}}/dist/boot.js'], resources: ['https://unpkg.com/@music163/tango-boot@{{version}}/dist/boot.js'],
+1
View File
@@ -58,6 +58,7 @@ export default function App() {
<Box px="l"> <Box px="l">
<Toolbar> <Toolbar>
<Toolbar.Item key="routeSwitch" placement="left" /> <Toolbar.Item key="routeSwitch" placement="left" />
<Toolbar.Item key="preview" placement="left" />
<Toolbar.Item key="modeSwitch" placement="right" /> <Toolbar.Item key="modeSwitch" placement="right" />
<Toolbar.Item key="togglePanel" placement="right" /> <Toolbar.Item key="togglePanel" placement="right" />
<Toolbar.Separator /> <Toolbar.Separator />
+1 -1
View File
@@ -133,7 +133,7 @@ export function ProjectDetail() {
return ( return (
<Box display="flex" alignItems="center" columnGap="l"> <Box display="flex" alignItems="center" columnGap="l">
<Box className="ProjectName" fontSize="18px" fontWeight="bold"> <Box className="ProjectName" fontSize="18px" fontWeight="bold">
lc-online-test community-test
</Box> </Box>
<Box className="BranchName" as="code" fontSize="14px"> <Box className="BranchName" as="code" fontSize="14px">
<BranchesOutlined /> feature/list <BranchesOutlined /> feature/list
+10 -1
View File
@@ -10,11 +10,20 @@
项目使用的 npm 包依赖信息,用于定义依赖的类型以及外置依赖资源。该配置项为一个 map,key 为对应的 npm 包名,value 为该依赖的配置信息。 项目使用的 npm 包依赖信息,用于定义依赖的类型以及外置依赖资源。该配置项为一个 map,key 为对应的 npm 包名,value 为该依赖的配置信息。
- version 包的版本号,必选
- library UMD 包中的全局变量名,必选
- type 依赖的类型
- baseDependency 基础依赖包
- bizDependency 业务组件依赖包
- dependency 其他依赖包
- resources 外置依赖资源列表
- designerResources 在设计器视图载入的外置资源列表,用来需要区别加载时使用
- description 描述信息
依赖的类型 `type` 可以是 `baseDependency` 即项目的基础依赖,用于获取项目基础物料列表的信息;也可以是 `bizDependency` 即业务组件依赖,用于获取合并到物料面板业务组件菜单中的业务组件列表;也可以是 `depenency` 即项目的其他依赖,只用于提供 external 信息与版本信息等,不会和物料面板产生关系。 依赖的类型 `type` 可以是 `baseDependency` 即项目的基础依赖,用于获取项目基础物料列表的信息;也可以是 `bizDependency` 即业务组件依赖,用于获取合并到物料面板业务组件菜单中的业务组件列表;也可以是 `depenency` 即项目的其他依赖,只用于提供 external 信息与版本信息等,不会和物料面板产生关系。
当配置了外置依赖资源 `resources` 与其对应的全局变量 `library` 时,当这些依赖被 import 时,相关资源不会被打包到 bundle 中,而是在运行时再去外部获取这些扩展依赖,其等效于之前的 `sandbox.externalResources` 与 `sandbox.externals` 配置项。此外,可以将 `resource` 中的版本号替换为 `{{version}}`,其会在平台上构建时替换为版本号。特殊的,可以定义 `designerResources` 用于适配平台的设计器视图。 当配置了外置依赖资源 `resources` 与其对应的全局变量 `library` 时,当这些依赖被 import 时,相关资源不会被打包到 bundle 中,而是在运行时再去外部获取这些扩展依赖,其等效于之前的 `sandbox.externalResources` 与 `sandbox.externals` 配置项。此外,可以将 `resource` 中的版本号替换为 `{{version}}`,其会在平台上构建时替换为版本号。特殊的,可以定义 `designerResources` 用于适配平台的设计器视图。
```json ```json
{ {
"react": { "react": {
+1 -1
View File
@@ -22,7 +22,7 @@
"release": "yarn eslint && yarn build && yarn run ver && lerna publish from-git", "release": "yarn eslint && yarn build && yarn run ver && lerna publish from-git",
"release:beta": "yarn eslint && yarn build && yarn run ver && lerna publish from-package --dist-tag beta", "release:beta": "yarn eslint && yarn build && yarn run ver && lerna publish from-package --dist-tag beta",
"up": "yarn upgrade-interactive --latest", "up": "yarn upgrade-interactive --latest",
"postinstall": "husky install" "prepare": "husky install"
}, },
"devDependencies": { "devDependencies": {
"@babel/preset-env": "^7.19.3", "@babel/preset-env": "^7.19.3",
+7
View File
@@ -3,6 +3,13 @@
All notable changes to this project will be documented in this file. All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
## [0.4.1](https://github.com/netease/tango/compare/@music163/tango-designer@0.4.0...@music163/tango-designer@0.4.1) (2023-10-09)
### Bug Fixes
- always switch to design mode after preview is on ([85898de](https://github.com/netease/tango/commit/85898dee19b6031016679e33a4ce9edbd1089713))
- update export entry ([e429610](https://github.com/netease/tango/commit/e4296106066ad290ac838135fe6a57bc50ad2680))
# [0.4.0](https://github.com/netease/tango/compare/@music163/tango-designer@0.3.0...@music163/tango-designer@0.4.0) (2023-09-22) # [0.4.0](https://github.com/netease/tango/compare/@music163/tango-designer@0.3.0...@music163/tango-designer@0.4.0) (2023-09-22)
### Bug Fixes ### Bug Fixes
+3 -3
View File
@@ -1,6 +1,6 @@
{ {
"name": "@music163/tango-designer", "name": "@music163/tango-designer",
"version": "0.4.0", "version": "0.4.1",
"description": "lowcode designer", "description": "lowcode designer",
"keywords": [ "keywords": [
"react" "react"
@@ -37,8 +37,8 @@
"@music163/tango-core": "^0.2.1", "@music163/tango-core": "^0.2.1",
"@music163/tango-helpers": "^0.1.3", "@music163/tango-helpers": "^0.1.3",
"@music163/tango-sandbox": "^0.1.6", "@music163/tango-sandbox": "^0.1.6",
"@music163/tango-setting-form": "^0.2.3", "@music163/tango-setting-form": "^0.2.4",
"@music163/tango-ui": "^0.1.4", "@music163/tango-ui": "^0.1.5",
"antd": "^4.24.2", "antd": "^4.24.2",
"cash-dom": "^8.1.2", "cash-dom": "^8.1.2",
"classnames": "^2.3.2", "classnames": "^2.3.2",
+1
View File
@@ -11,6 +11,7 @@ export * from './sandbox';
export * from './sidebar'; export * from './sidebar';
export * from './toolbar'; export * from './toolbar';
export * from './selection-menu'; export * from './selection-menu';
export * from './widgets';
export { register as registerSetter } from '@music163/tango-setting-form'; export { register as registerSetter } from '@music163/tango-setting-form';
+5 -1
View File
@@ -11,7 +11,11 @@ export const PreviewTool = observer(() => {
shape="ghost" shape="ghost"
selected={designer.isPreview} selected={designer.isPreview}
onClick={() => { onClick={() => {
designer.toggleIsPreview(!designer.isPreview); const nextIsPreview = !designer.isPreview;
designer.toggleIsPreview(nextIsPreview);
if (nextIsPreview) {
designer.setActiveView('design');
}
}} }}
tip="预览" tip="预览"
> >
+4
View File
@@ -3,6 +3,10 @@
All notable changes to this project will be documented in this file. All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
## [0.2.4](https://github.com/netease/tango/compare/@music163/tango-setting-form@0.2.3...@music163/tango-setting-form@0.2.4) (2023-10-09)
**Note:** Version bump only for package @music163/tango-setting-form
## [0.2.3](https://github.com/netease/tango/compare/@music163/tango-setting-form@0.2.2...@music163/tango-setting-form@0.2.3) (2023-09-22) ## [0.2.3](https://github.com/netease/tango/compare/@music163/tango-setting-form@0.2.2...@music163/tango-setting-form@0.2.3) (2023-09-22)
**Note:** Version bump only for package @music163/tango-setting-form **Note:** Version bump only for package @music163/tango-setting-form
+2 -2
View File
@@ -1,6 +1,6 @@
{ {
"name": "@music163/tango-setting-form", "name": "@music163/tango-setting-form",
"version": "0.2.3", "version": "0.2.4",
"description": "setting form of tango-apps", "description": "setting form of tango-apps",
"author": "wwsun <ww.sun@outlook.com>", "author": "wwsun <ww.sun@outlook.com>",
"homepage": "", "homepage": "",
@@ -30,7 +30,7 @@
"@ant-design/icons": "^4.8.0", "@ant-design/icons": "^4.8.0",
"@music163/tango-core": "^0.2.1", "@music163/tango-core": "^0.2.1",
"@music163/tango-helpers": "^0.1.3", "@music163/tango-helpers": "^0.1.3",
"@music163/tango-ui": "^0.1.4", "@music163/tango-ui": "^0.1.5",
"antd": "^4.24.2", "antd": "^4.24.2",
"coral-system": "^1.0.5", "coral-system": "^1.0.5",
"mobx": "6.9.0", "mobx": "6.9.0",
+6
View File
@@ -3,6 +3,12 @@
All notable changes to this project will be documented in this file. All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
## [0.1.5](https://github.com/netease/tango/compare/@music163/tango-ui@0.1.4...@music163/tango-ui@0.1.5) (2023-10-09)
### Bug Fixes
- update tabs style ([46b5445](https://github.com/netease/tango/commit/46b54459ceb23f9df52b9eb40dc935bc872ba1b4))
## [0.1.4](https://github.com/netease/tango/compare/@music163/tango-ui@0.1.3...@music163/tango-ui@0.1.4) (2023-09-18) ## [0.1.4](https://github.com/netease/tango/compare/@music163/tango-ui@0.1.3...@music163/tango-ui@0.1.4) (2023-09-18)
**Note:** Version bump only for package @music163/tango-ui **Note:** Version bump only for package @music163/tango-ui
+1 -1
View File
@@ -1,6 +1,6 @@
{ {
"name": "@music163/tango-ui", "name": "@music163/tango-ui",
"version": "0.1.4", "version": "0.1.5",
"description": "ui widgets of tango", "description": "ui widgets of tango",
"keywords": [ "keywords": [
"react", "react",
+1 -1
View File
@@ -18,7 +18,7 @@ export function Tabs({
const tabBarStyle = useMemo(() => { const tabBarStyle = useMemo(() => {
let ret = centered ? centerTabBarStyle : defaultTabBarStyle; let ret = centered ? centerTabBarStyle : defaultTabBarStyle;
if (isTabBarSticky) { if (isTabBarSticky) {
ret = { ...ret, position: 'sticky', top: tabBarStickyOffset, zIndex: 1, background: '#fff' }; ret = { ...ret, position: 'sticky', top: tabBarStickyOffset, zIndex: 2, background: '#fff' };
} }
return ret; return ret;
}, [centered, isTabBarSticky, tabBarStickyOffset]); }, [centered, isTabBarSticky, tabBarStickyOffset]);