@gct-paas/design-web 0.1.4-dev.7 → 0.1.4-dev.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,67 @@
1
+ @charset "UTF-8";
2
+ /* stylelint-disable scss/no-global-function-names */
3
+ /* bem('block', 'element', 'modifier') => 'ibiz-block__element--modifier' */
4
+ /**
5
+ * 定义 Block 块
6
+ * @param {String} $block - Block 块名称
7
+ * @example
8
+ * @include b('button') {
9
+ * padding: 10px;
10
+ * }
11
+ */
12
+ /**
13
+ * 定义 Element 元素
14
+ * @param {String|List} $element - Element 元素名称,支持单个或多个
15
+ * @example
16
+ * @include b('button') {
17
+ * @include e('text') {
18
+ * color: #000;
19
+ * }
20
+ * }
21
+ * // 或传入多个元素
22
+ * @include b('button') {
23
+ * @include e(('text', 'icon')) {
24
+ * margin: 5px;
25
+ * }
26
+ * }
27
+ */
28
+ /**
29
+ * 定义 Modifier 修饰符
30
+ * @param {String|List} $modifier - Modifier 修饰符名称,支持单个或多个
31
+ * @example
32
+ * @include b('button') {
33
+ * @include m('primary') {
34
+ * background: blue;
35
+ * }
36
+ * }
37
+ * // 或传入多个修饰符
38
+ * @include b('button') {
39
+ * @include m(('primary', 'large')) {
40
+ * background: blue;
41
+ * font-size: 16px;
42
+ * }
43
+ * }
44
+ */
45
+ /**
46
+ * 定义状态选择器
47
+ * @param {String} $state - 状态名称
48
+ * @example
49
+ * @include b('button') {
50
+ * @include when('disabled') {
51
+ * opacity: 0.5;
52
+ * }
53
+ * }
54
+ */
55
+ /**
56
+ * 深色主题样式
57
+ * @param {String} $block - Block 块名称
58
+ * @example
59
+ * @include dark('button') {
60
+ * background: #333;
61
+ * color: #fff;
62
+ * }
63
+ */
64
+ /* stylelint-disable scss/no-global-function-names */
65
+ .gct-test-com {
66
+ background-color: aqua;
67
+ }
@@ -1,12 +1,11 @@
1
1
  import { defineComponent, createVNode, createTextVNode } from 'vue';
2
2
  import { useNamespace } from '@gct-paas/core';
3
- import './test-com.scss';
3
+ import './test-com.css';/* empty css */
4
4
 
5
- "use strict";
6
5
  const TestCom = /* @__PURE__ */ defineComponent({
7
- name: "TestCom",
6
+ name: 'TestCom',
8
7
  setup() {
9
- const ns = useNamespace("test-com");
8
+ const ns = useNamespace('test-com');
10
9
  return {
11
10
  ns
12
11
  };
@@ -0,0 +1,21 @@
1
+ import { defineComponent, ref, openBlock, createElementBlock, normalizeClass, unref, createElementVNode, toDisplayString } from 'vue';
2
+ import { useNamespace } from '@gct-paas/core';
3
+
4
+ const _sfc_main = /* @__PURE__ */ defineComponent({
5
+ __name: "test-vue-com",
6
+ setup(__props) {
7
+ const ns = useNamespace("test-vue-com");
8
+ const msg = ref("Hello World!");
9
+ const msg2 = ref("Hello World2!");
10
+ return (_ctx, _cache) => {
11
+ return openBlock(), createElementBlock("div", {
12
+ class: normalizeClass(unref(ns).b())
13
+ }, [
14
+ createElementVNode("div", null, toDisplayString(msg.value), 1),
15
+ createElementVNode("div", null, toDisplayString(msg2.value), 1)
16
+ ], 2);
17
+ };
18
+ }
19
+ });
20
+
21
+ export { _sfc_main as default };
@@ -0,0 +1,5 @@
1
+ import _sfc_main from './test-vue-com.vue.mjs';
2
+
3
+
4
+
5
+ export { _sfc_main as default };
package/es/index.mjs CHANGED
@@ -1,12 +1,10 @@
1
- import './components/index.mjs';
1
+ import _sfc_main from './components/test-vue-com/test-vue-com.vue.mjs';
2
2
  import { TestCom } from './components/test-com/test-com.mjs';
3
- import TestVueCom from './test-vue-com/test-vue-com.vue';
4
3
 
5
- "use strict";
6
- var index = {
4
+ const index = {
7
5
  install(app) {
8
6
  app.component(TestCom.name, TestCom);
9
- app.component(TestVueCom.name, TestVueCom);
7
+ app.component(_sfc_main.name, _sfc_main);
10
8
  }
11
9
  };
12
10
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gct-paas/design-web",
3
- "version": "0.1.4-dev.7",
3
+ "version": "0.1.4-dev.8",
4
4
  "type": "module",
5
5
  "description": "paas 平台设计界面移动端底包",
6
6
  "main": "dist/index.min.cjs",
@@ -31,8 +31,9 @@
31
31
  "license": "MIT",
32
32
  "author": "gct",
33
33
  "scripts": {
34
- "dev": "rollup -c -w --environment=NODE_ENV:development",
35
- "build": "npm run lint && rollup -c --environment=NODE_ENV:production && vite build --mode production --config vite.config.ts",
34
+ "dev": "cross-env NODE_ENV=development vite build --watch --config vite.dev.config.ts",
35
+ "es:build": "vite build --config vite.dev.config.ts",
36
+ "build": "npm run lint && vite build --config vite.dev.config.ts && vite build --config vite.config.ts",
36
37
  "lint": "eslint src/",
37
38
  "publish:next": "npm run build && npm publish --access public --tag=next --registry=https://registry.npmjs.org/",
38
39
  "publish:dev": "npm run build && npm publish --access public --tag=dev --registry=https://registry.npmjs.org/",
@@ -41,16 +42,15 @@
41
42
  "publish:npm": "npm run build && npm publish --access public --registry=https://registry.npmjs.org/"
42
43
  },
43
44
  "dependencies": {
44
- "@gct-paas/core": "0.1.4-dev.7",
45
- "@gct-paas/core-web": "0.1.4-dev.7",
46
- "@gct-paas/design": "0.1.4-dev.7",
47
- "@gct-paas/scss": "0.1.4-dev.7",
48
- "@gct-paas/web": "0.1.4-dev.7",
45
+ "@gct-paas/core": "0.1.4-dev.8",
46
+ "@gct-paas/core-web": "0.1.4-dev.8",
47
+ "@gct-paas/design": "0.1.4-dev.8",
48
+ "@gct-paas/scss": "0.1.4-dev.8",
49
49
  "vue": "^3.5.27"
50
50
  },
51
51
  "devDependencies": {
52
- "@gct-paas/build": "^0.1.4",
52
+ "@gct-paas/build": "^0.1.5-dev.6",
53
53
  "sass": "^1.97.3"
54
54
  },
55
- "gitHead": "331b60348593f6afa0ccaa54fcdd52435b7876fa"
55
+ "gitHead": "bf7f4f9672c3906ec834e6d58b999ce78f7cad08"
56
56
  }
@@ -1,4 +0,0 @@
1
- export { default as TestVueCom } from './test-vue-com/test-vue-com.vue';
2
- export { TestCom } from './test-com/test-com.mjs';
3
-
4
- "use strict";
@@ -1,3 +0,0 @@
1
- @include b(test-com) {
2
- background-color: aqua;
3
- }
@@ -1,15 +0,0 @@
1
- <template>
2
- <div :class="ns.b()">
3
- <div>{{ msg }}</div>
4
- <div>{{ msg2 }}</div>
5
- </div>
6
- </template>
7
- <script setup lang="ts" name="test-vue-com">
8
- import { useNamespace } from '@gct-paas/core';
9
- import { ref } from 'vue';
10
-
11
- const ns = useNamespace('test-vue-com');
12
-
13
- const msg = ref('Hello World!');
14
- const msg2 = ref('Hello World2!');
15
- </script>
package/es/vite-env.d.ts DELETED
@@ -1 +0,0 @@
1
- /// <reference types="vite/client" />
File without changes